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

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

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.27      millert     3: # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
1.1       millert     4: #
1.27      millert     5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                      6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       millert     7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
1.16      millert     9: ## --------------------- ##
                     10: ## M4sh Initialization.  ##
                     11: ## --------------------- ##
1.1       millert    12:
1.27      millert    13: # Be more Bourne compatible
                     14: DUALCASE=1; export DUALCASE # for MKS sh
1.16      millert    15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     16:   emulate sh
                     17:   NULLCMD=:
                     18:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     19:   # is contrary to our usage.  Disable this feature.
                     20:   alias -g '${1+"$@"}'='"$@"'
1.27      millert    21:   setopt NO_GLOB_SUBST
                     22: else
                     23:   case `(set -o) 2>/dev/null` in
                     24:   *posix*) set -o posix ;;
                     25: esac
                     26:
                     27: fi
                     28:
                     29:
                     30:
                     31:
                     32: # PATH needs CR
                     33: # Avoid depending upon Character Ranges.
                     34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     37: as_cr_digits='0123456789'
                     38: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     39:
                     40: # The user is always right.
                     41: if test "${PATH_SEPARATOR+set}" != set; then
                     42:   echo "#! /bin/sh" >conf$$.sh
                     43:   echo  "exit 0"   >>conf$$.sh
                     44:   chmod +x conf$$.sh
                     45:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     46:     PATH_SEPARATOR=';'
                     47:   else
                     48:     PATH_SEPARATOR=:
                     49:   fi
                     50:   rm -f conf$$.sh
1.16      millert    51: fi
                     52:
                     53: # Support unset when possible.
1.25      millert    54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16      millert    55:   as_unset=unset
                     56: else
                     57:   as_unset=false
                     58: fi
                     59:
                     60:
1.27      millert    61: # IFS
                     62: # We need space, tab and new line, in precisely that order.  Quoting is
                     63: # there to prevent editors from complaining about space-tab.
                     64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     65: # splitting by setting IFS to empty value.)
                     66: as_nl='
                     67: '
                     68: IFS=" ""       $as_nl"
                     69:
                     70: # Find who we are.  Look in the path if we contain no directory separator.
                     71: case $0 in
                     72:   *[\\/]* ) as_myself=$0 ;;
                     73:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     74: for as_dir in $PATH
                     75: do
                     76:   IFS=$as_save_IFS
                     77:   test -z "$as_dir" && as_dir=.
                     78:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     79: done
                     80: IFS=$as_save_IFS
                     81:
                     82:      ;;
                     83: esac
                     84: # We did not find ourselves, most probably we were run as `sh COMMAND'
                     85: # in which case we are not to be found in the path.
                     86: if test "x$as_myself" = x; then
                     87:   as_myself=$0
                     88: fi
                     89: if test ! -f "$as_myself"; then
                     90:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                     91:   { (exit 1); exit 1; }
                     92: fi
                     93:
1.16      millert    94: # Work around bugs in pre-3.0 UWIN ksh.
1.27      millert    95: for as_var in ENV MAIL MAILPATH
                     96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                     97: done
1.16      millert    98: PS1='$ '
                     99: PS2='> '
                    100: PS4='+ '
                    101:
                    102: # NLS nuisances.
                    103: for as_var in \
                    104:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                    105:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                    106:   LC_TELEPHONE LC_TIME
                    107: do
1.25      millert   108:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16      millert   109:     eval $as_var=C; export $as_var
                    110:   else
1.27      millert   111:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.16      millert   112:   fi
                    113: done
                    114:
                    115: # Required to use basename.
1.27      millert   116: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    117:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.16      millert   118:   as_expr=expr
                    119: else
                    120:   as_expr=false
                    121: fi
                    122:
1.27      millert   123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.16      millert   124:   as_basename=basename
                    125: else
                    126:   as_basename=false
                    127: fi
                    128:
                    129:
                    130: # Name of the executable.
1.27      millert   131: as_me=`$as_basename -- "$0" ||
1.16      millert   132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    133:         X"$0" : 'X\(//\)$' \| \
1.27      millert   134:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert   135: echo X/"$0" |
1.27      millert   136:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    137:            s//\1/
                    138:            q
                    139:          }
                    140:          /^X\/\(\/\/\)$/{
                    141:            s//\1/
                    142:            q
                    143:          }
                    144:          /^X\/\(\/\).*/{
                    145:            s//\1/
                    146:            q
                    147:          }
                    148:          s/.*/./; q'`
                    149:
                    150: # CDPATH.
                    151: $as_unset CDPATH
                    152:
1.16      millert   153:
1.27      millert   154: if test "x$CONFIG_SHELL" = x; then
                    155:   if (eval ":") 2>/dev/null; then
                    156:   as_have_required=yes
                    157: else
                    158:   as_have_required=no
                    159: fi
                    160:
                    161:   if test $as_have_required = yes &&    (eval ":
                    162: (as_func_return () {
                    163:   (exit \$1)
                    164: }
                    165: as_func_success () {
                    166:   as_func_return 0
                    167: }
                    168: as_func_failure () {
                    169:   as_func_return 1
                    170: }
                    171: as_func_ret_success () {
                    172:   return 0
                    173: }
                    174: as_func_ret_failure () {
                    175:   return 1
                    176: }
1.16      millert   177:
1.27      millert   178: exitcode=0
                    179: if as_func_success; then
                    180:   :
                    181: else
                    182:   exitcode=1
                    183:   echo as_func_success failed.
                    184: fi
                    185:
                    186: if as_func_failure; then
                    187:   exitcode=1
                    188:   echo as_func_failure succeeded.
                    189: fi
                    190:
                    191: if as_func_ret_success; then
                    192:   :
                    193: else
                    194:   exitcode=1
                    195:   echo as_func_ret_success failed.
                    196: fi
1.9       millert   197:
1.27      millert   198: if as_func_ret_failure; then
                    199:   exitcode=1
                    200:   echo as_func_ret_failure succeeded.
1.16      millert   201: fi
                    202:
1.27      millert   203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    204:   :
                    205: else
                    206:   exitcode=1
                    207:   echo positional parameters were not saved.
                    208: fi
1.16      millert   209:
1.27      millert   210: test \$exitcode = 0) || { (exit 1); exit 1; }
1.16      millert   211:
1.27      millert   212: (
                    213:   as_lineno_1=\$LINENO
                    214:   as_lineno_2=\$LINENO
                    215:   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
                    216:   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
                    217: ") 2> /dev/null; then
                    218:   :
                    219: else
                    220:   as_candidate_shells=
1.16      millert   221:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    223: do
                    224:   IFS=$as_save_IFS
                    225:   test -z "$as_dir" && as_dir=.
1.27      millert   226:   case $as_dir in
1.16      millert   227:         /*)
1.27      millert   228:           for as_base in sh bash ksh sh5; do
                    229:             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
                    230:           done;;
                    231:        esac
                    232: done
                    233: IFS=$as_save_IFS
                    234:
                    235:
                    236:       for as_shell in $as_candidate_shells $SHELL; do
                    237:         # Try only shells that exist, to save several forks.
                    238:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    239:                { ("$as_shell") 2> /dev/null <<\_ASEOF
                    240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    241:   emulate sh
                    242:   NULLCMD=:
                    243:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    244:   # is contrary to our usage.  Disable this feature.
                    245:   alias -g '${1+"$@"}'='"$@"'
                    246:   setopt NO_GLOB_SUBST
                    247: else
                    248:   case `(set -o) 2>/dev/null` in
                    249:   *posix*) set -o posix ;;
                    250: esac
                    251:
                    252: fi
                    253:
                    254:
                    255: :
                    256: _ASEOF
                    257: }; then
                    258:   CONFIG_SHELL=$as_shell
                    259:               as_have_required=yes
                    260:               if { "$as_shell" 2> /dev/null <<\_ASEOF
                    261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    262:   emulate sh
                    263:   NULLCMD=:
                    264:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    265:   # is contrary to our usage.  Disable this feature.
                    266:   alias -g '${1+"$@"}'='"$@"'
                    267:   setopt NO_GLOB_SUBST
                    268: else
                    269:   case `(set -o) 2>/dev/null` in
                    270:   *posix*) set -o posix ;;
                    271: esac
                    272:
                    273: fi
                    274:
                    275:
                    276: :
                    277: (as_func_return () {
                    278:   (exit $1)
                    279: }
                    280: as_func_success () {
                    281:   as_func_return 0
                    282: }
                    283: as_func_failure () {
                    284:   as_func_return 1
                    285: }
                    286: as_func_ret_success () {
                    287:   return 0
                    288: }
                    289: as_func_ret_failure () {
                    290:   return 1
                    291: }
                    292:
                    293: exitcode=0
                    294: if as_func_success; then
                    295:   :
                    296: else
                    297:   exitcode=1
                    298:   echo as_func_success failed.
                    299: fi
                    300:
                    301: if as_func_failure; then
                    302:   exitcode=1
                    303:   echo as_func_failure succeeded.
                    304: fi
                    305:
                    306: if as_func_ret_success; then
                    307:   :
                    308: else
                    309:   exitcode=1
                    310:   echo as_func_ret_success failed.
                    311: fi
                    312:
                    313: if as_func_ret_failure; then
                    314:   exitcode=1
                    315:   echo as_func_ret_failure succeeded.
                    316: fi
                    317:
                    318: if ( set x; as_func_ret_success y && test x = "$1" ); then
                    319:   :
                    320: else
                    321:   exitcode=1
                    322:   echo positional parameters were not saved.
                    323: fi
                    324:
                    325: test $exitcode = 0) || { (exit 1); exit 1; }
                    326:
                    327: (
                    328:   as_lineno_1=$LINENO
                    329:   as_lineno_2=$LINENO
                    330:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    331:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
                    332:
                    333: _ASEOF
                    334: }; then
                    335:   break
                    336: fi
                    337:
                    338: fi
                    339:
                    340:       done
                    341:
                    342:       if test "x$CONFIG_SHELL" != x; then
                    343:   for as_var in BASH_ENV ENV
                    344:         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                    345:         done
                    346:         export CONFIG_SHELL
                    347:         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    348: fi
                    349:
                    350:
                    351:     if test $as_have_required = no; then
                    352:   echo This script requires a shell more modern than all the
                    353:       echo shells that I found on your system.  Please install a
                    354:       echo modern shell, or manually run the script under such a
                    355:       echo shell if you do have one.
                    356:       { (exit 1); exit 1; }
                    357: fi
                    358:
                    359:
                    360: fi
                    361:
                    362: fi
                    363:
                    364:
                    365:
                    366: (eval "as_func_return () {
                    367:   (exit \$1)
                    368: }
                    369: as_func_success () {
                    370:   as_func_return 0
                    371: }
                    372: as_func_failure () {
                    373:   as_func_return 1
                    374: }
                    375: as_func_ret_success () {
                    376:   return 0
                    377: }
                    378: as_func_ret_failure () {
                    379:   return 1
                    380: }
                    381:
                    382: exitcode=0
                    383: if as_func_success; then
                    384:   :
                    385: else
                    386:   exitcode=1
                    387:   echo as_func_success failed.
                    388: fi
                    389:
                    390: if as_func_failure; then
                    391:   exitcode=1
                    392:   echo as_func_failure succeeded.
                    393: fi
                    394:
                    395: if as_func_ret_success; then
                    396:   :
                    397: else
                    398:   exitcode=1
                    399:   echo as_func_ret_success failed.
                    400: fi
                    401:
                    402: if as_func_ret_failure; then
                    403:   exitcode=1
                    404:   echo as_func_ret_failure succeeded.
                    405: fi
                    406:
                    407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    408:   :
                    409: else
                    410:   exitcode=1
                    411:   echo positional parameters were not saved.
                    412: fi
                    413:
                    414: test \$exitcode = 0") || {
                    415:   echo No shell found that supports shell functions.
                    416:   echo Please tell autoconf@gnu.org about your system,
                    417:   echo including any error possibly output before this
                    418:   echo message
                    419: }
                    420:
                    421:
                    422:
1.16      millert   423:   as_lineno_1=$LINENO
                    424:   as_lineno_2=$LINENO
                    425:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.27      millert   426:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.9       millert   427:
1.16      millert   428:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    429:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.27      millert   430:   # line-number line after each line using $LINENO; the second 'sed'
                    431:   # does the real work.  The second script uses 'N' to pair each
                    432:   # line-number line with the line containing $LINENO, and appends
                    433:   # trailing '-' during substitution so that $LINENO is not a special
                    434:   # case at line end.
1.16      millert   435:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.27      millert   436:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                    437:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                    438:   sed -n '
                    439:     p
                    440:     /[$]LINENO/=
                    441:   ' <$as_myself |
1.16      millert   442:     sed '
1.27      millert   443:       s/[$]LINENO.*/&-/
                    444:       t lineno
                    445:       b
                    446:       :lineno
1.16      millert   447:       N
1.27      millert   448:       :loop
                    449:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.16      millert   450:       t loop
1.27      millert   451:       s/-\n.*//
1.16      millert   452:     ' >$as_me.lineno &&
1.27      millert   453:   chmod +x "$as_me.lineno" ||
1.16      millert   454:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    455:    { (exit 1); exit 1; }; }
                    456:
                    457:   # Don't try to exec as it changes $[0], causing all sort of problems
                    458:   # (the dirname of $[0] is not the place where we might find the
1.27      millert   459:   # original and so on.  Autoconf is especially sensitive to this).
                    460:   . "./$as_me.lineno"
1.16      millert   461:   # Exit status is that of the last command.
                    462:   exit
                    463: }
1.9       millert   464:
                    465:
1.27      millert   466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    467:   as_dirname=dirname
                    468: else
                    469:   as_dirname=false
                    470: fi
                    471:
                    472: ECHO_C= ECHO_N= ECHO_T=
                    473: case `echo -n x` in
                    474: -n*)
                    475:   case `echo 'x\c'` in
                    476:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    477:   *)   ECHO_C='\c';;
                    478:   esac;;
                    479: *)
                    480:   ECHO_N='-n';;
1.16      millert   481: esac
1.9       millert   482:
1.27      millert   483: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    484:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.9       millert   485:   as_expr=expr
                    486: else
                    487:   as_expr=false
                    488: fi
                    489:
                    490: rm -f conf$$ conf$$.exe conf$$.file
1.27      millert   491: if test -d conf$$.dir; then
                    492:   rm -f conf$$.dir/conf$$.file
                    493: else
                    494:   rm -f conf$$.dir
                    495:   mkdir conf$$.dir
                    496: fi
1.9       millert   497: echo >conf$$.file
                    498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.27      millert   499:   as_ln_s='ln -s'
                    500:   # ... but there are two gotchas:
                    501:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    502:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    503:   # In both cases, we have to default to `cp -p'.
                    504:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.9       millert   505:     as_ln_s='cp -p'
                    506: elif ln conf$$.file conf$$ 2>/dev/null; then
                    507:   as_ln_s=ln
                    508: else
                    509:   as_ln_s='cp -p'
                    510: fi
1.27      millert   511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    512: rmdir conf$$.dir 2>/dev/null
1.9       millert   513:
1.16      millert   514: if mkdir -p . 2>/dev/null; then
                    515:   as_mkdir_p=:
                    516: else
1.25      millert   517:   test -d ./-p && rmdir ./-p
1.16      millert   518:   as_mkdir_p=false
                    519: fi
                    520:
1.27      millert   521: if test -x / >/dev/null 2>&1; then
                    522:   as_test_x='test -x'
                    523: else
                    524:   if ls -dL / >/dev/null 2>&1; then
                    525:     as_ls_L_option=L
                    526:   else
                    527:     as_ls_L_option=
                    528:   fi
                    529:   as_test_x='
                    530:     eval sh -c '\''
                    531:       if test -d "$1"; then
                    532:         test -d "$1/.";
                    533:       else
                    534:        case $1 in
                    535:         -*)set "./$1";;
                    536:        esac;
                    537:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                    538:        ???[sx]*):;;*)false;;esac;fi
                    539:     '\'' sh
                    540:   '
                    541: fi
                    542: as_executable_p=$as_test_x
1.9       millert   543:
1.16      millert   544: # Sed expression to map a string onto a valid CPP name.
1.25      millert   545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert   546:
                    547: # Sed expression to map a string onto a valid variable name.
1.25      millert   548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9       millert   549:
                    550:
                    551:
1.23      millert   552:
                    553: # Check that we are running under the correct shell.
                    554: SHELL=${CONFIG_SHELL-/bin/sh}
                    555:
1.27      millert   556: case X$ECHO in
1.23      millert   557: X*--fallback-echo)
                    558:   # Remove one level of quotation (which was required for Make).
1.27      millert   559:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23      millert   560:   ;;
                    561: esac
                    562:
1.27      millert   563: echo=${ECHO-echo}
1.23      millert   564: if test "X$1" = X--no-reexec; then
                    565:   # Discard the --no-reexec flag, and continue.
                    566:   shift
                    567: elif test "X$1" = X--fallback-echo; then
                    568:   # Avoid inline document here, it may be left over
                    569:   :
1.27      millert   570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
                    571:   # Yippee, $echo works!
1.23      millert   572:   :
                    573: else
                    574:   # Restart under the correct shell.
                    575:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    576: fi
                    577:
                    578: if test "X$1" = X--fallback-echo; then
                    579:   # used as fallback echo
                    580:   shift
1.27      millert   581:   cat <<EOF
1.23      millert   582: $*
1.27      millert   583: EOF
1.23      millert   584:   exit 0
                    585: fi
                    586:
                    587: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    588: # if CDPATH is set.
1.25      millert   589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert   590:
1.27      millert   591: if test -z "$ECHO"; then
                    592: if test "X${echo_test_string+set}" != Xset; then
                    593: # find a string as large as possible, as long as the shell can cope with it
                    594:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    595:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    596:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
                    597:        echo_test_string=`eval $cmd` &&
                    598:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    599:     then
                    600:       break
                    601:     fi
                    602:   done
                    603: fi
1.23      millert   604:
1.27      millert   605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    606:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    607:    test "X$echo_testing_string" = "X$echo_test_string"; then
                    608:   :
                    609: else
                    610:   # The Solaris, AIX, and Digital Unix default echo programs unquote
                    611:   # backslashes.  This makes it impossible to quote backslashes using
                    612:   #   echo "$something" | sed 's/\\/\\\\/g'
                    613:   #
                    614:   # So, first we look for a working echo in the user's PATH.
1.23      millert   615:
1.27      millert   616:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    617:   for dir in $PATH /usr/ucb; do
1.23      millert   618:     IFS="$lt_save_ifs"
1.27      millert   619:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    620:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    621:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    622:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    623:       echo="$dir/echo"
                    624:       break
                    625:     fi
                    626:   done
                    627:   IFS="$lt_save_ifs"
1.23      millert   628:
1.27      millert   629:   if test "X$echo" = Xecho; then
                    630:     # We didn't find a better echo, so look for alternatives.
                    631:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    632:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    633:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    634:       # This shell has a builtin print -r that does the trick.
                    635:       echo='print -r'
                    636:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    637:         test "X$CONFIG_SHELL" != X/bin/ksh; then
                    638:       # If we have ksh, try running configure again with it.
                    639:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    640:       export ORIGINAL_CONFIG_SHELL
                    641:       CONFIG_SHELL=/bin/ksh
                    642:       export CONFIG_SHELL
                    643:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    644:     else
                    645:       # Try using printf.
                    646:       echo='printf %s\n'
                    647:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    648:         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    649:         test "X$echo_testing_string" = "X$echo_test_string"; then
                    650:        # Cool, printf works
                    651:        :
                    652:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    653:           test "X$echo_testing_string" = 'X\t' &&
                    654:           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    655:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    656:        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    657:        export CONFIG_SHELL
                    658:        SHELL="$CONFIG_SHELL"
                    659:        export SHELL
                    660:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    661:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    662:           test "X$echo_testing_string" = 'X\t' &&
                    663:           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    664:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    665:        echo="$CONFIG_SHELL $0 --fallback-echo"
1.25      millert   666:       else
1.27      millert   667:        # maybe with a smaller string...
                    668:        prev=:
                    669:
                    670:        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    671:          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    672:          then
                    673:            break
                    674:          fi
                    675:          prev="$cmd"
                    676:        done
1.25      millert   677:
1.27      millert   678:        if test "$prev" != 'sed 50q "$0"'; then
                    679:          echo_test_string=`eval $prev`
                    680:          export echo_test_string
                    681:          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    682:        else
                    683:          # Oops.  We lost completely, so just stick with echo.
                    684:          echo=echo
                    685:        fi
1.23      millert   686:       fi
                    687:     fi
                    688:   fi
                    689: fi
1.27      millert   690: fi
1.23      millert   691:
                    692: # Copy echo and quote the copy suitably for passing to libtool from
                    693: # the Makefile, instead of quoting the original, which is used later.
1.27      millert   694: ECHO=$echo
                    695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    696:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23      millert   697: fi
                    698:
                    699:
                    700:
                    701:
1.27      millert   702: exec 7<&0 </dev/null 6>&1
                    703:
1.9       millert   704: # Name of the host.
                    705: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    706: # so uname gets run too.
                    707: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    708:
                    709: #
                    710: # Initializations.
                    711: #
1.1       millert   712: ac_default_prefix=/usr/local
1.27      millert   713: ac_clean_files=
1.16      millert   714: ac_config_libobj_dir=.
1.27      millert   715: LIBOBJS=
1.9       millert   716: cross_compiling=no
                    717: subdirs=
1.16      millert   718: MFLAGS=
                    719: MAKEFLAGS=
1.9       millert   720: SHELL=${CONFIG_SHELL-/bin/sh}
                    721:
1.16      millert   722: # Identity of this package.
                    723: PACKAGE_NAME='sudo'
                    724: PACKAGE_TARNAME='sudo'
1.25      millert   725: PACKAGE_VERSION='1.6.9'
                    726: PACKAGE_STRING='sudo 1.6.9'
1.16      millert   727: PACKAGE_BUGREPORT=''
                    728:
1.9       millert   729: # Factoring default headers for most tests.
                    730: ac_includes_default="\
                    731: #include <stdio.h>
1.27      millert   732: #ifdef HAVE_SYS_TYPES_H
1.9       millert   733: # include <sys/types.h>
                    734: #endif
1.27      millert   735: #ifdef HAVE_SYS_STAT_H
1.9       millert   736: # include <sys/stat.h>
                    737: #endif
1.27      millert   738: #ifdef STDC_HEADERS
1.9       millert   739: # include <stdlib.h>
                    740: # include <stddef.h>
                    741: #else
1.27      millert   742: # ifdef HAVE_STDLIB_H
1.9       millert   743: #  include <stdlib.h>
                    744: # endif
                    745: #endif
1.27      millert   746: #ifdef HAVE_STRING_H
                    747: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.9       millert   748: #  include <memory.h>
                    749: # endif
                    750: # include <string.h>
                    751: #endif
1.27      millert   752: #ifdef HAVE_STRINGS_H
1.9       millert   753: # include <strings.h>
                    754: #endif
1.27      millert   755: #ifdef HAVE_INTTYPES_H
1.9       millert   756: # include <inttypes.h>
                    757: #endif
1.27      millert   758: #ifdef HAVE_STDINT_H
                    759: # include <stdint.h>
                    760: #endif
                    761: #ifdef HAVE_UNISTD_H
1.9       millert   762: # include <unistd.h>
                    763: #endif"
1.1       millert   764:
1.27      millert   765: ac_subst_vars='SHELL
                    766: PATH_SEPARATOR
                    767: PACKAGE_NAME
                    768: PACKAGE_TARNAME
                    769: PACKAGE_VERSION
                    770: PACKAGE_STRING
                    771: PACKAGE_BUGREPORT
                    772: exec_prefix
                    773: prefix
                    774: program_transform_name
                    775: bindir
                    776: sbindir
                    777: libexecdir
                    778: datarootdir
                    779: datadir
                    780: sysconfdir
                    781: sharedstatedir
                    782: localstatedir
                    783: includedir
                    784: oldincludedir
                    785: docdir
                    786: infodir
                    787: htmldir
                    788: dvidir
                    789: pdfdir
                    790: psdir
                    791: libdir
                    792: localedir
                    793: mandir
                    794: DEFS
                    795: ECHO_C
                    796: ECHO_N
                    797: ECHO_T
                    798: LIBS
                    799: build_alias
                    800: host_alias
                    801: target_alias
                    802: LIBTOOL
                    803: CFLAGS
                    804: PROGS
                    805: CPPFLAGS
                    806: LDFLAGS
                    807: SUDO_LDFLAGS
                    808: SUDO_OBJS
                    809: SUDO_LIBS
                    810: NET_LIBS
                    811: AFS_LIBS
1.32      millert   812: GETGROUPS_LIB
1.27      millert   813: OSDEFS
                    814: AUTH_OBJS
                    815: MANTYPE
                    816: MAN_POSTINSTALL
                    817: SUDOERS_MODE
                    818: SUDOERS_UID
                    819: SUDOERS_GID
                    820: DEV
                    821: mansectsu
                    822: mansectform
                    823: mansrcdir
                    824: NOEXECDIR
                    825: noexec_file
                    826: INSTALL_NOEXEC
                    827: DONT_LEAK_PATH_INFO
                    828: timedir
                    829: timeout
                    830: password_timeout
                    831: sudo_umask
                    832: passprompt
                    833: long_otp_prompt
                    834: lecture
                    835: logfac
                    836: goodpri
                    837: badpri
                    838: loglen
                    839: ignore_dot
                    840: mail_no_user
                    841: mail_no_host
                    842: mail_no_perms
                    843: mailto
                    844: mailsub
                    845: badpass_message
                    846: fqdn
                    847: runas_default
                    848: env_editor
                    849: passwd_tries
                    850: tty_tickets
                    851: insults
                    852: root_sudo
                    853: path_info
                    854: EGREPPROG
                    855: CC
                    856: ac_ct_CC
                    857: EXEEXT
                    858: OBJEXT
                    859: CPP
                    860: build
                    861: build_cpu
                    862: build_vendor
                    863: build_os
                    864: host
                    865: host_cpu
                    866: host_vendor
                    867: host_os
                    868: target
                    869: target_cpu
                    870: target_vendor
                    871: target_os
                    872: SED
                    873: GREP
                    874: EGREP
                    875: LN_S
                    876: ECHO
                    877: AR
                    878: RANLIB
                    879: STRIP
                    880: UNAMEPROG
                    881: TRPROG
                    882: NROFFPROG
                    883: YACC
                    884: YFLAGS
                    885: LIBOBJS
                    886: ALLOCA
                    887: KRB5CONFIG
                    888: LTLIBOBJS'
1.16      millert   889: ac_subst_files=''
1.27      millert   890:       ac_precious_vars='build_alias
                    891: host_alias
                    892: target_alias
                    893: CC
                    894: CFLAGS
                    895: LDFLAGS
                    896: LIBS
                    897: CPPFLAGS
                    898: CPP
                    899: YACC
                    900: YFLAGS'
                    901:
1.16      millert   902:
1.1       millert   903: # Initialize some variables set by options.
1.9       millert   904: ac_init_help=
                    905: ac_init_version=false
1.1       millert   906: # The variables have the same names as the options, with
                    907: # dashes changed to underlines.
1.9       millert   908: cache_file=/dev/null
1.1       millert   909: exec_prefix=NONE
                    910: no_create=
                    911: no_recursion=
                    912: prefix=NONE
                    913: program_prefix=NONE
                    914: program_suffix=NONE
                    915: program_transform_name=s,x,x,
                    916: silent=
                    917: site=
                    918: srcdir=
                    919: verbose=
                    920: x_includes=NONE
                    921: x_libraries=NONE
1.9       millert   922:
                    923: # Installation directory options.
                    924: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    925: # and all the variables that are supposed to be based on exec_prefix
                    926: # by default will actually change.
                    927: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27      millert   928: # (The list follows the same order as the GNU Coding Standards.)
1.1       millert   929: bindir='${exec_prefix}/bin'
                    930: sbindir='${exec_prefix}/sbin'
                    931: libexecdir='${exec_prefix}/libexec'
1.27      millert   932: datarootdir='${prefix}/share'
                    933: datadir='${datarootdir}'
1.1       millert   934: sysconfdir='${prefix}/etc'
                    935: sharedstatedir='${prefix}/com'
                    936: localstatedir='${prefix}/var'
                    937: includedir='${prefix}/include'
                    938: oldincludedir='/usr/include'
1.27      millert   939: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    940: infodir='${datarootdir}/info'
                    941: htmldir='${docdir}'
                    942: dvidir='${docdir}'
                    943: pdfdir='${docdir}'
                    944: psdir='${docdir}'
                    945: libdir='${exec_prefix}/lib'
                    946: localedir='${datarootdir}/locale'
                    947: mandir='${datarootdir}/man'
1.1       millert   948:
                    949: ac_prev=
1.27      millert   950: ac_dashdash=
1.1       millert   951: for ac_option
                    952: do
                    953:   # If the previous option needs an argument, assign it.
                    954:   if test -n "$ac_prev"; then
1.27      millert   955:     eval $ac_prev=\$ac_option
1.1       millert   956:     ac_prev=
                    957:     continue
                    958:   fi
                    959:
1.27      millert   960:   case $ac_option in
                    961:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    962:   *)   ac_optarg=yes ;;
                    963:   esac
1.1       millert   964:
                    965:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    966:
1.27      millert   967:   case $ac_dashdash$ac_option in
                    968:   --)
                    969:     ac_dashdash=yes ;;
1.1       millert   970:
                    971:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    972:     ac_prev=bindir ;;
                    973:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   974:     bindir=$ac_optarg ;;
1.1       millert   975:
                    976:   -build | --build | --buil | --bui | --bu)
1.9       millert   977:     ac_prev=build_alias ;;
1.1       millert   978:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   979:     build_alias=$ac_optarg ;;
1.1       millert   980:
                    981:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    982:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    983:     ac_prev=cache_file ;;
                    984:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    985:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert   986:     cache_file=$ac_optarg ;;
                    987:
                    988:   --config-cache | -C)
                    989:     cache_file=config.cache ;;
1.1       millert   990:
1.27      millert   991:   -datadir | --datadir | --datadi | --datad)
1.1       millert   992:     ac_prev=datadir ;;
1.27      millert   993:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9       millert   994:     datadir=$ac_optarg ;;
1.1       millert   995:
1.27      millert   996:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    997:   | --dataroo | --dataro | --datar)
                    998:     ac_prev=datarootdir ;;
                    999:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1000:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1001:     datarootdir=$ac_optarg ;;
                   1002:
1.1       millert  1003:   -disable-* | --disable-*)
1.9       millert  1004:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert  1005:     # Reject names that are not valid shell variable names.
1.27      millert  1006:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1007:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1008:    { (exit 1); exit 1; }; }
1.27      millert  1009:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1010:     eval enable_$ac_feature=no ;;
                   1011:
                   1012:   -docdir | --docdir | --docdi | --doc | --do)
                   1013:     ac_prev=docdir ;;
                   1014:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1015:     docdir=$ac_optarg ;;
                   1016:
                   1017:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1018:     ac_prev=dvidir ;;
                   1019:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1020:     dvidir=$ac_optarg ;;
1.1       millert  1021:
                   1022:   -enable-* | --enable-*)
1.9       millert  1023:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert  1024:     # Reject names that are not valid shell variable names.
1.27      millert  1025:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1026:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1027:    { (exit 1); exit 1; }; }
1.27      millert  1028:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1029:     eval enable_$ac_feature=\$ac_optarg ;;
1.1       millert  1030:
                   1031:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1032:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1033:   | --exec | --exe | --ex)
                   1034:     ac_prev=exec_prefix ;;
                   1035:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1036:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1037:   | --exec=* | --exe=* | --ex=*)
1.9       millert  1038:     exec_prefix=$ac_optarg ;;
1.1       millert  1039:
                   1040:   -gas | --gas | --ga | --g)
                   1041:     # Obsolete; use --with-gas.
                   1042:     with_gas=yes ;;
                   1043:
1.9       millert  1044:   -help | --help | --hel | --he | -h)
                   1045:     ac_init_help=long ;;
                   1046:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1047:     ac_init_help=recursive ;;
                   1048:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1049:     ac_init_help=short ;;
1.1       millert  1050:
                   1051:   -host | --host | --hos | --ho)
1.9       millert  1052:     ac_prev=host_alias ;;
1.1       millert  1053:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert  1054:     host_alias=$ac_optarg ;;
1.1       millert  1055:
1.27      millert  1056:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1057:     ac_prev=htmldir ;;
                   1058:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1059:   | --ht=*)
                   1060:     htmldir=$ac_optarg ;;
                   1061:
1.1       millert  1062:   -includedir | --includedir | --includedi | --included | --include \
                   1063:   | --includ | --inclu | --incl | --inc)
                   1064:     ac_prev=includedir ;;
                   1065:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1066:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert  1067:     includedir=$ac_optarg ;;
1.1       millert  1068:
                   1069:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1070:     ac_prev=infodir ;;
                   1071:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert  1072:     infodir=$ac_optarg ;;
1.1       millert  1073:
                   1074:   -libdir | --libdir | --libdi | --libd)
                   1075:     ac_prev=libdir ;;
                   1076:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert  1077:     libdir=$ac_optarg ;;
1.1       millert  1078:
                   1079:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1080:   | --libexe | --libex | --libe)
                   1081:     ac_prev=libexecdir ;;
                   1082:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1083:   | --libexe=* | --libex=* | --libe=*)
1.9       millert  1084:     libexecdir=$ac_optarg ;;
1.1       millert  1085:
1.27      millert  1086:   -localedir | --localedir | --localedi | --localed | --locale)
                   1087:     ac_prev=localedir ;;
                   1088:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1089:     localedir=$ac_optarg ;;
                   1090:
1.1       millert  1091:   -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27      millert  1092:   | --localstate | --localstat | --localsta | --localst | --locals)
1.1       millert  1093:     ac_prev=localstatedir ;;
                   1094:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27      millert  1095:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9       millert  1096:     localstatedir=$ac_optarg ;;
1.1       millert  1097:
                   1098:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1099:     ac_prev=mandir ;;
                   1100:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert  1101:     mandir=$ac_optarg ;;
1.1       millert  1102:
                   1103:   -nfp | --nfp | --nf)
                   1104:     # Obsolete; use --without-fp.
                   1105:     with_fp=no ;;
                   1106:
                   1107:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16      millert  1108:   | --no-cr | --no-c | -n)
1.1       millert  1109:     no_create=yes ;;
                   1110:
                   1111:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1112:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1113:     no_recursion=yes ;;
                   1114:
                   1115:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1116:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1117:   | --oldin | --oldi | --old | --ol | --o)
                   1118:     ac_prev=oldincludedir ;;
                   1119:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1120:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1121:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert  1122:     oldincludedir=$ac_optarg ;;
1.1       millert  1123:
                   1124:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1125:     ac_prev=prefix ;;
                   1126:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert  1127:     prefix=$ac_optarg ;;
1.1       millert  1128:
                   1129:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1130:   | --program-pre | --program-pr | --program-p)
                   1131:     ac_prev=program_prefix ;;
                   1132:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1133:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert  1134:     program_prefix=$ac_optarg ;;
1.1       millert  1135:
                   1136:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1137:   | --program-suf | --program-su | --program-s)
                   1138:     ac_prev=program_suffix ;;
                   1139:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1140:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert  1141:     program_suffix=$ac_optarg ;;
1.1       millert  1142:
                   1143:   -program-transform-name | --program-transform-name \
                   1144:   | --program-transform-nam | --program-transform-na \
                   1145:   | --program-transform-n | --program-transform- \
                   1146:   | --program-transform | --program-transfor \
                   1147:   | --program-transfo | --program-transf \
                   1148:   | --program-trans | --program-tran \
                   1149:   | --progr-tra | --program-tr | --program-t)
                   1150:     ac_prev=program_transform_name ;;
                   1151:   -program-transform-name=* | --program-transform-name=* \
                   1152:   | --program-transform-nam=* | --program-transform-na=* \
                   1153:   | --program-transform-n=* | --program-transform-=* \
                   1154:   | --program-transform=* | --program-transfor=* \
                   1155:   | --program-transfo=* | --program-transf=* \
                   1156:   | --program-trans=* | --program-tran=* \
                   1157:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert  1158:     program_transform_name=$ac_optarg ;;
1.1       millert  1159:
1.27      millert  1160:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1161:     ac_prev=pdfdir ;;
                   1162:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1163:     pdfdir=$ac_optarg ;;
                   1164:
                   1165:   -psdir | --psdir | --psdi | --psd | --ps)
                   1166:     ac_prev=psdir ;;
                   1167:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1168:     psdir=$ac_optarg ;;
                   1169:
1.1       millert  1170:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1171:   | -silent | --silent | --silen | --sile | --sil)
                   1172:     silent=yes ;;
                   1173:
                   1174:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1175:     ac_prev=sbindir ;;
                   1176:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1177:   | --sbi=* | --sb=*)
1.9       millert  1178:     sbindir=$ac_optarg ;;
1.1       millert  1179:
                   1180:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1181:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1182:   | --sharedst | --shareds | --shared | --share | --shar \
                   1183:   | --sha | --sh)
                   1184:     ac_prev=sharedstatedir ;;
                   1185:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1186:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1187:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1188:   | --sha=* | --sh=*)
1.9       millert  1189:     sharedstatedir=$ac_optarg ;;
1.1       millert  1190:
                   1191:   -site | --site | --sit)
                   1192:     ac_prev=site ;;
                   1193:   -site=* | --site=* | --sit=*)
1.9       millert  1194:     site=$ac_optarg ;;
1.1       millert  1195:
                   1196:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1197:     ac_prev=srcdir ;;
                   1198:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert  1199:     srcdir=$ac_optarg ;;
1.1       millert  1200:
                   1201:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1202:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1203:     ac_prev=sysconfdir ;;
                   1204:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1205:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert  1206:     sysconfdir=$ac_optarg ;;
1.1       millert  1207:
                   1208:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert  1209:     ac_prev=target_alias ;;
1.1       millert  1210:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert  1211:     target_alias=$ac_optarg ;;
1.1       millert  1212:
                   1213:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1214:     verbose=yes ;;
                   1215:
1.9       millert  1216:   -version | --version | --versio | --versi | --vers | -V)
                   1217:     ac_init_version=: ;;
1.1       millert  1218:
                   1219:   -with-* | --with-*)
1.9       millert  1220:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert  1221:     # Reject names that are not valid shell variable names.
1.27      millert  1222:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1223:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1224:    { (exit 1); exit 1; }; }
1.27      millert  1225:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1226:     eval with_$ac_package=\$ac_optarg ;;
1.1       millert  1227:
                   1228:   -without-* | --without-*)
1.9       millert  1229:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert  1230:     # Reject names that are not valid shell variable names.
1.27      millert  1231:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1232:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1233:    { (exit 1); exit 1; }; }
1.27      millert  1234:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1235:     eval with_$ac_package=no ;;
1.1       millert  1236:
                   1237:   --x)
                   1238:     # Obsolete; use --with-x.
                   1239:     with_x=yes ;;
                   1240:
                   1241:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1242:   | --x-incl | --x-inc | --x-in | --x-i)
                   1243:     ac_prev=x_includes ;;
                   1244:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1245:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert  1246:     x_includes=$ac_optarg ;;
1.1       millert  1247:
                   1248:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1249:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1250:     ac_prev=x_libraries ;;
                   1251:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1252:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert  1253:     x_libraries=$ac_optarg ;;
1.1       millert  1254:
1.9       millert  1255:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                   1256: Try \`$0 --help' for more information." >&2
                   1257:    { (exit 1); exit 1; }; }
1.1       millert  1258:     ;;
                   1259:
1.9       millert  1260:   *=*)
                   1261:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1262:     # Reject names that are not valid shell variable names.
                   1263:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                   1264:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                   1265:    { (exit 1); exit 1; }; }
1.27      millert  1266:     eval $ac_envvar=\$ac_optarg
1.9       millert  1267:     export $ac_envvar ;;
                   1268:
1.1       millert  1269:   *)
1.9       millert  1270:     # FIXME: should be removed in autoconf 3.0.
                   1271:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1272:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1273:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1274:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert  1275:     ;;
                   1276:
                   1277:   esac
                   1278: done
                   1279:
                   1280: if test -n "$ac_prev"; then
1.9       millert  1281:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1282:   { echo "$as_me: error: missing argument to $ac_option" >&2
                   1283:    { (exit 1); exit 1; }; }
1.1       millert  1284: fi
                   1285:
1.27      millert  1286: # Be sure to have absolute directory names.
                   1287: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1288:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1289:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1290:                libdir localedir mandir
1.9       millert  1291: do
1.27      millert  1292:   eval ac_val=\$$ac_var
1.9       millert  1293:   case $ac_val in
1.27      millert  1294:     [\\/$]* | ?:[\\/]* )  continue;;
                   1295:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1       millert  1296:   esac
1.27      millert  1297:   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                   1298:    { (exit 1); exit 1; }; }
1.1       millert  1299: done
                   1300:
1.9       millert  1301: # There might be people who depend on the old broken behavior: `$host'
                   1302: # used to hold the argument of --host etc.
1.16      millert  1303: # FIXME: To remove some day.
1.9       millert  1304: build=$build_alias
                   1305: host=$host_alias
                   1306: target=$target_alias
                   1307:
1.16      millert  1308: # FIXME: To remove some day.
1.9       millert  1309: if test "x$host_alias" != x; then
                   1310:   if test "x$build_alias" = x; then
                   1311:     cross_compiling=maybe
                   1312:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                   1313:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1314:   elif test "x$build_alias" != "x$host_alias"; then
                   1315:     cross_compiling=yes
                   1316:   fi
                   1317: fi
1.1       millert  1318:
1.9       millert  1319: ac_tool_prefix=
                   1320: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert  1321:
1.9       millert  1322: test "$silent" = yes && exec 6>/dev/null
1.1       millert  1323:
1.16      millert  1324:
1.27      millert  1325: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1326: ac_ls_di=`ls -di .` &&
                   1327: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1328:   { echo "$as_me: error: Working directory cannot be determined" >&2
                   1329:    { (exit 1); exit 1; }; }
                   1330: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1331:   { echo "$as_me: error: pwd does not report name of working directory" >&2
                   1332:    { (exit 1); exit 1; }; }
                   1333:
                   1334:
1.1       millert  1335: # Find the source files, if location was not specified.
                   1336: if test -z "$srcdir"; then
                   1337:   ac_srcdir_defaulted=yes
1.27      millert  1338:   # Try the directory containing this script, then the parent directory.
                   1339:   ac_confdir=`$as_dirname -- "$0" ||
1.16      millert  1340: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25      millert  1341:         X"$0" : 'X\(//\)[^/]' \| \
                   1342:         X"$0" : 'X\(//\)$' \| \
1.27      millert  1343:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert  1344: echo X"$0" |
1.27      millert  1345:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1346:            s//\1/
                   1347:            q
                   1348:          }
                   1349:          /^X\(\/\/\)[^/].*/{
                   1350:            s//\1/
                   1351:            q
                   1352:          }
                   1353:          /^X\(\/\/\)$/{
                   1354:            s//\1/
                   1355:            q
                   1356:          }
                   1357:          /^X\(\/\).*/{
                   1358:            s//\1/
                   1359:            q
                   1360:          }
                   1361:          s/.*/./; q'`
1.1       millert  1362:   srcdir=$ac_confdir
1.27      millert  1363:   if test ! -r "$srcdir/$ac_unique_file"; then
1.1       millert  1364:     srcdir=..
                   1365:   fi
                   1366: else
                   1367:   ac_srcdir_defaulted=no
                   1368: fi
1.27      millert  1369: if test ! -r "$srcdir/$ac_unique_file"; then
                   1370:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1371:   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                   1372:    { (exit 1); exit 1; }; }
                   1373: fi
                   1374: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1375: ac_abs_confdir=`(
                   1376:        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
                   1377:    { (exit 1); exit 1; }; }
                   1378:        pwd)`
                   1379: # When building in place, set srcdir=.
                   1380: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1381:   srcdir=.
                   1382: fi
                   1383: # Remove unnecessary trailing slashes from srcdir.
                   1384: # Double slashes in file names in object file debugging info
                   1385: # mess up M-x gdb in Emacs.
                   1386: case $srcdir in
                   1387: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1388: esac
                   1389: for ac_var in $ac_precious_vars; do
                   1390:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1391:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1392:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1393:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1394: done
1.9       millert  1395:
                   1396: #
                   1397: # Report the --help message.
                   1398: #
                   1399: if test "$ac_init_help" = "long"; then
                   1400:   # Omit some internal or obsolete options to make the list less imposing.
                   1401:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16      millert  1402:   cat <<_ACEOF
1.25      millert  1403: \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1.9       millert  1404:
                   1405: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1406:
                   1407: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1408: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1409:
                   1410: Defaults for the options are specified in brackets.
                   1411:
                   1412: Configuration:
                   1413:   -h, --help              display this help and exit
                   1414:       --help=short        display options specific to this package
                   1415:       --help=recursive    display the short help of all the included packages
                   1416:   -V, --version           display version information and exit
                   1417:   -q, --quiet, --silent   do not print \`checking...' messages
                   1418:       --cache-file=FILE   cache test results in FILE [disabled]
                   1419:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1420:   -n, --no-create         do not create output files
                   1421:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1422:
                   1423: Installation directories:
                   1424:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.25      millert  1425:                          [$ac_default_prefix]
1.9       millert  1426:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.25      millert  1427:                          [PREFIX]
1.9       millert  1428:
                   1429: By default, \`make install' will install all the files in
                   1430: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1431: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1432: for instance \`--prefix=\$HOME'.
                   1433:
                   1434: For better control, use the options below.
                   1435:
                   1436: Fine tuning of the installation directories:
                   1437:   --bindir=DIR           user executables [EPREFIX/bin]
                   1438:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                   1439:   --libexecdir=DIR       program executables [EPREFIX/libexec]
1.27      millert  1440:   --sysconfdir=DIR       read-only single-machine data [etc]
1.9       millert  1441:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                   1442:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                   1443:   --libdir=DIR           object code libraries [EPREFIX/lib]
                   1444:   --includedir=DIR       C header files [PREFIX/include]
                   1445:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1.27      millert  1446:   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                   1447:   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                   1448:   --infodir=DIR          info documentation [DATAROOTDIR/info]
                   1449:   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                   1450:   --mandir=DIR           man documentation [DATAROOTDIR/man]
                   1451:   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
                   1452:   --htmldir=DIR          html documentation [DOCDIR]
                   1453:   --dvidir=DIR           dvi documentation [DOCDIR]
                   1454:   --pdfdir=DIR           pdf documentation [DOCDIR]
                   1455:   --psdir=DIR            ps documentation [DOCDIR]
1.16      millert  1456: _ACEOF
1.9       millert  1457:
1.16      millert  1458:   cat <<\_ACEOF
1.9       millert  1459:
                   1460: System types:
                   1461:   --build=BUILD     configure for building on BUILD [guessed]
1.16      millert  1462:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1.23      millert  1463:   --target=TARGET   configure for building compilers for TARGET [HOST]
1.16      millert  1464: _ACEOF
1.9       millert  1465: fi
                   1466:
                   1467: if test -n "$ac_init_help"; then
                   1468:   case $ac_init_help in
1.25      millert  1469:      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1.9       millert  1470:    esac
1.16      millert  1471:   cat <<\_ACEOF
1.9       millert  1472:
                   1473: Optional Features:
                   1474:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1475:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1476:   --disable-authentication
                   1477:                           Do not require authentication by default
1.12      millert  1478:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert  1479:   --disable-setreuid      Don't try to use the setreuid() function
1.25      millert  1480:   --disable-setresuid     Don't try to use the setresuid() function
1.9       millert  1481:   --disable-shadow        Never use shadow passwords
1.12      millert  1482:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert  1483:   --enable-log-host       Log the hostname in the log file
                   1484:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1485:   --enable-shell-sets-home
                   1486:                           set $HOME to target user in shell mode
                   1487:   --disable-path-info     Print 'command not allowed' not 'command not found'
1.27      millert  1488:   --enable-static[=PKGS]  build static libraries [default=no]
                   1489:   --enable-shared[=PKGS]  build shared libraries [default=yes]
1.23      millert  1490:   --enable-fast-install[=PKGS]
                   1491:                           optimize for fast installation [default=yes]
                   1492:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.27      millert  1493:   --disable-sia           Disable SIA on Digital UNIX
1.30      millert  1494:   --disable-pam-session   Disable PAM session support
1.9       millert  1495:
                   1496: Optional Packages:
                   1497:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1498:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1499:   --with-otp-only         deprecated
                   1500:   --with-alertmail        deprecated
                   1501:   --with-CC               C compiler to use
1.17      millert  1502:   --with-rpath            pass -R flag in addition to -L for lib paths
1.25      millert  1503:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1.9       millert  1504:   --with-incpath          additional places to look for include files
                   1505:   --with-libpath          additional places to look for libraries
                   1506:   --with-libraries        additional libraries to link with
1.15      david    1507:   --with-devel            add development options
1.11      millert  1508:   --with-efence           link with -lefence for malloc() debugging
1.9       millert  1509:   --with-csops            add CSOps standard options
                   1510:   --without-passwd        don't use passwd/shadow file for authentication
1.25      millert  1511:   --with-skey=DIR         enable S/Key support
                   1512:   --with-opie=DIR         enable OPIE support
1.9       millert  1513:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1.17      millert  1514:   --with-SecurID[=DIR]    enable SecurID support
                   1515:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
                   1516:   --with-kerb4[=DIR]      enable Kerberos IV support
                   1517:   --with-kerb5[=DIR]      enable Kerberos V support
1.25      millert  1518:   --with-aixauth          enable AIX general authentication support
1.9       millert  1519:   --with-pam              enable PAM support
                   1520:   --with-AFS              enable AFS support
                   1521:   --with-DCE              enable DCE support
                   1522:   --with-logincap         enable BSD login class support
                   1523:   --with-bsdauth          enable BSD authentication support
1.25      millert  1524:   --with-project          enable Solaris project support
1.9       millert  1525:   --without-lecture       don't print lecture for first-time sudoer
                   1526:   --with-logging          log via syslog, file, or both
                   1527:   --with-logfac           syslog facility to log with (default is "local2")
                   1528:   --with-goodpri          syslog priority for commands (def is "notice")
                   1529:   --with-badpri           syslog priority for failures (def is "alert")
                   1530:   --with-logpath          path to the sudo log file
                   1531:   --with-loglen           maximum length of a log file line (default is 80)
                   1532:   --with-ignore-dot       ignore '.' in the PATH
                   1533:   --without-mail-if-no-user do not send mail if user not in sudoers
                   1534:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1535:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1536:   --with-mailto           who should get sudo mail (default is "root")
                   1537:   --with-mailsubject      subject of sudo mail
                   1538:   --with-passprompt       default password prompt
                   1539:   --with-badpass-message  message the user sees when the password is wrong
                   1540:   --with-fqdn             expect fully qualified hosts in sudoers
                   1541:   --with-timedir          path to the sudo timestamp dir
                   1542:   --with-sendmail=path    set path to sendmail
                   1543:   --without-sendmail      do not send mail at all
                   1544:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1545:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1546:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                   1547:   --with-umask            umask with which the prog should run (default is 022)
                   1548:   --without-umask         Preserves the umask of the user invoking sudo.
                   1549:   --with-runas-default    User to run commands as (default is "root")
                   1550:   --with-exempt=group     no passwd needed for users in this group
                   1551:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1552:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1553:   --with-passwd-tries     number of tries to enter password (default is 3)
                   1554:   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
                   1555:   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
                   1556:   --with-tty-tickets      use a different ticket file for each tty
                   1557:   --with-insults          insult the user for entering an incorrect password
                   1558:   --with-all-insults      include all the sudo insult sets
                   1559:   --with-classic-insults  include the insults from the "classic" sudo
                   1560:   --with-csops-insults    include CSOps insults
                   1561:   --with-hal-insults      include 2001-like insults
                   1562:   --with-goons-insults    include the insults from the "Goon Show"
1.25      millert  1563:   --with-ldap[=DIR]       enable LDAP support
1.23      millert  1564:   --with-ldap-conf-file   path to LDAP configuration file
1.33    ! millert  1565:   --with-ldap-secret-file path to LDAP secret password file
1.23      millert  1566:   --with-pc-insults       replace politically incorrect insults with less offensive ones
1.20      millert  1567:   --with-secure-path      override the user's path with a built-in one
1.9       millert  1568:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16      millert  1569:   --with-stow             properly handle GNU stow packaging
1.27      millert  1570:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.23      millert  1571:   --with-pic              try to use only PIC/non-PIC objects [default=use
                   1572:                           both]
1.25      millert  1573:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1.9       millert  1574:
                   1575: Some influential environment variables:
                   1576:   CC          C compiler command
                   1577:   CFLAGS      C compiler flags
                   1578:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1579:               nonstandard directory <lib dir>
1.27      millert  1580:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1581:   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                   1582:               you have headers in a nonstandard directory <include dir>
1.9       millert  1583:   CPP         C preprocessor
1.27      millert  1584:   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                   1585:               the first program found out of: `bison -y', `byacc', `yacc'.
                   1586:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   1587:               This script will default YFLAGS to the empty string to avoid a
                   1588:               default value of `-d' given by some make applications.
1.9       millert  1589:
                   1590: Use these variables to override the choices made by `configure' or to help
                   1591: it to find libraries and programs with nonstandard names/locations.
                   1592:
1.16      millert  1593: _ACEOF
1.27      millert  1594: ac_status=$?
1.9       millert  1595: fi
                   1596:
                   1597: if test "$ac_init_help" = "recursive"; then
                   1598:   # If there are subdirs, report their specific --help.
1.16      millert  1599:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27      millert  1600:     test -d "$ac_dir" || continue
1.16      millert  1601:     ac_builddir=.
                   1602:
1.27      millert  1603: case "$ac_dir" in
                   1604: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1605: *)
1.16      millert  1606:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27      millert  1607:   # A ".." for each directory in $ac_dir_suffix.
                   1608:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   1609:   case $ac_top_builddir_sub in
                   1610:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1611:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1612:   esac ;;
                   1613: esac
                   1614: ac_abs_top_builddir=$ac_pwd
                   1615: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1616: # for backward compatibility:
                   1617: ac_top_builddir=$ac_top_build_prefix
1.16      millert  1618:
                   1619: case $srcdir in
1.27      millert  1620:   .)  # We are building in place.
1.16      millert  1621:     ac_srcdir=.
1.27      millert  1622:     ac_top_srcdir=$ac_top_builddir_sub
                   1623:     ac_abs_top_srcdir=$ac_pwd ;;
                   1624:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.16      millert  1625:     ac_srcdir=$srcdir$ac_dir_suffix;
1.27      millert  1626:     ac_top_srcdir=$srcdir
                   1627:     ac_abs_top_srcdir=$srcdir ;;
                   1628:   *) # Relative name.
                   1629:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1630:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1631:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1632: esac
                   1633: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1634:
                   1635:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1636:     # Check for guested configure.
                   1637:     if test -f "$ac_srcdir/configure.gnu"; then
                   1638:       echo &&
                   1639:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1640:     elif test -f "$ac_srcdir/configure"; then
                   1641:       echo &&
                   1642:       $SHELL "$ac_srcdir/configure" --help=recursive
1.9       millert  1643:     else
1.16      millert  1644:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27      millert  1645:     fi || ac_status=$?
                   1646:     cd "$ac_pwd" || { ac_status=$?; break; }
1.9       millert  1647:   done
                   1648: fi
                   1649:
1.27      millert  1650: test -n "$ac_init_help" && exit $ac_status
1.9       millert  1651: if $ac_init_version; then
1.16      millert  1652:   cat <<\_ACEOF
1.25      millert  1653: sudo configure 1.6.9
1.27      millert  1654: generated by GNU Autoconf 2.61
1.9       millert  1655:
1.27      millert  1656: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                   1657: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9       millert  1658: This configure script is free software; the Free Software Foundation
                   1659: gives unlimited permission to copy, distribute and modify it.
1.16      millert  1660: _ACEOF
1.27      millert  1661:   exit
1.9       millert  1662: fi
1.27      millert  1663: cat >config.log <<_ACEOF
1.9       millert  1664: This file contains any messages produced by compilers while
                   1665: running configure, to aid debugging if configure makes a mistake.
                   1666:
1.25      millert  1667: It was created by sudo $as_me 1.6.9, which was
1.27      millert  1668: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  1669:
                   1670:   $ $0 $@
                   1671:
1.16      millert  1672: _ACEOF
1.27      millert  1673: exec 5>>config.log
1.9       millert  1674: {
                   1675: cat <<_ASUNAME
1.16      millert  1676: ## --------- ##
                   1677: ## Platform. ##
                   1678: ## --------- ##
1.9       millert  1679:
                   1680: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1681: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1682: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1683: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1684: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1685:
                   1686: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1687: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1688:
                   1689: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1690: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1691: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27      millert  1692: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.9       millert  1693: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1694: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1695: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1696:
1.16      millert  1697: _ASUNAME
                   1698:
                   1699: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1700: for as_dir in $PATH
                   1701: do
                   1702:   IFS=$as_save_IFS
                   1703:   test -z "$as_dir" && as_dir=.
                   1704:   echo "PATH: $as_dir"
                   1705: done
1.27      millert  1706: IFS=$as_save_IFS
1.9       millert  1707:
                   1708: } >&5
                   1709:
1.16      millert  1710: cat >&5 <<_ACEOF
                   1711:
                   1712:
                   1713: ## ----------- ##
                   1714: ## Core tests. ##
                   1715: ## ----------- ##
                   1716:
                   1717: _ACEOF
1.9       millert  1718:
                   1719:
                   1720: # Keep a trace of the command line.
                   1721: # Strip out --no-create and --no-recursion so they do not pile up.
1.16      millert  1722: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1723: # Also quote any args containing shell meta-characters.
1.16      millert  1724: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1725: ac_configure_args=
1.16      millert  1726: ac_configure_args0=
                   1727: ac_configure_args1=
                   1728: ac_must_keep_next=false
                   1729: for ac_pass in 1 2
1.9       millert  1730: do
1.16      millert  1731:   for ac_arg
                   1732:   do
                   1733:     case $ac_arg in
                   1734:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1735:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1736:     | -silent | --silent | --silen | --sile | --sil)
                   1737:       continue ;;
1.27      millert  1738:     *\'*)
1.16      millert  1739:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1740:     esac
                   1741:     case $ac_pass in
                   1742:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1743:     2)
                   1744:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1745:       if test $ac_must_keep_next = true; then
1.25      millert  1746:        ac_must_keep_next=false # Got value, back to normal.
1.16      millert  1747:       else
1.25      millert  1748:        case $ac_arg in
                   1749:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1750:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1751:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1752:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1753:            case "$ac_configure_args0 " in
                   1754:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1755:            esac
                   1756:            ;;
                   1757:          -* ) ac_must_keep_next=true ;;
                   1758:        esac
1.16      millert  1759:       fi
1.27      millert  1760:       ac_configure_args="$ac_configure_args '$ac_arg'"
1.16      millert  1761:       ;;
                   1762:     esac
                   1763:   done
1.9       millert  1764: done
1.16      millert  1765: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1766: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1767:
                   1768: # When interrupted or exit'd, cleanup temporary files, and complete
                   1769: # config.log.  We remove comments because anyway the quotes in there
                   1770: # would cause problems or look ugly.
1.27      millert  1771: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   1772: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9       millert  1773: trap 'exit_status=$?
                   1774:   # Save into config.log some information that might help in debugging.
1.16      millert  1775:   {
                   1776:     echo
                   1777:
                   1778:     cat <<\_ASBOX
                   1779: ## ---------------- ##
                   1780: ## Cache variables. ##
                   1781: ## ---------------- ##
                   1782: _ASBOX
                   1783:     echo
                   1784:     # The following way of writing the cache mishandles newlines in values,
1.27      millert  1785: (
                   1786:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   1787:     eval ac_val=\$$ac_var
                   1788:     case $ac_val in #(
                   1789:     *${as_nl}*)
                   1790:       case $ac_var in #(
                   1791:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   1792: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   1793:       esac
                   1794:       case $ac_var in #(
                   1795:       _ | IFS | as_nl) ;; #(
                   1796:       *) $as_unset $ac_var ;;
                   1797:       esac ;;
                   1798:     esac
                   1799:   done
1.9       millert  1800:   (set) 2>&1 |
1.27      millert  1801:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   1802:     *${as_nl}ac_space=\ *)
1.9       millert  1803:       sed -n \
1.27      millert  1804:        "s/'\''/'\''\\\\'\'''\''/g;
                   1805:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   1806:       ;; #(
1.9       millert  1807:     *)
1.27      millert  1808:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9       millert  1809:       ;;
1.27      millert  1810:     esac |
                   1811:     sort
                   1812: )
1.16      millert  1813:     echo
                   1814:
                   1815:     cat <<\_ASBOX
                   1816: ## ----------------- ##
                   1817: ## Output variables. ##
                   1818: ## ----------------- ##
                   1819: _ASBOX
                   1820:     echo
                   1821:     for ac_var in $ac_subst_vars
                   1822:     do
1.27      millert  1823:       eval ac_val=\$$ac_var
                   1824:       case $ac_val in
                   1825:       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1826:       esac
                   1827:       echo "$ac_var='\''$ac_val'\''"
1.16      millert  1828:     done | sort
                   1829:     echo
                   1830:
                   1831:     if test -n "$ac_subst_files"; then
                   1832:       cat <<\_ASBOX
1.27      millert  1833: ## ------------------- ##
                   1834: ## File substitutions. ##
                   1835: ## ------------------- ##
1.16      millert  1836: _ASBOX
                   1837:       echo
                   1838:       for ac_var in $ac_subst_files
                   1839:       do
1.27      millert  1840:        eval ac_val=\$$ac_var
                   1841:        case $ac_val in
                   1842:        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1843:        esac
                   1844:        echo "$ac_var='\''$ac_val'\''"
1.16      millert  1845:       done | sort
                   1846:       echo
                   1847:     fi
                   1848:
                   1849:     if test -s confdefs.h; then
                   1850:       cat <<\_ASBOX
                   1851: ## ----------- ##
                   1852: ## confdefs.h. ##
                   1853: ## ----------- ##
                   1854: _ASBOX
                   1855:       echo
1.27      millert  1856:       cat confdefs.h
1.16      millert  1857:       echo
                   1858:     fi
                   1859:     test "$ac_signal" != 0 &&
                   1860:       echo "$as_me: caught signal $ac_signal"
                   1861:     echo "$as_me: exit $exit_status"
                   1862:   } >&5
1.27      millert  1863:   rm -f core *.core core.conftest.* &&
                   1864:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1865:     exit $exit_status
1.27      millert  1866: ' 0
1.9       millert  1867: for ac_signal in 1 2 13 15; do
                   1868:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1869: done
                   1870: ac_signal=0
1.1       millert  1871:
1.9       millert  1872: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27      millert  1873: rm -f -r conftest* confdefs.h
1.9       millert  1874:
1.16      millert  1875: # Predefined preprocessor variables.
                   1876:
                   1877: cat >>confdefs.h <<_ACEOF
                   1878: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1879: _ACEOF
                   1880:
                   1881:
                   1882: cat >>confdefs.h <<_ACEOF
                   1883: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1884: _ACEOF
                   1885:
                   1886:
                   1887: cat >>confdefs.h <<_ACEOF
                   1888: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1889: _ACEOF
                   1890:
                   1891:
                   1892: cat >>confdefs.h <<_ACEOF
                   1893: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1894: _ACEOF
                   1895:
                   1896:
                   1897: cat >>confdefs.h <<_ACEOF
                   1898: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1899: _ACEOF
                   1900:
                   1901:
1.9       millert  1902: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1903: # Prefer explicitly selected file to automatically selected ones.
1.27      millert  1904: if test -n "$CONFIG_SITE"; then
                   1905:   set x "$CONFIG_SITE"
                   1906: elif test "x$prefix" != xNONE; then
                   1907:   set x "$prefix/share/config.site" "$prefix/etc/config.site"
                   1908: else
                   1909:   set x "$ac_default_prefix/share/config.site" \
                   1910:        "$ac_default_prefix/etc/config.site"
1.1       millert  1911: fi
1.27      millert  1912: shift
                   1913: for ac_site_file
                   1914: do
1.1       millert  1915:   if test -r "$ac_site_file"; then
1.16      millert  1916:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1917: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16      millert  1918:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1919:     . "$ac_site_file"
                   1920:   fi
                   1921: done
                   1922:
                   1923: if test -r "$cache_file"; then
1.9       millert  1924:   # Some versions of bash will fail to source /dev/null (special
                   1925:   # files actually), so we avoid doing that.
                   1926:   if test -f "$cache_file"; then
1.16      millert  1927:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1928: echo "$as_me: loading cache $cache_file" >&6;}
                   1929:     case $cache_file in
1.27      millert  1930:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   1931:       *)                      . "./$cache_file";;
1.9       millert  1932:     esac
                   1933:   fi
1.1       millert  1934: else
1.16      millert  1935:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1936: echo "$as_me: creating cache $cache_file" >&6;}
                   1937:   >$cache_file
                   1938: fi
                   1939:
                   1940: # Check that the precious variables saved in the cache have kept the same
                   1941: # value.
                   1942: ac_cache_corrupted=false
1.27      millert  1943: for ac_var in $ac_precious_vars; do
1.9       millert  1944:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1945:   eval ac_new_set=\$ac_env_${ac_var}_set
1.27      millert  1946:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   1947:   eval ac_new_val=\$ac_env_${ac_var}_value
1.9       millert  1948:   case $ac_old_set,$ac_new_set in
                   1949:     set,)
1.16      millert  1950:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1951: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1952:       ac_cache_corrupted=: ;;
                   1953:     ,set)
1.16      millert  1954:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1955: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1956:       ac_cache_corrupted=: ;;
                   1957:     ,);;
                   1958:     *)
                   1959:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.25      millert  1960:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1961: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25      millert  1962:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1963: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.25      millert  1964:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1965: echo "$as_me:   current value: $ac_new_val" >&2;}
1.25      millert  1966:        ac_cache_corrupted=:
1.9       millert  1967:       fi;;
                   1968:   esac
1.16      millert  1969:   # Pass precious variables to config.status.
1.9       millert  1970:   if test "$ac_new_set" = set; then
                   1971:     case $ac_new_val in
1.27      millert  1972:     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16      millert  1973:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1974:     esac
                   1975:     case " $ac_configure_args " in
                   1976:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1977:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  1978:     esac
                   1979:   fi
                   1980: done
                   1981: if $ac_cache_corrupted; then
1.16      millert  1982:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  1983: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16      millert  1984:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  1985: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1986:    { (exit 1); exit 1; }; }
1.1       millert  1987: fi
                   1988:
1.9       millert  1989:
                   1990:
1.16      millert  1991:
                   1992:
                   1993:
                   1994:
                   1995:
                   1996:
                   1997:
                   1998:
                   1999:
                   2000:
                   2001:
                   2002:
                   2003:
                   2004:
                   2005:
                   2006:
                   2007:
                   2008:
                   2009:
                   2010:
                   2011:
                   2012:
1.27      millert  2013: ac_ext=c
                   2014: ac_cpp='$CPP $CPPFLAGS'
                   2015: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2016: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2017: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16      millert  2018:
                   2019:
1.27      millert  2020: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16      millert  2021:
1.25      millert  2022: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
                   2023: echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
                   2024:
                   2025:
                   2026:
                   2027:
                   2028:
                   2029:
                   2030:
                   2031:
                   2032:
                   2033:
                   2034:
                   2035:
                   2036:
                   2037:
                   2038:
                   2039:
                   2040:
                   2041:
                   2042:
1.23      millert  2043:
                   2044:
                   2045:
                   2046:
                   2047:
1.16      millert  2048:
                   2049:
                   2050:
                   2051:
                   2052:
                   2053:
                   2054:
                   2055:
                   2056:
                   2057:
                   2058:
                   2059:
                   2060:
                   2061:
                   2062:
                   2063:
                   2064:
                   2065:
                   2066:
                   2067:
                   2068:
                   2069:
                   2070:
                   2071:
                   2072:
                   2073:
1.9       millert  2074:
1.32      millert  2075:
1.9       millert  2076: timeout=5
                   2077: password_timeout=5
                   2078: sudo_umask=0022
                   2079: passprompt="Password:"
                   2080: long_otp_prompt=off
1.23      millert  2081: lecture=once
1.9       millert  2082: logfac=local2
                   2083: goodpri=notice
                   2084: badpri=alert
                   2085: loglen=80
                   2086: ignore_dot=off
                   2087: mail_no_user=on
                   2088: mail_no_host=off
                   2089: mail_no_perms=off
                   2090: mailto=root
                   2091: mailsub='*** SECURITY information for %h ***'
                   2092: badpass_message='Sorry, try again.'
                   2093: fqdn=off
                   2094: runas_default=root
                   2095: env_editor=off
                   2096: passwd_tries=3
                   2097: tty_tickets=off
                   2098: insults=off
1.23      millert  2099: root_sudo=on
1.25      millert  2100: path_info=on
1.23      millert  2101: INSTALL_NOEXEC=
1.1       millert  2102: PROGS="sudo visudo"
1.25      millert  2103: : ${MANTYPE='man'}
                   2104: : ${mansrcdir='.'}
                   2105: : ${SUDOERS_MODE='0440'}
                   2106: : ${SUDOERS_UID='0'}
                   2107: : ${SUDOERS_GID='0'}
1.1       millert  2108: DEV="#"
1.27      millert  2109: AUTH_OBJS=
                   2110: AUTH_REG=
                   2111: AUTH_EXCL=
                   2112: AUTH_EXCL_DEF=
                   2113: AUTH_DEF=passwd
1.1       millert  2114:
                   2115: CHECKSHADOW=true
1.25      millert  2116: shadow_defs=
                   2117: shadow_funcs=
                   2118: shadow_libs=
                   2119: shadow_libs_optional=
1.1       millert  2120:
                   2121: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                   2122: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   2123: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16      millert  2124: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   2125:
                   2126:
1.1       millert  2127:
1.27      millert  2128: # Check whether --with-otp-only was given.
1.1       millert  2129: if test "${with_otp_only+set}" = set; then
1.27      millert  2130:   withval=$with_otp_only; case $with_otp_only in
                   2131:     yes)       with_passwd="no"
1.17      millert  2132:                { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   2133: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1       millert  2134:                ;;
                   2135: esac
1.27      millert  2136: fi
                   2137:
1.1       millert  2138:
1.16      millert  2139:
1.27      millert  2140: # Check whether --with-alertmail was given.
1.1       millert  2141: if test "${with_alertmail+set}" = set; then
1.27      millert  2142:   withval=$with_alertmail; case $with_alertmail in
1.1       millert  2143:     *)         with_mailto="$with_alertmail"
1.17      millert  2144:                { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
                   2145: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1       millert  2146:                ;;
                   2147: esac
1.27      millert  2148: fi
                   2149:
1.1       millert  2150:
1.16      millert  2151:
                   2152:
1.27      millert  2153: # Check whether --with-CC was given.
1.1       millert  2154: if test "${with_CC+set}" = set; then
1.27      millert  2155:   withval=$with_CC; case $with_CC in
1.16      millert  2156:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  2157: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   2158:    { (exit 1); exit 1; }; }
                   2159:                ;;
1.16      millert  2160:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  2161: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   2162:    { (exit 1); exit 1; }; }
1.1       millert  2163:                ;;
                   2164:     *)         CC=$with_CC
                   2165:                ;;
                   2166: esac
1.27      millert  2167: fi
                   2168:
1.1       millert  2169:
1.16      millert  2170:
1.27      millert  2171: # Check whether --with-rpath was given.
1.17      millert  2172: if test "${with_rpath+set}" = set; then
1.27      millert  2173:   withval=$with_rpath; case $with_rpath in
1.25      millert  2174:     yes|no)    ;;
1.17      millert  2175:     *)         { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
                   2176: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
                   2177:    { (exit 1); exit 1; }; }
                   2178:                ;;
                   2179: esac
1.27      millert  2180: fi
                   2181:
1.17      millert  2182:
                   2183:
1.27      millert  2184: # Check whether --with-blibpath was given.
1.17      millert  2185: if test "${with_blibpath+set}" = set; then
1.27      millert  2186:   withval=$with_blibpath; case $with_blibpath in
1.25      millert  2187:     yes|no)    ;;
1.17      millert  2188:     *)         { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
                   2189: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
                   2190:                ;;
                   2191: esac
1.27      millert  2192: fi
                   2193:
1.17      millert  2194:
                   2195:
1.27      millert  2196: # Check whether --with-incpath was given.
1.1       millert  2197: if test "${with_incpath+set}" = set; then
1.27      millert  2198:   withval=$with_incpath; case $with_incpath in
1.16      millert  2199:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  2200: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   2201:    { (exit 1); exit 1; }; }
                   2202:                ;;
1.16      millert  2203:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  2204: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   2205:    { (exit 1); exit 1; }; }
1.1       millert  2206:                ;;
1.17      millert  2207:     *)         { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
                   2208: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1       millert  2209:                for i in ${with_incpath}; do
                   2210:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   2211:                done
                   2212:                ;;
                   2213: esac
1.27      millert  2214: fi
                   2215:
1.1       millert  2216:
1.16      millert  2217:
1.27      millert  2218: # Check whether --with-libpath was given.
1.1       millert  2219: if test "${with_libpath+set}" = set; then
1.27      millert  2220:   withval=$with_libpath; case $with_libpath in
1.16      millert  2221:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  2222: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   2223:    { (exit 1); exit 1; }; }
                   2224:                ;;
1.16      millert  2225:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  2226: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   2227:    { (exit 1); exit 1; }; }
1.1       millert  2228:                ;;
1.17      millert  2229:     *)         { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
                   2230: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1       millert  2231:                ;;
                   2232: esac
1.27      millert  2233: fi
                   2234:
1.1       millert  2235:
1.16      millert  2236:
1.27      millert  2237: # Check whether --with-libraries was given.
1.1       millert  2238: if test "${with_libraries+set}" = set; then
1.27      millert  2239:   withval=$with_libraries; case $with_libraries in
1.16      millert  2240:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  2241: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   2242:    { (exit 1); exit 1; }; }
                   2243:                ;;
1.16      millert  2244:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  2245: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   2246:    { (exit 1); exit 1; }; }
1.1       millert  2247:                ;;
1.17      millert  2248:     *)         { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
                   2249: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1       millert  2250:                ;;
                   2251: esac
1.27      millert  2252: fi
                   2253:
1.1       millert  2254:
1.16      millert  2255:
1.27      millert  2256: # Check whether --with-devel was given.
1.1       millert  2257: if test "${with_devel+set}" = set; then
1.27      millert  2258:   withval=$with_devel; case $with_devel in
1.17      millert  2259:     yes)       { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
                   2260: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1       millert  2261:                PROGS="${PROGS} testsudoers"
                   2262:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   2263:                DEV=""
                   2264:                ;;
                   2265:     no)                ;;
1.17      millert  2266:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   2267: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1       millert  2268:                ;;
                   2269: esac
1.27      millert  2270: fi
                   2271:
1.1       millert  2272:
1.16      millert  2273:
1.27      millert  2274: # Check whether --with-efence was given.
1.11      millert  2275: if test "${with_efence+set}" = set; then
1.27      millert  2276:   withval=$with_efence; case $with_efence in
1.17      millert  2277:     yes)       { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
                   2278: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11      millert  2279:                LIBS="${LIBS} -lefence"
                   2280:                if test -f /usr/local/lib/libefence.a; then
1.17      millert  2281:                    with_libpath="${with_libpath} /usr/local/lib"
1.11      millert  2282:                fi
                   2283:                ;;
                   2284:     no)                ;;
1.17      millert  2285:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   2286: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11      millert  2287:                ;;
                   2288: esac
1.27      millert  2289: fi
                   2290:
1.11      millert  2291:
1.16      millert  2292:
1.27      millert  2293: # Check whether --with-csops was given.
1.1       millert  2294: if test "${with_csops+set}" = set; then
1.27      millert  2295:   withval=$with_csops; case $with_csops in
1.17      millert  2296:     yes)       { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
                   2297: echo "$as_me: Adding CSOps standard options" >&6;}
1.1       millert  2298:                CHECKSIA=false
                   2299:                with_ignore_dot=yes
1.9       millert  2300:                insults=on
1.1       millert  2301:                with_classic_insults=yes
                   2302:                with_csops_insults=yes
                   2303:                with_env_editor=yes
1.25      millert  2304:                : ${mansectsu='8'}
                   2305:                : ${mansectform='5'}
1.1       millert  2306:                ;;
                   2307:     no)                ;;
1.17      millert  2308:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   2309: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1       millert  2310:                ;;
                   2311: esac
1.27      millert  2312: fi
                   2313:
1.1       millert  2314:
1.16      millert  2315:
1.27      millert  2316: # Check whether --with-passwd was given.
1.1       millert  2317: if test "${with_passwd+set}" = set; then
1.27      millert  2318:   withval=$with_passwd; case $with_passwd in
                   2319:     yes|no)    { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
                   2320: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
                   2321:                { echo "$as_me:$LINENO: result: $with_passwd" >&5
                   2322: echo "${ECHO_T}$with_passwd" >&6; }
                   2323:                AUTH_DEF=""
                   2324:                test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1       millert  2325:                ;;
1.16      millert  2326:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  2327: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   2328:    { (exit 1); exit 1; }; }
1.1       millert  2329:                ;;
                   2330: esac
1.27      millert  2331: fi
1.1       millert  2332:
1.16      millert  2333:
1.27      millert  2334:
                   2335: # Check whether --with-skey was given.
1.1       millert  2336: if test "${with_skey+set}" = set; then
1.27      millert  2337:   withval=$with_skey; case $with_skey in
1.25      millert  2338:     no)                with_skey=""
                   2339:                ;;
1.27      millert  2340:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2341: #define HAVE_SKEY 1
1.16      millert  2342: _ACEOF
1.1       millert  2343:
1.27      millert  2344:                { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
                   2345: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
                   2346:                { echo "$as_me:$LINENO: result: yes" >&5
                   2347: echo "${ECHO_T}yes" >&6; }
                   2348:                AUTH_REG="$AUTH_REG S/Key"
                   2349:                ;;
                   2350: esac
1.25      millert  2351: fi
                   2352:
1.1       millert  2353:
1.16      millert  2354:
1.27      millert  2355: # Check whether --with-opie was given.
1.1       millert  2356: if test "${with_opie+set}" = set; then
1.27      millert  2357:   withval=$with_opie; case $with_opie in
1.25      millert  2358:     no)                with_opie=""
                   2359:                ;;
1.27      millert  2360:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2361: #define HAVE_OPIE 1
1.16      millert  2362: _ACEOF
1.1       millert  2363:
1.27      millert  2364:                { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
                   2365: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
                   2366:                { echo "$as_me:$LINENO: result: yes" >&5
                   2367: echo "${ECHO_T}yes" >&6; }
                   2368:                AUTH_REG="$AUTH_REG NRL_OPIE"
                   2369:                ;;
                   2370: esac
1.25      millert  2371: fi
                   2372:
1.1       millert  2373:
1.16      millert  2374:
1.27      millert  2375: # Check whether --with-long-otp-prompt was given.
1.1       millert  2376: if test "${with_long_otp_prompt+set}" = set; then
1.27      millert  2377:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23      millert  2378:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2379: #define LONG_OTP_PROMPT 1
1.16      millert  2380: _ACEOF
1.1       millert  2381:
1.27      millert  2382:                { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
                   2383: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
                   2384:                { echo "$as_me:$LINENO: result: yes" >&5
                   2385: echo "${ECHO_T}yes" >&6; }
1.9       millert  2386:                long_otp_prompt=on
1.1       millert  2387:                ;;
1.9       millert  2388:     no)                long_otp_prompt=off
                   2389:                ;;
1.16      millert  2390:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  2391: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   2392:    { (exit 1); exit 1; }; }
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-SecurID was given.
1.1       millert  2400: if test "${with_SecurID+set}" = set; then
1.27      millert  2401:   withval=$with_SecurID; case $with_SecurID in
1.17      millert  2402:     no)                with_SecurID="";;
1.23      millert  2403:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2404: #define HAVE_SECURID 1
1.16      millert  2405: _ACEOF
1.1       millert  2406:
1.27      millert  2407:                { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
                   2408: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
                   2409:                { echo "$as_me:$LINENO: result: yes" >&5
                   2410: echo "${ECHO_T}yes" >&6; }
                   2411:                AUTH_EXCL="$AUTH_EXCL SecurID"
1.1       millert  2412:                ;;
                   2413: esac
1.27      millert  2414: fi
                   2415:
1.1       millert  2416:
1.16      millert  2417:
1.27      millert  2418: # Check whether --with-fwtk was given.
1.1       millert  2419: if test "${with_fwtk+set}" = set; then
1.27      millert  2420:   withval=$with_fwtk; case $with_fwtk in
1.17      millert  2421:     no)                with_fwtk="";;
1.23      millert  2422:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2423: #define HAVE_FWTK 1
1.16      millert  2424: _ACEOF
1.1       millert  2425:
1.27      millert  2426:                { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
                   2427: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
                   2428:                { echo "$as_me:$LINENO: result: yes" >&5
                   2429: echo "${ECHO_T}yes" >&6; }
                   2430:                AUTH_EXCL="$AUTH_EXCL FWTK"
                   2431:                ;;
                   2432: esac
1.25      millert  2433: fi
                   2434:
1.1       millert  2435:
1.16      millert  2436:
1.27      millert  2437: # Check whether --with-kerb4 was given.
1.1       millert  2438: if test "${with_kerb4+set}" = set; then
1.27      millert  2439:   withval=$with_kerb4; case $with_kerb4 in
1.17      millert  2440:     no)                with_kerb4="";;
1.27      millert  2441:     *)         { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
                   2442: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
                   2443:                { echo "$as_me:$LINENO: result: yes" >&5
                   2444: echo "${ECHO_T}yes" >&6; }
                   2445:                AUTH_REG="$AUTH_REG kerb4"
1.1       millert  2446:                ;;
                   2447: esac
1.27      millert  2448: fi
                   2449:
1.1       millert  2450:
1.16      millert  2451:
1.27      millert  2452: # Check whether --with-kerb5 was given.
1.1       millert  2453: if test "${with_kerb5+set}" = set; then
1.27      millert  2454:   withval=$with_kerb5; case $with_kerb5 in
1.17      millert  2455:     no)                with_kerb5="";;
1.27      millert  2456:     *)         { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
                   2457: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
                   2458:                { echo "$as_me:$LINENO: result: yes" >&5
                   2459: echo "${ECHO_T}yes" >&6; }
                   2460:                AUTH_REG="$AUTH_REG kerb5"
1.1       millert  2461:                ;;
                   2462: esac
1.27      millert  2463: fi
                   2464:
1.1       millert  2465:
1.16      millert  2466:
1.27      millert  2467: # Check whether --with-aixauth was given.
1.25      millert  2468: if test "${with_aixauth+set}" = set; then
1.27      millert  2469:   withval=$with_aixauth; case $with_aixauth in
                   2470:     yes)       AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
                   2471:     no)                ;;
1.25      millert  2472:     *)         { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
                   2473: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9       millert  2474:    { (exit 1); exit 1; }; }
1.1       millert  2475:                ;;
                   2476: esac
1.27      millert  2477: fi
                   2478:
1.1       millert  2479:
1.16      millert  2480:
1.27      millert  2481: # Check whether --with-pam was given.
1.1       millert  2482: if test "${with_pam+set}" = set; then
1.27      millert  2483:   withval=$with_pam; case $with_pam in
                   2484:     yes)       AUTH_EXCL="$AUTH_EXCL PAM";;
                   2485:     no)                ;;
1.16      millert  2486:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  2487: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   2488:    { (exit 1); exit 1; }; }
1.1       millert  2489:                ;;
                   2490: esac
1.27      millert  2491: fi
                   2492:
1.1       millert  2493:
1.16      millert  2494:
1.27      millert  2495: # Check whether --with-AFS was given.
1.1       millert  2496: if test "${with_AFS+set}" = set; then
1.27      millert  2497:   withval=$with_AFS; case $with_AFS in
1.23      millert  2498:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2499: #define HAVE_AFS 1
1.16      millert  2500: _ACEOF
1.1       millert  2501:
1.27      millert  2502:                { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
                   2503: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
                   2504:                { echo "$as_me:$LINENO: result: yes" >&5
                   2505: echo "${ECHO_T}yes" >&6; }
                   2506:                AUTH_REG="$AUTH_REG AFS"
1.1       millert  2507:                ;;
                   2508:     no)                ;;
1.16      millert  2509:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  2510: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   2511:    { (exit 1); exit 1; }; }
1.1       millert  2512:                ;;
                   2513: esac
1.27      millert  2514: fi
                   2515:
1.1       millert  2516:
1.16      millert  2517:
1.27      millert  2518: # Check whether --with-DCE was given.
1.1       millert  2519: if test "${with_DCE+set}" = set; then
1.27      millert  2520:   withval=$with_DCE; case $with_DCE in
1.23      millert  2521:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2522: #define HAVE_DCE 1
1.16      millert  2523: _ACEOF
1.1       millert  2524:
1.27      millert  2525:                { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
                   2526: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
                   2527:                { echo "$as_me:$LINENO: result: yes" >&5
                   2528: echo "${ECHO_T}yes" >&6; }
                   2529:                AUTH_REG="$AUTH_REG DCE"
1.1       millert  2530:                ;;
                   2531:     no)                ;;
1.16      millert  2532:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  2533: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   2534:    { (exit 1); exit 1; }; }
1.1       millert  2535:                ;;
                   2536: esac
1.27      millert  2537: fi
                   2538:
1.1       millert  2539:
1.16      millert  2540:
1.27      millert  2541: # Check whether --with-logincap was given.
1.6       millert  2542: if test "${with_logincap+set}" = set; then
1.27      millert  2543:   withval=$with_logincap; case $with_logincap in
1.7       millert  2544:     yes|no)    ;;
1.16      millert  2545:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  2546: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   2547:    { (exit 1); exit 1; }; }
1.7       millert  2548:                ;;
                   2549: esac
1.27      millert  2550: fi
                   2551:
1.6       millert  2552:
1.16      millert  2553:
1.27      millert  2554: # Check whether --with-bsdauth was given.
1.7       millert  2555: if test "${with_bsdauth+set}" = set; then
1.27      millert  2556:   withval=$with_bsdauth; case $with_bsdauth in
                   2557:     yes)       AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
                   2558:     no)                ;;
1.16      millert  2559:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  2560: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   2561:    { (exit 1); exit 1; }; }
1.6       millert  2562:                ;;
                   2563: esac
1.27      millert  2564: fi
                   2565:
1.6       millert  2566:
1.25      millert  2567:
1.27      millert  2568: # Check whether --with-project was given.
1.25      millert  2569: if test "${with_project+set}" = set; then
1.27      millert  2570:   withval=$with_project; case $with_project in
1.25      millert  2571:     yes|no)    ;;
                   2572:     no)        ;;
                   2573:     *)         { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
                   2574: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
                   2575:    { (exit 1); exit 1; }; }
                   2576:                ;;
                   2577: esac
1.27      millert  2578: fi
                   2579:
1.25      millert  2580:
1.27      millert  2581: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
                   2582: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6       millert  2583:
1.27      millert  2584: # Check whether --with-lecture was given.
1.1       millert  2585: if test "${with_lecture+set}" = set; then
1.27      millert  2586:   withval=$with_lecture; case $with_lecture in
1.23      millert  2587:     yes|short|always)  lecture=once
1.1       millert  2588:                ;;
1.23      millert  2589:     no|none|never)     lecture=never
1.1       millert  2590:                ;;
1.16      millert  2591:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  2592: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   2593:    { (exit 1); exit 1; }; }
1.1       millert  2594:                ;;
                   2595: esac
1.27      millert  2596: fi
                   2597:
1.23      millert  2598: if test "$lecture" = "once"; then
1.27      millert  2599:     { echo "$as_me:$LINENO: result: yes" >&5
                   2600: echo "${ECHO_T}yes" >&6; }
1.1       millert  2601: else
1.23      millert  2602:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2603: #define NO_LECTURE 1
1.16      millert  2604: _ACEOF
1.9       millert  2605:
1.27      millert  2606:     { echo "$as_me:$LINENO: result: no" >&5
                   2607: echo "${ECHO_T}no" >&6; }
1.1       millert  2608: fi
                   2609:
1.27      millert  2610: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
                   2611: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1       millert  2612:
1.27      millert  2613: # Check whether --with-logging was given.
1.1       millert  2614: if test "${with_logging+set}" = set; then
1.27      millert  2615:   withval=$with_logging; case $with_logging in
1.16      millert  2616:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  2617: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   2618:    { (exit 1); exit 1; }; }
                   2619:                ;;
1.16      millert  2620:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  2621: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   2622:    { (exit 1); exit 1; }; }
1.1       millert  2623:                ;;
1.23      millert  2624:     syslog)    cat >>confdefs.h <<\_ACEOF
1.1       millert  2625: #define LOGGING SLOG_SYSLOG
1.16      millert  2626: _ACEOF
1.1       millert  2627:
1.27      millert  2628:                { echo "$as_me:$LINENO: result: syslog" >&5
                   2629: echo "${ECHO_T}syslog" >&6; }
1.1       millert  2630:                ;;
1.16      millert  2631:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2632: #define LOGGING SLOG_FILE
1.16      millert  2633: _ACEOF
1.1       millert  2634:
1.27      millert  2635:                { echo "$as_me:$LINENO: result: file" >&5
                   2636: echo "${ECHO_T}file" >&6; }
1.1       millert  2637:                ;;
1.16      millert  2638:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2639: #define LOGGING SLOG_BOTH
1.16      millert  2640: _ACEOF
1.1       millert  2641:
1.27      millert  2642:                { echo "$as_me:$LINENO: result: both" >&5
                   2643: echo "${ECHO_T}both" >&6; }
1.1       millert  2644:                ;;
1.16      millert  2645:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  2646: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   2647:    { (exit 1); exit 1; }; }
1.1       millert  2648:                ;;
                   2649: esac
                   2650: else
1.16      millert  2651:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2652: #define LOGGING SLOG_SYSLOG
1.16      millert  2653: _ACEOF
1.27      millert  2654:  { echo "$as_me:$LINENO: result: syslog" >&5
                   2655: echo "${ECHO_T}syslog" >&6; }
                   2656: fi
                   2657:
1.1       millert  2658:
1.27      millert  2659: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
                   2660: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1       millert  2661:
1.27      millert  2662: # Check whether --with-logfac was given.
1.1       millert  2663: if test "${with_logfac+set}" = set; then
1.27      millert  2664:   withval=$with_logfac; case $with_logfac in
1.16      millert  2665:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  2666: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   2667:    { (exit 1); exit 1; }; }
                   2668:                ;;
1.16      millert  2669:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  2670: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   2671:    { (exit 1); exit 1; }; }
1.1       millert  2672:                ;;
1.9       millert  2673:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2674:                ;;
1.16      millert  2675:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2676: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2677:    { (exit 1); exit 1; }; }
1.1       millert  2678:                ;;
                   2679: esac
1.27      millert  2680: fi
                   2681:
1.9       millert  2682:
1.16      millert  2683: cat >>confdefs.h <<_ACEOF
1.9       millert  2684: #define LOGFAC "$logfac"
1.16      millert  2685: _ACEOF
1.1       millert  2686:
1.27      millert  2687: { echo "$as_me:$LINENO: result: $logfac" >&5
                   2688: echo "${ECHO_T}$logfac" >&6; }
1.9       millert  2689:
1.27      millert  2690: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
                   2691: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1       millert  2692:
1.27      millert  2693: # Check whether --with-goodpri was given.
1.1       millert  2694: if test "${with_goodpri+set}" = set; then
1.27      millert  2695:   withval=$with_goodpri; case $with_goodpri in
1.16      millert  2696:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2697: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2698:    { (exit 1); exit 1; }; }
1.1       millert  2699:                ;;
1.16      millert  2700:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2701: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2702:    { (exit 1); exit 1; }; }
1.1       millert  2703:                ;;
1.9       millert  2704:     alert|crit|debug|emerg|err|info|notice|warning)
                   2705:                goodpri=$with_goodpri
1.1       millert  2706:                ;;
1.16      millert  2707:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2708: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2709:    { (exit 1); exit 1; }; }
1.1       millert  2710:                ;;
                   2711: esac
1.27      millert  2712: fi
                   2713:
1.9       millert  2714:
1.16      millert  2715: cat >>confdefs.h <<_ACEOF
1.9       millert  2716: #define PRI_SUCCESS "$goodpri"
1.16      millert  2717: _ACEOF
1.1       millert  2718:
1.27      millert  2719: { echo "$as_me:$LINENO: result: $goodpri" >&5
                   2720: echo "${ECHO_T}$goodpri" >&6; }
1.9       millert  2721:
1.27      millert  2722: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
                   2723: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1       millert  2724:
1.27      millert  2725: # Check whether --with-badpri was given.
1.1       millert  2726: if test "${with_badpri+set}" = set; then
1.27      millert  2727:   withval=$with_badpri; case $with_badpri in
1.16      millert  2728:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2729: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2730:    { (exit 1); exit 1; }; }
1.1       millert  2731:                ;;
1.16      millert  2732:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2733: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2734:    { (exit 1); exit 1; }; }
1.1       millert  2735:                ;;
1.9       millert  2736:     alert|crit|debug|emerg|err|info|notice|warning)
                   2737:                badpri=$with_badpri
1.1       millert  2738:                ;;
1.16      millert  2739:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2740: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2741:    { (exit 1); exit 1; }; }
1.1       millert  2742:                ;;
                   2743: esac
1.27      millert  2744: fi
                   2745:
1.9       millert  2746:
1.16      millert  2747: cat >>confdefs.h <<_ACEOF
1.9       millert  2748: #define PRI_FAILURE "$badpri"
1.16      millert  2749: _ACEOF
                   2750:
1.27      millert  2751: { echo "$as_me:$LINENO: result: $badpri" >&5
                   2752: echo "${ECHO_T}$badpri" >&6; }
1.1       millert  2753:
                   2754:
1.27      millert  2755: # Check whether --with-logpath was given.
1.1       millert  2756: if test "${with_logpath+set}" = set; then
1.27      millert  2757:   withval=$with_logpath; case $with_logpath in
1.16      millert  2758:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2759: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2760:    { (exit 1); exit 1; }; }
1.1       millert  2761:                ;;
1.16      millert  2762:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2763: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2764:    { (exit 1); exit 1; }; }
1.1       millert  2765:                ;;
                   2766: esac
1.27      millert  2767: fi
                   2768:
1.1       millert  2769:
1.27      millert  2770: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
                   2771: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1       millert  2772:
1.27      millert  2773: # Check whether --with-loglen was given.
1.1       millert  2774: if test "${with_loglen+set}" = set; then
1.27      millert  2775:   withval=$with_loglen; case $with_loglen in
1.16      millert  2776:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2777: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2778:    { (exit 1); exit 1; }; }
1.1       millert  2779:                ;;
1.16      millert  2780:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2781: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2782:    { (exit 1); exit 1; }; }
1.1       millert  2783:                ;;
1.9       millert  2784:     [0-9]*)    loglen=$with_loglen
1.1       millert  2785:                ;;
1.16      millert  2786:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2787: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2788:    { (exit 1); exit 1; }; }
1.1       millert  2789:                ;;
                   2790: esac
1.27      millert  2791: fi
                   2792:
1.9       millert  2793:
1.16      millert  2794: cat >>confdefs.h <<_ACEOF
1.9       millert  2795: #define MAXLOGFILELEN $loglen
1.16      millert  2796: _ACEOF
1.1       millert  2797:
1.27      millert  2798: { echo "$as_me:$LINENO: result: $loglen" >&5
                   2799: echo "${ECHO_T}$loglen" >&6; }
1.9       millert  2800:
1.27      millert  2801: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   2802: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1       millert  2803:
1.27      millert  2804: # Check whether --with-ignore-dot was given.
1.1       millert  2805: if test "${with_ignore_dot+set}" = set; then
1.27      millert  2806:   withval=$with_ignore_dot; case $with_ignore_dot in
1.9       millert  2807:     yes)       ignore_dot=on
1.1       millert  2808:                ;;
1.9       millert  2809:     no)                ignore_dot=off
1.1       millert  2810:                ;;
1.16      millert  2811:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2812: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2813:    { (exit 1); exit 1; }; }
1.1       millert  2814:                ;;
                   2815: esac
1.27      millert  2816: fi
                   2817:
1.9       millert  2818: if test "$ignore_dot" = "on"; then
1.23      millert  2819:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2820: #define IGNORE_DOT_PATH 1
1.16      millert  2821: _ACEOF
1.9       millert  2822:
1.27      millert  2823:     { echo "$as_me:$LINENO: result: yes" >&5
                   2824: echo "${ECHO_T}yes" >&6; }
1.1       millert  2825: else
1.27      millert  2826:     { echo "$as_me:$LINENO: result: no" >&5
                   2827: echo "${ECHO_T}no" >&6; }
1.1       millert  2828: fi
                   2829:
1.27      millert  2830: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
                   2831: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1       millert  2832:
1.27      millert  2833: # Check whether --with-mail-if-no-user was given.
1.9       millert  2834: if test "${with_mail_if_no_user+set}" = set; then
1.27      millert  2835:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9       millert  2836:     yes)       mail_no_user=on
                   2837:                ;;
                   2838:     no)                mail_no_user=off
1.1       millert  2839:                ;;
1.16      millert  2840:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2841: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2842:    { (exit 1); exit 1; }; }
1.1       millert  2843:                ;;
1.9       millert  2844: esac
1.27      millert  2845: fi
                   2846:
1.9       millert  2847: if test "$mail_no_user" = "on"; then
1.23      millert  2848:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2849: #define SEND_MAIL_WHEN_NO_USER 1
1.16      millert  2850: _ACEOF
1.1       millert  2851:
1.27      millert  2852:     { echo "$as_me:$LINENO: result: yes" >&5
                   2853: echo "${ECHO_T}yes" >&6; }
1.1       millert  2854: else
1.27      millert  2855:     { echo "$as_me:$LINENO: result: no" >&5
                   2856: echo "${ECHO_T}no" >&6; }
1.1       millert  2857: fi
                   2858:
1.27      millert  2859: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
                   2860: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1       millert  2861:
1.27      millert  2862: # Check whether --with-mail-if-no-host was given.
1.9       millert  2863: if test "${with_mail_if_no_host+set}" = set; then
1.27      millert  2864:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9       millert  2865:     yes)       mail_no_host=on
1.1       millert  2866:                ;;
1.9       millert  2867:     no)                mail_no_host=off
1.1       millert  2868:                ;;
1.16      millert  2869:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2870: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2871:    { (exit 1); exit 1; }; }
1.1       millert  2872:                ;;
                   2873: esac
1.27      millert  2874: fi
                   2875:
1.9       millert  2876: if test "$mail_no_host" = "on"; then
1.23      millert  2877:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2878: #define SEND_MAIL_WHEN_NO_HOST 1
1.16      millert  2879: _ACEOF
1.1       millert  2880:
1.27      millert  2881:     { echo "$as_me:$LINENO: result: yes" >&5
                   2882: echo "${ECHO_T}yes" >&6; }
1.9       millert  2883: else
1.27      millert  2884:     { echo "$as_me:$LINENO: result: no" >&5
                   2885: echo "${ECHO_T}no" >&6; }
1.1       millert  2886: fi
                   2887:
1.27      millert  2888: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
                   2889: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1       millert  2890:
1.27      millert  2891: # Check whether --with-mail-if-noperms was given.
1.9       millert  2892: if test "${with_mail_if_noperms+set}" = set; then
1.27      millert  2893:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9       millert  2894:     yes)       mail_noperms=on
1.1       millert  2895:                ;;
1.9       millert  2896:     no)                mail_noperms=off
1.1       millert  2897:                ;;
1.16      millert  2898:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2899: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2900:    { (exit 1); exit 1; }; }
1.1       millert  2901:                ;;
                   2902: esac
1.27      millert  2903: fi
                   2904:
1.9       millert  2905: if test "$mail_noperms" = "on"; then
1.23      millert  2906:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2907: #define SEND_MAIL_WHEN_NOT_OK 1
1.16      millert  2908: _ACEOF
1.9       millert  2909:
1.27      millert  2910:     { echo "$as_me:$LINENO: result: yes" >&5
                   2911: echo "${ECHO_T}yes" >&6; }
1.1       millert  2912: else
1.27      millert  2913:     { echo "$as_me:$LINENO: result: no" >&5
                   2914: echo "${ECHO_T}no" >&6; }
1.1       millert  2915: fi
                   2916:
1.27      millert  2917: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
                   2918: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1       millert  2919:
1.27      millert  2920: # Check whether --with-mailto was given.
1.9       millert  2921: if test "${with_mailto+set}" = set; then
1.27      millert  2922:   withval=$with_mailto; case $with_mailto in
1.16      millert  2923:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  2924: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   2925:    { (exit 1); exit 1; }; }
1.1       millert  2926:                ;;
1.16      millert  2927:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  2928: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   2929:    { (exit 1); exit 1; }; }
1.1       millert  2930:                ;;
1.9       millert  2931:     *)         mailto=$with_mailto
1.1       millert  2932:                ;;
                   2933: esac
1.27      millert  2934: fi
                   2935:
1.1       millert  2936:
1.16      millert  2937: cat >>confdefs.h <<_ACEOF
1.9       millert  2938: #define MAILTO "$mailto"
1.16      millert  2939: _ACEOF
1.1       millert  2940:
1.27      millert  2941: { echo "$as_me:$LINENO: result: $mailto" >&5
                   2942: echo "${ECHO_T}$mailto" >&6; }
1.1       millert  2943:
1.16      millert  2944:
1.27      millert  2945: # Check whether --with-mailsubject was given.
1.9       millert  2946: if test "${with_mailsubject+set}" = set; then
1.27      millert  2947:   withval=$with_mailsubject; case $with_mailsubject in
1.16      millert  2948:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  2949: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   2950:    { (exit 1); exit 1; }; }
1.1       millert  2951:                ;;
1.17      millert  2952:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
                   2953: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1       millert  2954:                ;;
1.9       millert  2955:     *)         mailsub="$with_mailsubject"
1.27      millert  2956:                { echo "$as_me:$LINENO: checking sudo mail subject" >&5
                   2957: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
                   2958:                { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
                   2959: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1       millert  2960:                ;;
                   2961: esac
1.27      millert  2962: fi
                   2963:
1.9       millert  2964:
1.16      millert  2965: cat >>confdefs.h <<_ACEOF
1.9       millert  2966: #define MAILSUBJECT "$mailsub"
1.16      millert  2967: _ACEOF
                   2968:
1.1       millert  2969:
1.27      millert  2970: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
                   2971: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1       millert  2972:
1.27      millert  2973: # Check whether --with-passprompt was given.
1.1       millert  2974: if test "${with_passprompt+set}" = set; then
1.27      millert  2975:   withval=$with_passprompt; case $with_passprompt in
1.16      millert  2976:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  2977: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   2978:    { (exit 1); exit 1; }; }
1.1       millert  2979:                ;;
1.17      millert  2980:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
                   2981: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1       millert  2982:                ;;
1.9       millert  2983:     *)         passprompt="$with_passprompt"
                   2984: esac
1.27      millert  2985: fi
                   2986:
                   2987: { echo "$as_me:$LINENO: result: $passprompt" >&5
                   2988: echo "${ECHO_T}$passprompt" >&6; }
1.1       millert  2989:
1.16      millert  2990: cat >>confdefs.h <<_ACEOF
1.9       millert  2991: #define PASSPROMPT "$passprompt"
1.16      millert  2992: _ACEOF
                   2993:
1.1       millert  2994:
1.27      millert  2995: { echo "$as_me:$LINENO: checking for bad password message" >&5
                   2996: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1       millert  2997:
1.27      millert  2998: # Check whether --with-badpass-message was given.
1.1       millert  2999: if test "${with_badpass_message+set}" = set; then
1.27      millert  3000:   withval=$with_badpass_message; case $with_badpass_message in
1.16      millert  3001:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  3002: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   3003:    { (exit 1); exit 1; }; }
1.1       millert  3004:                ;;
1.17      millert  3005:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
                   3006: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1       millert  3007:                ;;
1.9       millert  3008:     *)         badpass_message="$with_badpass_message"
1.1       millert  3009:                ;;
                   3010: esac
1.27      millert  3011: fi
                   3012:
1.9       millert  3013:
1.16      millert  3014: cat >>confdefs.h <<_ACEOF
1.9       millert  3015: #define INCORRECT_PASSWORD "$badpass_message"
1.16      millert  3016: _ACEOF
1.1       millert  3017:
1.27      millert  3018: { echo "$as_me:$LINENO: result: $badpass_message" >&5
                   3019: echo "${ECHO_T}$badpass_message" >&6; }
1.9       millert  3020:
1.27      millert  3021: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
                   3022: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1       millert  3023:
1.27      millert  3024: # Check whether --with-fqdn was given.
1.1       millert  3025: if test "${with_fqdn+set}" = set; then
1.27      millert  3026:   withval=$with_fqdn; case $with_fqdn in
1.9       millert  3027:     yes)       fqdn=on
1.1       millert  3028:                ;;
1.9       millert  3029:     no)                fqdn=off
1.1       millert  3030:                ;;
1.16      millert  3031:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  3032: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   3033:    { (exit 1); exit 1; }; }
1.1       millert  3034:                ;;
                   3035: esac
1.27      millert  3036: fi
                   3037:
1.9       millert  3038: if test "$fqdn" = "on"; then
1.23      millert  3039:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3040: #define FQDN 1
1.16      millert  3041: _ACEOF
1.9       millert  3042:
1.27      millert  3043:     { echo "$as_me:$LINENO: result: yes" >&5
                   3044: echo "${ECHO_T}yes" >&6; }
1.1       millert  3045: else
1.27      millert  3046:     { echo "$as_me:$LINENO: result: no" >&5
                   3047: echo "${ECHO_T}no" >&6; }
1.1       millert  3048: fi
                   3049:
1.16      millert  3050:
1.27      millert  3051: # Check whether --with-timedir was given.
1.1       millert  3052: if test "${with_timedir+set}" = set; then
1.27      millert  3053:   withval=$with_timedir; case $with_timedir in
1.16      millert  3054:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  3055: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   3056:    { (exit 1); exit 1; }; }
1.1       millert  3057:                ;;
1.16      millert  3058:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  3059: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   3060:    { (exit 1); exit 1; }; }
1.1       millert  3061:                ;;
                   3062: esac
1.27      millert  3063: fi
                   3064:
1.1       millert  3065:
1.16      millert  3066:
1.27      millert  3067: # Check whether --with-sendmail was given.
1.1       millert  3068: if test "${with_sendmail+set}" = set; then
1.27      millert  3069:   withval=$with_sendmail; case $with_sendmail in
1.1       millert  3070:     yes)       with_sendmail=""
                   3071:                ;;
                   3072:     no)                ;;
1.9       millert  3073:     *)         cat >>confdefs.h <<EOF
                   3074: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  3075: EOF
                   3076:
                   3077:                ;;
                   3078: esac
1.27      millert  3079: fi
                   3080:
1.1       millert  3081:
1.16      millert  3082:
1.27      millert  3083: # Check whether --with-sudoers-mode was given.
1.1       millert  3084: if test "${with_sudoers_mode+set}" = set; then
1.27      millert  3085:   withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16      millert  3086:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  3087: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   3088:    { (exit 1); exit 1; }; }
                   3089:                ;;
1.16      millert  3090:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  3091: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   3092:    { (exit 1); exit 1; }; }
1.1       millert  3093:                ;;
                   3094:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   3095:                ;;
                   3096:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   3097:                ;;
1.16      millert  3098:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
                   3099: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  3100:    { (exit 1); exit 1; }; }
1.1       millert  3101:                ;;
                   3102: esac
1.27      millert  3103: fi
                   3104:
1.1       millert  3105:
1.16      millert  3106:
1.27      millert  3107: # Check whether --with-sudoers-uid was given.
1.1       millert  3108: if test "${with_sudoers_uid+set}" = set; then
1.27      millert  3109:   withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16      millert  3110:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  3111: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   3112:    { (exit 1); exit 1; }; }
                   3113:                ;;
1.16      millert  3114:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  3115: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   3116:    { (exit 1); exit 1; }; }
1.1       millert  3117:                ;;
                   3118:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   3119:                ;;
1.16      millert  3120:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
                   3121: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  3122:    { (exit 1); exit 1; }; }
1.1       millert  3123:                ;;
                   3124: esac
1.27      millert  3125: fi
                   3126:
1.1       millert  3127:
1.16      millert  3128:
1.27      millert  3129: # Check whether --with-sudoers-gid was given.
1.1       millert  3130: if test "${with_sudoers_gid+set}" = set; then
1.27      millert  3131:   withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16      millert  3132:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  3133: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   3134:    { (exit 1); exit 1; }; }
                   3135:                ;;
1.16      millert  3136:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  3137: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   3138:    { (exit 1); exit 1; }; }
1.1       millert  3139:                ;;
                   3140:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   3141:                ;;
1.16      millert  3142:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
                   3143: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  3144:    { (exit 1); exit 1; }; }
1.1       millert  3145:                ;;
                   3146: esac
1.27      millert  3147: fi
                   3148:
1.1       millert  3149:
1.27      millert  3150: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
                   3151: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1       millert  3152:
1.27      millert  3153: # Check whether --with-umask was given.
1.1       millert  3154: if test "${with_umask+set}" = set; then
1.27      millert  3155:   withval=$with_umask; case $with_umask in
1.16      millert  3156:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  3157: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   3158:    { (exit 1); exit 1; }; }
1.1       millert  3159:                ;;
1.9       millert  3160:     no)                sudo_umask=0777
1.1       millert  3161:                ;;
1.9       millert  3162:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  3163:                ;;
1.16      millert  3164:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  3165: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   3166:    { (exit 1); exit 1; }; }
1.1       millert  3167:                ;;
                   3168: esac
1.27      millert  3169: fi
                   3170:
1.9       millert  3171:
1.16      millert  3172: cat >>confdefs.h <<_ACEOF
1.9       millert  3173: #define SUDO_UMASK $sudo_umask
1.16      millert  3174: _ACEOF
1.9       millert  3175:
                   3176: if test "$sudo_umask" = "0777"; then
1.27      millert  3177:     { echo "$as_me:$LINENO: result: user" >&5
                   3178: echo "${ECHO_T}user" >&6; }
1.1       millert  3179: else
1.27      millert  3180:     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
                   3181: echo "${ECHO_T}$sudo_umask" >&6; }
1.1       millert  3182: fi
                   3183:
1.27      millert  3184: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
                   3185: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1       millert  3186:
1.27      millert  3187: # Check whether --with-runas-default was given.
1.1       millert  3188: if test "${with_runas_default+set}" = set; then
1.27      millert  3189:   withval=$with_runas_default; case $with_runas_default in
1.16      millert  3190:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  3191: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   3192:    { (exit 1); exit 1; }; }
1.1       millert  3193:                ;;
1.16      millert  3194:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  3195: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   3196:    { (exit 1); exit 1; }; }
1.1       millert  3197:                ;;
1.9       millert  3198:     *)         runas_default="$with_runas_default"
1.1       millert  3199:                ;;
                   3200: esac
1.27      millert  3201: fi
                   3202:
1.9       millert  3203:
1.16      millert  3204: cat >>confdefs.h <<_ACEOF
1.9       millert  3205: #define RUNAS_DEFAULT "$runas_default"
1.16      millert  3206: _ACEOF
1.1       millert  3207:
1.27      millert  3208: { echo "$as_me:$LINENO: result: $runas_default" >&5
                   3209: echo "${ECHO_T}$runas_default" >&6; }
1.1       millert  3210:
1.16      millert  3211:
1.27      millert  3212: # Check whether --with-exempt was given.
1.1       millert  3213: if test "${with_exempt+set}" = set; then
1.27      millert  3214:   withval=$with_exempt; case $with_exempt in
1.16      millert  3215:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  3216: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   3217:    { (exit 1); exit 1; }; }
                   3218:                ;;
1.16      millert  3219:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  3220: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   3221:    { (exit 1); exit 1; }; }
1.1       millert  3222:                ;;
1.9       millert  3223:     *)
1.16      millert  3224: cat >>confdefs.h <<_ACEOF
1.1       millert  3225: #define EXEMPTGROUP "$with_exempt"
1.16      millert  3226: _ACEOF
1.1       millert  3227:
1.27      millert  3228:                { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
                   3229: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
                   3230:                { echo "$as_me:$LINENO: result: $with_exempt" >&5
                   3231: echo "${ECHO_T}$with_exempt" >&6; }
1.1       millert  3232:                ;;
                   3233: esac
1.27      millert  3234: fi
                   3235:
1.1       millert  3236:
1.27      millert  3237: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
                   3238: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1       millert  3239:
1.27      millert  3240: # Check whether --with-editor was given.
1.1       millert  3241: if test "${with_editor+set}" = set; then
1.27      millert  3242:   withval=$with_editor; case $with_editor in
1.16      millert  3243:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  3244: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   3245:    { (exit 1); exit 1; }; }
                   3246:                ;;
1.16      millert  3247:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3248: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3249:    { (exit 1); exit 1; }; }
1.1       millert  3250:                ;;
1.9       millert  3251:     *)
1.16      millert  3252: cat >>confdefs.h <<_ACEOF
1.1       millert  3253: #define EDITOR "$with_editor"
1.16      millert  3254: _ACEOF
1.1       millert  3255:
1.27      millert  3256:                { echo "$as_me:$LINENO: result: $with_editor" >&5
                   3257: echo "${ECHO_T}$with_editor" >&6; }
1.1       millert  3258:                ;;
                   3259: esac
                   3260: else
1.16      millert  3261:   cat >>confdefs.h <<\_ACEOF
1.1       millert  3262: #define EDITOR _PATH_VI
1.16      millert  3263: _ACEOF
1.27      millert  3264:  { echo "$as_me:$LINENO: result: vi" >&5
                   3265: echo "${ECHO_T}vi" >&6; }
                   3266: fi
                   3267:
1.1       millert  3268:
1.27      millert  3269: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   3270: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1       millert  3271:
1.27      millert  3272: # Check whether --with-env-editor was given.
1.1       millert  3273: if test "${with_env_editor+set}" = set; then
1.27      millert  3274:   withval=$with_env_editor; case $with_env_editor in
1.9       millert  3275:     yes)       env_editor=on
1.1       millert  3276:                ;;
1.9       millert  3277:     no)                env_editor=off
1.1       millert  3278:                ;;
1.16      millert  3279:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  3280: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   3281:    { (exit 1); exit 1; }; }
1.1       millert  3282:                ;;
                   3283: esac
1.27      millert  3284: fi
                   3285:
1.9       millert  3286: if test "$env_editor" = "on"; then
1.23      millert  3287:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3288: #define ENV_EDITOR 1
1.16      millert  3289: _ACEOF
1.9       millert  3290:
1.27      millert  3291:     { echo "$as_me:$LINENO: result: yes" >&5
                   3292: echo "${ECHO_T}yes" >&6; }
1.1       millert  3293: else
1.27      millert  3294:     { echo "$as_me:$LINENO: result: no" >&5
                   3295: echo "${ECHO_T}no" >&6; }
1.1       millert  3296: fi
                   3297:
1.27      millert  3298: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
                   3299: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1       millert  3300:
1.27      millert  3301: # Check whether --with-passwd-tries was given.
1.1       millert  3302: if test "${with_passwd_tries+set}" = set; then
1.27      millert  3303:   withval=$with_passwd_tries; case $with_passwd_tries in
1.9       millert  3304:     yes)       ;;
1.16      millert  3305:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3306: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3307:    { (exit 1); exit 1; }; }
1.1       millert  3308:                ;;
1.9       millert  3309:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  3310:                ;;
1.16      millert  3311:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  3312: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   3313:    { (exit 1); exit 1; }; }
1.1       millert  3314:                ;;
                   3315: esac
1.27      millert  3316: fi
                   3317:
1.9       millert  3318:
1.16      millert  3319: cat >>confdefs.h <<_ACEOF
1.9       millert  3320: #define TRIES_FOR_PASSWORD $passwd_tries
1.16      millert  3321: _ACEOF
1.1       millert  3322:
1.27      millert  3323: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
                   3324: echo "${ECHO_T}$passwd_tries" >&6; }
1.9       millert  3325:
1.27      millert  3326: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
                   3327: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1       millert  3328:
1.27      millert  3329: # Check whether --with-timeout was given.
1.1       millert  3330: if test "${with_timeout+set}" = set; then
1.27      millert  3331:   withval=$with_timeout; case $with_timeout in
1.9       millert  3332:     yes)       ;;
                   3333:     no)                timeout=0
1.1       millert  3334:                ;;
1.9       millert  3335:     [0-9]*)    timeout=$with_timeout
1.1       millert  3336:                ;;
1.16      millert  3337:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3338: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3339:    { (exit 1); exit 1; }; }
1.1       millert  3340:                ;;
                   3341: esac
1.27      millert  3342: fi
                   3343:
1.9       millert  3344:
1.16      millert  3345: cat >>confdefs.h <<_ACEOF
1.9       millert  3346: #define TIMEOUT $timeout
1.16      millert  3347: _ACEOF
1.1       millert  3348:
1.27      millert  3349: { echo "$as_me:$LINENO: result: $timeout" >&5
                   3350: echo "${ECHO_T}$timeout" >&6; }
1.9       millert  3351:
1.27      millert  3352: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
                   3353: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1       millert  3354:
1.27      millert  3355: # Check whether --with-password-timeout was given.
1.1       millert  3356: if test "${with_password_timeout+set}" = set; then
1.27      millert  3357:   withval=$with_password_timeout; case $with_password_timeout in
1.9       millert  3358:     yes)       ;;
                   3359:     no)                password_timeout=0
1.1       millert  3360:                ;;
1.9       millert  3361:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  3362:                ;;
1.16      millert  3363:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3364: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3365:    { (exit 1); exit 1; }; }
1.1       millert  3366:                ;;
                   3367: esac
1.27      millert  3368: fi
                   3369:
1.9       millert  3370:
1.16      millert  3371: cat >>confdefs.h <<_ACEOF
1.9       millert  3372: #define PASSWORD_TIMEOUT $password_timeout
1.16      millert  3373: _ACEOF
1.1       millert  3374:
1.27      millert  3375: { echo "$as_me:$LINENO: result: $password_timeout" >&5
                   3376: echo "${ECHO_T}$password_timeout" >&6; }
1.1       millert  3377:
1.27      millert  3378: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
                   3379: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1       millert  3380:
1.27      millert  3381: # Check whether --with-tty-tickets was given.
1.1       millert  3382: if test "${with_tty_tickets+set}" = set; then
1.27      millert  3383:   withval=$with_tty_tickets; case $with_tty_tickets in
1.9       millert  3384:     yes)       tty_tickets=on
1.1       millert  3385:                ;;
1.9       millert  3386:     no)                tty_tickets=off
1.1       millert  3387:                ;;
1.16      millert  3388:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  3389: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   3390:    { (exit 1); exit 1; }; }
1.1       millert  3391:                ;;
                   3392: esac
1.27      millert  3393: fi
                   3394:
1.9       millert  3395: if test "$tty_tickets" = "on"; then
1.23      millert  3396:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3397: #define USE_TTY_TICKETS 1
1.16      millert  3398: _ACEOF
1.9       millert  3399:
1.27      millert  3400:     { echo "$as_me:$LINENO: result: yes" >&5
                   3401: echo "${ECHO_T}yes" >&6; }
1.1       millert  3402: else
1.27      millert  3403:     { echo "$as_me:$LINENO: result: no" >&5
                   3404: echo "${ECHO_T}no" >&6; }
1.1       millert  3405: fi
                   3406:
1.27      millert  3407: { echo "$as_me:$LINENO: checking whether to include insults" >&5
                   3408: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1       millert  3409:
1.27      millert  3410: # Check whether --with-insults was given.
1.1       millert  3411: if test "${with_insults+set}" = set; then
1.27      millert  3412:   withval=$with_insults; case $with_insults in
1.9       millert  3413:     yes)       insults=on
1.1       millert  3414:                with_classic_insults=yes
                   3415:                with_csops_insults=yes
                   3416:                ;;
1.9       millert  3417:     no)                insults=off
1.1       millert  3418:                ;;
1.16      millert  3419:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  3420: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   3421:    { (exit 1); exit 1; }; }
1.1       millert  3422:                ;;
                   3423: esac
1.27      millert  3424: fi
                   3425:
1.9       millert  3426: if test "$insults" = "on"; then
1.23      millert  3427:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3428: #define USE_INSULTS 1
1.16      millert  3429: _ACEOF
1.9       millert  3430:
1.27      millert  3431:     { echo "$as_me:$LINENO: result: yes" >&5
                   3432: echo "${ECHO_T}yes" >&6; }
1.1       millert  3433: else
1.27      millert  3434:     { echo "$as_me:$LINENO: result: no" >&5
                   3435: echo "${ECHO_T}no" >&6; }
1.1       millert  3436: fi
                   3437:
1.16      millert  3438:
1.27      millert  3439: # Check whether --with-all-insults was given.
1.1       millert  3440: if test "${with_all_insults+set}" = set; then
1.27      millert  3441:   withval=$with_all_insults; case $with_all_insults in
1.1       millert  3442:     yes)       with_classic_insults=yes
                   3443:                with_csops_insults=yes
                   3444:                with_hal_insults=yes
                   3445:                with_goons_insults=yes
                   3446:                ;;
                   3447:     no)                ;;
1.16      millert  3448:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  3449: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   3450:    { (exit 1); exit 1; }; }
1.1       millert  3451:                ;;
                   3452: esac
1.27      millert  3453: fi
                   3454:
1.1       millert  3455:
1.16      millert  3456:
1.27      millert  3457: # Check whether --with-classic-insults was given.
1.1       millert  3458: if test "${with_classic_insults+set}" = set; then
1.27      millert  3459:   withval=$with_classic_insults; case $with_classic_insults in
1.23      millert  3460:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3461: #define CLASSIC_INSULTS 1
1.16      millert  3462: _ACEOF
1.1       millert  3463:
                   3464:                ;;
                   3465:     no)                ;;
1.16      millert  3466:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  3467: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   3468:    { (exit 1); exit 1; }; }
1.1       millert  3469:                ;;
                   3470: esac
1.27      millert  3471: fi
                   3472:
1.1       millert  3473:
1.16      millert  3474:
1.27      millert  3475: # Check whether --with-csops-insults was given.
1.1       millert  3476: if test "${with_csops_insults+set}" = set; then
1.27      millert  3477:   withval=$with_csops_insults; case $with_csops_insults in
1.23      millert  3478:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3479: #define CSOPS_INSULTS 1
1.16      millert  3480: _ACEOF
1.1       millert  3481:
                   3482:                ;;
                   3483:     no)                ;;
1.16      millert  3484:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  3485: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   3486:    { (exit 1); exit 1; }; }
1.1       millert  3487:                ;;
                   3488: esac
1.27      millert  3489: fi
                   3490:
1.1       millert  3491:
1.16      millert  3492:
1.27      millert  3493: # Check whether --with-hal-insults was given.
1.1       millert  3494: if test "${with_hal_insults+set}" = set; then
1.27      millert  3495:   withval=$with_hal_insults; case $with_hal_insults in
1.23      millert  3496:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3497: #define HAL_INSULTS 1
1.16      millert  3498: _ACEOF
1.1       millert  3499:
                   3500:                ;;
                   3501:     no)                ;;
1.16      millert  3502:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  3503: echo "$as_me: error: \"--with-hal-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.1       millert  3509:
1.16      millert  3510:
1.27      millert  3511: # Check whether --with-goons-insults was given.
1.1       millert  3512: if test "${with_goons_insults+set}" = set; then
1.27      millert  3513:   withval=$with_goons_insults; case $with_goons_insults in
1.23      millert  3514:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3515: #define GOONS_INSULTS 1
1.16      millert  3516: _ACEOF
1.1       millert  3517:
                   3518:                ;;
                   3519:     no)                ;;
1.16      millert  3520:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  3521: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   3522:    { (exit 1); exit 1; }; }
1.1       millert  3523:                ;;
                   3524: esac
1.27      millert  3525: fi
                   3526:
1.1       millert  3527:
1.23      millert  3528:
1.27      millert  3529: # Check whether --with-ldap was given.
1.23      millert  3530: if test "${with_ldap+set}" = set; then
1.27      millert  3531:   withval=$with_ldap; case $with_ldap in
1.23      millert  3532:     no)                with_ldap="";;
                   3533:     *)         cat >>confdefs.h <<\_ACEOF
                   3534: #define HAVE_LDAP 1
                   3535: _ACEOF
                   3536:
1.27      millert  3537:                { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
                   3538: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
                   3539:                { echo "$as_me:$LINENO: result: yes" >&5
                   3540: echo "${ECHO_T}yes" >&6; }
1.23      millert  3541:                ;;
                   3542: esac
1.27      millert  3543: fi
                   3544:
1.23      millert  3545:
1.27      millert  3546: # Check whether --with-ldap-conf-file was given.
1.23      millert  3547: if test "${with_ldap_conf_file+set}" = set; then
1.27      millert  3548:   withval=$with_ldap_conf_file;
1.23      millert  3549: cat >>confdefs.h <<_ACEOF
                   3550: #define _PATH_LDAP_CONF "$with_ldap_conf_file"
                   3551: _ACEOF
                   3552:
1.27      millert  3553: fi
                   3554:
1.23      millert  3555:
1.27      millert  3556: # Check whether --with-ldap-secret-file was given.
1.25      millert  3557: if test "${with_ldap_secret_file+set}" = set; then
1.27      millert  3558:   withval=$with_ldap_secret_file;
1.25      millert  3559: cat >>confdefs.h <<_ACEOF
                   3560: #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
                   3561: _ACEOF
                   3562:
1.27      millert  3563: fi
                   3564:
1.25      millert  3565:
1.23      millert  3566:
1.27      millert  3567: # Check whether --with-pc-insults was given.
1.23      millert  3568: if test "${with_pc_insults+set}" = set; then
1.27      millert  3569:   withval=$with_pc_insults; case $with_pc_insults in
1.23      millert  3570:     yes)       cat >>confdefs.h <<\_ACEOF
                   3571: #define PC_INSULTS 1
                   3572: _ACEOF
                   3573:
                   3574:                ;;
                   3575:     no)                ;;
                   3576:     *)         { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
                   3577: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
                   3578:    { (exit 1); exit 1; }; }
                   3579:                ;;
                   3580: esac
1.27      millert  3581: fi
                   3582:
1.23      millert  3583:
1.9       millert  3584: if test "$insults" = "on"; then
1.27      millert  3585:     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
                   3586: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1       millert  3587:     i=""
                   3588:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   3589:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   3590:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   3591:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27      millert  3592:     { echo "$as_me:$LINENO: result: $i" >&5
                   3593: echo "${ECHO_T}$i" >&6; }
1.1       millert  3594: fi
                   3595:
1.27      millert  3596: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
                   3597: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9       millert  3598:
1.27      millert  3599: # Check whether --with-secure-path was given.
1.1       millert  3600: if test "${with_secure_path+set}" = set; then
1.27      millert  3601:   withval=$with_secure_path; case $with_secure_path in
1.23      millert  3602:     yes)       cat >>confdefs.h <<_ACEOF
1.1       millert  3603: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16      millert  3604: _ACEOF
1.1       millert  3605:
1.27      millert  3606:                { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
                   3607: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
1.1       millert  3608:                ;;
1.27      millert  3609:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3610: echo "${ECHO_T}no" >&6; }
1.1       millert  3611:                ;;
1.16      millert  3612:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  3613: #define SECURE_PATH "$with_secure_path"
1.16      millert  3614: _ACEOF
1.1       millert  3615:
1.27      millert  3616:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
                   3617: echo "${ECHO_T}$with_secure_path" >&6; }
1.1       millert  3618:                ;;
                   3619: esac
                   3620: else
1.27      millert  3621:   { echo "$as_me:$LINENO: result: no" >&5
                   3622: echo "${ECHO_T}no" >&6; }
                   3623: fi
                   3624:
1.1       millert  3625:
1.27      millert  3626: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
                   3627: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1       millert  3628:
1.27      millert  3629: # Check whether --with-interfaces was given.
1.1       millert  3630: if test "${with_interfaces+set}" = set; then
1.27      millert  3631:   withval=$with_interfaces; case $with_interfaces in
                   3632:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3633: echo "${ECHO_T}yes" >&6; }
1.1       millert  3634:                ;;
1.23      millert  3635:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3636: #define STUB_LOAD_INTERFACES 1
1.16      millert  3637: _ACEOF
1.1       millert  3638:
1.27      millert  3639:                { echo "$as_me:$LINENO: result: no" >&5
                   3640: echo "${ECHO_T}no" >&6; }
1.1       millert  3641:                ;;
1.16      millert  3642:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  3643: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   3644:    { (exit 1); exit 1; }; }
1.1       millert  3645:                ;;
                   3646: esac
                   3647: else
1.27      millert  3648:   { echo "$as_me:$LINENO: result: yes" >&5
                   3649: echo "${ECHO_T}yes" >&6; }
                   3650: fi
                   3651:
1.16      millert  3652:
1.27      millert  3653: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
                   3654: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16      millert  3655:
1.27      millert  3656: # Check whether --with-stow was given.
1.16      millert  3657: if test "${with_stow+set}" = set; then
1.27      millert  3658:   withval=$with_stow; case $with_stow in
                   3659:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3660: echo "${ECHO_T}yes" >&6; }
1.23      millert  3661:                cat >>confdefs.h <<\_ACEOF
1.16      millert  3662: #define USE_STOW 1
                   3663: _ACEOF
                   3664:
                   3665:                ;;
1.27      millert  3666:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3667: echo "${ECHO_T}no" >&6; }
1.16      millert  3668:                ;;
                   3669:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
                   3670: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
                   3671:    { (exit 1); exit 1; }; }
                   3672:                ;;
                   3673: esac
                   3674: else
1.27      millert  3675:   { echo "$as_me:$LINENO: result: no" >&5
                   3676: echo "${ECHO_T}no" >&6; }
                   3677: fi
                   3678:
1.1       millert  3679:
1.16      millert  3680:
1.27      millert  3681: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
                   3682: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
                   3683: # Check whether --enable-authentication was given.
1.1       millert  3684: if test "${enable_authentication+set}" = set; then
1.27      millert  3685:   enableval=$enable_authentication;  case "$enableval" in
                   3686:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3687: echo "${ECHO_T}yes" >&6; }
1.1       millert  3688:                ;;
1.27      millert  3689:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3690: echo "${ECHO_T}no" >&6; }
1.23      millert  3691:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3692: #define NO_AUTHENTICATION 1
1.16      millert  3693: _ACEOF
1.1       millert  3694:
                   3695:                ;;
1.27      millert  3696:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3697: echo "${ECHO_T}no" >&6; }
1.17      millert  3698:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   3699: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1       millert  3700:                ;;
                   3701:   esac
                   3702:
                   3703: else
1.27      millert  3704:   { echo "$as_me:$LINENO: result: yes" >&5
                   3705: echo "${ECHO_T}yes" >&6; }
                   3706: fi
                   3707:
                   3708:
                   3709: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
                   3710: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
                   3711: # Check whether --enable-root-mailer was given.
1.12      millert  3712: if test "${enable_root_mailer+set}" = set; then
1.27      millert  3713:   enableval=$enable_root_mailer;  case "$enableval" in
                   3714:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3715: echo "${ECHO_T}no" >&6; }
1.12      millert  3716:                ;;
1.27      millert  3717:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3718: echo "${ECHO_T}yes" >&6; }
1.23      millert  3719:                cat >>confdefs.h <<\_ACEOF
1.12      millert  3720: #define NO_ROOT_MAILER 1
1.16      millert  3721: _ACEOF
1.12      millert  3722:
                   3723:                ;;
1.27      millert  3724:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3725: echo "${ECHO_T}no" >&6; }
1.17      millert  3726:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   3727: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12      millert  3728:                ;;
                   3729:   esac
                   3730:
                   3731: else
1.27      millert  3732:   { echo "$as_me:$LINENO: result: no" >&5
                   3733: echo "${ECHO_T}no" >&6; }
                   3734: fi
1.12      millert  3735:
1.27      millert  3736:
                   3737: # Check whether --enable-setreuid was given.
1.13      millert  3738: if test "${enable_setreuid+set}" = set; then
1.27      millert  3739:   enableval=$enable_setreuid;  case "$enableval" in
1.16      millert  3740:     no)                SKIP_SETREUID=yes
                   3741:                ;;
                   3742:     *)         ;;
                   3743:   esac
                   3744:
1.27      millert  3745: fi
                   3746:
1.16      millert  3747:
1.27      millert  3748: # Check whether --enable-setresuid was given.
1.16      millert  3749: if test "${enable_setresuid+set}" = set; then
1.27      millert  3750:   enableval=$enable_setresuid;  case "$enableval" in
1.16      millert  3751:     no)                SKIP_SETRESUID=yes
1.13      millert  3752:                ;;
                   3753:     *)         ;;
                   3754:   esac
                   3755:
1.27      millert  3756: fi
                   3757:
1.13      millert  3758:
1.27      millert  3759: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
                   3760: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
                   3761: # Check whether --enable-shadow was given.
1.1       millert  3762: if test "${enable_shadow+set}" = set; then
1.27      millert  3763:   enableval=$enable_shadow;  case "$enableval" in
                   3764:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3765: echo "${ECHO_T}no" >&6; }
1.1       millert  3766:                ;;
1.27      millert  3767:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3768: echo "${ECHO_T}yes" >&6; }
1.1       millert  3769:                CHECKSHADOW="false"
                   3770:                ;;
1.27      millert  3771:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3772: echo "${ECHO_T}no" >&6; }
1.17      millert  3773:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   3774: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1       millert  3775:                ;;
                   3776:   esac
                   3777:
                   3778: else
1.27      millert  3779:   { echo "$as_me:$LINENO: result: no" >&5
                   3780: echo "${ECHO_T}no" >&6; }
                   3781: fi
                   3782:
                   3783:
                   3784: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
                   3785: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
                   3786: # Check whether --enable-root-sudo was given.
1.1       millert  3787: if test "${enable_root_sudo+set}" = set; then
1.27      millert  3788:   enableval=$enable_root_sudo;  case "$enableval" in
                   3789:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3790: echo "${ECHO_T}yes" >&6; }
1.1       millert  3791:                ;;
1.23      millert  3792:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3793: #define NO_ROOT_SUDO 1
1.16      millert  3794: _ACEOF
1.1       millert  3795:
1.27      millert  3796:                { echo "$as_me:$LINENO: result: no" >&5
                   3797: echo "${ECHO_T}no" >&6; }
1.23      millert  3798:                root_sudo=off
1.1       millert  3799:                ;;
1.16      millert  3800:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9       millert  3801: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   3802:    { (exit 1); exit 1; }; }
1.1       millert  3803:                ;;
                   3804:   esac
                   3805:
                   3806: else
1.27      millert  3807:   { echo "$as_me:$LINENO: result: yes" >&5
                   3808: echo "${ECHO_T}yes" >&6; }
                   3809: fi
                   3810:
                   3811:
                   3812: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
                   3813: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
                   3814: # Check whether --enable-log-host was given.
1.1       millert  3815: if test "${enable_log_host+set}" = set; then
1.27      millert  3816:   enableval=$enable_log_host;  case "$enableval" in
                   3817:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3818: echo "${ECHO_T}yes" >&6; }
1.23      millert  3819:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3820: #define HOST_IN_LOG 1
1.16      millert  3821: _ACEOF
1.1       millert  3822:
                   3823:                ;;
1.27      millert  3824:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3825: echo "${ECHO_T}no" >&6; }
1.1       millert  3826:                ;;
1.27      millert  3827:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3828: echo "${ECHO_T}no" >&6; }
1.17      millert  3829:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   3830: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1       millert  3831:                ;;
                   3832:   esac
                   3833:
                   3834: else
1.27      millert  3835:   { echo "$as_me:$LINENO: result: no" >&5
                   3836: echo "${ECHO_T}no" >&6; }
                   3837: fi
                   3838:
                   3839:
                   3840: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
                   3841: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
                   3842: # Check whether --enable-noargs-shell was given.
1.1       millert  3843: if test "${enable_noargs_shell+set}" = set; then
1.27      millert  3844:   enableval=$enable_noargs_shell;  case "$enableval" in
                   3845:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3846: echo "${ECHO_T}yes" >&6; }
1.23      millert  3847:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3848: #define SHELL_IF_NO_ARGS 1
1.16      millert  3849: _ACEOF
1.1       millert  3850:
                   3851:                ;;
1.27      millert  3852:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3853: echo "${ECHO_T}no" >&6; }
1.1       millert  3854:                ;;
1.27      millert  3855:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3856: echo "${ECHO_T}no" >&6; }
1.17      millert  3857:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   3858: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1       millert  3859:                ;;
                   3860:   esac
                   3861:
                   3862: else
1.27      millert  3863:   { echo "$as_me:$LINENO: result: no" >&5
                   3864: echo "${ECHO_T}no" >&6; }
                   3865: fi
                   3866:
                   3867:
                   3868: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
                   3869: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
                   3870: # Check whether --enable-shell-sets-home was given.
1.1       millert  3871: if test "${enable_shell_sets_home+set}" = set; then
1.27      millert  3872:   enableval=$enable_shell_sets_home;  case "$enableval" in
                   3873:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3874: echo "${ECHO_T}yes" >&6; }
1.23      millert  3875:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3876: #define SHELL_SETS_HOME 1
1.16      millert  3877: _ACEOF
1.1       millert  3878:
                   3879:                ;;
1.27      millert  3880:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3881: echo "${ECHO_T}no" >&6; }
1.1       millert  3882:                ;;
1.27      millert  3883:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3884: echo "${ECHO_T}no" >&6; }
1.17      millert  3885:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   3886: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1       millert  3887:                ;;
                   3888:   esac
                   3889:
                   3890: else
1.27      millert  3891:   { echo "$as_me:$LINENO: result: no" >&5
                   3892: echo "${ECHO_T}no" >&6; }
                   3893: fi
                   3894:
                   3895:
                   3896: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
                   3897: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
                   3898: # Check whether --enable-path_info was given.
1.1       millert  3899: if test "${enable_path_info+set}" = set; then
1.27      millert  3900:   enableval=$enable_path_info;  case "$enableval" in
                   3901:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3902: echo "${ECHO_T}no" >&6; }
1.1       millert  3903:                ;;
1.27      millert  3904:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3905: echo "${ECHO_T}yes" >&6; }
1.23      millert  3906:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3907: #define DONT_LEAK_PATH_INFO 1
1.16      millert  3908: _ACEOF
1.1       millert  3909:
1.25      millert  3910:                path_info=off
1.1       millert  3911:                ;;
1.27      millert  3912:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3913: echo "${ECHO_T}no" >&6; }
1.17      millert  3914:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   3915: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1       millert  3916:                ;;
                   3917:   esac
                   3918:
                   3919: else
1.27      millert  3920:   { echo "$as_me:$LINENO: result: no" >&5
                   3921: echo "${ECHO_T}no" >&6; }
                   3922: fi
                   3923:
1.1       millert  3924:
                   3925: # Extract the first word of "egrep", so it can be a program name with args.
                   3926: set dummy egrep; ac_word=$2
1.27      millert  3927: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3928: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  3929: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   3930:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3931: else
                   3932:   if test -n "$EGREPPROG"; then
                   3933:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   3934: else
1.16      millert  3935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3936: for as_dir in $PATH
                   3937: do
                   3938:   IFS=$as_save_IFS
                   3939:   test -z "$as_dir" && as_dir=.
                   3940:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  3941:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  3942:     ac_cv_prog_EGREPPROG="egrep"
                   3943:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3944:     break 2
                   3945:   fi
                   3946: done
1.9       millert  3947: done
1.27      millert  3948: IFS=$as_save_IFS
1.9       millert  3949:
1.1       millert  3950: fi
                   3951: fi
1.9       millert  3952: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  3953: if test -n "$EGREPPROG"; then
1.27      millert  3954:   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
                   3955: echo "${ECHO_T}$EGREPPROG" >&6; }
1.1       millert  3956: else
1.27      millert  3957:   { echo "$as_me:$LINENO: result: no" >&5
                   3958: echo "${ECHO_T}no" >&6; }
1.1       millert  3959: fi
                   3960:
1.27      millert  3961:
1.1       millert  3962: if test -z "$EGREPPROG"; then
1.17      millert  3963:     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
                   3964: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
                   3965:    { (exit 1); exit 1; }; }
1.1       millert  3966: fi
                   3967:
1.9       millert  3968: if test "$with_devel" != "yes"; then
                   3969:     ac_cv_prog_cc_g=no
                   3970: fi
                   3971:
                   3972: ac_ext=c
                   3973: ac_cpp='$CPP $CPPFLAGS'
                   3974: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3975: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3976: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3977: if test -n "$ac_tool_prefix"; then
                   3978:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3979: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.27      millert  3980: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  3982: if test "${ac_cv_prog_CC+set}" = set; then
                   3983:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3984: else
                   3985:   if test -n "$CC"; then
                   3986:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3987: else
1.16      millert  3988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3989: for as_dir in $PATH
                   3990: do
                   3991:   IFS=$as_save_IFS
                   3992:   test -z "$as_dir" && as_dir=.
                   3993:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  3994:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  3995:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   3996:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3997:     break 2
                   3998:   fi
                   3999: done
1.9       millert  4000: done
1.27      millert  4001: IFS=$as_save_IFS
1.9       millert  4002:
1.1       millert  4003: fi
                   4004: fi
1.9       millert  4005: CC=$ac_cv_prog_CC
1.1       millert  4006: if test -n "$CC"; then
1.27      millert  4007:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4008: echo "${ECHO_T}$CC" >&6; }
1.1       millert  4009: else
1.27      millert  4010:   { echo "$as_me:$LINENO: result: no" >&5
                   4011: echo "${ECHO_T}no" >&6; }
1.9       millert  4012: fi
                   4013:
1.27      millert  4014:
1.9       millert  4015: fi
                   4016: if test -z "$ac_cv_prog_CC"; then
                   4017:   ac_ct_CC=$CC
                   4018:   # Extract the first word of "gcc", so it can be a program name with args.
                   4019: set dummy gcc; ac_word=$2
1.27      millert  4020: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4021: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4022: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4023:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4024: else
                   4025:   if test -n "$ac_ct_CC"; then
                   4026:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4027: else
1.16      millert  4028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4029: for as_dir in $PATH
                   4030: do
                   4031:   IFS=$as_save_IFS
                   4032:   test -z "$as_dir" && as_dir=.
                   4033:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4034:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4035:     ac_cv_prog_ac_ct_CC="gcc"
                   4036:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4037:     break 2
                   4038:   fi
                   4039: done
1.9       millert  4040: done
1.27      millert  4041: IFS=$as_save_IFS
1.9       millert  4042:
                   4043: fi
                   4044: fi
                   4045: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4046: if test -n "$ac_ct_CC"; then
1.27      millert  4047:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4048: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.9       millert  4049: else
1.27      millert  4050:   { echo "$as_me:$LINENO: result: no" >&5
                   4051: echo "${ECHO_T}no" >&6; }
1.9       millert  4052: fi
                   4053:
1.27      millert  4054:   if test "x$ac_ct_CC" = x; then
                   4055:     CC=""
                   4056:   else
                   4057:     case $cross_compiling:$ac_tool_warned in
                   4058: yes:)
                   4059: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4060: whose name does not start with the host triplet.  If you think this
                   4061: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4062: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4063: whose name does not start with the host triplet.  If you think this
                   4064: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4065: ac_tool_warned=yes ;;
                   4066: esac
                   4067:     CC=$ac_ct_CC
                   4068:   fi
1.9       millert  4069: else
                   4070:   CC="$ac_cv_prog_CC"
1.1       millert  4071: fi
                   4072:
                   4073: if test -z "$CC"; then
1.27      millert  4074:           if test -n "$ac_tool_prefix"; then
                   4075:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9       millert  4076: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.27      millert  4077: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4078: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4079: if test "${ac_cv_prog_CC+set}" = set; then
                   4080:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4081: else
                   4082:   if test -n "$CC"; then
                   4083:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4084: else
1.16      millert  4085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4086: for as_dir in $PATH
                   4087: do
                   4088:   IFS=$as_save_IFS
                   4089:   test -z "$as_dir" && as_dir=.
                   4090:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4091:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4092:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   4093:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4094:     break 2
                   4095:   fi
                   4096: done
1.9       millert  4097: done
1.27      millert  4098: IFS=$as_save_IFS
1.9       millert  4099:
                   4100: fi
                   4101: fi
                   4102: CC=$ac_cv_prog_CC
                   4103: if test -n "$CC"; then
1.27      millert  4104:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4105: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4106: else
1.27      millert  4107:   { echo "$as_me:$LINENO: result: no" >&5
                   4108: echo "${ECHO_T}no" >&6; }
1.9       millert  4109: fi
                   4110:
1.27      millert  4111:
1.16      millert  4112:   fi
1.9       millert  4113: fi
                   4114: if test -z "$CC"; then
                   4115:   # Extract the first word of "cc", so it can be a program name with args.
                   4116: set dummy cc; ac_word=$2
1.27      millert  4117: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4118: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4119: if test "${ac_cv_prog_CC+set}" = set; then
                   4120:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4121: else
                   4122:   if test -n "$CC"; then
                   4123:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4124: else
                   4125:   ac_prog_rejected=no
1.16      millert  4126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4127: for as_dir in $PATH
                   4128: do
                   4129:   IFS=$as_save_IFS
                   4130:   test -z "$as_dir" && as_dir=.
                   4131:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4132:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4133:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   4134:        ac_prog_rejected=yes
                   4135:        continue
                   4136:      fi
                   4137:     ac_cv_prog_CC="cc"
                   4138:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4139:     break 2
                   4140:   fi
                   4141: done
1.9       millert  4142: done
1.27      millert  4143: IFS=$as_save_IFS
1.9       millert  4144:
1.1       millert  4145: if test $ac_prog_rejected = yes; then
                   4146:   # We found a bogon in the path, so make sure we never use it.
                   4147:   set dummy $ac_cv_prog_CC
                   4148:   shift
1.9       millert  4149:   if test $# != 0; then
1.1       millert  4150:     # We chose a different compiler from the bogus one.
                   4151:     # However, it has the same basename, so the bogon will be chosen
                   4152:     # first if we set CC to just the basename; use the full file name.
                   4153:     shift
1.16      millert  4154:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       millert  4155:   fi
                   4156: fi
                   4157: fi
                   4158: fi
1.9       millert  4159: CC=$ac_cv_prog_CC
1.1       millert  4160: if test -n "$CC"; then
1.27      millert  4161:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4162: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4163: else
1.27      millert  4164:   { echo "$as_me:$LINENO: result: no" >&5
                   4165: echo "${ECHO_T}no" >&6; }
1.9       millert  4166: fi
                   4167:
1.27      millert  4168:
1.9       millert  4169: fi
                   4170: if test -z "$CC"; then
                   4171:   if test -n "$ac_tool_prefix"; then
1.27      millert  4172:   for ac_prog in cl.exe
1.9       millert  4173:   do
                   4174:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4175: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27      millert  4176: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4177: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4178: if test "${ac_cv_prog_CC+set}" = set; then
                   4179:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4180: else
                   4181:   if test -n "$CC"; then
                   4182:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4183: else
1.16      millert  4184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4185: for as_dir in $PATH
                   4186: do
                   4187:   IFS=$as_save_IFS
                   4188:   test -z "$as_dir" && as_dir=.
                   4189:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4190:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4191:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   4192:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4193:     break 2
                   4194:   fi
                   4195: done
1.9       millert  4196: done
1.27      millert  4197: IFS=$as_save_IFS
1.9       millert  4198:
                   4199: fi
                   4200: fi
                   4201: CC=$ac_cv_prog_CC
                   4202: if test -n "$CC"; then
1.27      millert  4203:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4204: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4205: else
1.27      millert  4206:   { echo "$as_me:$LINENO: result: no" >&5
                   4207: echo "${ECHO_T}no" >&6; }
1.9       millert  4208: fi
                   4209:
1.27      millert  4210:
1.9       millert  4211:     test -n "$CC" && break
                   4212:   done
                   4213: fi
                   4214: if test -z "$CC"; then
                   4215:   ac_ct_CC=$CC
1.27      millert  4216:   for ac_prog in cl.exe
1.9       millert  4217: do
                   4218:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4219: set dummy $ac_prog; ac_word=$2
1.27      millert  4220: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4222: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4223:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4224: else
                   4225:   if test -n "$ac_ct_CC"; then
                   4226:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4227: else
1.16      millert  4228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4229: for as_dir in $PATH
                   4230: do
                   4231:   IFS=$as_save_IFS
                   4232:   test -z "$as_dir" && as_dir=.
                   4233:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4234:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4235:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   4236:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4237:     break 2
                   4238:   fi
                   4239: done
1.9       millert  4240: done
1.27      millert  4241: IFS=$as_save_IFS
1.9       millert  4242:
                   4243: fi
                   4244: fi
                   4245: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4246: if test -n "$ac_ct_CC"; then
1.27      millert  4247:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4248: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       millert  4249: else
1.27      millert  4250:   { echo "$as_me:$LINENO: result: no" >&5
                   4251: echo "${ECHO_T}no" >&6; }
1.9       millert  4252: fi
                   4253:
1.27      millert  4254:
1.9       millert  4255:   test -n "$ac_ct_CC" && break
                   4256: done
                   4257:
1.27      millert  4258:   if test "x$ac_ct_CC" = x; then
                   4259:     CC=""
                   4260:   else
                   4261:     case $cross_compiling:$ac_tool_warned in
                   4262: yes:)
                   4263: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4264: whose name does not start with the host triplet.  If you think this
                   4265: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4266: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4267: whose name does not start with the host triplet.  If you think this
                   4268: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4269: ac_tool_warned=yes ;;
                   4270: esac
                   4271:     CC=$ac_ct_CC
                   4272:   fi
1.1       millert  4273: fi
                   4274:
                   4275: fi
                   4276:
1.16      millert  4277:
                   4278: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   4279: See \`config.log' for more details." >&5
                   4280: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   4281: See \`config.log' for more details." >&2;}
1.9       millert  4282:    { (exit 1); exit 1; }; }
                   4283:
                   4284: # Provide some information about the compiler.
1.27      millert  4285: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9       millert  4286: ac_compiler=`set X $ac_compile; echo $2`
1.27      millert  4287: { (ac_try="$ac_compiler --version >&5"
                   4288: case "(($ac_try" in
                   4289:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4290:   *) ac_try_echo=$ac_try;;
                   4291: esac
                   4292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4293:   (eval "$ac_compiler --version >&5") 2>&5
1.9       millert  4294:   ac_status=$?
1.16      millert  4295:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4296:   (exit $ac_status); }
1.27      millert  4297: { (ac_try="$ac_compiler -v >&5"
                   4298: case "(($ac_try" in
                   4299:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4300:   *) ac_try_echo=$ac_try;;
                   4301: esac
                   4302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4303:   (eval "$ac_compiler -v >&5") 2>&5
1.9       millert  4304:   ac_status=$?
1.16      millert  4305:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4306:   (exit $ac_status); }
1.27      millert  4307: { (ac_try="$ac_compiler -V >&5"
                   4308: case "(($ac_try" in
                   4309:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4310:   *) ac_try_echo=$ac_try;;
                   4311: esac
                   4312: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4313:   (eval "$ac_compiler -V >&5") 2>&5
1.9       millert  4314:   ac_status=$?
1.16      millert  4315:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4316:   (exit $ac_status); }
                   4317:
                   4318: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4319: /* confdefs.h.  */
                   4320: _ACEOF
                   4321: cat confdefs.h >>conftest.$ac_ext
                   4322: cat >>conftest.$ac_ext <<_ACEOF
                   4323: /* end confdefs.h.  */
1.9       millert  4324:
                   4325: int
                   4326: main ()
                   4327: {
1.1       millert  4328:
1.9       millert  4329:   ;
                   4330:   return 0;
                   4331: }
                   4332: _ACEOF
                   4333: ac_clean_files_save=$ac_clean_files
1.16      millert  4334: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  4335: # Try to create an executable without -o first, disregard a.out.
                   4336: # It will help us diagnose broken compilers, and finding out an intuition
                   4337: # of exeext.
1.27      millert  4338: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   4339: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9       millert  4340: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27      millert  4341: #
                   4342: # List of possible output files, starting from the most likely.
                   4343: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
                   4344: # only as a last resort.  b.out is created by i960 compilers.
                   4345: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
                   4346: #
                   4347: # The IRIX 6 linker writes into existing files which may not be
                   4348: # executable, retaining their permissions.  Remove them first so a
                   4349: # subsequent execution test works.
                   4350: ac_rmfiles=
                   4351: for ac_file in $ac_files
                   4352: do
                   4353:   case $ac_file in
                   4354:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
                   4355:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   4356:   esac
                   4357: done
                   4358: rm -f $ac_rmfiles
                   4359:
                   4360: if { (ac_try="$ac_link_default"
                   4361: case "(($ac_try" in
                   4362:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4363:   *) ac_try_echo=$ac_try;;
                   4364: esac
                   4365: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4366:   (eval "$ac_link_default") 2>&5
1.9       millert  4367:   ac_status=$?
1.16      millert  4368:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4369:   (exit $ac_status); }; then
1.27      millert  4370:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   4371: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   4372: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   4373: # so that the user can short-circuit this test for compilers unknown to
                   4374: # Autoconf.
                   4375: for ac_file in $ac_files ''
1.16      millert  4376: do
                   4377:   test -f "$ac_file" || continue
1.9       millert  4378:   case $ac_file in
1.27      millert  4379:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25      millert  4380:        ;;
1.16      millert  4381:     [ab].out )
1.25      millert  4382:        # We found the default executable, but exeext='' is most
                   4383:        # certainly right.
                   4384:        break;;
1.16      millert  4385:     *.* )
1.27      millert  4386:         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   4387:        then :; else
                   4388:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   4389:        fi
                   4390:        # We set ac_cv_exeext here because the later test for it is not
                   4391:        # safe: cross compilers may not add the suffix if given an `-o'
                   4392:        # argument, so we may need to know it at that point already.
                   4393:        # Even if this section looks crufty: it has the advantage of
                   4394:        # actually working.
1.25      millert  4395:        break;;
1.16      millert  4396:     * )
1.25      millert  4397:        break;;
1.9       millert  4398:   esac
                   4399: done
1.27      millert  4400: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   4401:
1.9       millert  4402: else
1.27      millert  4403:   ac_file=''
                   4404: fi
                   4405:
                   4406: { echo "$as_me:$LINENO: result: $ac_file" >&5
                   4407: echo "${ECHO_T}$ac_file" >&6; }
                   4408: if test -z "$ac_file"; then
1.9       millert  4409:   echo "$as_me: failed program was:" >&5
1.16      millert  4410: sed 's/^/| /' conftest.$ac_ext >&5
                   4411:
                   4412: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   4413: See \`config.log' for more details." >&5
                   4414: echo "$as_me: error: C compiler cannot create executables
                   4415: See \`config.log' for more details." >&2;}
1.9       millert  4416:    { (exit 77); exit 77; }; }
                   4417: fi
                   4418:
                   4419: ac_exeext=$ac_cv_exeext
                   4420:
1.27      millert  4421: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4422: # the compiler is broken, or we cross compile.
1.27      millert  4423: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   4424: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9       millert  4425: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   4426: # If not cross compiling, check that we can run a simple program.
                   4427: if test "$cross_compiling" != yes; then
                   4428:   if { ac_try='./$ac_file'
1.27      millert  4429:   { (case "(($ac_try" in
                   4430:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4431:   *) ac_try_echo=$ac_try;;
                   4432: esac
                   4433: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4434:   (eval "$ac_try") 2>&5
1.9       millert  4435:   ac_status=$?
1.16      millert  4436:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4437:   (exit $ac_status); }; }; then
                   4438:     cross_compiling=no
1.1       millert  4439:   else
1.9       millert  4440:     if test "$cross_compiling" = maybe; then
                   4441:        cross_compiling=yes
                   4442:     else
1.16      millert  4443:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   4444: If you meant to cross compile, use \`--host'.
                   4445: See \`config.log' for more details." >&5
1.9       millert  4446: echo "$as_me: error: cannot run C compiled programs.
1.16      millert  4447: If you meant to cross compile, use \`--host'.
                   4448: See \`config.log' for more details." >&2;}
1.9       millert  4449:    { (exit 1); exit 1; }; }
                   4450:     fi
1.1       millert  4451:   fi
1.9       millert  4452: fi
1.27      millert  4453: { echo "$as_me:$LINENO: result: yes" >&5
                   4454: echo "${ECHO_T}yes" >&6; }
1.9       millert  4455:
1.16      millert  4456: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  4457: ac_clean_files=$ac_clean_files_save
1.27      millert  4458: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4459: # the compiler is broken, or we cross compile.
1.27      millert  4460: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   4461: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
                   4462: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   4463: echo "${ECHO_T}$cross_compiling" >&6; }
                   4464:
                   4465: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   4466: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
                   4467: if { (ac_try="$ac_link"
                   4468: case "(($ac_try" in
                   4469:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4470:   *) ac_try_echo=$ac_try;;
                   4471: esac
                   4472: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4473:   (eval "$ac_link") 2>&5
1.9       millert  4474:   ac_status=$?
1.16      millert  4475:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4476:   (exit $ac_status); }; then
                   4477:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4478: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4479: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4480: # `rm'.
1.16      millert  4481: for ac_file in conftest.exe conftest conftest.*; do
                   4482:   test -f "$ac_file" || continue
1.9       millert  4483:   case $ac_file in
1.27      millert  4484:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9       millert  4485:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25      millert  4486:          break;;
1.9       millert  4487:     * ) break;;
                   4488:   esac
                   4489: done
1.1       millert  4490: else
1.16      millert  4491:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   4492: See \`config.log' for more details." >&5
                   4493: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   4494: See \`config.log' for more details." >&2;}
1.9       millert  4495:    { (exit 1); exit 1; }; }
1.1       millert  4496: fi
                   4497:
1.9       millert  4498: rm -f conftest$ac_cv_exeext
1.27      millert  4499: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   4500: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1       millert  4501:
1.9       millert  4502: rm -f conftest.$ac_ext
                   4503: EXEEXT=$ac_cv_exeext
                   4504: ac_exeext=$EXEEXT
1.27      millert  4505: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   4506: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9       millert  4507: if test "${ac_cv_objext+set}" = set; then
                   4508:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4509: else
1.9       millert  4510:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4511: /* confdefs.h.  */
                   4512: _ACEOF
                   4513: cat confdefs.h >>conftest.$ac_ext
                   4514: cat >>conftest.$ac_ext <<_ACEOF
                   4515: /* end confdefs.h.  */
1.9       millert  4516:
                   4517: int
                   4518: main ()
                   4519: {
                   4520:
                   4521:   ;
                   4522:   return 0;
                   4523: }
                   4524: _ACEOF
                   4525: rm -f conftest.o conftest.obj
1.27      millert  4526: if { (ac_try="$ac_compile"
                   4527: case "(($ac_try" in
                   4528:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4529:   *) ac_try_echo=$ac_try;;
                   4530: esac
                   4531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4532:   (eval "$ac_compile") 2>&5
1.9       millert  4533:   ac_status=$?
1.16      millert  4534:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4535:   (exit $ac_status); }; then
1.27      millert  4536:   for ac_file in conftest.o conftest.obj conftest.*; do
                   4537:   test -f "$ac_file" || continue;
1.9       millert  4538:   case $ac_file in
1.27      millert  4539:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9       millert  4540:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4541:        break;;
                   4542:   esac
                   4543: done
1.1       millert  4544: else
1.9       millert  4545:   echo "$as_me: failed program was:" >&5
1.16      millert  4546: sed 's/^/| /' conftest.$ac_ext >&5
                   4547:
                   4548: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   4549: See \`config.log' for more details." >&5
                   4550: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   4551: See \`config.log' for more details." >&2;}
1.9       millert  4552:    { (exit 1); exit 1; }; }
1.1       millert  4553: fi
1.9       millert  4554:
                   4555: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  4556: fi
1.27      millert  4557: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   4558: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9       millert  4559: OBJEXT=$ac_cv_objext
                   4560: ac_objext=$OBJEXT
1.27      millert  4561: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   4562: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9       millert  4563: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   4564:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4565: else
                   4566:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4567: /* confdefs.h.  */
                   4568: _ACEOF
                   4569: cat confdefs.h >>conftest.$ac_ext
                   4570: cat >>conftest.$ac_ext <<_ACEOF
                   4571: /* end confdefs.h.  */
1.1       millert  4572:
1.9       millert  4573: int
                   4574: main ()
                   4575: {
                   4576: #ifndef __GNUC__
                   4577:        choke me
                   4578: #endif
1.1       millert  4579:
1.9       millert  4580:   ;
                   4581:   return 0;
                   4582: }
                   4583: _ACEOF
                   4584: rm -f conftest.$ac_objext
1.27      millert  4585: if { (ac_try="$ac_compile"
                   4586: case "(($ac_try" in
                   4587:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4588:   *) ac_try_echo=$ac_try;;
                   4589: esac
                   4590: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4591:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4592:   ac_status=$?
1.25      millert  4593:   grep -v '^ *+' conftest.er1 >conftest.err
                   4594:   rm -f conftest.er1
                   4595:   cat conftest.err >&5
1.16      millert  4596:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4597:   (exit $ac_status); } && {
                   4598:         test -z "$ac_c_werror_flag" ||
                   4599:         test ! -s conftest.err
                   4600:        } && test -s conftest.$ac_objext; then
1.9       millert  4601:   ac_compiler_gnu=yes
                   4602: else
                   4603:   echo "$as_me: failed program was:" >&5
1.16      millert  4604: sed 's/^/| /' conftest.$ac_ext >&5
                   4605:
1.27      millert  4606:        ac_compiler_gnu=no
1.9       millert  4607: fi
1.27      millert  4608:
                   4609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4610: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4611:
                   4612: fi
1.27      millert  4613: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   4614: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9       millert  4615: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   4616: ac_test_CFLAGS=${CFLAGS+set}
                   4617: ac_save_CFLAGS=$CFLAGS
1.27      millert  4618: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   4619: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9       millert  4620: if test "${ac_cv_prog_cc_g+set}" = set; then
                   4621:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4622: else
1.27      millert  4623:   ac_save_c_werror_flag=$ac_c_werror_flag
                   4624:    ac_c_werror_flag=yes
                   4625:    ac_cv_prog_cc_g=no
                   4626:    CFLAGS="-g"
                   4627:    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4628: /* confdefs.h.  */
                   4629: _ACEOF
                   4630: cat confdefs.h >>conftest.$ac_ext
                   4631: cat >>conftest.$ac_ext <<_ACEOF
                   4632: /* end confdefs.h.  */
1.9       millert  4633:
                   4634: int
                   4635: main ()
                   4636: {
                   4637:
                   4638:   ;
                   4639:   return 0;
                   4640: }
                   4641: _ACEOF
                   4642: rm -f conftest.$ac_objext
1.27      millert  4643: if { (ac_try="$ac_compile"
                   4644: case "(($ac_try" in
                   4645:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4646:   *) ac_try_echo=$ac_try;;
                   4647: esac
                   4648: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4649:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4650:   ac_status=$?
1.25      millert  4651:   grep -v '^ *+' conftest.er1 >conftest.err
                   4652:   rm -f conftest.er1
                   4653:   cat conftest.err >&5
1.16      millert  4654:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4655:   (exit $ac_status); } && {
                   4656:         test -z "$ac_c_werror_flag" ||
                   4657:         test ! -s conftest.err
                   4658:        } && test -s conftest.$ac_objext; then
                   4659:   ac_cv_prog_cc_g=yes
                   4660: else
                   4661:   echo "$as_me: failed program was:" >&5
                   4662: sed 's/^/| /' conftest.$ac_ext >&5
                   4663:
                   4664:        CFLAGS=""
                   4665:       cat >conftest.$ac_ext <<_ACEOF
                   4666: /* confdefs.h.  */
                   4667: _ACEOF
                   4668: cat confdefs.h >>conftest.$ac_ext
                   4669: cat >>conftest.$ac_ext <<_ACEOF
                   4670: /* end confdefs.h.  */
                   4671:
                   4672: int
                   4673: main ()
                   4674: {
                   4675:
                   4676:   ;
                   4677:   return 0;
                   4678: }
                   4679: _ACEOF
                   4680: rm -f conftest.$ac_objext
                   4681: if { (ac_try="$ac_compile"
                   4682: case "(($ac_try" in
                   4683:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4684:   *) ac_try_echo=$ac_try;;
                   4685: esac
                   4686: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4687:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  4688:   ac_status=$?
1.27      millert  4689:   grep -v '^ *+' conftest.er1 >conftest.err
                   4690:   rm -f conftest.er1
                   4691:   cat conftest.err >&5
1.25      millert  4692:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4693:   (exit $ac_status); } && {
                   4694:         test -z "$ac_c_werror_flag" ||
                   4695:         test ! -s conftest.err
                   4696:        } && test -s conftest.$ac_objext; then
                   4697:   :
                   4698: else
                   4699:   echo "$as_me: failed program was:" >&5
                   4700: sed 's/^/| /' conftest.$ac_ext >&5
                   4701:
                   4702:        ac_c_werror_flag=$ac_save_c_werror_flag
                   4703:         CFLAGS="-g"
                   4704:         cat >conftest.$ac_ext <<_ACEOF
                   4705: /* confdefs.h.  */
                   4706: _ACEOF
                   4707: cat confdefs.h >>conftest.$ac_ext
                   4708: cat >>conftest.$ac_ext <<_ACEOF
                   4709: /* end confdefs.h.  */
                   4710:
                   4711: int
                   4712: main ()
                   4713: {
                   4714:
                   4715:   ;
                   4716:   return 0;
                   4717: }
                   4718: _ACEOF
                   4719: rm -f conftest.$ac_objext
                   4720: if { (ac_try="$ac_compile"
                   4721: case "(($ac_try" in
                   4722:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4723:   *) ac_try_echo=$ac_try;;
                   4724: esac
                   4725: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4726:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4727:   ac_status=$?
1.27      millert  4728:   grep -v '^ *+' conftest.er1 >conftest.err
                   4729:   rm -f conftest.er1
                   4730:   cat conftest.err >&5
1.16      millert  4731:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4732:   (exit $ac_status); } && {
                   4733:         test -z "$ac_c_werror_flag" ||
                   4734:         test ! -s conftest.err
                   4735:        } && test -s conftest.$ac_objext; then
1.1       millert  4736:   ac_cv_prog_cc_g=yes
                   4737: else
1.9       millert  4738:   echo "$as_me: failed program was:" >&5
1.16      millert  4739: sed 's/^/| /' conftest.$ac_ext >&5
                   4740:
1.27      millert  4741:
                   4742: fi
                   4743:
                   4744: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4745: fi
                   4746:
                   4747: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4748: fi
1.27      millert  4749:
                   4750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4751:    ac_c_werror_flag=$ac_save_c_werror_flag
1.9       millert  4752: fi
1.27      millert  4753: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   4754: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.9       millert  4755: if test "$ac_test_CFLAGS" = set; then
                   4756:   CFLAGS=$ac_save_CFLAGS
                   4757: elif test $ac_cv_prog_cc_g = yes; then
                   4758:   if test "$GCC" = yes; then
                   4759:     CFLAGS="-g -O2"
                   4760:   else
                   4761:     CFLAGS="-g"
                   4762:   fi
                   4763: else
                   4764:   if test "$GCC" = yes; then
                   4765:     CFLAGS="-O2"
                   4766:   else
                   4767:     CFLAGS=
                   4768:   fi
                   4769: fi
1.27      millert  4770: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
                   4771: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
                   4772: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.16      millert  4773:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4774: else
1.27      millert  4775:   ac_cv_prog_cc_c89=no
1.16      millert  4776: ac_save_CC=$CC
1.9       millert  4777: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4778: /* confdefs.h.  */
1.9       millert  4779: _ACEOF
1.16      millert  4780: cat confdefs.h >>conftest.$ac_ext
                   4781: cat >>conftest.$ac_ext <<_ACEOF
                   4782: /* end confdefs.h.  */
                   4783: #include <stdarg.h>
                   4784: #include <stdio.h>
                   4785: #include <sys/types.h>
                   4786: #include <sys/stat.h>
                   4787: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4788: struct buf { int x; };
                   4789: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4790: static char *e (p, i)
                   4791:      char **p;
                   4792:      int i;
1.9       millert  4793: {
1.16      millert  4794:   return p[i];
1.9       millert  4795: }
1.16      millert  4796: static char *f (char * (*g) (char **, int), char **p, ...)
                   4797: {
                   4798:   char *s;
                   4799:   va_list v;
                   4800:   va_start (v,p);
                   4801:   s = g (p, va_arg (v,int));
                   4802:   va_end (v);
                   4803:   return s;
                   4804: }
1.25      millert  4805:
                   4806: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4807:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4808:    These don't provoke an error unfortunately, instead are silently treated
1.27      millert  4809:    as 'x'.  The following induces an error, until -std is added to get
1.25      millert  4810:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4811:    array size at least.  It's necessary to write '\x00'==0 to get something
1.27      millert  4812:    that's true only with -std.  */
1.25      millert  4813: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4814:
1.27      millert  4815: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4816:    inside strings and character constants.  */
                   4817: #define FOO(x) 'x'
                   4818: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4819:
1.16      millert  4820: int test (int i, double x);
                   4821: struct s1 {int (*f) (int a);};
                   4822: struct s2 {int (*f) (double a);};
                   4823: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4824: int argc;
                   4825: char **argv;
                   4826: int
                   4827: main ()
                   4828: {
                   4829: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4830:   ;
                   4831:   return 0;
                   4832: }
                   4833: _ACEOF
1.27      millert  4834: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4835:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.16      millert  4836: do
                   4837:   CC="$ac_save_CC $ac_arg"
                   4838:   rm -f conftest.$ac_objext
1.27      millert  4839: if { (ac_try="$ac_compile"
                   4840: case "(($ac_try" in
                   4841:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4842:   *) ac_try_echo=$ac_try;;
                   4843: esac
                   4844: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4845:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  4846:   ac_status=$?
1.25      millert  4847:   grep -v '^ *+' conftest.er1 >conftest.err
                   4848:   rm -f conftest.er1
                   4849:   cat conftest.err >&5
1.16      millert  4850:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4851:   (exit $ac_status); } && {
                   4852:         test -z "$ac_c_werror_flag" ||
                   4853:         test ! -s conftest.err
                   4854:        } && test -s conftest.$ac_objext; then
                   4855:   ac_cv_prog_cc_c89=$ac_arg
1.16      millert  4856: else
                   4857:   echo "$as_me: failed program was:" >&5
                   4858: sed 's/^/| /' conftest.$ac_ext >&5
                   4859:
1.27      millert  4860:
1.16      millert  4861: fi
1.27      millert  4862:
                   4863: rm -f core conftest.err conftest.$ac_objext
                   4864:   test "x$ac_cv_prog_cc_c89" != "xno" && break
1.16      millert  4865: done
1.27      millert  4866: rm -f conftest.$ac_ext
1.16      millert  4867: CC=$ac_save_CC
                   4868:
                   4869: fi
1.27      millert  4870: # AC_CACHE_VAL
                   4871: case "x$ac_cv_prog_cc_c89" in
                   4872:   x)
                   4873:     { echo "$as_me:$LINENO: result: none needed" >&5
                   4874: echo "${ECHO_T}none needed" >&6; } ;;
                   4875:   xno)
                   4876:     { echo "$as_me:$LINENO: result: unsupported" >&5
                   4877: echo "${ECHO_T}unsupported" >&6; } ;;
1.16      millert  4878:   *)
1.27      millert  4879:     CC="$CC $ac_cv_prog_cc_c89"
                   4880:     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
                   4881: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.16      millert  4882: esac
                   4883:
1.27      millert  4884:
                   4885: ac_ext=c
                   4886: ac_cpp='$CPP $CPPFLAGS'
                   4887: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4888: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4889: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4890:
                   4891:
                   4892: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
                   4893: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
                   4894: if test "${ac_cv_search_strerror+set}" = set; then
                   4895:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4896: else
                   4897:   ac_func_search_save_LIBS=$LIBS
1.16      millert  4898: cat >conftest.$ac_ext <<_ACEOF
                   4899: /* confdefs.h.  */
                   4900: _ACEOF
                   4901: cat confdefs.h >>conftest.$ac_ext
                   4902: cat >>conftest.$ac_ext <<_ACEOF
                   4903: /* end confdefs.h.  */
1.27      millert  4904:
                   4905: /* Override any GCC internal prototype to avoid an error.
                   4906:    Use char because int might match the return type of a GCC
                   4907:    builtin and then its argument prototype would still apply.  */
                   4908: #ifdef __cplusplus
                   4909: extern "C"
                   4910: #endif
                   4911: char strerror ();
1.16      millert  4912: int
                   4913: main ()
                   4914: {
1.27      millert  4915: return strerror ();
1.16      millert  4916:   ;
                   4917:   return 0;
                   4918: }
                   4919: _ACEOF
1.27      millert  4920: for ac_lib in '' cposix; do
                   4921:   if test -z "$ac_lib"; then
                   4922:     ac_res="none required"
                   4923:   else
                   4924:     ac_res=-l$ac_lib
                   4925:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   4926:   fi
                   4927:   rm -f conftest.$ac_objext conftest$ac_exeext
                   4928: if { (ac_try="$ac_link"
                   4929: case "(($ac_try" in
                   4930:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4931:   *) ac_try_echo=$ac_try;;
                   4932: esac
                   4933: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4934:   (eval "$ac_link") 2>conftest.er1
1.16      millert  4935:   ac_status=$?
1.25      millert  4936:   grep -v '^ *+' conftest.er1 >conftest.err
                   4937:   rm -f conftest.er1
                   4938:   cat conftest.err >&5
1.16      millert  4939:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4940:   (exit $ac_status); } && {
                   4941:         test -z "$ac_c_werror_flag" ||
                   4942:         test ! -s conftest.err
                   4943:        } && test -s conftest$ac_exeext &&
                   4944:        $as_test_x conftest$ac_exeext; then
                   4945:   ac_cv_search_strerror=$ac_res
1.9       millert  4946: else
                   4947:   echo "$as_me: failed program was:" >&5
1.16      millert  4948: sed 's/^/| /' conftest.$ac_ext >&5
                   4949:
1.27      millert  4950:
                   4951: fi
                   4952:
                   4953: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   4954:       conftest$ac_exeext
                   4955:   if test "${ac_cv_search_strerror+set}" = set; then
                   4956:   break
1.9       millert  4957: fi
1.27      millert  4958: done
1.16      millert  4959: if test "${ac_cv_search_strerror+set}" = set; then
1.27      millert  4960:   :
1.9       millert  4961: else
1.27      millert  4962:   ac_cv_search_strerror=no
1.16      millert  4963: fi
1.27      millert  4964: rm conftest.$ac_ext
1.16      millert  4965: LIBS=$ac_func_search_save_LIBS
1.9       millert  4966: fi
1.27      millert  4967: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
                   4968: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
                   4969: ac_res=$ac_cv_search_strerror
                   4970: if test "$ac_res" != no; then
                   4971:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9       millert  4972:
                   4973: fi
                   4974:
                   4975: ac_ext=c
                   4976: ac_cpp='$CPP $CPPFLAGS'
                   4977: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4978: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4979: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27      millert  4980: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   4981: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1       millert  4982: # On Suns, sometimes $CPP names a directory.
                   4983: if test -n "$CPP" && test -d "$CPP"; then
                   4984:   CPP=
                   4985: fi
                   4986: if test -z "$CPP"; then
1.9       millert  4987:   if test "${ac_cv_prog_CPP+set}" = set; then
                   4988:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4989: else
1.9       millert  4990:       # Double quotes because CPP needs to be expanded
                   4991:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4992:     do
                   4993:       ac_preproc_ok=false
                   4994: for ac_c_preproc_warn_flag in '' yes
                   4995: do
                   4996:   # Use a header file that comes with gcc, so configuring glibc
                   4997:   # with a fresh cross-compiler works.
1.16      millert  4998:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4999:   # <limits.h> exists even on freestanding compilers.
1.1       millert  5000:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  5001:   # not just through cpp. "Syntax error" is here to catch this case.
                   5002:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5003: /* confdefs.h.  */
                   5004: _ACEOF
                   5005: cat confdefs.h >>conftest.$ac_ext
                   5006: cat >>conftest.$ac_ext <<_ACEOF
                   5007: /* end confdefs.h.  */
                   5008: #ifdef __STDC__
                   5009: # include <limits.h>
                   5010: #else
                   5011: # include <assert.h>
                   5012: #endif
1.25      millert  5013:                     Syntax error
1.9       millert  5014: _ACEOF
1.27      millert  5015: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5016: case "(($ac_try" in
                   5017:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5018:   *) ac_try_echo=$ac_try;;
                   5019: esac
                   5020: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5021:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5022:   ac_status=$?
1.16      millert  5023:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5024:   rm -f conftest.er1
                   5025:   cat conftest.err >&5
1.16      millert  5026:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5027:   (exit $ac_status); } >/dev/null && {
                   5028:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5029:         test ! -s conftest.err
                   5030:        }; then
1.1       millert  5031:   :
                   5032: else
1.9       millert  5033:   echo "$as_me: failed program was:" >&5
1.16      millert  5034: sed 's/^/| /' conftest.$ac_ext >&5
                   5035:
1.9       millert  5036:   # Broken: fails on valid input.
                   5037: continue
                   5038: fi
1.27      millert  5039:
1.9       millert  5040: rm -f conftest.err conftest.$ac_ext
                   5041:
1.27      millert  5042:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5043:   # can be detected and how.
                   5044:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5045: /* confdefs.h.  */
                   5046: _ACEOF
                   5047: cat confdefs.h >>conftest.$ac_ext
                   5048: cat >>conftest.$ac_ext <<_ACEOF
                   5049: /* end confdefs.h.  */
1.9       millert  5050: #include <ac_nonexistent.h>
                   5051: _ACEOF
1.27      millert  5052: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5053: case "(($ac_try" in
                   5054:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5055:   *) ac_try_echo=$ac_try;;
                   5056: esac
                   5057: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5058:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5059:   ac_status=$?
1.16      millert  5060:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5061:   rm -f conftest.er1
                   5062:   cat conftest.err >&5
1.16      millert  5063:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5064:   (exit $ac_status); } >/dev/null && {
                   5065:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5066:         test ! -s conftest.err
                   5067:        }; then
1.9       millert  5068:   # Broken: success on invalid input.
                   5069: continue
                   5070: else
                   5071:   echo "$as_me: failed program was:" >&5
1.16      millert  5072: sed 's/^/| /' conftest.$ac_ext >&5
                   5073:
1.9       millert  5074:   # Passes both tests.
                   5075: ac_preproc_ok=:
                   5076: break
                   5077: fi
1.27      millert  5078:
1.9       millert  5079: rm -f conftest.err conftest.$ac_ext
                   5080:
                   5081: done
                   5082: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5083: rm -f conftest.err conftest.$ac_ext
                   5084: if $ac_preproc_ok; then
                   5085:   break
                   5086: fi
                   5087:
                   5088:     done
                   5089:     ac_cv_prog_CPP=$CPP
                   5090:
                   5091: fi
                   5092:   CPP=$ac_cv_prog_CPP
                   5093: else
                   5094:   ac_cv_prog_CPP=$CPP
                   5095: fi
1.27      millert  5096: { echo "$as_me:$LINENO: result: $CPP" >&5
                   5097: echo "${ECHO_T}$CPP" >&6; }
1.9       millert  5098: ac_preproc_ok=false
                   5099: for ac_c_preproc_warn_flag in '' yes
                   5100: do
                   5101:   # Use a header file that comes with gcc, so configuring glibc
                   5102:   # with a fresh cross-compiler works.
1.16      millert  5103:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5104:   # <limits.h> exists even on freestanding compilers.
1.9       millert  5105:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5106:   # not just through cpp. "Syntax error" is here to catch this case.
                   5107:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5108: /* confdefs.h.  */
                   5109: _ACEOF
                   5110: cat confdefs.h >>conftest.$ac_ext
                   5111: cat >>conftest.$ac_ext <<_ACEOF
                   5112: /* end confdefs.h.  */
                   5113: #ifdef __STDC__
                   5114: # include <limits.h>
                   5115: #else
                   5116: # include <assert.h>
                   5117: #endif
1.25      millert  5118:                     Syntax error
1.9       millert  5119: _ACEOF
1.27      millert  5120: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5121: case "(($ac_try" in
                   5122:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5123:   *) ac_try_echo=$ac_try;;
                   5124: esac
                   5125: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5126:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5127:   ac_status=$?
1.16      millert  5128:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5129:   rm -f conftest.er1
                   5130:   cat conftest.err >&5
1.16      millert  5131:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5132:   (exit $ac_status); } >/dev/null && {
                   5133:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5134:         test ! -s conftest.err
                   5135:        }; then
1.1       millert  5136:   :
                   5137: else
1.9       millert  5138:   echo "$as_me: failed program was:" >&5
1.16      millert  5139: sed 's/^/| /' conftest.$ac_ext >&5
                   5140:
1.9       millert  5141:   # Broken: fails on valid input.
                   5142: continue
1.1       millert  5143: fi
1.27      millert  5144:
1.9       millert  5145: rm -f conftest.err conftest.$ac_ext
                   5146:
1.27      millert  5147:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5148:   # can be detected and how.
                   5149:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5150: /* confdefs.h.  */
                   5151: _ACEOF
                   5152: cat confdefs.h >>conftest.$ac_ext
                   5153: cat >>conftest.$ac_ext <<_ACEOF
                   5154: /* end confdefs.h.  */
1.9       millert  5155: #include <ac_nonexistent.h>
                   5156: _ACEOF
1.27      millert  5157: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5158: case "(($ac_try" in
                   5159:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5160:   *) ac_try_echo=$ac_try;;
                   5161: esac
                   5162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5163:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5164:   ac_status=$?
1.16      millert  5165:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5166:   rm -f conftest.er1
                   5167:   cat conftest.err >&5
1.16      millert  5168:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5169:   (exit $ac_status); } >/dev/null && {
                   5170:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5171:         test ! -s conftest.err
                   5172:        }; then
1.9       millert  5173:   # Broken: success on invalid input.
                   5174: continue
1.1       millert  5175: else
1.9       millert  5176:   echo "$as_me: failed program was:" >&5
1.16      millert  5177: sed 's/^/| /' conftest.$ac_ext >&5
                   5178:
1.9       millert  5179:   # Passes both tests.
                   5180: ac_preproc_ok=:
                   5181: break
1.1       millert  5182: fi
1.27      millert  5183:
1.9       millert  5184: rm -f conftest.err conftest.$ac_ext
1.1       millert  5185:
1.9       millert  5186: done
                   5187: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5188: rm -f conftest.err conftest.$ac_ext
                   5189: if $ac_preproc_ok; then
                   5190:   :
1.1       millert  5191: else
1.16      millert  5192:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   5193: See \`config.log' for more details." >&5
                   5194: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   5195: See \`config.log' for more details." >&2;}
1.9       millert  5196:    { (exit 1); exit 1; }; }
1.1       millert  5197: fi
                   5198:
1.9       millert  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.1       millert  5204:
1.16      millert  5205:
1.23      millert  5206: ac_aux_dir=
1.27      millert  5207: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   5208:   if test -f "$ac_dir/install-sh"; then
1.23      millert  5209:     ac_aux_dir=$ac_dir
                   5210:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   5211:     break
1.27      millert  5212:   elif test -f "$ac_dir/install.sh"; then
1.23      millert  5213:     ac_aux_dir=$ac_dir
                   5214:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   5215:     break
1.27      millert  5216:   elif test -f "$ac_dir/shtool"; then
1.23      millert  5217:     ac_aux_dir=$ac_dir
                   5218:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   5219:     break
                   5220:   fi
                   5221: done
                   5222: if test -z "$ac_aux_dir"; then
1.27      millert  5223:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
                   5224: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23      millert  5225:    { (exit 1); exit 1; }; }
1.1       millert  5226: fi
1.27      millert  5227:
                   5228: # These three variables are undocumented and unsupported,
                   5229: # and are intended to be withdrawn in a future Autoconf release.
                   5230: # They can cause serious problems if a builder's source tree is in a directory
                   5231: # whose full name contains unusual characters.
                   5232: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   5233: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   5234: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   5235:
1.23      millert  5236:
                   5237: # Make sure we can run config.sub.
1.27      millert  5238: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   5239:   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
                   5240: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23      millert  5241:    { (exit 1); exit 1; }; }
1.1       millert  5242:
1.27      millert  5243: { echo "$as_me:$LINENO: checking build system type" >&5
                   5244: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23      millert  5245: if test "${ac_cv_build+set}" = set; then
1.9       millert  5246:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5247: else
1.27      millert  5248:   ac_build_alias=$build_alias
                   5249: test "x$ac_build_alias" = x &&
                   5250:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   5251: test "x$ac_build_alias" = x &&
1.23      millert  5252:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   5253: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   5254:    { (exit 1); exit 1; }; }
1.27      millert  5255: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   5256:   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
                   5257: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23      millert  5258:    { (exit 1); exit 1; }; }
1.9       millert  5259:
1.1       millert  5260: fi
1.27      millert  5261: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   5262: echo "${ECHO_T}$ac_cv_build" >&6; }
                   5263: case $ac_cv_build in
                   5264: *-*-*) ;;
                   5265: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
                   5266: echo "$as_me: error: invalid value of canonical build" >&2;}
                   5267:    { (exit 1); exit 1; }; };;
                   5268: esac
1.23      millert  5269: build=$ac_cv_build
1.27      millert  5270: ac_save_IFS=$IFS; IFS='-'
                   5271: set x $ac_cv_build
                   5272: shift
                   5273: build_cpu=$1
                   5274: build_vendor=$2
                   5275: shift; shift
                   5276: # Remember, the first character of IFS is used to create $*,
                   5277: # except with old shells:
                   5278: build_os=$*
                   5279: IFS=$ac_save_IFS
                   5280: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23      millert  5281:
                   5282:
1.27      millert  5283: { echo "$as_me:$LINENO: checking host system type" >&5
                   5284: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23      millert  5285: if test "${ac_cv_host+set}" = set; then
                   5286:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5287: else
1.27      millert  5288:   if test "x$host_alias" = x; then
                   5289:   ac_cv_host=$ac_cv_build
                   5290: else
                   5291:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   5292:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
                   5293: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23      millert  5294:    { (exit 1); exit 1; }; }
1.27      millert  5295: fi
1.23      millert  5296:
1.1       millert  5297: fi
1.27      millert  5298: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   5299: echo "${ECHO_T}$ac_cv_host" >&6; }
                   5300: case $ac_cv_host in
                   5301: *-*-*) ;;
                   5302: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
                   5303: echo "$as_me: error: invalid value of canonical host" >&2;}
                   5304:    { (exit 1); exit 1; }; };;
                   5305: esac
1.23      millert  5306: host=$ac_cv_host
1.27      millert  5307: ac_save_IFS=$IFS; IFS='-'
                   5308: set x $ac_cv_host
                   5309: shift
                   5310: host_cpu=$1
                   5311: host_vendor=$2
                   5312: shift; shift
                   5313: # Remember, the first character of IFS is used to create $*,
                   5314: # except with old shells:
                   5315: host_os=$*
                   5316: IFS=$ac_save_IFS
                   5317: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1       millert  5318:
1.23      millert  5319:
1.27      millert  5320: { echo "$as_me:$LINENO: checking target system type" >&5
                   5321: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.23      millert  5322: if test "${ac_cv_target+set}" = set; then
                   5323:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5324: else
1.27      millert  5325:   if test "x$target_alias" = x; then
                   5326:   ac_cv_target=$ac_cv_host
                   5327: else
                   5328:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   5329:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
                   5330: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.23      millert  5331:    { (exit 1); exit 1; }; }
1.27      millert  5332: fi
1.23      millert  5333:
                   5334: fi
1.27      millert  5335: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
                   5336: echo "${ECHO_T}$ac_cv_target" >&6; }
                   5337: case $ac_cv_target in
                   5338: *-*-*) ;;
                   5339: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
                   5340: echo "$as_me: error: invalid value of canonical target" >&2;}
                   5341:    { (exit 1); exit 1; }; };;
                   5342: esac
1.23      millert  5343: target=$ac_cv_target
1.27      millert  5344: ac_save_IFS=$IFS; IFS='-'
                   5345: set x $ac_cv_target
                   5346: shift
                   5347: target_cpu=$1
                   5348: target_vendor=$2
                   5349: shift; shift
                   5350: # Remember, the first character of IFS is used to create $*,
                   5351: # except with old shells:
                   5352: target_os=$*
                   5353: IFS=$ac_save_IFS
                   5354: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.23      millert  5355:
                   5356:
                   5357: # The aliases save the names the user supplied, while $host etc.
                   5358: # will get canonicalized.
                   5359: test -n "$target_alias" &&
                   5360:   test "$program_prefix$program_suffix$program_transform_name" = \
                   5361:     NONENONEs,x,x, &&
                   5362:   program_prefix=${target_alias}-
1.27      millert  5363: # Check whether --enable-static was given.
                   5364: if test "${enable_static+set}" = set; then
                   5365:   enableval=$enable_static; p=${PACKAGE-default}
                   5366:     case $enableval in
                   5367:     yes) enable_static=yes ;;
                   5368:     no) enable_static=no ;;
                   5369:     *)
                   5370:      enable_static=no
                   5371:       # Look at the argument we got.  We use all the common list separators.
                   5372:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5373:       for pkg in $enableval; do
                   5374:        IFS="$lt_save_ifs"
                   5375:        if test "X$pkg" = "X$p"; then
                   5376:          enable_static=yes
                   5377:        fi
                   5378:       done
                   5379:       IFS="$lt_save_ifs"
                   5380:       ;;
                   5381:     esac
                   5382: else
                   5383:   enable_static=no
                   5384: fi
1.23      millert  5385:
                   5386:
                   5387:
1.27      millert  5388: # Check whether --enable-shared was given.
                   5389: if test "${enable_shared+set}" = set; then
                   5390:   enableval=$enable_shared; p=${PACKAGE-default}
                   5391:     case $enableval in
                   5392:     yes) enable_shared=yes ;;
                   5393:     no) enable_shared=no ;;
                   5394:     *)
                   5395:       enable_shared=no
                   5396:       # Look at the argument we got.  We use all the common list separators.
                   5397:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5398:       for pkg in $enableval; do
                   5399:        IFS="$lt_save_ifs"
                   5400:        if test "X$pkg" = "X$p"; then
                   5401:          enable_shared=yes
                   5402:        fi
                   5403:       done
                   5404:       IFS="$lt_save_ifs"
                   5405:       ;;
                   5406:     esac
                   5407: else
                   5408:   enable_shared=yes
                   5409: fi
1.25      millert  5410:
                   5411:
1.27      millert  5412: # Check whether --enable-fast-install was given.
                   5413: if test "${enable_fast_install+set}" = set; then
                   5414:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   5415:     case $enableval in
                   5416:     yes) enable_fast_install=yes ;;
                   5417:     no) enable_fast_install=no ;;
                   5418:     *)
                   5419:       enable_fast_install=no
                   5420:       # Look at the argument we got.  We use all the common list separators.
                   5421:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5422:       for pkg in $enableval; do
                   5423:        IFS="$lt_save_ifs"
                   5424:        if test "X$pkg" = "X$p"; then
                   5425:          enable_fast_install=yes
                   5426:        fi
                   5427:       done
                   5428:       IFS="$lt_save_ifs"
                   5429:       ;;
                   5430:     esac
                   5431: else
                   5432:   enable_fast_install=yes
                   5433: fi
1.25      millert  5434:
                   5435:
1.27      millert  5436: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
                   5437: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23      millert  5438: if test "${lt_cv_path_SED+set}" = set; then
                   5439:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5440: else
                   5441:   # Loop through the user's path and test for sed and gsed.
                   5442: # Then use that list of sed's as ones to test for truncation.
                   5443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5444: for as_dir in $PATH
                   5445: do
                   5446:   IFS=$as_save_IFS
                   5447:   test -z "$as_dir" && as_dir=.
                   5448:   for lt_ac_prog in sed gsed; do
                   5449:     for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  5450:       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  5451:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   5452:       fi
                   5453:     done
                   5454:   done
                   5455: done
1.27      millert  5456: IFS=$as_save_IFS
1.23      millert  5457: lt_ac_max=0
                   5458: lt_ac_count=0
                   5459: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   5460: # along with /bin/sed that truncates output.
                   5461: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27      millert  5462:   test ! -f $lt_ac_sed && continue
1.23      millert  5463:   cat /dev/null > conftest.in
                   5464:   lt_ac_count=0
1.27      millert  5465:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23      millert  5466:   # Check for GNU sed and select it if it is found.
                   5467:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   5468:     lt_cv_path_SED=$lt_ac_sed
                   5469:     break
                   5470:   fi
                   5471:   while true; do
                   5472:     cat conftest.in conftest.in >conftest.tmp
                   5473:     mv conftest.tmp conftest.in
                   5474:     cp conftest.in conftest.nl
1.27      millert  5475:     echo >>conftest.nl
1.23      millert  5476:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   5477:     cmp -s conftest.out conftest.nl || break
                   5478:     # 10000 chars as input seems more than enough
                   5479:     test $lt_ac_count -gt 10 && break
                   5480:     lt_ac_count=`expr $lt_ac_count + 1`
                   5481:     if test $lt_ac_count -gt $lt_ac_max; then
                   5482:       lt_ac_max=$lt_ac_count
                   5483:       lt_cv_path_SED=$lt_ac_sed
                   5484:     fi
                   5485:   done
                   5486: done
                   5487:
                   5488: fi
                   5489:
1.25      millert  5490: SED=$lt_cv_path_SED
                   5491:
1.27      millert  5492: { echo "$as_me:$LINENO: result: $SED" >&5
                   5493: echo "${ECHO_T}$SED" >&6; }
1.23      millert  5494:
1.27      millert  5495: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
                   5496: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
                   5497: if test "${ac_cv_path_GREP+set}" = set; then
                   5498:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5499: else
                   5500:   # Extract the first word of "grep ggrep" to use in msg output
                   5501: if test -z "$GREP"; then
                   5502: set dummy grep ggrep; ac_prog_name=$2
                   5503: if test "${ac_cv_path_GREP+set}" = set; then
                   5504:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5505: else
                   5506:   ac_path_GREP_found=false
                   5507: # Loop through the user's path and test for each of PROGNAME-LIST
                   5508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5509: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5510: do
                   5511:   IFS=$as_save_IFS
                   5512:   test -z "$as_dir" && as_dir=.
                   5513:   for ac_prog in grep ggrep; do
                   5514:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5515:     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   5516:     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   5517:     # Check for GNU ac_path_GREP and select it if it is found.
                   5518:   # Check for GNU $ac_path_GREP
                   5519: case `"$ac_path_GREP" --version 2>&1` in
                   5520: *GNU*)
                   5521:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   5522: *)
                   5523:   ac_count=0
                   5524:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5525:   while :
                   5526:   do
                   5527:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5528:     mv "conftest.tmp" "conftest.in"
                   5529:     cp "conftest.in" "conftest.nl"
                   5530:     echo 'GREP' >> "conftest.nl"
                   5531:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5532:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5533:     ac_count=`expr $ac_count + 1`
                   5534:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   5535:       # Best one so far, save it but keep looking for a better one
                   5536:       ac_cv_path_GREP="$ac_path_GREP"
                   5537:       ac_path_GREP_max=$ac_count
                   5538:     fi
                   5539:     # 10*(2^10) chars as input seems more than enough
                   5540:     test $ac_count -gt 10 && break
                   5541:   done
                   5542:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5543: esac
1.25      millert  5544:
                   5545:
1.27      millert  5546:     $ac_path_GREP_found && break 3
                   5547:   done
                   5548: done
1.25      millert  5549:
1.27      millert  5550: done
                   5551: IFS=$as_save_IFS
1.25      millert  5552:
                   5553:
1.27      millert  5554: fi
1.25      millert  5555:
1.27      millert  5556: GREP="$ac_cv_path_GREP"
                   5557: if test -z "$GREP"; then
                   5558:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5559: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5560:    { (exit 1); exit 1; }; }
                   5561: fi
1.25      millert  5562:
1.27      millert  5563: else
                   5564:   ac_cv_path_GREP=$GREP
                   5565: fi
1.25      millert  5566:
                   5567:
1.27      millert  5568: fi
                   5569: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
                   5570: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
                   5571:  GREP="$ac_cv_path_GREP"
1.25      millert  5572:
                   5573:
1.27      millert  5574: { echo "$as_me:$LINENO: checking for egrep" >&5
                   5575: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
                   5576: if test "${ac_cv_path_EGREP+set}" = set; then
                   5577:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5578: else
                   5579:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   5580:    then ac_cv_path_EGREP="$GREP -E"
                   5581:    else
                   5582:      # Extract the first word of "egrep" to use in msg output
                   5583: if test -z "$EGREP"; then
                   5584: set dummy egrep; ac_prog_name=$2
                   5585: if test "${ac_cv_path_EGREP+set}" = set; then
1.23      millert  5586:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5587: else
1.27      millert  5588:   ac_path_EGREP_found=false
                   5589: # Loop through the user's path and test for each of PROGNAME-LIST
                   5590: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5591: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5592: do
                   5593:   IFS=$as_save_IFS
                   5594:   test -z "$as_dir" && as_dir=.
                   5595:   for ac_prog in egrep; do
                   5596:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5597:     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   5598:     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   5599:     # Check for GNU ac_path_EGREP and select it if it is found.
                   5600:   # Check for GNU $ac_path_EGREP
                   5601: case `"$ac_path_EGREP" --version 2>&1` in
                   5602: *GNU*)
                   5603:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   5604: *)
                   5605:   ac_count=0
                   5606:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5607:   while :
                   5608:   do
                   5609:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5610:     mv "conftest.tmp" "conftest.in"
                   5611:     cp "conftest.in" "conftest.nl"
                   5612:     echo 'EGREP' >> "conftest.nl"
                   5613:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5614:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5615:     ac_count=`expr $ac_count + 1`
                   5616:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   5617:       # Best one so far, save it but keep looking for a better one
                   5618:       ac_cv_path_EGREP="$ac_path_EGREP"
                   5619:       ac_path_EGREP_max=$ac_count
1.23      millert  5620:     fi
1.27      millert  5621:     # 10*(2^10) chars as input seems more than enough
                   5622:     test $ac_count -gt 10 && break
                   5623:   done
                   5624:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5625: esac
1.25      millert  5626:
                   5627:
1.27      millert  5628:     $ac_path_EGREP_found && break 3
                   5629:   done
                   5630: done
1.25      millert  5631:
1.27      millert  5632: done
                   5633: IFS=$as_save_IFS
1.25      millert  5634:
                   5635:
1.27      millert  5636: fi
1.25      millert  5637:
1.27      millert  5638: EGREP="$ac_cv_path_EGREP"
                   5639: if test -z "$EGREP"; then
                   5640:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5641: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5642:    { (exit 1); exit 1; }; }
                   5643: fi
1.25      millert  5644:
1.27      millert  5645: else
                   5646:   ac_cv_path_EGREP=$EGREP
                   5647: fi
1.25      millert  5648:
                   5649:
1.27      millert  5650:    fi
                   5651: fi
                   5652: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
                   5653: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
                   5654:  EGREP="$ac_cv_path_EGREP"
1.25      millert  5655:
                   5656:
                   5657:
1.27      millert  5658: # Check whether --with-gnu-ld was given.
1.23      millert  5659: if test "${with_gnu_ld+set}" = set; then
1.27      millert  5660:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23      millert  5661: else
                   5662:   with_gnu_ld=no
1.27      millert  5663: fi
                   5664:
1.23      millert  5665: ac_prog=ld
                   5666: if test "$GCC" = yes; then
                   5667:   # Check if gcc -print-prog-name=ld gives a path.
1.27      millert  5668:   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
                   5669: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23      millert  5670:   case $host in
                   5671:   *-*-mingw*)
                   5672:     # gcc leaves a trailing carriage return which upsets mingw
                   5673:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5674:   *)
                   5675:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5676:   esac
                   5677:   case $ac_prog in
                   5678:     # Accept absolute paths.
                   5679:     [\\/]* | ?:[\\/]*)
                   5680:       re_direlt='/[^/][^/]*/\.\./'
1.25      millert  5681:       # Canonicalize the pathname of ld
1.27      millert  5682:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   5683:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   5684:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23      millert  5685:       done
                   5686:       test -z "$LD" && LD="$ac_prog"
                   5687:       ;;
                   5688:   "")
                   5689:     # If it fails, then pretend we aren't using GCC.
                   5690:     ac_prog=ld
                   5691:     ;;
                   5692:   *)
                   5693:     # If it is relative, then search for the first ld in PATH.
                   5694:     with_gnu_ld=unknown
                   5695:     ;;
                   5696:   esac
                   5697: elif test "$with_gnu_ld" = yes; then
1.27      millert  5698:   { echo "$as_me:$LINENO: checking for GNU ld" >&5
                   5699: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23      millert  5700: else
1.27      millert  5701:   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   5702: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23      millert  5703: fi
                   5704: if test "${lt_cv_path_LD+set}" = set; then
                   5705:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5706: else
                   5707:   if test -z "$LD"; then
                   5708:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5709:   for ac_dir in $PATH; do
                   5710:     IFS="$lt_save_ifs"
                   5711:     test -z "$ac_dir" && ac_dir=.
                   5712:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5713:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5714:       # Check to see if the program is GNU ld.  I'd rather use --version,
1.27      millert  5715:       # but apparently some variants of GNU ld only accept -v.
1.23      millert  5716:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5717:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5718:       *GNU* | *'with BFD'*)
                   5719:        test "$with_gnu_ld" != no && break
                   5720:        ;;
                   5721:       *)
                   5722:        test "$with_gnu_ld" != yes && break
                   5723:        ;;
                   5724:       esac
                   5725:     fi
                   5726:   done
                   5727:   IFS="$lt_save_ifs"
                   5728: else
                   5729:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5730: fi
                   5731: fi
                   5732:
                   5733: LD="$lt_cv_path_LD"
                   5734: if test -n "$LD"; then
1.27      millert  5735:   { echo "$as_me:$LINENO: result: $LD" >&5
                   5736: echo "${ECHO_T}$LD" >&6; }
1.23      millert  5737: else
1.27      millert  5738:   { echo "$as_me:$LINENO: result: no" >&5
                   5739: echo "${ECHO_T}no" >&6; }
1.23      millert  5740: fi
                   5741: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   5742: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   5743:    { (exit 1); exit 1; }; }
1.27      millert  5744: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   5745: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23      millert  5746: if test "${lt_cv_prog_gnu_ld+set}" = set; then
                   5747:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5748: else
1.27      millert  5749:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25      millert  5750: case `$LD -v 2>&1 </dev/null` in
1.23      millert  5751: *GNU* | *'with BFD'*)
                   5752:   lt_cv_prog_gnu_ld=yes
                   5753:   ;;
                   5754: *)
                   5755:   lt_cv_prog_gnu_ld=no
                   5756:   ;;
                   5757: esac
                   5758: fi
1.27      millert  5759: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
                   5760: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23      millert  5761: with_gnu_ld=$lt_cv_prog_gnu_ld
                   5762:
                   5763:
1.27      millert  5764: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
                   5765: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
                   5766: if test "${lt_cv_ld_reload_flag+set}" = set; then
                   5767:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5768: else
                   5769:   lt_cv_ld_reload_flag='-r'
                   5770: fi
                   5771: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
                   5772: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
                   5773: reload_flag=$lt_cv_ld_reload_flag
                   5774: case $reload_flag in
                   5775: "" | " "*) ;;
                   5776: *) reload_flag=" $reload_flag" ;;
                   5777: esac
                   5778: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5779: case $host_os in
                   5780:   darwin*)
                   5781:     if test "$GCC" = yes; then
                   5782:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   5783:     else
                   5784:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5785:     fi
                   5786:     ;;
                   5787: esac
1.25      millert  5788:
1.27      millert  5789: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   5790: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23      millert  5791: if test "${lt_cv_path_NM+set}" = set; then
                   5792:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5793: else
                   5794:   if test -n "$NM"; then
                   5795:   # Let the user override the test.
                   5796:   lt_cv_path_NM="$NM"
                   5797: else
1.27      millert  5798:   lt_nm_to_check="${ac_tool_prefix}nm"
                   5799:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   5800:     lt_nm_to_check="$lt_nm_to_check nm"
                   5801:   fi
                   5802:   for lt_tmp_nm in $lt_nm_to_check; do
                   5803:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5804:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   5805:       IFS="$lt_save_ifs"
                   5806:       test -z "$ac_dir" && ac_dir=.
                   5807:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   5808:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   5809:        # Check to see if the nm accepts a BSD-compat flag.
                   5810:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   5811:        #   nm: unknown option "B" ignored
                   5812:        # Tru64's nm complains that /dev/null is an invalid object file
                   5813:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   5814:        */dev/null* | *'Invalid file or object type'*)
                   5815:          lt_cv_path_NM="$tmp_nm -B"
1.23      millert  5816:          break
                   5817:          ;;
                   5818:        *)
1.27      millert  5819:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   5820:          */dev/null*)
                   5821:            lt_cv_path_NM="$tmp_nm -p"
                   5822:            break
                   5823:            ;;
                   5824:          *)
                   5825:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   5826:            continue # so that we can try to find one that supports BSD flags
                   5827:            ;;
                   5828:          esac
1.23      millert  5829:          ;;
                   5830:        esac
1.27      millert  5831:       fi
                   5832:     done
                   5833:     IFS="$lt_save_ifs"
1.23      millert  5834:   done
                   5835:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   5836: fi
                   5837: fi
1.27      millert  5838: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
                   5839: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23      millert  5840: NM="$lt_cv_path_NM"
1.25      millert  5841:
1.27      millert  5842: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   5843: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23      millert  5844: LN_S=$as_ln_s
                   5845: if test "$LN_S" = "ln -s"; then
1.27      millert  5846:   { echo "$as_me:$LINENO: result: yes" >&5
                   5847: echo "${ECHO_T}yes" >&6; }
1.25      millert  5848: else
1.27      millert  5849:   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   5850: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25      millert  5851: fi
                   5852:
1.27      millert  5853: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
                   5854: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23      millert  5855: if test "${lt_cv_deplibs_check_method+set}" = set; then
                   5856:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5857: else
                   5858:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   5859: lt_cv_file_magic_test_file=
                   5860: lt_cv_deplibs_check_method='unknown'
                   5861: # Need to set the preceding variable on all platforms that support
                   5862: # interlibrary dependencies.
                   5863: # 'none' -- dependencies not supported.
                   5864: # `unknown' -- same as none, but documents that we really don't know.
                   5865: # 'pass_all' -- all dependencies passed with no checks.
                   5866: # 'test_compile' -- check by making test program.
                   5867: # 'file_magic [[regex]]' -- check by looking for files in library path
                   5868: # which responds to the $file_magic_cmd with a given extended regex.
                   5869: # If you have `file' or equivalent on your system and you're not sure
                   5870: # whether `pass_all' will *always* work, you probably want this one.
                   5871:
                   5872: case $host_os in
                   5873: aix4* | aix5*)
                   5874:   lt_cv_deplibs_check_method=pass_all
                   5875:   ;;
                   5876:
                   5877: beos*)
                   5878:   lt_cv_deplibs_check_method=pass_all
                   5879:   ;;
                   5880:
1.25      millert  5881: bsdi[45]*)
1.23      millert  5882:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   5883:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   5884:   lt_cv_file_magic_test_file=/shlib/libc.so
                   5885:   ;;
                   5886:
1.25      millert  5887: cygwin*)
                   5888:   # func_win32_libid is a shell function defined in ltmain.sh
1.23      millert  5889:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25      millert  5890:   lt_cv_file_magic_cmd='func_win32_libid'
                   5891:   ;;
                   5892:
1.27      millert  5893: mingw* | pw32*)
1.25      millert  5894:   # Base MSYS/MinGW do not provide the 'file' command needed by
1.27      millert  5895:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   5896:   # unless we find 'file', for example because we are cross-compiling.
                   5897:   if ( file / ) >/dev/null 2>&1; then
                   5898:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   5899:     lt_cv_file_magic_cmd='func_win32_libid'
                   5900:   else
                   5901:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   5902:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   5903:   fi
1.23      millert  5904:   ;;
                   5905:
                   5906: darwin* | rhapsody*)
1.25      millert  5907:   lt_cv_deplibs_check_method=pass_all
                   5908:   ;;
1.23      millert  5909:
1.27      millert  5910: freebsd* | dragonfly*)
                   5911:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  5912:     case $host_cpu in
                   5913:     i*86 )
                   5914:       # Not sure whether the presence of OpenBSD here was a mistake.
                   5915:       # Let's accept both of them until this is cleared up.
1.27      millert  5916:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23      millert  5917:       lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  5918:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23      millert  5919:       ;;
                   5920:     esac
                   5921:   else
                   5922:     lt_cv_deplibs_check_method=pass_all
                   5923:   fi
                   5924:   ;;
                   5925:
                   5926: gnu*)
                   5927:   lt_cv_deplibs_check_method=pass_all
                   5928:   ;;
                   5929:
                   5930: hpux10.20* | hpux11*)
                   5931:   lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  5932:   case $host_cpu in
1.23      millert  5933:   ia64*)
                   5934:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   5935:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   5936:     ;;
                   5937:   hppa*64*)
                   5938:     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]'
                   5939:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   5940:     ;;
                   5941:   *)
                   5942:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   5943:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   5944:     ;;
                   5945:   esac
                   5946:   ;;
                   5947:
1.27      millert  5948: interix[3-9]*)
                   5949:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   5950:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   5951:   ;;
                   5952:
1.23      millert  5953: irix5* | irix6* | nonstopux*)
1.25      millert  5954:   case $LD in
                   5955:   *-32|*"-32 ") libmagic=32-bit;;
                   5956:   *-n32|*"-n32 ") libmagic=N32;;
                   5957:   *-64|*"-64 ") libmagic=64-bit;;
                   5958:   *) libmagic=never-match;;
1.23      millert  5959:   esac
                   5960:   lt_cv_deplibs_check_method=pass_all
                   5961:   ;;
                   5962:
                   5963: # This must be Linux ELF.
1.27      millert  5964: linux* | k*bsd*-gnu)
1.25      millert  5965:   lt_cv_deplibs_check_method=pass_all
1.23      millert  5966:   ;;
                   5967:
1.27      millert  5968: netbsd*)
                   5969:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  5970:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   5971:   else
                   5972:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   5973:   fi
                   5974:   ;;
                   5975:
                   5976: newos6*)
                   5977:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   5978:   lt_cv_file_magic_cmd=/usr/bin/file
                   5979:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   5980:   ;;
                   5981:
1.27      millert  5982: nto-qnx*)
                   5983:   lt_cv_deplibs_check_method=unknown
1.23      millert  5984:   ;;
                   5985:
                   5986: openbsd*)
1.27      millert  5987:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25      millert  5988:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23      millert  5989:   else
1.25      millert  5990:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23      millert  5991:   fi
                   5992:   ;;
                   5993:
                   5994: osf3* | osf4* | osf5*)
                   5995:   lt_cv_deplibs_check_method=pass_all
                   5996:   ;;
                   5997:
1.27      millert  5998: rdos*)
1.23      millert  5999:   lt_cv_deplibs_check_method=pass_all
                   6000:   ;;
                   6001:
                   6002: solaris*)
                   6003:   lt_cv_deplibs_check_method=pass_all
                   6004:   ;;
                   6005:
1.27      millert  6006: sysv4 | sysv4.3*)
1.23      millert  6007:   case $host_vendor in
                   6008:   motorola)
                   6009:     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  6010:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23      millert  6011:     ;;
                   6012:   ncr)
                   6013:     lt_cv_deplibs_check_method=pass_all
                   6014:     ;;
                   6015:   sequent)
                   6016:     lt_cv_file_magic_cmd='/bin/file'
                   6017:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   6018:     ;;
                   6019:   sni)
                   6020:     lt_cv_file_magic_cmd='/bin/file'
                   6021:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   6022:     lt_cv_file_magic_test_file=/lib/libc.so
                   6023:     ;;
                   6024:   siemens)
                   6025:     lt_cv_deplibs_check_method=pass_all
                   6026:     ;;
1.27      millert  6027:   pc)
                   6028:     lt_cv_deplibs_check_method=pass_all
                   6029:     ;;
1.23      millert  6030:   esac
                   6031:   ;;
                   6032:
1.27      millert  6033: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25      millert  6034:   lt_cv_deplibs_check_method=pass_all
                   6035:   ;;
1.23      millert  6036: esac
                   6037:
                   6038: fi
1.27      millert  6039: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
                   6040: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23      millert  6041: file_magic_cmd=$lt_cv_file_magic_cmd
                   6042: deplibs_check_method=$lt_cv_deplibs_check_method
                   6043: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   6044:
                   6045:
                   6046:
                   6047:
1.27      millert  6048: # If no C compiler was specified, use CC.
                   6049: LTCC=${LTCC-"$CC"}
1.23      millert  6050:
1.27      millert  6051: # If no C compiler flags were specified, use CFLAGS.
                   6052: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  6053:
1.27      millert  6054: # Allow CC to be a program name with arguments.
                   6055: compiler=$CC
1.23      millert  6056:
1.27      millert  6057: # Check whether --enable-libtool-lock was given.
                   6058: if test "${enable_libtool_lock+set}" = set; then
                   6059:   enableval=$enable_libtool_lock;
                   6060: fi
1.23      millert  6061:
1.27      millert  6062: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23      millert  6063:
1.27      millert  6064: # Some flags need to be propagated to the compiler or linker for good
                   6065: # libtool support.
                   6066: case $host in
                   6067: ia64-*-hpux*)
                   6068:   # Find out which ABI we are using.
                   6069:   echo 'int i;' > conftest.$ac_ext
                   6070:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6071:   (eval $ac_compile) 2>&5
                   6072:   ac_status=$?
                   6073:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6074:   (exit $ac_status); }; then
                   6075:     case `/usr/bin/file conftest.$ac_objext` in
                   6076:     *ELF-32*)
                   6077:       HPUX_IA64_MODE="32"
                   6078:       ;;
                   6079:     *ELF-64*)
                   6080:       HPUX_IA64_MODE="64"
                   6081:       ;;
                   6082:     esac
                   6083:   fi
                   6084:   rm -rf conftest*
                   6085:   ;;
                   6086: *-*-irix6*)
                   6087:   # Find out which ABI we are using.
1.32      millert  6088:   echo '#line 6088 "configure"' > conftest.$ac_ext
1.27      millert  6089:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6090:   (eval $ac_compile) 2>&5
                   6091:   ac_status=$?
                   6092:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6093:   (exit $ac_status); }; then
                   6094:    if test "$lt_cv_prog_gnu_ld" = yes; then
                   6095:     case `/usr/bin/file conftest.$ac_objext` in
                   6096:     *32-bit*)
                   6097:       LD="${LD-ld} -melf32bsmip"
                   6098:       ;;
                   6099:     *N32*)
                   6100:       LD="${LD-ld} -melf32bmipn32"
                   6101:       ;;
                   6102:     *64-bit*)
                   6103:       LD="${LD-ld} -melf64bmip"
                   6104:       ;;
                   6105:     esac
                   6106:    else
                   6107:     case `/usr/bin/file conftest.$ac_objext` in
                   6108:     *32-bit*)
                   6109:       LD="${LD-ld} -32"
                   6110:       ;;
                   6111:     *N32*)
                   6112:       LD="${LD-ld} -n32"
                   6113:       ;;
                   6114:     *64-bit*)
                   6115:       LD="${LD-ld} -64"
                   6116:       ;;
                   6117:     esac
                   6118:    fi
                   6119:   fi
                   6120:   rm -rf conftest*
                   6121:   ;;
1.23      millert  6122:
1.27      millert  6123: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   6124: s390*-*linux*|sparc*-*linux*)
                   6125:   # Find out which ABI we are using.
                   6126:   echo 'int i;' > conftest.$ac_ext
                   6127:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6128:   (eval $ac_compile) 2>&5
                   6129:   ac_status=$?
                   6130:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6131:   (exit $ac_status); }; then
                   6132:     case `/usr/bin/file conftest.o` in
                   6133:     *32-bit*)
                   6134:       case $host in
                   6135:         x86_64-*kfreebsd*-gnu)
                   6136:           LD="${LD-ld} -m elf_i386_fbsd"
                   6137:           ;;
                   6138:         x86_64-*linux*)
                   6139:           LD="${LD-ld} -m elf_i386"
                   6140:           ;;
                   6141:         ppc64-*linux*|powerpc64-*linux*)
                   6142:           LD="${LD-ld} -m elf32ppclinux"
                   6143:           ;;
                   6144:         s390x-*linux*)
                   6145:           LD="${LD-ld} -m elf_s390"
                   6146:           ;;
                   6147:         sparc64-*linux*)
                   6148:           LD="${LD-ld} -m elf32_sparc"
                   6149:           ;;
                   6150:       esac
                   6151:       ;;
                   6152:     *64-bit*)
                   6153:       case $host in
                   6154:         x86_64-*kfreebsd*-gnu)
                   6155:           LD="${LD-ld} -m elf_x86_64_fbsd"
                   6156:           ;;
                   6157:         x86_64-*linux*)
                   6158:           LD="${LD-ld} -m elf_x86_64"
                   6159:           ;;
                   6160:         ppc*-*linux*|powerpc*-*linux*)
                   6161:           LD="${LD-ld} -m elf64ppc"
                   6162:           ;;
                   6163:         s390*-*linux*)
                   6164:           LD="${LD-ld} -m elf64_s390"
                   6165:           ;;
                   6166:         sparc*-*linux*)
                   6167:           LD="${LD-ld} -m elf64_sparc"
                   6168:           ;;
                   6169:       esac
                   6170:       ;;
                   6171:     esac
                   6172:   fi
                   6173:   rm -rf conftest*
                   6174:   ;;
1.25      millert  6175:
1.27      millert  6176: *-*-sco3.2v5*)
                   6177:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   6178:   SAVE_CFLAGS="$CFLAGS"
                   6179:   CFLAGS="$CFLAGS -belf"
                   6180:   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   6181: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
                   6182: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23      millert  6183:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6184: else
1.27      millert  6185:   ac_ext=c
                   6186: ac_cpp='$CPP $CPPFLAGS'
                   6187: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6188: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6189: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   6190:
                   6191:      cat >conftest.$ac_ext <<_ACEOF
                   6192: /* confdefs.h.  */
                   6193: _ACEOF
                   6194: cat confdefs.h >>conftest.$ac_ext
                   6195: cat >>conftest.$ac_ext <<_ACEOF
                   6196: /* end confdefs.h.  */
                   6197:
                   6198: int
                   6199: main ()
                   6200: {
1.23      millert  6201:
1.27      millert  6202:   ;
                   6203:   return 0;
                   6204: }
                   6205: _ACEOF
                   6206: rm -f conftest.$ac_objext conftest$ac_exeext
                   6207: if { (ac_try="$ac_link"
                   6208: case "(($ac_try" in
                   6209:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6210:   *) ac_try_echo=$ac_try;;
                   6211: esac
                   6212: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6213:   (eval "$ac_link") 2>conftest.er1
                   6214:   ac_status=$?
                   6215:   grep -v '^ *+' conftest.er1 >conftest.err
                   6216:   rm -f conftest.er1
                   6217:   cat conftest.err >&5
                   6218:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6219:   (exit $ac_status); } && {
                   6220:         test -z "$ac_c_werror_flag" ||
                   6221:         test ! -s conftest.err
                   6222:        } && test -s conftest$ac_exeext &&
                   6223:        $as_test_x conftest$ac_exeext; then
                   6224:   lt_cv_cc_needs_belf=yes
1.25      millert  6225: else
1.27      millert  6226:   echo "$as_me: failed program was:" >&5
                   6227: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6228:
1.27      millert  6229:        lt_cv_cc_needs_belf=no
1.25      millert  6230: fi
1.23      millert  6231:
1.27      millert  6232: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   6233:       conftest$ac_exeext conftest.$ac_ext
                   6234:      ac_ext=c
                   6235: ac_cpp='$CPP $CPPFLAGS'
                   6236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  6239:
                   6240: fi
1.27      millert  6241: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   6242: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
                   6243:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   6244:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   6245:     CFLAGS="$SAVE_CFLAGS"
                   6246:   fi
                   6247:   ;;
                   6248: sparc*-*solaris*)
                   6249:   # Find out which ABI we are using.
                   6250:   echo 'int i;' > conftest.$ac_ext
                   6251:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6252:   (eval $ac_compile) 2>&5
                   6253:   ac_status=$?
                   6254:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6255:   (exit $ac_status); }; then
                   6256:     case `/usr/bin/file conftest.o` in
                   6257:     *64-bit*)
                   6258:       case $lt_cv_prog_gnu_ld in
                   6259:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
                   6260:       *)    LD="${LD-ld} -64" ;;
                   6261:       esac
                   6262:       ;;
                   6263:     esac
                   6264:   fi
                   6265:   rm -rf conftest*
                   6266:   ;;
1.25      millert  6267:
                   6268:
1.27      millert  6269: esac
1.25      millert  6270:
1.27      millert  6271: need_locks="$enable_libtool_lock"
1.25      millert  6272:
                   6273:
                   6274:
1.27      millert  6275: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6276: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
                   6277: if test "${ac_cv_header_stdc+set}" = set; then
                   6278:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6279: else
                   6280:   cat >conftest.$ac_ext <<_ACEOF
                   6281: /* confdefs.h.  */
                   6282: _ACEOF
                   6283: cat confdefs.h >>conftest.$ac_ext
                   6284: cat >>conftest.$ac_ext <<_ACEOF
                   6285: /* end confdefs.h.  */
                   6286: #include <stdlib.h>
                   6287: #include <stdarg.h>
                   6288: #include <string.h>
                   6289: #include <float.h>
1.23      millert  6290:
1.27      millert  6291: int
                   6292: main ()
                   6293: {
1.23      millert  6294:
1.27      millert  6295:   ;
                   6296:   return 0;
                   6297: }
                   6298: _ACEOF
                   6299: rm -f conftest.$ac_objext
                   6300: if { (ac_try="$ac_compile"
                   6301: case "(($ac_try" in
                   6302:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6303:   *) ac_try_echo=$ac_try;;
                   6304: esac
                   6305: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6306:   (eval "$ac_compile") 2>conftest.er1
                   6307:   ac_status=$?
                   6308:   grep -v '^ *+' conftest.er1 >conftest.err
                   6309:   rm -f conftest.er1
                   6310:   cat conftest.err >&5
                   6311:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6312:   (exit $ac_status); } && {
                   6313:         test -z "$ac_c_werror_flag" ||
                   6314:         test ! -s conftest.err
                   6315:        } && test -s conftest.$ac_objext; then
                   6316:   ac_cv_header_stdc=yes
                   6317: else
                   6318:   echo "$as_me: failed program was:" >&5
                   6319: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6320:
1.27      millert  6321:        ac_cv_header_stdc=no
                   6322: fi
1.23      millert  6323:
1.27      millert  6324: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  6325:
1.27      millert  6326: if test $ac_cv_header_stdc = yes; then
                   6327:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   6328:   cat >conftest.$ac_ext <<_ACEOF
                   6329: /* confdefs.h.  */
                   6330: _ACEOF
                   6331: cat confdefs.h >>conftest.$ac_ext
                   6332: cat >>conftest.$ac_ext <<_ACEOF
                   6333: /* end confdefs.h.  */
                   6334: #include <string.h>
1.23      millert  6335:
1.27      millert  6336: _ACEOF
                   6337: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6338:   $EGREP "memchr" >/dev/null 2>&1; then
                   6339:   :
1.25      millert  6340: else
1.27      millert  6341:   ac_cv_header_stdc=no
1.25      millert  6342: fi
1.27      millert  6343: rm -f conftest*
1.23      millert  6344:
1.25      millert  6345: fi
1.23      millert  6346:
1.27      millert  6347: if test $ac_cv_header_stdc = yes; then
                   6348:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   6349:   cat >conftest.$ac_ext <<_ACEOF
                   6350: /* confdefs.h.  */
                   6351: _ACEOF
                   6352: cat confdefs.h >>conftest.$ac_ext
                   6353: cat >>conftest.$ac_ext <<_ACEOF
                   6354: /* end confdefs.h.  */
                   6355: #include <stdlib.h>
                   6356:
                   6357: _ACEOF
                   6358: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6359:   $EGREP "free" >/dev/null 2>&1; then
                   6360:   :
1.25      millert  6361: else
1.27      millert  6362:   ac_cv_header_stdc=no
1.23      millert  6363: fi
1.27      millert  6364: rm -f conftest*
1.23      millert  6365:
                   6366: fi
                   6367:
1.27      millert  6368: if test $ac_cv_header_stdc = yes; then
                   6369:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6370:   if test "$cross_compiling" = yes; then
                   6371:   :
                   6372: else
                   6373:   cat >conftest.$ac_ext <<_ACEOF
                   6374: /* confdefs.h.  */
                   6375: _ACEOF
                   6376: cat confdefs.h >>conftest.$ac_ext
                   6377: cat >>conftest.$ac_ext <<_ACEOF
                   6378: /* end confdefs.h.  */
                   6379: #include <ctype.h>
                   6380: #include <stdlib.h>
                   6381: #if ((' ' & 0x0FF) == 0x020)
                   6382: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6383: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6384: #else
                   6385: # define ISLOWER(c) \
                   6386:                   (('a' <= (c) && (c) <= 'i') \
                   6387:                     || ('j' <= (c) && (c) <= 'r') \
                   6388:                     || ('s' <= (c) && (c) <= 'z'))
                   6389: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6390: #endif
1.25      millert  6391:
1.27      millert  6392: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   6393: int
                   6394: main ()
                   6395: {
                   6396:   int i;
                   6397:   for (i = 0; i < 256; i++)
                   6398:     if (XOR (islower (i), ISLOWER (i))
                   6399:        || toupper (i) != TOUPPER (i))
                   6400:       return 2;
                   6401:   return 0;
                   6402: }
                   6403: _ACEOF
                   6404: rm -f conftest$ac_exeext
                   6405: if { (ac_try="$ac_link"
                   6406: case "(($ac_try" in
                   6407:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6408:   *) ac_try_echo=$ac_try;;
                   6409: esac
                   6410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6411:   (eval "$ac_link") 2>&5
                   6412:   ac_status=$?
                   6413:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6414:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   6415:   { (case "(($ac_try" in
                   6416:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6417:   *) ac_try_echo=$ac_try;;
                   6418: esac
                   6419: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6420:   (eval "$ac_try") 2>&5
                   6421:   ac_status=$?
                   6422:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6423:   (exit $ac_status); }; }; then
                   6424:   :
1.25      millert  6425: else
1.27      millert  6426:   echo "$as_me: program exited with status $ac_status" >&5
                   6427: echo "$as_me: failed program was:" >&5
                   6428: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6429:
1.27      millert  6430: ( exit $ac_status )
                   6431: ac_cv_header_stdc=no
1.25      millert  6432: fi
1.27      millert  6433: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23      millert  6434: fi
                   6435:
                   6436:
                   6437: fi
                   6438: fi
1.27      millert  6439: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   6440: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
                   6441: if test $ac_cv_header_stdc = yes; then
                   6442:
                   6443: cat >>confdefs.h <<\_ACEOF
                   6444: #define STDC_HEADERS 1
                   6445: _ACEOF
1.23      millert  6446:
                   6447: fi
                   6448:
1.27      millert  6449: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23      millert  6450:
                   6451:
                   6452:
                   6453:
                   6454:
                   6455:
                   6456:
                   6457:
                   6458:
1.27      millert  6459: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   6460:                  inttypes.h stdint.h unistd.h
                   6461: do
                   6462: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6463: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6464: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6465: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6466:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6467: else
                   6468:   cat >conftest.$ac_ext <<_ACEOF
                   6469: /* confdefs.h.  */
                   6470: _ACEOF
                   6471: cat confdefs.h >>conftest.$ac_ext
                   6472: cat >>conftest.$ac_ext <<_ACEOF
                   6473: /* end confdefs.h.  */
                   6474: $ac_includes_default
1.23      millert  6475:
1.27      millert  6476: #include <$ac_header>
                   6477: _ACEOF
                   6478: rm -f conftest.$ac_objext
                   6479: if { (ac_try="$ac_compile"
                   6480: case "(($ac_try" in
                   6481:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6482:   *) ac_try_echo=$ac_try;;
                   6483: esac
                   6484: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6485:   (eval "$ac_compile") 2>conftest.er1
                   6486:   ac_status=$?
                   6487:   grep -v '^ *+' conftest.er1 >conftest.err
                   6488:   rm -f conftest.er1
                   6489:   cat conftest.err >&5
                   6490:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6491:   (exit $ac_status); } && {
                   6492:         test -z "$ac_c_werror_flag" ||
                   6493:         test ! -s conftest.err
                   6494:        } && test -s conftest.$ac_objext; then
                   6495:   eval "$as_ac_Header=yes"
                   6496: else
                   6497:   echo "$as_me: failed program was:" >&5
                   6498: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6499:
1.27      millert  6500:        eval "$as_ac_Header=no"
                   6501: fi
1.23      millert  6502:
1.27      millert  6503: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6504: fi
                   6505: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6506:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6507: echo "${ECHO_T}$ac_res" >&6; }
                   6508: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6509:   cat >>confdefs.h <<_ACEOF
                   6510: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6511: _ACEOF
1.23      millert  6512:
1.27      millert  6513: fi
1.23      millert  6514:
1.27      millert  6515: done
1.23      millert  6516:
                   6517:
                   6518:
1.27      millert  6519: for ac_header in dlfcn.h
                   6520: do
                   6521: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6522: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6523:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6524: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6525: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6526:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6527: fi
                   6528: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6529:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6530: echo "${ECHO_T}$ac_res" >&6; }
                   6531: else
                   6532:   # Is the header compilable?
                   6533: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   6534: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   6535: cat >conftest.$ac_ext <<_ACEOF
                   6536: /* confdefs.h.  */
                   6537: _ACEOF
                   6538: cat confdefs.h >>conftest.$ac_ext
                   6539: cat >>conftest.$ac_ext <<_ACEOF
                   6540: /* end confdefs.h.  */
                   6541: $ac_includes_default
                   6542: #include <$ac_header>
                   6543: _ACEOF
                   6544: rm -f conftest.$ac_objext
                   6545: if { (ac_try="$ac_compile"
                   6546: case "(($ac_try" in
                   6547:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6548:   *) ac_try_echo=$ac_try;;
                   6549: esac
                   6550: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6551:   (eval "$ac_compile") 2>conftest.er1
                   6552:   ac_status=$?
                   6553:   grep -v '^ *+' conftest.er1 >conftest.err
                   6554:   rm -f conftest.er1
                   6555:   cat conftest.err >&5
                   6556:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6557:   (exit $ac_status); } && {
                   6558:         test -z "$ac_c_werror_flag" ||
                   6559:         test ! -s conftest.err
                   6560:        } && test -s conftest.$ac_objext; then
                   6561:   ac_header_compiler=yes
                   6562: else
                   6563:   echo "$as_me: failed program was:" >&5
                   6564: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6565:
1.27      millert  6566:        ac_header_compiler=no
                   6567: fi
1.23      millert  6568:
1.27      millert  6569: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6570: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   6571: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  6572:
1.27      millert  6573: # Is the header present?
                   6574: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   6575: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   6576: cat >conftest.$ac_ext <<_ACEOF
                   6577: /* confdefs.h.  */
                   6578: _ACEOF
                   6579: cat confdefs.h >>conftest.$ac_ext
                   6580: cat >>conftest.$ac_ext <<_ACEOF
                   6581: /* end confdefs.h.  */
                   6582: #include <$ac_header>
                   6583: _ACEOF
                   6584: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   6585: case "(($ac_try" in
                   6586:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6587:   *) ac_try_echo=$ac_try;;
                   6588: esac
                   6589: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6590:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   6591:   ac_status=$?
                   6592:   grep -v '^ *+' conftest.er1 >conftest.err
                   6593:   rm -f conftest.er1
                   6594:   cat conftest.err >&5
                   6595:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6596:   (exit $ac_status); } >/dev/null && {
                   6597:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   6598:         test ! -s conftest.err
                   6599:        }; then
                   6600:   ac_header_preproc=yes
                   6601: else
                   6602:   echo "$as_me: failed program was:" >&5
                   6603: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6604:
1.27      millert  6605:   ac_header_preproc=no
                   6606: fi
1.23      millert  6607:
1.27      millert  6608: rm -f conftest.err conftest.$ac_ext
                   6609: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   6610: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  6611:
1.27      millert  6612: # So?  What about this header?
                   6613: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   6614:   yes:no: )
                   6615:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   6616: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   6617:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   6618: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   6619:     ac_header_preproc=yes
                   6620:     ;;
                   6621:   no:yes:* )
                   6622:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   6623: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   6624:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   6625: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   6626:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   6627: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   6628:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   6629: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   6630:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   6631: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   6632:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   6633: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.23      millert  6634:
1.27      millert  6635:     ;;
                   6636: esac
                   6637: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6638: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6639: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  6640:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6641: else
1.27      millert  6642:   eval "$as_ac_Header=\$ac_header_preproc"
                   6643: fi
                   6644: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6645:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6646: echo "${ECHO_T}$ac_res" >&6; }
                   6647:
                   6648: fi
                   6649: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6650:   cat >>confdefs.h <<_ACEOF
                   6651: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6652: _ACEOF
                   6653:
                   6654: fi
1.23      millert  6655:
1.27      millert  6656: done
1.23      millert  6657:
                   6658:
1.27      millert  6659: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1.23      millert  6660:
1.27      millert  6661: # find the maximum length of command line arguments
                   6662: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
                   6663: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
                   6664: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
                   6665:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6666: else
                   6667:     i=0
                   6668:   teststring="ABCD"
                   6669:
                   6670:   case $build_os in
                   6671:   msdosdjgpp*)
                   6672:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   6673:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   6674:     # during glob expansion).  Even if it were fixed, the result of this
                   6675:     # check would be larger than it should be.
                   6676:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   6677:     ;;
                   6678:
                   6679:   gnu*)
                   6680:     # Under GNU Hurd, this test is not required because there is
                   6681:     # no limit to the length of command line arguments.
                   6682:     # Libtool will interpret -1 as no limit whatsoever
                   6683:     lt_cv_sys_max_cmd_len=-1;
                   6684:     ;;
                   6685:
                   6686:   cygwin* | mingw*)
                   6687:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   6688:     # about 5 minutes as the teststring grows exponentially.
                   6689:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   6690:     # you end up with a "frozen" computer, even though with patience
                   6691:     # the test eventually succeeds (with a max line length of 256k).
                   6692:     # Instead, let's just punt: use the minimum linelength reported by
                   6693:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   6694:     lt_cv_sys_max_cmd_len=8192;
                   6695:     ;;
                   6696:
                   6697:   amigaos*)
                   6698:     # On AmigaOS with pdksh, this test takes hours, literally.
                   6699:     # So we just punt and use a minimum line length of 8192.
                   6700:     lt_cv_sys_max_cmd_len=8192;
                   6701:     ;;
                   6702:
                   6703:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   6704:     # This has been around since 386BSD, at least.  Likely further.
                   6705:     if test -x /sbin/sysctl; then
                   6706:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   6707:     elif test -x /usr/sbin/sysctl; then
                   6708:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   6709:     else
                   6710:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   6711:     fi
                   6712:     # And add a safety zone
                   6713:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6714:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6715:     ;;
                   6716:
                   6717:   interix*)
                   6718:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   6719:     lt_cv_sys_max_cmd_len=196608
                   6720:     ;;
                   6721:
                   6722:   osf*)
                   6723:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   6724:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   6725:     # nice to cause kernel panics so lets avoid the loop below.
                   6726:     # First set a reasonable default.
                   6727:     lt_cv_sys_max_cmd_len=16384
                   6728:     #
                   6729:     if test -x /sbin/sysconfig; then
                   6730:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   6731:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   6732:       esac
                   6733:     fi
                   6734:     ;;
                   6735:   sco3.2v5*)
                   6736:     lt_cv_sys_max_cmd_len=102400
                   6737:     ;;
                   6738:   sysv5* | sco5v6* | sysv4.2uw2*)
                   6739:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   6740:     if test -n "$kargmax"; then
                   6741:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
                   6742:     else
                   6743:       lt_cv_sys_max_cmd_len=32768
                   6744:     fi
                   6745:     ;;
                   6746:   *)
                   6747:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   6748:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   6749:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6750:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6751:     else
                   6752:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   6753:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
                   6754:               = "XX$teststring") >/dev/null 2>&1 &&
                   6755:              new_result=`expr "X$teststring" : ".*" 2>&1` &&
                   6756:              lt_cv_sys_max_cmd_len=$new_result &&
                   6757:              test $i != 17 # 1/2 MB should be enough
                   6758:       do
                   6759:         i=`expr $i + 1`
                   6760:         teststring=$teststring$teststring
                   6761:       done
                   6762:       teststring=
                   6763:       # Add a significant safety factor because C++ compilers can tack on massive
                   6764:       # amounts of additional arguments before passing them to the linker.
                   6765:       # It appears as though 1/2 is a usable value.
                   6766:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   6767:     fi
                   6768:     ;;
                   6769:   esac
                   6770:
                   6771: fi
                   6772:
                   6773: if test -n $lt_cv_sys_max_cmd_len ; then
                   6774:   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
                   6775: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
                   6776: else
                   6777:   { echo "$as_me:$LINENO: result: none" >&5
                   6778: echo "${ECHO_T}none" >&6; }
                   6779: fi
                   6780:
                   6781:
                   6782:
                   6783:
                   6784:
                   6785: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   6786: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
                   6787: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
                   6788: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
                   6789:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6790: else
                   6791:
                   6792: # These are sane defaults that work on at least a few old systems.
                   6793: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   6794:
                   6795: # Character class describing NM global symbol codes.
                   6796: symcode='[BCDEGRST]'
                   6797:
                   6798: # Regexp to match symbols that can be accessed directly from C.
                   6799: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   6800:
                   6801: # Transform an extracted symbol line into a proper C declaration
                   6802: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
                   6803:
                   6804: # Transform an extracted symbol line into symbol name and symbol address
                   6805: 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  6806:
1.25      millert  6807: # Define system-specific variables.
                   6808: case $host_os in
                   6809: aix*)
                   6810:   symcode='[BCDT]'
                   6811:   ;;
                   6812: cygwin* | mingw* | pw32*)
                   6813:   symcode='[ABCDGISTW]'
                   6814:   ;;
1.27      millert  6815: hpux*) # Its linker distinguishes data from code symbols
1.25      millert  6816:   if test "$host_cpu" = ia64; then
                   6817:     symcode='[ABCDEGRST]'
                   6818:   fi
1.27      millert  6819:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   6820:   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'"
                   6821:   ;;
                   6822: linux* | k*bsd*-gnu)
                   6823:   if test "$host_cpu" = ia64; then
                   6824:     symcode='[ABCDGIRSTW]'
                   6825:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   6826:     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'"
                   6827:   fi
1.25      millert  6828:   ;;
                   6829: irix* | nonstopux*)
                   6830:   symcode='[BCDEGRST]'
                   6831:   ;;
                   6832: osf*)
                   6833:   symcode='[BCDEGQRST]'
                   6834:   ;;
1.27      millert  6835: solaris*)
1.25      millert  6836:   symcode='[BDRT]'
                   6837:   ;;
1.27      millert  6838: sco3.2v5*)
                   6839:   symcode='[DT]'
                   6840:   ;;
                   6841: sysv4.2uw2*)
                   6842:   symcode='[DT]'
                   6843:   ;;
                   6844: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   6845:   symcode='[ABDT]'
                   6846:   ;;
1.25      millert  6847: sysv4)
                   6848:   symcode='[DFNSTU]'
                   6849:   ;;
                   6850: esac
1.23      millert  6851:
1.25      millert  6852: # Handle CRLF in mingw tool chain
                   6853: opt_cr=
                   6854: case $build_os in
                   6855: mingw*)
1.27      millert  6856:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25      millert  6857:   ;;
                   6858: esac
                   6859:
1.27      millert  6860: # If we're using GNU nm, then use its standard symbol codes.
                   6861: case `$NM -V 2>&1` in
                   6862: *GNU* | *'with BFD'*)
                   6863:   symcode='[ABCDGIRSTW]' ;;
                   6864: esac
                   6865:
                   6866: # Try without a prefix undercore, then with it.
1.25      millert  6867: for ac_symprfx in "" "_"; do
                   6868:
1.27      millert  6869:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   6870:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   6871:
1.25      millert  6872:   # Write the raw and C identifiers.
1.27      millert  6873:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23      millert  6874:
1.25      millert  6875:   # Check to see that the pipe works correctly.
                   6876:   pipe_works=no
                   6877:
                   6878:   rm -f conftest*
1.27      millert  6879:   cat > conftest.$ac_ext <<EOF
1.25      millert  6880: #ifdef __cplusplus
                   6881: extern "C" {
                   6882: #endif
                   6883: char nm_test_var;
                   6884: void nm_test_func(){}
                   6885: #ifdef __cplusplus
                   6886: }
                   6887: #endif
                   6888: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27      millert  6889: EOF
1.25      millert  6890:
                   6891:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6892:   (eval $ac_compile) 2>&5
1.23      millert  6893:   ac_status=$?
                   6894:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6895:   (exit $ac_status); }; then
                   6896:     # Now try to grab the symbols.
                   6897:     nlist=conftest.nm
                   6898:     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
                   6899:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23      millert  6900:   ac_status=$?
                   6901:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6902:   (exit $ac_status); } && test -s "$nlist"; then
                   6903:       # Try sorting and uniquifying the output.
                   6904:       if sort "$nlist" | uniq > "$nlist"T; then
                   6905:        mv -f "$nlist"T "$nlist"
                   6906:       else
                   6907:        rm -f "$nlist"T
                   6908:       fi
                   6909:
                   6910:       # Make sure that we snagged all the symbols we need.
1.27      millert  6911:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
                   6912:        if grep ' nm_test_func$' "$nlist" >/dev/null; then
                   6913:          cat <<EOF > conftest.$ac_ext
1.25      millert  6914: #ifdef __cplusplus
                   6915: extern "C" {
                   6916: #endif
                   6917:
1.27      millert  6918: EOF
1.25      millert  6919:          # Now generate the symbol file.
1.27      millert  6920:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23      millert  6921:
1.27      millert  6922:          cat <<EOF >> conftest.$ac_ext
                   6923: #if defined (__STDC__) && __STDC__
                   6924: # define lt_ptr_t void *
                   6925: #else
                   6926: # define lt_ptr_t char *
                   6927: # define const
                   6928: #endif
1.23      millert  6929:
1.27      millert  6930: /* The mapping between symbol names and symbols. */
1.25      millert  6931: const struct {
                   6932:   const char *name;
1.27      millert  6933:   lt_ptr_t address;
1.25      millert  6934: }
1.27      millert  6935: lt_preloaded_symbols[] =
1.23      millert  6936: {
1.27      millert  6937: EOF
                   6938:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
                   6939:          cat <<\EOF >> conftest.$ac_ext
                   6940:   {0, (lt_ptr_t) 0}
1.25      millert  6941: };
                   6942:
                   6943: #ifdef __cplusplus
1.23      millert  6944: }
1.25      millert  6945: #endif
1.27      millert  6946: EOF
1.25      millert  6947:          # Now try linking the two files.
                   6948:          mv conftest.$ac_objext conftstm.$ac_objext
                   6949:          lt_save_LIBS="$LIBS"
                   6950:          lt_save_CFLAGS="$CFLAGS"
                   6951:          LIBS="conftstm.$ac_objext"
                   6952:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   6953:          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6954:   (eval $ac_link) 2>&5
1.23      millert  6955:   ac_status=$?
                   6956:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6957:   (exit $ac_status); } && test -s conftest${ac_exeext}; then
                   6958:            pipe_works=yes
                   6959:          fi
                   6960:          LIBS="$lt_save_LIBS"
                   6961:          CFLAGS="$lt_save_CFLAGS"
                   6962:        else
                   6963:          echo "cannot find nm_test_func in $nlist" >&5
                   6964:        fi
                   6965:       else
                   6966:        echo "cannot find nm_test_var in $nlist" >&5
                   6967:       fi
                   6968:     else
                   6969:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   6970:     fi
                   6971:   else
                   6972:     echo "$progname: failed program was:" >&5
                   6973:     cat conftest.$ac_ext >&5
                   6974:   fi
                   6975:   rm -f conftest* conftst*
                   6976:
                   6977:   # Do not use the global_symbol_pipe unless it works.
                   6978:   if test "$pipe_works" = yes; then
                   6979:     break
                   6980:   else
                   6981:     lt_cv_sys_global_symbol_pipe=
                   6982:   fi
                   6983: done
1.23      millert  6984:
                   6985: fi
                   6986:
1.25      millert  6987: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   6988:   lt_cv_sys_global_symbol_to_cdecl=
                   6989: fi
                   6990: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27      millert  6991:   { echo "$as_me:$LINENO: result: failed" >&5
                   6992: echo "${ECHO_T}failed" >&6; }
1.25      millert  6993: else
1.27      millert  6994:   { echo "$as_me:$LINENO: result: ok" >&5
                   6995: echo "${ECHO_T}ok" >&6; }
1.23      millert  6996: fi
1.25      millert  6997:
1.27      millert  6998: { echo "$as_me:$LINENO: checking for objdir" >&5
                   6999: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
                   7000: if test "${lt_cv_objdir+set}" = set; then
                   7001:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7002: else
                   7003:   rm -f .libs 2>/dev/null
                   7004: mkdir .libs 2>/dev/null
                   7005: if test -d .libs; then
                   7006:   lt_cv_objdir=.libs
                   7007: else
                   7008:   # MS-DOS does not allow filenames that begin with a dot.
                   7009:   lt_cv_objdir=_libs
                   7010: fi
                   7011: rmdir .libs 2>/dev/null
                   7012: fi
                   7013: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
                   7014: echo "${ECHO_T}$lt_cv_objdir" >&6; }
                   7015: objdir=$lt_cv_objdir
1.25      millert  7016:
                   7017:
                   7018:
                   7019:
                   7020:
1.27      millert  7021: case $host_os in
                   7022: aix3*)
                   7023:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   7024:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   7025:   # vanish in a puff of smoke.
                   7026:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   7027:     COLLECT_NAMES=
                   7028:     export COLLECT_NAMES
                   7029:   fi
                   7030:   ;;
                   7031: esac
1.25      millert  7032:
1.27      millert  7033: # Sed substitution that helps us do robust quoting.  It backslashifies
                   7034: # metacharacters that are still active within double-quoted strings.
                   7035: Xsed='sed -e 1s/^X//'
                   7036: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25      millert  7037:
1.27      millert  7038: # Same as above, but do not quote variable references.
                   7039: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25      millert  7040:
1.27      millert  7041: # Sed substitution to delay expansion of an escaped shell variable in a
                   7042: # double_quote_subst'ed string.
                   7043: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25      millert  7044:
1.27      millert  7045: # Sed substitution to avoid accidental globbing in evaled expressions
                   7046: no_glob_subst='s/\*/\\\*/g'
1.25      millert  7047:
1.27      millert  7048: # Constants:
                   7049: rm="rm -f"
1.25      millert  7050:
1.27      millert  7051: # Global variables:
                   7052: default_ofile=libtool
                   7053: can_build_shared=yes
1.25      millert  7054:
1.27      millert  7055: # All known linkers require a `.a' archive for static linking (except MSVC,
                   7056: # which needs '.lib').
                   7057: libext=a
                   7058: ltmain="$ac_aux_dir/ltmain.sh"
                   7059: ofile="$default_ofile"
                   7060: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25      millert  7061:
1.27      millert  7062: if test -n "$ac_tool_prefix"; then
                   7063:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   7064: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   7065: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7066: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7067: if test "${ac_cv_prog_AR+set}" = set; then
                   7068:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7069: else
                   7070:   if test -n "$AR"; then
                   7071:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   7072: else
                   7073: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7074: for as_dir in $PATH
                   7075: do
                   7076:   IFS=$as_save_IFS
                   7077:   test -z "$as_dir" && as_dir=.
                   7078:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7079:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7080:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   7081:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7082:     break 2
                   7083:   fi
                   7084: done
                   7085: done
                   7086: IFS=$as_save_IFS
1.25      millert  7087:
1.27      millert  7088: fi
                   7089: fi
                   7090: AR=$ac_cv_prog_AR
                   7091: if test -n "$AR"; then
                   7092:   { echo "$as_me:$LINENO: result: $AR" >&5
                   7093: echo "${ECHO_T}$AR" >&6; }
                   7094: else
                   7095:   { echo "$as_me:$LINENO: result: no" >&5
                   7096: echo "${ECHO_T}no" >&6; }
                   7097: fi
1.25      millert  7098:
                   7099:
1.27      millert  7100: fi
                   7101: if test -z "$ac_cv_prog_AR"; then
                   7102:   ac_ct_AR=$AR
                   7103:   # Extract the first word of "ar", so it can be a program name with args.
                   7104: set dummy ar; ac_word=$2
                   7105: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7106: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7107: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
                   7108:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7109: else
                   7110:   if test -n "$ac_ct_AR"; then
                   7111:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   7112: else
                   7113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7114: for as_dir in $PATH
                   7115: do
                   7116:   IFS=$as_save_IFS
                   7117:   test -z "$as_dir" && as_dir=.
                   7118:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7119:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7120:     ac_cv_prog_ac_ct_AR="ar"
                   7121:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7122:     break 2
                   7123:   fi
                   7124: done
                   7125: done
                   7126: IFS=$as_save_IFS
1.25      millert  7127:
1.27      millert  7128: fi
                   7129: fi
                   7130: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   7131: if test -n "$ac_ct_AR"; then
                   7132:   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
                   7133: echo "${ECHO_T}$ac_ct_AR" >&6; }
                   7134: else
                   7135:   { echo "$as_me:$LINENO: result: no" >&5
                   7136: echo "${ECHO_T}no" >&6; }
                   7137: fi
1.25      millert  7138:
1.27      millert  7139:   if test "x$ac_ct_AR" = x; then
                   7140:     AR="false"
                   7141:   else
                   7142:     case $cross_compiling:$ac_tool_warned in
                   7143: yes:)
                   7144: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7145: whose name does not start with the host triplet.  If you think this
                   7146: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7147: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7148: whose name does not start with the host triplet.  If you think this
                   7149: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7150: ac_tool_warned=yes ;;
                   7151: esac
                   7152:     AR=$ac_ct_AR
                   7153:   fi
                   7154: else
                   7155:   AR="$ac_cv_prog_AR"
                   7156: fi
1.25      millert  7157:
1.27      millert  7158: if test -n "$ac_tool_prefix"; then
                   7159:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   7160: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   7161: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7162: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7163: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   7164:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7165: else
                   7166:   if test -n "$RANLIB"; then
                   7167:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   7168: else
                   7169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7170: for as_dir in $PATH
                   7171: do
                   7172:   IFS=$as_save_IFS
                   7173:   test -z "$as_dir" && as_dir=.
                   7174:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7175:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7176:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   7177:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7178:     break 2
                   7179:   fi
                   7180: done
                   7181: done
                   7182: IFS=$as_save_IFS
1.25      millert  7183:
1.27      millert  7184: fi
                   7185: fi
                   7186: RANLIB=$ac_cv_prog_RANLIB
                   7187: if test -n "$RANLIB"; then
                   7188:   { echo "$as_me:$LINENO: result: $RANLIB" >&5
                   7189: echo "${ECHO_T}$RANLIB" >&6; }
                   7190: else
                   7191:   { echo "$as_me:$LINENO: result: no" >&5
                   7192: echo "${ECHO_T}no" >&6; }
                   7193: fi
1.25      millert  7194:
                   7195:
1.27      millert  7196: fi
                   7197: if test -z "$ac_cv_prog_RANLIB"; then
                   7198:   ac_ct_RANLIB=$RANLIB
                   7199:   # Extract the first word of "ranlib", so it can be a program name with args.
                   7200: set dummy ranlib; ac_word=$2
                   7201: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7202: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7203: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23      millert  7204:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7205: else
1.27      millert  7206:   if test -n "$ac_ct_RANLIB"; then
                   7207:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23      millert  7208: else
1.27      millert  7209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7210: for as_dir in $PATH
                   7211: do
                   7212:   IFS=$as_save_IFS
                   7213:   test -z "$as_dir" && as_dir=.
                   7214:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7215:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7216:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   7217:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7218:     break 2
                   7219:   fi
                   7220: done
                   7221: done
                   7222: IFS=$as_save_IFS
1.23      millert  7223:
                   7224: fi
1.27      millert  7225: fi
                   7226: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   7227: if test -n "$ac_ct_RANLIB"; then
                   7228:   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   7229: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23      millert  7230: else
1.27      millert  7231:   { echo "$as_me:$LINENO: result: no" >&5
                   7232: echo "${ECHO_T}no" >&6; }
1.25      millert  7233: fi
1.23      millert  7234:
1.27      millert  7235:   if test "x$ac_ct_RANLIB" = x; then
                   7236:     RANLIB=":"
                   7237:   else
                   7238:     case $cross_compiling:$ac_tool_warned in
                   7239: yes:)
                   7240: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7241: whose name does not start with the host triplet.  If you think this
                   7242: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7243: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7244: whose name does not start with the host triplet.  If you think this
                   7245: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7246: ac_tool_warned=yes ;;
                   7247: esac
                   7248:     RANLIB=$ac_ct_RANLIB
                   7249:   fi
                   7250: else
                   7251:   RANLIB="$ac_cv_prog_RANLIB"
1.23      millert  7252: fi
1.25      millert  7253:
1.27      millert  7254: if test -n "$ac_tool_prefix"; then
                   7255:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   7256: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   7257: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7258: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7259: if test "${ac_cv_prog_STRIP+set}" = set; then
                   7260:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7261: else
                   7262:   if test -n "$STRIP"; then
                   7263:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   7264: else
                   7265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7266: for as_dir in $PATH
                   7267: do
                   7268:   IFS=$as_save_IFS
                   7269:   test -z "$as_dir" && as_dir=.
                   7270:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7271:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7272:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   7273:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7274:     break 2
                   7275:   fi
                   7276: done
                   7277: done
                   7278: IFS=$as_save_IFS
1.25      millert  7279:
1.27      millert  7280: fi
                   7281: fi
                   7282: STRIP=$ac_cv_prog_STRIP
                   7283: if test -n "$STRIP"; then
                   7284:   { echo "$as_me:$LINENO: result: $STRIP" >&5
                   7285: echo "${ECHO_T}$STRIP" >&6; }
1.25      millert  7286: else
1.27      millert  7287:   { echo "$as_me:$LINENO: result: no" >&5
                   7288: echo "${ECHO_T}no" >&6; }
1.25      millert  7289: fi
1.27      millert  7290:
1.25      millert  7291:
                   7292: fi
1.27      millert  7293: if test -z "$ac_cv_prog_STRIP"; then
                   7294:   ac_ct_STRIP=$STRIP
                   7295:   # Extract the first word of "strip", so it can be a program name with args.
                   7296: set dummy strip; ac_word=$2
                   7297: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7298: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7299: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
                   7300:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  7301: else
1.27      millert  7302:   if test -n "$ac_ct_STRIP"; then
                   7303:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23      millert  7304: else
1.27      millert  7305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7306: for as_dir in $PATH
                   7307: do
                   7308:   IFS=$as_save_IFS
                   7309:   test -z "$as_dir" && as_dir=.
                   7310:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7311:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7312:     ac_cv_prog_ac_ct_STRIP="strip"
                   7313:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7314:     break 2
                   7315:   fi
                   7316: done
                   7317: done
                   7318: IFS=$as_save_IFS
1.23      millert  7319:
1.25      millert  7320: fi
                   7321: fi
1.27      millert  7322: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   7323: if test -n "$ac_ct_STRIP"; then
                   7324:   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
                   7325: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
                   7326: else
                   7327:   { echo "$as_me:$LINENO: result: no" >&5
                   7328: echo "${ECHO_T}no" >&6; }
1.23      millert  7329: fi
1.25      millert  7330:
1.27      millert  7331:   if test "x$ac_ct_STRIP" = x; then
                   7332:     STRIP=":"
                   7333:   else
                   7334:     case $cross_compiling:$ac_tool_warned in
                   7335: yes:)
                   7336: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7337: whose name does not start with the host triplet.  If you think this
                   7338: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7339: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7340: whose name does not start with the host triplet.  If you think this
                   7341: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7342: ac_tool_warned=yes ;;
                   7343: esac
                   7344:     STRIP=$ac_ct_STRIP
                   7345:   fi
                   7346: else
                   7347:   STRIP="$ac_cv_prog_STRIP"
1.23      millert  7348: fi
                   7349:
1.25      millert  7350:
1.27      millert  7351: old_CC="$CC"
                   7352: old_CFLAGS="$CFLAGS"
1.25      millert  7353:
1.27      millert  7354: # Set sane defaults for various variables
                   7355: test -z "$AR" && AR=ar
                   7356: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   7357: test -z "$AS" && AS=as
                   7358: test -z "$CC" && CC=cc
                   7359: test -z "$LTCC" && LTCC=$CC
                   7360: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   7361: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   7362: test -z "$LD" && LD=ld
                   7363: test -z "$LN_S" && LN_S="ln -s"
                   7364: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   7365: test -z "$NM" && NM=nm
                   7366: test -z "$SED" && SED=sed
                   7367: test -z "$OBJDUMP" && OBJDUMP=objdump
                   7368: test -z "$RANLIB" && RANLIB=:
                   7369: test -z "$STRIP" && STRIP=:
                   7370: test -z "$ac_objext" && ac_objext=o
1.25      millert  7371:
1.27      millert  7372: # Determine commands to create old-style static archives.
                   7373: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   7374: old_postinstall_cmds='chmod 644 $oldlib'
                   7375: old_postuninstall_cmds=
1.25      millert  7376:
1.27      millert  7377: if test -n "$RANLIB"; then
                   7378:   case $host_os in
                   7379:   openbsd*)
                   7380:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
                   7381:     ;;
                   7382:   *)
                   7383:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
                   7384:     ;;
                   7385:   esac
                   7386:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   7387: fi
1.25      millert  7388:
1.27      millert  7389: for cc_temp in $compiler""; do
                   7390:   case $cc_temp in
                   7391:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   7392:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   7393:     \-*) ;;
                   7394:     *) break;;
                   7395:   esac
                   7396: done
                   7397: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25      millert  7398:
                   7399:
1.27      millert  7400: # Only perform the check for file, if the check method requires it
                   7401: case $deplibs_check_method in
                   7402: file_magic*)
                   7403:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   7404:     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
                   7405: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
                   7406: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23      millert  7407:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7408: else
1.27      millert  7409:   case $MAGIC_CMD in
                   7410: [\\/*] |  ?:[\\/]*)
                   7411:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7412:   ;;
                   7413: *)
                   7414:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7415:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7416:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7417:   for ac_dir in $ac_dummy; do
                   7418:     IFS="$lt_save_ifs"
                   7419:     test -z "$ac_dir" && ac_dir=.
                   7420:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   7421:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   7422:       if test -n "$file_magic_test_file"; then
                   7423:        case $deplibs_check_method in
                   7424:        "file_magic "*)
                   7425:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7426:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7427:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7428:            $EGREP "$file_magic_regex" > /dev/null; then
                   7429:            :
                   7430:          else
                   7431:            cat <<EOF 1>&2
1.25      millert  7432:
1.27      millert  7433: *** Warning: the command libtool uses to detect shared libraries,
                   7434: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7435: *** The result is that libtool may fail to recognize shared libraries
                   7436: *** as such.  This will affect the creation of libtool libraries that
                   7437: *** depend on shared libraries, but programs linked with such libtool
                   7438: *** libraries will work regardless of this problem.  Nevertheless, you
                   7439: *** may want to report the problem to your system manager and/or to
                   7440: *** bug-libtool@gnu.org
1.23      millert  7441:
1.27      millert  7442: EOF
                   7443:          fi ;;
                   7444:        esac
                   7445:       fi
                   7446:       break
                   7447:     fi
                   7448:   done
                   7449:   IFS="$lt_save_ifs"
                   7450:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7451:   ;;
                   7452: esac
1.25      millert  7453: fi
                   7454:
1.27      millert  7455: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7456: if test -n "$MAGIC_CMD"; then
                   7457:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7458: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7459: else
                   7460:   { echo "$as_me:$LINENO: result: no" >&5
                   7461: echo "${ECHO_T}no" >&6; }
1.23      millert  7462: fi
                   7463:
1.27      millert  7464: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   7465:   if test -n "$ac_tool_prefix"; then
                   7466:     { echo "$as_me:$LINENO: checking for file" >&5
                   7467: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
                   7468: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25      millert  7469:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7470: else
1.27      millert  7471:   case $MAGIC_CMD in
                   7472: [\\/*] |  ?:[\\/]*)
                   7473:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7474:   ;;
                   7475: *)
                   7476:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7477:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7478:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7479:   for ac_dir in $ac_dummy; do
                   7480:     IFS="$lt_save_ifs"
                   7481:     test -z "$ac_dir" && ac_dir=.
                   7482:     if test -f $ac_dir/file; then
                   7483:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   7484:       if test -n "$file_magic_test_file"; then
                   7485:        case $deplibs_check_method in
                   7486:        "file_magic "*)
                   7487:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7488:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7489:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7490:            $EGREP "$file_magic_regex" > /dev/null; then
                   7491:            :
                   7492:          else
                   7493:            cat <<EOF 1>&2
1.25      millert  7494:
1.27      millert  7495: *** Warning: the command libtool uses to detect shared libraries,
                   7496: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7497: *** The result is that libtool may fail to recognize shared libraries
                   7498: *** as such.  This will affect the creation of libtool libraries that
                   7499: *** depend on shared libraries, but programs linked with such libtool
                   7500: *** libraries will work regardless of this problem.  Nevertheless, you
                   7501: *** may want to report the problem to your system manager and/or to
                   7502: *** bug-libtool@gnu.org
1.23      millert  7503:
1.27      millert  7504: EOF
                   7505:          fi ;;
                   7506:        esac
                   7507:       fi
                   7508:       break
                   7509:     fi
                   7510:   done
                   7511:   IFS="$lt_save_ifs"
                   7512:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7513:   ;;
                   7514: esac
1.25      millert  7515: fi
1.27      millert  7516:
                   7517: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7518: if test -n "$MAGIC_CMD"; then
                   7519:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7520: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7521: else
                   7522:   { echo "$as_me:$LINENO: result: no" >&5
                   7523: echo "${ECHO_T}no" >&6; }
1.25      millert  7524: fi
                   7525:
1.27      millert  7526:   else
                   7527:     MAGIC_CMD=:
                   7528:   fi
1.23      millert  7529: fi
                   7530:
1.27      millert  7531:   fi
                   7532:   ;;
                   7533: esac
1.23      millert  7534:
1.27      millert  7535: enable_dlopen=no
                   7536: enable_win32_dll=no
1.25      millert  7537:
1.27      millert  7538: # Check whether --enable-libtool-lock was given.
                   7539: if test "${enable_libtool_lock+set}" = set; then
                   7540:   enableval=$enable_libtool_lock;
                   7541: fi
1.25      millert  7542:
1.27      millert  7543: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25      millert  7544:
1.23      millert  7545:
1.27      millert  7546: # Check whether --with-pic was given.
                   7547: if test "${with_pic+set}" = set; then
                   7548:   withval=$with_pic; pic_mode="$withval"
1.23      millert  7549: else
1.27      millert  7550:   pic_mode=default
                   7551: fi
1.25      millert  7552:
1.27      millert  7553: test -z "$pic_mode" && pic_mode=default
1.23      millert  7554:
1.27      millert  7555: # Use C for the default configuration in the libtool script
                   7556: tagname=
                   7557: lt_save_CC="$CC"
                   7558: ac_ext=c
                   7559: ac_cpp='$CPP $CPPFLAGS'
                   7560: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7561: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7562: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  7563:
                   7564:
1.27      millert  7565: # Source file extension for C test sources.
                   7566: ac_ext=c
1.23      millert  7567:
1.27      millert  7568: # Object file extension for compiled C test sources.
                   7569: objext=o
                   7570: objext=$objext
1.23      millert  7571:
1.27      millert  7572: # Code to be used in simple compile tests
                   7573: lt_simple_compile_test_code="int some_variable = 0;"
1.23      millert  7574:
1.27      millert  7575: # Code to be used in simple link tests
                   7576: lt_simple_link_test_code='int main(){return(0);}'
1.23      millert  7577:
                   7578:
1.27      millert  7579: # If no C compiler was specified, use CC.
                   7580: LTCC=${LTCC-"$CC"}
1.23      millert  7581:
1.27      millert  7582: # If no C compiler flags were specified, use CFLAGS.
                   7583: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  7584:
1.27      millert  7585: # Allow CC to be a program name with arguments.
                   7586: compiler=$CC
1.23      millert  7587:
                   7588:
1.27      millert  7589: # save warnings/boilerplate of simple test code
                   7590: ac_outfile=conftest.$ac_objext
                   7591: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   7592: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   7593: _lt_compiler_boilerplate=`cat conftest.err`
                   7594: $rm conftest*
                   7595:
                   7596: ac_outfile=conftest.$ac_objext
                   7597: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   7598: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   7599: _lt_linker_boilerplate=`cat conftest.err`
                   7600: $rm conftest*
1.23      millert  7601:
                   7602:
1.27      millert  7603: ## CAVEAT EMPTOR:
                   7604: ## There is no encapsulation within the following macros, do not change
                   7605: ## the running order or otherwise move them around unless you know exactly
                   7606: ## what you are doing...
1.23      millert  7607:
1.27      millert  7608: lt_prog_compiler_no_builtin_flag=
1.23      millert  7609:
1.27      millert  7610: if test "$GCC" = yes; then
                   7611:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23      millert  7612:
                   7613:
1.27      millert  7614: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   7615: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
                   7616: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
                   7617:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  7618: else
1.27      millert  7619:   lt_cv_prog_compiler_rtti_exceptions=no
                   7620:   ac_outfile=conftest.$ac_objext
                   7621:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   7622:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   7623:    # Insert the option either (1) after the last *FLAGS variable, or
                   7624:    # (2) before a word containing "conftest.", or (3) at the end.
                   7625:    # Note that $ac_compile itself does not contain backslashes and begins
                   7626:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   7627:    # The option is referenced via a variable to avoid confusing sed.
                   7628:    lt_compile=`echo "$ac_compile" | $SED \
                   7629:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   7630:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   7631:    -e 's:$: $lt_compiler_flag:'`
1.32      millert  7632:    (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
1.27      millert  7633:    (eval "$lt_compile" 2>conftest.err)
                   7634:    ac_status=$?
                   7635:    cat conftest.err >&5
1.32      millert  7636:    echo "$as_me:7636: \$? = $ac_status" >&5
1.27      millert  7637:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   7638:      # The compiler can only warn and ignore the option if not recognized
                   7639:      # So say no if there are warnings other than the usual output.
                   7640:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   7641:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   7642:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   7643:        lt_cv_prog_compiler_rtti_exceptions=yes
                   7644:      fi
                   7645:    fi
                   7646:    $rm conftest*
1.23      millert  7647:
1.25      millert  7648: fi
1.27      millert  7649: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   7650: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25      millert  7651:
1.27      millert  7652: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   7653:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25      millert  7654: else
1.27      millert  7655:     :
                   7656: fi
1.23      millert  7657:
1.25      millert  7658: fi
1.23      millert  7659:
1.27      millert  7660: lt_prog_compiler_wl=
                   7661: lt_prog_compiler_pic=
                   7662: lt_prog_compiler_static=
1.23      millert  7663:
1.27      millert  7664: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
                   7665: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25      millert  7666:
1.27      millert  7667:   if test "$GCC" = yes; then
                   7668:     lt_prog_compiler_wl='-Wl,'
                   7669:     lt_prog_compiler_static='-static'
1.25      millert  7670:
1.27      millert  7671:     case $host_os in
                   7672:       aix*)
                   7673:       # All AIX code is PIC.
                   7674:       if test "$host_cpu" = ia64; then
                   7675:        # AIX 5 now supports IA64 processor
                   7676:        lt_prog_compiler_static='-Bstatic'
                   7677:       fi
                   7678:       ;;
1.25      millert  7679:
1.27      millert  7680:     amigaos*)
                   7681:       # FIXME: we need at least 68020 code to build shared libraries, but
                   7682:       # adding the `-m68020' flag to GCC prevents building anything better,
                   7683:       # like `-m68040'.
                   7684:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   7685:       ;;
1.25      millert  7686:
1.27      millert  7687:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   7688:       # PIC is the default for these OSes.
                   7689:       ;;
1.23      millert  7690:
1.27      millert  7691:     mingw* | cygwin* | pw32* | os2*)
                   7692:       # This hack is so that the source file can tell whether it is being
                   7693:       # built for inclusion in a dll (and should export symbols for example).
                   7694:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   7695:       # (--disable-auto-import) libraries
                   7696:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   7697:       ;;
1.23      millert  7698:
1.27      millert  7699:     darwin* | rhapsody*)
                   7700:       # PIC is the default on this platform
                   7701:       # Common symbols not allowed in MH_DYLIB files
                   7702:       lt_prog_compiler_pic='-fno-common'
                   7703:       ;;
1.23      millert  7704:
1.27      millert  7705:     interix[3-9]*)
                   7706:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   7707:       # Instead, we relocate shared libraries at runtime.
                   7708:       ;;
1.23      millert  7709:
1.27      millert  7710:     msdosdjgpp*)
                   7711:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   7712:       # on systems that don't support them.
                   7713:       lt_prog_compiler_can_build_shared=no
                   7714:       enable_shared=no
                   7715:       ;;
1.23      millert  7716:
1.27      millert  7717:     sysv4*MP*)
                   7718:       if test -d /usr/nec; then
                   7719:        lt_prog_compiler_pic=-Kconform_pic
                   7720:       fi
                   7721:       ;;
1.23      millert  7722:
1.27      millert  7723:     hpux*)
                   7724:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   7725:       # not for PA HP-UX.
                   7726:       case $host_cpu in
                   7727:       hppa*64*|ia64*)
                   7728:        # +Z the default
                   7729:        ;;
                   7730:       *)
                   7731:        lt_prog_compiler_pic='-fPIC'
                   7732:        ;;
                   7733:       esac
                   7734:       ;;
1.23      millert  7735:
1.27      millert  7736:     *)
                   7737:       lt_prog_compiler_pic='-fPIC'
                   7738:       ;;
                   7739:     esac
                   7740:   else
                   7741:     # PORTME Check for flag to pass linker flags through the system compiler.
                   7742:     case $host_os in
                   7743:     aix*)
                   7744:       lt_prog_compiler_wl='-Wl,'
                   7745:       if test "$host_cpu" = ia64; then
                   7746:        # AIX 5 now supports IA64 processor
                   7747:        lt_prog_compiler_static='-Bstatic'
                   7748:       else
                   7749:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   7750:       fi
                   7751:       ;;
                   7752:       darwin*)
                   7753:         # PIC is the default on this platform
                   7754:         # Common symbols not allowed in MH_DYLIB files
                   7755:        case $cc_basename in
                   7756:          xlc*)
                   7757:          lt_prog_compiler_pic='-qnocommon'
                   7758:          lt_prog_compiler_wl='-Wl,'
                   7759:          ;;
                   7760:        esac
                   7761:        ;;
1.23      millert  7762:
1.27      millert  7763:     mingw* | cygwin* | pw32* | os2*)
                   7764:       # This hack is so that the source file can tell whether it is being
                   7765:       # built for inclusion in a dll (and should export symbols for example).
                   7766:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   7767:       ;;
1.25      millert  7768:
1.27      millert  7769:     hpux9* | hpux10* | hpux11*)
                   7770:       lt_prog_compiler_wl='-Wl,'
                   7771:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   7772:       # not for PA HP-UX.
                   7773:       case $host_cpu in
                   7774:       hppa*64*|ia64*)
                   7775:        # +Z the default
                   7776:        ;;
                   7777:       *)
                   7778:        lt_prog_compiler_pic='+Z'
                   7779:        ;;
                   7780:       esac
                   7781:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   7782:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   7783:       ;;
1.23      millert  7784:
1.27      millert  7785:     irix5* | irix6* | nonstopux*)
                   7786:       lt_prog_compiler_wl='-Wl,'
                   7787:       # PIC (with -KPIC) is the default.
                   7788:       lt_prog_compiler_static='-non_shared'
                   7789:       ;;
1.23      millert  7790:
1.27      millert  7791:     newsos6)
                   7792:       lt_prog_compiler_pic='-KPIC'
                   7793:       lt_prog_compiler_static='-Bstatic'
                   7794:       ;;
1.23      millert  7795:
1.27      millert  7796:     linux* | k*bsd*-gnu)
                   7797:       case $cc_basename in
                   7798:       icc* | ecc*)
                   7799:        lt_prog_compiler_wl='-Wl,'
                   7800:        lt_prog_compiler_pic='-KPIC'
                   7801:        lt_prog_compiler_static='-static'
                   7802:         ;;
                   7803:       pgcc* | pgf77* | pgf90* | pgf95*)
                   7804:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   7805:        # which looks to be a dead project)
                   7806:        lt_prog_compiler_wl='-Wl,'
                   7807:        lt_prog_compiler_pic='-fpic'
                   7808:        lt_prog_compiler_static='-Bstatic'
                   7809:         ;;
                   7810:       ccc*)
                   7811:         lt_prog_compiler_wl='-Wl,'
                   7812:         # All Alpha code is PIC.
                   7813:         lt_prog_compiler_static='-non_shared'
                   7814:         ;;
                   7815:       *)
                   7816:         case `$CC -V 2>&1 | sed 5q` in
                   7817:        *Sun\ C*)
                   7818:          # Sun C 5.9
                   7819:          lt_prog_compiler_pic='-KPIC'
                   7820:          lt_prog_compiler_static='-Bstatic'
                   7821:          lt_prog_compiler_wl='-Wl,'
                   7822:          ;;
                   7823:        *Sun\ F*)
                   7824:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   7825:          lt_prog_compiler_pic='-KPIC'
                   7826:          lt_prog_compiler_static='-Bstatic'
                   7827:          lt_prog_compiler_wl=''
                   7828:          ;;
                   7829:        esac
                   7830:        ;;
                   7831:       esac
                   7832:       ;;
1.23      millert  7833:
1.27      millert  7834:     osf3* | osf4* | osf5*)
                   7835:       lt_prog_compiler_wl='-Wl,'
                   7836:       # All OSF/1 code is PIC.
                   7837:       lt_prog_compiler_static='-non_shared'
                   7838:       ;;
1.23      millert  7839:
1.27      millert  7840:     rdos*)
                   7841:       lt_prog_compiler_static='-non_shared'
                   7842:       ;;
1.25      millert  7843:
1.27      millert  7844:     solaris*)
                   7845:       lt_prog_compiler_pic='-KPIC'
                   7846:       lt_prog_compiler_static='-Bstatic'
                   7847:       case $cc_basename in
                   7848:       f77* | f90* | f95*)
                   7849:        lt_prog_compiler_wl='-Qoption ld ';;
                   7850:       *)
                   7851:        lt_prog_compiler_wl='-Wl,';;
                   7852:       esac
                   7853:       ;;
1.25      millert  7854:
1.27      millert  7855:     sunos4*)
                   7856:       lt_prog_compiler_wl='-Qoption ld '
                   7857:       lt_prog_compiler_pic='-PIC'
                   7858:       lt_prog_compiler_static='-Bstatic'
                   7859:       ;;
1.25      millert  7860:
1.27      millert  7861:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   7862:       lt_prog_compiler_wl='-Wl,'
                   7863:       lt_prog_compiler_pic='-KPIC'
                   7864:       lt_prog_compiler_static='-Bstatic'
                   7865:       ;;
1.25      millert  7866:
1.27      millert  7867:     sysv4*MP*)
                   7868:       if test -d /usr/nec ;then
                   7869:        lt_prog_compiler_pic='-Kconform_pic'
                   7870:        lt_prog_compiler_static='-Bstatic'
                   7871:       fi
                   7872:       ;;
1.25      millert  7873:
1.27      millert  7874:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   7875:       lt_prog_compiler_wl='-Wl,'
                   7876:       lt_prog_compiler_pic='-KPIC'
                   7877:       lt_prog_compiler_static='-Bstatic'
                   7878:       ;;
1.25      millert  7879:
1.27      millert  7880:     unicos*)
                   7881:       lt_prog_compiler_wl='-Wl,'
                   7882:       lt_prog_compiler_can_build_shared=no
                   7883:       ;;
1.23      millert  7884:
1.27      millert  7885:     uts4*)
                   7886:       lt_prog_compiler_pic='-pic'
                   7887:       lt_prog_compiler_static='-Bstatic'
                   7888:       ;;
1.23      millert  7889:
1.27      millert  7890:     *)
                   7891:       lt_prog_compiler_can_build_shared=no
                   7892:       ;;
1.25      millert  7893:     esac
                   7894:   fi
1.23      millert  7895:
1.27      millert  7896: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
                   7897: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23      millert  7898:
1.27      millert  7899: #
                   7900: # Check to make sure the PIC flag actually works.
                   7901: #
                   7902: if test -n "$lt_prog_compiler_pic"; then
1.23      millert  7903:
1.27      millert  7904: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   7905: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
                   7906: if test "${lt_prog_compiler_pic_works+set}" = set; then
1.23      millert  7907:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7908: else
1.27      millert  7909:   lt_prog_compiler_pic_works=no
                   7910:   ac_outfile=conftest.$ac_objext
                   7911:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   7912:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   7913:    # Insert the option either (1) after the last *FLAGS variable, or
                   7914:    # (2) before a word containing "conftest.", or (3) at the end.
                   7915:    # Note that $ac_compile itself does not contain backslashes and begins
                   7916:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   7917:    # The option is referenced via a variable to avoid confusing sed.
                   7918:    lt_compile=`echo "$ac_compile" | $SED \
                   7919:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   7920:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   7921:    -e 's:$: $lt_compiler_flag:'`
1.32      millert  7922:    (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
1.27      millert  7923:    (eval "$lt_compile" 2>conftest.err)
                   7924:    ac_status=$?
                   7925:    cat conftest.err >&5
1.32      millert  7926:    echo "$as_me:7926: \$? = $ac_status" >&5
1.27      millert  7927:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   7928:      # The compiler can only warn and ignore the option if not recognized
                   7929:      # So say no if there are warnings other than the usual output.
                   7930:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   7931:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   7932:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   7933:        lt_prog_compiler_pic_works=yes
                   7934:      fi
                   7935:    fi
                   7936:    $rm conftest*
1.23      millert  7937:
1.27      millert  7938: fi
                   7939: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
                   7940: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
1.23      millert  7941:
1.27      millert  7942: if test x"$lt_prog_compiler_pic_works" = xyes; then
                   7943:     case $lt_prog_compiler_pic in
                   7944:      "" | " "*) ;;
                   7945:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   7946:      esac
                   7947: else
                   7948:     lt_prog_compiler_pic=
                   7949:      lt_prog_compiler_can_build_shared=no
1.23      millert  7950: fi
1.25      millert  7951:
1.23      millert  7952: fi
1.27      millert  7953: case $host_os in
                   7954:   # For platforms which do not support PIC, -DPIC is meaningless:
                   7955:   *djgpp*)
                   7956:     lt_prog_compiler_pic=
                   7957:     ;;
                   7958:   *)
                   7959:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25      millert  7960:     ;;
1.27      millert  7961: esac
1.25      millert  7962:
1.27      millert  7963: #
                   7964: # Check to make sure the static flag actually works.
                   7965: #
                   7966: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   7967: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   7968: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
                   7969: if test "${lt_prog_compiler_static_works+set}" = set; then
                   7970:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7971: else
                   7972:   lt_prog_compiler_static_works=no
                   7973:    save_LDFLAGS="$LDFLAGS"
                   7974:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   7975:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   7976:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   7977:      # The linker can only warn and ignore the option if not recognized
                   7978:      # So say no if there are warnings
                   7979:      if test -s conftest.err; then
                   7980:        # Append any errors to the config.log.
                   7981:        cat conftest.err 1>&5
                   7982:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   7983:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   7984:        if diff conftest.exp conftest.er2 >/dev/null; then
                   7985:          lt_prog_compiler_static_works=yes
                   7986:        fi
                   7987:      else
                   7988:        lt_prog_compiler_static_works=yes
                   7989:      fi
                   7990:    fi
                   7991:    $rm conftest*
                   7992:    LDFLAGS="$save_LDFLAGS"
1.25      millert  7993:
1.23      millert  7994: fi
1.27      millert  7995: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
                   7996: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
1.23      millert  7997:
1.27      millert  7998: if test x"$lt_prog_compiler_static_works" = xyes; then
                   7999:     :
                   8000: else
                   8001:     lt_prog_compiler_static=
                   8002: fi
1.23      millert  8003:
                   8004:
1.27      millert  8005: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8006: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
                   8007: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8008:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8009: else
                   8010:   lt_cv_prog_compiler_c_o=no
                   8011:    $rm -r conftest 2>/dev/null
                   8012:    mkdir conftest
                   8013:    cd conftest
                   8014:    mkdir out
                   8015:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8016:
                   8017:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8018:    # Insert the option either (1) after the last *FLAGS variable, or
                   8019:    # (2) before a word containing "conftest.", or (3) at the end.
                   8020:    # Note that $ac_compile itself does not contain backslashes and begins
                   8021:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8022:    lt_compile=`echo "$ac_compile" | $SED \
                   8023:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8024:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8025:    -e 's:$: $lt_compiler_flag:'`
1.32      millert  8026:    (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
1.27      millert  8027:    (eval "$lt_compile" 2>out/conftest.err)
                   8028:    ac_status=$?
                   8029:    cat out/conftest.err >&5
1.32      millert  8030:    echo "$as_me:8030: \$? = $ac_status" >&5
1.27      millert  8031:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8032:    then
                   8033:      # The compiler can only warn and ignore the option if not recognized
                   8034:      # So say no if there are warnings
                   8035:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   8036:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   8037:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   8038:        lt_cv_prog_compiler_c_o=yes
                   8039:      fi
                   8040:    fi
                   8041:    chmod u+w . 2>&5
                   8042:    $rm conftest*
                   8043:    # SGI C++ compiler will create directory out/ii_files/ for
                   8044:    # template instantiation
                   8045:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   8046:    $rm out/* && rmdir out
                   8047:    cd ..
                   8048:    rmdir conftest
                   8049:    $rm conftest*
1.23      millert  8050:
1.27      millert  8051: fi
                   8052: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8053: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
                   8054:
                   8055:
                   8056: hard_links="nottested"
                   8057: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   8058:   # do not overwrite the value of need_locks provided by the user
                   8059:   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
                   8060: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
                   8061:   hard_links=yes
                   8062:   $rm conftest*
                   8063:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8064:   touch conftest.a
                   8065:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   8066:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8067:   { echo "$as_me:$LINENO: result: $hard_links" >&5
                   8068: echo "${ECHO_T}$hard_links" >&6; }
                   8069:   if test "$hard_links" = no; then
                   8070:     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   8071: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   8072:     need_locks=warn
                   8073:   fi
                   8074: else
                   8075:   need_locks=no
                   8076: fi
1.23      millert  8077:
1.27      millert  8078: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   8079: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23      millert  8080:
1.27      millert  8081:   runpath_var=
                   8082:   allow_undefined_flag=
                   8083:   enable_shared_with_static_runtimes=no
                   8084:   archive_cmds=
                   8085:   archive_expsym_cmds=
                   8086:   old_archive_From_new_cmds=
                   8087:   old_archive_from_expsyms_cmds=
                   8088:   export_dynamic_flag_spec=
                   8089:   whole_archive_flag_spec=
                   8090:   thread_safe_flag_spec=
                   8091:   hardcode_libdir_flag_spec=
                   8092:   hardcode_libdir_flag_spec_ld=
                   8093:   hardcode_libdir_separator=
                   8094:   hardcode_direct=no
                   8095:   hardcode_minus_L=no
                   8096:   hardcode_shlibpath_var=unsupported
                   8097:   link_all_deplibs=unknown
                   8098:   hardcode_automatic=no
                   8099:   module_cmds=
                   8100:   module_expsym_cmds=
                   8101:   always_export_symbols=no
                   8102:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   8103:   # include_expsyms should be a list of space-separated symbols to be *always*
                   8104:   # included in the symbol list
                   8105:   include_expsyms=
                   8106:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   8107:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   8108:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   8109:   # as well as any symbol that contains `d'.
                   8110:   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
                   8111:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   8112:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   8113:   # the symbol is explicitly referenced.  Since portable code cannot
                   8114:   # rely on this symbol name, it's probably fine to never include it in
                   8115:   # preloaded symbol tables.
                   8116:   extract_expsyms_cmds=
                   8117:   # Just being paranoid about ensuring that cc_basename is set.
                   8118:   for cc_temp in $compiler""; do
                   8119:   case $cc_temp in
                   8120:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   8121:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   8122:     \-*) ;;
                   8123:     *) break;;
                   8124:   esac
                   8125: done
                   8126: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23      millert  8127:
1.27      millert  8128:   case $host_os in
                   8129:   cygwin* | mingw* | pw32*)
                   8130:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   8131:     # When not using gcc, we currently assume that we are using
                   8132:     # Microsoft Visual C++.
                   8133:     if test "$GCC" != yes; then
                   8134:       with_gnu_ld=no
                   8135:     fi
                   8136:     ;;
                   8137:   interix*)
                   8138:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   8139:     with_gnu_ld=yes
                   8140:     ;;
                   8141:   openbsd*)
                   8142:     with_gnu_ld=no
                   8143:     ;;
                   8144:   esac
1.23      millert  8145:
1.27      millert  8146:   ld_shlibs=yes
                   8147:   if test "$with_gnu_ld" = yes; then
                   8148:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   8149:     wlarc='${wl}'
1.23      millert  8150:
1.27      millert  8151:     # Set some defaults for GNU ld with shared library support. These
                   8152:     # are reset later if shared libraries are not supported. Putting them
                   8153:     # here allows them to be overridden if necessary.
                   8154:     runpath_var=LD_RUN_PATH
                   8155:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   8156:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   8157:     # ancient GNU ld didn't support --whole-archive et. al.
                   8158:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
                   8159:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   8160:       else
                   8161:        whole_archive_flag_spec=
                   8162:     fi
                   8163:     supports_anon_versioning=no
                   8164:     case `$LD -v 2>/dev/null` in
                   8165:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   8166:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   8167:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   8168:       *\ 2.11.*) ;; # other 2.11 versions
                   8169:       *) supports_anon_versioning=yes ;;
                   8170:     esac
1.23      millert  8171:
1.27      millert  8172:     # See if GNU ld supports shared libraries.
                   8173:     case $host_os in
                   8174:     aix3* | aix4* | aix5*)
                   8175:       # On AIX/PPC, the GNU linker is very broken
                   8176:       if test "$host_cpu" != ia64; then
                   8177:        ld_shlibs=no
                   8178:        cat <<EOF 1>&2
1.23      millert  8179:
1.27      millert  8180: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   8181: *** to be unable to reliably create shared libraries on AIX.
                   8182: *** Therefore, libtool is disabling shared libraries support.  If you
                   8183: *** really care for shared libraries, you may want to modify your PATH
                   8184: *** so that a non-GNU linker is found, and then restart.
1.23      millert  8185:
1.27      millert  8186: EOF
                   8187:       fi
                   8188:       ;;
1.23      millert  8189:
1.27      millert  8190:     amigaos*)
                   8191:       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)'
                   8192:       hardcode_libdir_flag_spec='-L$libdir'
                   8193:       hardcode_minus_L=yes
1.23      millert  8194:
1.27      millert  8195:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   8196:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   8197:       # to version 4, is to share data among multiple programs linked
                   8198:       # with the same dynamic library.  Since this doesn't match the
                   8199:       # behavior of shared libraries on other platforms, we can't use
                   8200:       # them.
                   8201:       ld_shlibs=no
                   8202:       ;;
1.23      millert  8203:
1.27      millert  8204:     beos*)
                   8205:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8206:        allow_undefined_flag=unsupported
                   8207:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   8208:        # support --undefined.  This deserves some investigation.  FIXME
                   8209:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8210:       else
                   8211:        ld_shlibs=no
                   8212:       fi
                   8213:       ;;
1.23      millert  8214:
1.27      millert  8215:     cygwin* | mingw* | pw32*)
                   8216:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   8217:       # as there is no search path for DLLs.
                   8218:       hardcode_libdir_flag_spec='-L$libdir'
                   8219:       allow_undefined_flag=unsupported
                   8220:       always_export_symbols=no
                   8221:       enable_shared_with_static_runtimes=yes
                   8222:       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  8223:
1.27      millert  8224:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   8225:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8226:        # If the export-symbols file already is a .def file (1st line
                   8227:        # is EXPORTS), use it as is; otherwise, prepend...
                   8228:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   8229:          cp $export_symbols $output_objdir/$soname.def;
                   8230:        else
                   8231:          echo EXPORTS > $output_objdir/$soname.def;
                   8232:          cat $export_symbols >> $output_objdir/$soname.def;
                   8233:        fi~
                   8234:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8235:       else
                   8236:        ld_shlibs=no
                   8237:       fi
                   8238:       ;;
1.25      millert  8239:
1.27      millert  8240:     interix[3-9]*)
                   8241:       hardcode_direct=no
                   8242:       hardcode_shlibpath_var=no
                   8243:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8244:       export_dynamic_flag_spec='${wl}-E'
                   8245:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   8246:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   8247:       # default) and relocated if they conflict, which is a slow very memory
                   8248:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   8249:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   8250:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   8251:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   8252:       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'
                   8253:       ;;
                   8254:
                   8255:     gnu* | linux* | k*bsd*-gnu)
                   8256:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8257:        tmp_addflag=
                   8258:        case $cc_basename,$host_cpu in
                   8259:        pgcc*)                          # Portland Group C compiler
                   8260:          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'
                   8261:          tmp_addflag=' $pic_flag'
1.25      millert  8262:          ;;
1.27      millert  8263:        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
                   8264:          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'
                   8265:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   8266:        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
                   8267:          tmp_addflag=' -i_dynamic' ;;
                   8268:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   8269:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   8270:        ifc* | ifort*)                  # Intel Fortran compiler
                   8271:          tmp_addflag=' -nofor_main' ;;
1.25      millert  8272:        esac
1.27      millert  8273:        case `$CC -V 2>&1 | sed 5q` in
                   8274:        *Sun\ C*)                       # Sun C 5.9
                   8275:          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'
                   8276:          tmp_sharedflag='-G' ;;
                   8277:        *Sun\ F*)                       # Sun Fortran 8.3
                   8278:          tmp_sharedflag='-G' ;;
                   8279:        *)
                   8280:          tmp_sharedflag='-shared' ;;
1.25      millert  8281:        esac
1.27      millert  8282:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25      millert  8283:
1.27      millert  8284:        if test $supports_anon_versioning = yes; then
                   8285:          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
                   8286:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   8287:   $echo "local: *; };" >> $output_objdir/$libname.ver~
                   8288:          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   8289:        fi
                   8290:       else
                   8291:        ld_shlibs=no
                   8292:       fi
                   8293:       ;;
1.23      millert  8294:
1.27      millert  8295:     netbsd*)
                   8296:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   8297:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   8298:        wlarc=
                   8299:       else
                   8300:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8301:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8302:       fi
                   8303:       ;;
1.23      millert  8304:
1.27      millert  8305:     solaris*)
                   8306:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
                   8307:        ld_shlibs=no
                   8308:        cat <<EOF 1>&2
                   8309:
                   8310: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   8311: *** create shared libraries on Solaris systems.  Therefore, libtool
                   8312: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8313: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   8314: *** your PATH or compiler configuration so that the native linker is
                   8315: *** used, and then restart.
                   8316:
                   8317: EOF
                   8318:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8319:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8320:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8321:       else
                   8322:        ld_shlibs=no
                   8323:       fi
                   8324:       ;;
                   8325:
                   8326:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   8327:       case `$LD -v 2>&1` in
                   8328:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   8329:        ld_shlibs=no
                   8330:        cat <<_LT_EOF 1>&2
                   8331:
                   8332: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   8333: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   8334: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8335: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   8336: *** your PATH or compiler configuration so that the native linker is
                   8337: *** used, and then restart.
                   8338:
                   8339: _LT_EOF
                   8340:        ;;
                   8341:        *)
                   8342:          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8343:            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
                   8344:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
                   8345:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
                   8346:          else
                   8347:            ld_shlibs=no
                   8348:          fi
                   8349:        ;;
                   8350:       esac
                   8351:       ;;
                   8352:
                   8353:     sunos4*)
                   8354:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8355:       wlarc=
                   8356:       hardcode_direct=yes
                   8357:       hardcode_shlibpath_var=no
                   8358:       ;;
                   8359:
                   8360:     *)
                   8361:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8362:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8363:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8364:       else
                   8365:        ld_shlibs=no
                   8366:       fi
                   8367:       ;;
                   8368:     esac
                   8369:
                   8370:     if test "$ld_shlibs" = no; then
                   8371:       runpath_var=
                   8372:       hardcode_libdir_flag_spec=
                   8373:       export_dynamic_flag_spec=
                   8374:       whole_archive_flag_spec=
                   8375:     fi
                   8376:   else
                   8377:     # PORTME fill in a description of your system's linker (not GNU ld)
                   8378:     case $host_os in
                   8379:     aix3*)
                   8380:       allow_undefined_flag=unsupported
                   8381:       always_export_symbols=yes
                   8382:       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'
                   8383:       # Note: this linker hardcodes the directories in LIBPATH if there
                   8384:       # are no directories specified by -L.
                   8385:       hardcode_minus_L=yes
                   8386:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   8387:        # Neither direct hardcoding nor static linking is supported with a
                   8388:        # broken collect2.
                   8389:        hardcode_direct=unsupported
                   8390:       fi
                   8391:       ;;
                   8392:
                   8393:     aix4* | aix5*)
                   8394:       if test "$host_cpu" = ia64; then
                   8395:        # On IA64, the linker does run time linking by default, so we don't
                   8396:        # have to do anything special.
                   8397:        aix_use_runtimelinking=no
                   8398:        exp_sym_flag='-Bexport'
                   8399:        no_entry_flag=""
                   8400:       else
                   8401:        # If we're using GNU nm, then we don't want the "-C" option.
                   8402:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   8403:        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   8404:          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'
                   8405:        else
                   8406:          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'
                   8407:        fi
                   8408:        aix_use_runtimelinking=no
                   8409:
                   8410:        # Test if we are trying to use run time linking or normal
                   8411:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   8412:        # need to do runtime linking.
                   8413:        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
                   8414:          for ld_flag in $LDFLAGS; do
                   8415:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   8416:            aix_use_runtimelinking=yes
                   8417:            break
                   8418:          fi
                   8419:          done
                   8420:          ;;
                   8421:        esac
                   8422:
                   8423:        exp_sym_flag='-bexport'
                   8424:        no_entry_flag='-bnoentry'
                   8425:       fi
                   8426:
                   8427:       # When large executables or shared objects are built, AIX ld can
                   8428:       # have problems creating the table of contents.  If linking a library
                   8429:       # or program results in "error TOC overflow" add -mminimal-toc to
                   8430:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   8431:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   8432:
                   8433:       archive_cmds=''
                   8434:       hardcode_direct=yes
                   8435:       hardcode_libdir_separator=':'
                   8436:       link_all_deplibs=yes
                   8437:
                   8438:       if test "$GCC" = yes; then
                   8439:        case $host_os in aix4.[012]|aix4.[012].*)
                   8440:        # We only want to do this on AIX 4.2 and lower, the check
                   8441:        # below for broken collect2 doesn't work under 4.3+
                   8442:          collect2name=`${CC} -print-prog-name=collect2`
                   8443:          if test -f "$collect2name" && \
                   8444:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   8445:          then
                   8446:          # We have reworked collect2
                   8447:          :
                   8448:          else
                   8449:          # We have old collect2
                   8450:          hardcode_direct=unsupported
                   8451:          # It fails to find uninstalled libraries when the uninstalled
                   8452:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   8453:          # to unsupported forces relinking
                   8454:          hardcode_minus_L=yes
                   8455:          hardcode_libdir_flag_spec='-L$libdir'
                   8456:          hardcode_libdir_separator=
                   8457:          fi
                   8458:          ;;
                   8459:        esac
                   8460:        shared_flag='-shared'
                   8461:        if test "$aix_use_runtimelinking" = yes; then
                   8462:          shared_flag="$shared_flag "'${wl}-G'
                   8463:        fi
                   8464:       else
                   8465:        # not using gcc
                   8466:        if test "$host_cpu" = ia64; then
                   8467:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   8468:        # chokes on -Wl,-G. The following line is correct:
                   8469:          shared_flag='-G'
                   8470:        else
                   8471:          if test "$aix_use_runtimelinking" = yes; then
                   8472:            shared_flag='${wl}-G'
                   8473:          else
                   8474:            shared_flag='${wl}-bM:SRE'
                   8475:          fi
                   8476:        fi
                   8477:       fi
                   8478:
                   8479:       # It seems that -bexpall does not export symbols beginning with
                   8480:       # underscore (_), so it is better to generate a list of symbols to export.
                   8481:       always_export_symbols=yes
                   8482:       if test "$aix_use_runtimelinking" = yes; then
                   8483:        # Warning - without using the other runtime loading flags (-brtl),
                   8484:        # -berok will link without error, but may produce a broken library.
                   8485:        allow_undefined_flag='-berok'
                   8486:        # Determine the default libpath from the value encoded in an empty executable.
                   8487:        cat >conftest.$ac_ext <<_ACEOF
                   8488: /* confdefs.h.  */
                   8489: _ACEOF
                   8490: cat confdefs.h >>conftest.$ac_ext
                   8491: cat >>conftest.$ac_ext <<_ACEOF
                   8492: /* end confdefs.h.  */
                   8493:
                   8494: int
                   8495: main ()
                   8496: {
1.23      millert  8497:
1.25      millert  8498:   ;
                   8499:   return 0;
                   8500: }
                   8501: _ACEOF
                   8502: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  8503: if { (ac_try="$ac_link"
                   8504: case "(($ac_try" in
                   8505:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8506:   *) ac_try_echo=$ac_try;;
                   8507: esac
                   8508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8509:   (eval "$ac_link") 2>conftest.er1
1.25      millert  8510:   ac_status=$?
                   8511:   grep -v '^ *+' conftest.er1 >conftest.err
                   8512:   rm -f conftest.er1
                   8513:   cat conftest.err >&5
                   8514:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  8515:   (exit $ac_status); } && {
                   8516:         test -z "$ac_c_werror_flag" ||
                   8517:         test ! -s conftest.err
                   8518:        } && test -s conftest$ac_exeext &&
                   8519:        $as_test_x conftest$ac_exeext; then
                   8520:
                   8521: lt_aix_libpath_sed='
                   8522:     /Import File Strings/,/^$/ {
                   8523:        /^0/ {
                   8524:            s/^0  *\(.*\)$/\1/
                   8525:            p
                   8526:        }
                   8527:     }'
                   8528: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8529: # Check for a 64-bit object if we didn't find anything.
                   8530: if test -z "$aix_libpath"; then
                   8531:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8532: fi
1.23      millert  8533: else
1.25      millert  8534:   echo "$as_me: failed program was:" >&5
                   8535: sed 's/^/| /' conftest.$ac_ext >&5
                   8536:
1.23      millert  8537:
                   8538: fi
                   8539:
1.27      millert  8540: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   8541:       conftest$ac_exeext conftest.$ac_ext
                   8542: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25      millert  8543:
1.27      millert  8544:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   8545:        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"
                   8546:        else
                   8547:        if test "$host_cpu" = ia64; then
                   8548:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   8549:          allow_undefined_flag="-z nodefs"
                   8550:          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"
                   8551:        else
                   8552:         # Determine the default libpath from the value encoded in an empty executable.
                   8553:         cat >conftest.$ac_ext <<_ACEOF
                   8554: /* confdefs.h.  */
                   8555: _ACEOF
                   8556: cat confdefs.h >>conftest.$ac_ext
                   8557: cat >>conftest.$ac_ext <<_ACEOF
                   8558: /* end confdefs.h.  */
1.23      millert  8559:
1.27      millert  8560: int
                   8561: main ()
                   8562: {
1.23      millert  8563:
1.27      millert  8564:   ;
                   8565:   return 0;
                   8566: }
                   8567: _ACEOF
                   8568: rm -f conftest.$ac_objext conftest$ac_exeext
                   8569: if { (ac_try="$ac_link"
                   8570: case "(($ac_try" in
                   8571:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8572:   *) ac_try_echo=$ac_try;;
                   8573: esac
                   8574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8575:   (eval "$ac_link") 2>conftest.er1
                   8576:   ac_status=$?
                   8577:   grep -v '^ *+' conftest.er1 >conftest.err
                   8578:   rm -f conftest.er1
                   8579:   cat conftest.err >&5
                   8580:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8581:   (exit $ac_status); } && {
                   8582:         test -z "$ac_c_werror_flag" ||
                   8583:         test ! -s conftest.err
                   8584:        } && test -s conftest$ac_exeext &&
                   8585:        $as_test_x conftest$ac_exeext; then
1.23      millert  8586:
1.27      millert  8587: lt_aix_libpath_sed='
                   8588:     /Import File Strings/,/^$/ {
                   8589:        /^0/ {
                   8590:            s/^0  *\(.*\)$/\1/
                   8591:            p
                   8592:        }
                   8593:     }'
                   8594: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8595: # Check for a 64-bit object if we didn't find anything.
                   8596: if test -z "$aix_libpath"; then
                   8597:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8598: fi
1.23      millert  8599: else
1.27      millert  8600:   echo "$as_me: failed program was:" >&5
                   8601: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  8602:
                   8603:
1.27      millert  8604: fi
1.23      millert  8605:
1.27      millert  8606: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   8607:       conftest$ac_exeext conftest.$ac_ext
                   8608: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23      millert  8609:
1.27      millert  8610:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   8611:          # Warning - without using the other run time loading flags,
                   8612:          # -berok will link without error, but may produce a broken library.
                   8613:          no_undefined_flag=' ${wl}-bernotok'
                   8614:          allow_undefined_flag=' ${wl}-berok'
                   8615:          # Exported symbols can be pulled into shared objects from archives
                   8616:          whole_archive_flag_spec='$convenience'
                   8617:          archive_cmds_need_lc=yes
                   8618:          # This is similar to how AIX traditionally builds its shared libraries.
                   8619:          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'
                   8620:        fi
                   8621:       fi
                   8622:       ;;
1.23      millert  8623:
1.27      millert  8624:     amigaos*)
                   8625:       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)'
                   8626:       hardcode_libdir_flag_spec='-L$libdir'
                   8627:       hardcode_minus_L=yes
                   8628:       # see comment about different semantics on the GNU ld section
                   8629:       ld_shlibs=no
                   8630:       ;;
1.23      millert  8631:
1.27      millert  8632:     bsdi[45]*)
                   8633:       export_dynamic_flag_spec=-rdynamic
                   8634:       ;;
1.25      millert  8635:
1.27      millert  8636:     cygwin* | mingw* | pw32*)
                   8637:       # When not using gcc, we currently assume that we are using
                   8638:       # Microsoft Visual C++.
                   8639:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   8640:       # no search path for DLLs.
                   8641:       hardcode_libdir_flag_spec=' '
                   8642:       allow_undefined_flag=unsupported
                   8643:       # Tell ltmain to make .lib files, not .a files.
                   8644:       libext=lib
                   8645:       # Tell ltmain to make .dll files, not .so files.
                   8646:       shrext_cmds=".dll"
                   8647:       # FIXME: Setting linknames here is a bad hack.
                   8648:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
                   8649:       # The linker will automatically build a .lib file if we build a DLL.
                   8650:       old_archive_From_new_cmds='true'
                   8651:       # FIXME: Should let the user specify the lib program.
                   8652:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   8653:       fix_srcfile_path='`cygpath -w "$srcfile"`'
                   8654:       enable_shared_with_static_runtimes=yes
                   8655:       ;;
1.25      millert  8656:
1.27      millert  8657:     darwin* | rhapsody*)
                   8658:       case $host_os in
                   8659:         rhapsody* | darwin1.[012])
                   8660:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   8661:          ;;
                   8662:        *) # Darwin 1.3 on
                   8663:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
                   8664:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   8665:          else
                   8666:            case ${MACOSX_DEPLOYMENT_TARGET} in
                   8667:              10.[012])
                   8668:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   8669:                ;;
                   8670:              10.*)
                   8671:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   8672:                ;;
                   8673:            esac
                   8674:          fi
                   8675:          ;;
                   8676:       esac
                   8677:       archive_cmds_need_lc=no
                   8678:       hardcode_direct=no
                   8679:       hardcode_automatic=yes
                   8680:       hardcode_shlibpath_var=unsupported
                   8681:       whole_archive_flag_spec=''
                   8682:       link_all_deplibs=yes
                   8683:     if test "$GCC" = yes ; then
                   8684:        output_verbose_link_cmd='echo'
                   8685:         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
                   8686:       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   8687:       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   8688:       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8689:       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}'
                   8690:     else
                   8691:       case $cc_basename in
                   8692:         xlc*)
                   8693:          output_verbose_link_cmd='echo'
                   8694:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   8695:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   8696:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   8697:          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}'
                   8698:           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}'
                   8699:           ;;
                   8700:        *)
                   8701:          ld_shlibs=no
                   8702:           ;;
                   8703:       esac
                   8704:     fi
                   8705:       ;;
1.25      millert  8706:
1.27      millert  8707:     dgux*)
                   8708:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8709:       hardcode_libdir_flag_spec='-L$libdir'
                   8710:       hardcode_shlibpath_var=no
1.25      millert  8711:       ;;
                   8712:
1.27      millert  8713:     freebsd1*)
                   8714:       ld_shlibs=no
                   8715:       ;;
1.23      millert  8716:
1.27      millert  8717:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   8718:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   8719:     # does not break anything, and helps significantly (at the cost of a little
                   8720:     # extra space).
                   8721:     freebsd2.2*)
                   8722:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   8723:       hardcode_libdir_flag_spec='-R$libdir'
                   8724:       hardcode_direct=yes
                   8725:       hardcode_shlibpath_var=no
                   8726:       ;;
1.23      millert  8727:
1.27      millert  8728:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   8729:     freebsd2*)
                   8730:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8731:       hardcode_direct=yes
                   8732:       hardcode_minus_L=yes
                   8733:       hardcode_shlibpath_var=no
                   8734:       ;;
1.23      millert  8735:
1.27      millert  8736:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   8737:     freebsd* | dragonfly*)
                   8738:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   8739:       hardcode_libdir_flag_spec='-R$libdir'
                   8740:       hardcode_direct=yes
                   8741:       hardcode_shlibpath_var=no
                   8742:       ;;
1.23      millert  8743:
1.27      millert  8744:     hpux9*)
                   8745:       if test "$GCC" = yes; then
                   8746:        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'
                   8747:       else
                   8748:        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'
                   8749:       fi
                   8750:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   8751:       hardcode_libdir_separator=:
                   8752:       hardcode_direct=yes
1.23      millert  8753:
1.27      millert  8754:       # hardcode_minus_L: Not really in the search PATH,
                   8755:       # but as the default location of the library.
                   8756:       hardcode_minus_L=yes
                   8757:       export_dynamic_flag_spec='${wl}-E'
                   8758:       ;;
1.23      millert  8759:
1.27      millert  8760:     hpux10*)
                   8761:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   8762:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   8763:       else
                   8764:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   8765:       fi
                   8766:       if test "$with_gnu_ld" = no; then
                   8767:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   8768:        hardcode_libdir_separator=:
1.23      millert  8769:
1.27      millert  8770:        hardcode_direct=yes
                   8771:        export_dynamic_flag_spec='${wl}-E'
1.23      millert  8772:
1.27      millert  8773:        # hardcode_minus_L: Not really in the search PATH,
                   8774:        # but as the default location of the library.
                   8775:        hardcode_minus_L=yes
                   8776:       fi
                   8777:       ;;
1.23      millert  8778:
1.27      millert  8779:     hpux11*)
                   8780:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   8781:        case $host_cpu in
                   8782:        hppa*64*)
                   8783:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   8784:          ;;
                   8785:        ia64*)
                   8786:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   8787:          ;;
                   8788:        *)
                   8789:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   8790:          ;;
                   8791:        esac
                   8792:       else
                   8793:        case $host_cpu in
                   8794:        hppa*64*)
                   8795:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   8796:          ;;
                   8797:        ia64*)
                   8798:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   8799:          ;;
                   8800:        *)
                   8801:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   8802:          ;;
                   8803:        esac
                   8804:       fi
                   8805:       if test "$with_gnu_ld" = no; then
                   8806:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   8807:        hardcode_libdir_separator=:
1.23      millert  8808:
1.27      millert  8809:        case $host_cpu in
                   8810:        hppa*64*|ia64*)
                   8811:          hardcode_libdir_flag_spec_ld='+b $libdir'
                   8812:          hardcode_direct=no
                   8813:          hardcode_shlibpath_var=no
                   8814:          ;;
                   8815:        *)
                   8816:          hardcode_direct=yes
                   8817:          export_dynamic_flag_spec='${wl}-E'
1.23      millert  8818:
1.27      millert  8819:          # hardcode_minus_L: Not really in the search PATH,
                   8820:          # but as the default location of the library.
                   8821:          hardcode_minus_L=yes
                   8822:          ;;
                   8823:        esac
                   8824:       fi
                   8825:       ;;
1.23      millert  8826:
1.27      millert  8827:     irix5* | irix6* | nonstopux*)
                   8828:       if test "$GCC" = yes; then
                   8829:        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'
                   8830:       else
                   8831:        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'
                   8832:        hardcode_libdir_flag_spec_ld='-rpath $libdir'
                   8833:       fi
                   8834:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   8835:       hardcode_libdir_separator=:
                   8836:       link_all_deplibs=yes
                   8837:       ;;
1.23      millert  8838:
1.27      millert  8839:     netbsd*)
                   8840:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   8841:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   8842:       else
                   8843:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   8844:       fi
                   8845:       hardcode_libdir_flag_spec='-R$libdir'
                   8846:       hardcode_direct=yes
                   8847:       hardcode_shlibpath_var=no
                   8848:       ;;
1.23      millert  8849:
1.27      millert  8850:     newsos6)
                   8851:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8852:       hardcode_direct=yes
                   8853:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   8854:       hardcode_libdir_separator=:
                   8855:       hardcode_shlibpath_var=no
                   8856:       ;;
1.23      millert  8857:
1.27      millert  8858:     openbsd*)
                   8859:       if test -f /usr/libexec/ld.so; then
                   8860:        hardcode_direct=yes
                   8861:        hardcode_shlibpath_var=no
                   8862:        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   8863:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   8864:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   8865:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8866:          export_dynamic_flag_spec='${wl}-E'
                   8867:        else
                   8868:          case $host_os in
                   8869:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   8870:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8871:             hardcode_libdir_flag_spec='-R$libdir'
                   8872:             ;;
                   8873:           *)
                   8874:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   8875:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8876:             ;;
                   8877:          esac
                   8878:         fi
                   8879:       else
                   8880:        ld_shlibs=no
                   8881:       fi
                   8882:       ;;
1.23      millert  8883:
1.27      millert  8884:     os2*)
                   8885:       hardcode_libdir_flag_spec='-L$libdir'
                   8886:       hardcode_minus_L=yes
                   8887:       allow_undefined_flag=unsupported
                   8888:       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'
                   8889:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   8890:       ;;
1.23      millert  8891:
1.27      millert  8892:     osf3*)
                   8893:       if test "$GCC" = yes; then
                   8894:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   8895:        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'
                   8896:       else
                   8897:        allow_undefined_flag=' -expect_unresolved \*'
                   8898:        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'
                   8899:       fi
                   8900:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   8901:       hardcode_libdir_separator=:
1.25      millert  8902:       ;;
1.23      millert  8903:
1.27      millert  8904:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   8905:       if test "$GCC" = yes; then
                   8906:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   8907:        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'
                   8908:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   8909:       else
                   8910:        allow_undefined_flag=' -expect_unresolved \*'
                   8911:        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'
                   8912:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
                   8913:        $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  8914:
1.27      millert  8915:        # Both c and cxx compiler support -rpath directly
                   8916:        hardcode_libdir_flag_spec='-rpath $libdir'
                   8917:       fi
                   8918:       hardcode_libdir_separator=:
                   8919:       ;;
1.23      millert  8920:
1.27      millert  8921:     solaris*)
                   8922:       no_undefined_flag=' -z text'
                   8923:       if test "$GCC" = yes; then
                   8924:        wlarc='${wl}'
                   8925:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   8926:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   8927:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
                   8928:       else
                   8929:        wlarc=''
                   8930:        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8931:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   8932:        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
                   8933:       fi
                   8934:       hardcode_libdir_flag_spec='-R$libdir'
                   8935:       hardcode_shlibpath_var=no
                   8936:       case $host_os in
                   8937:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   8938:       *)
                   8939:        # The compiler driver will combine and reorder linker options,
                   8940:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   8941:        # but is careful enough not to reorder.
                   8942:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   8943:        if test "$GCC" = yes; then
                   8944:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   8945:        else
                   8946:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   8947:        fi
                   8948:        ;;
                   8949:       esac
                   8950:       link_all_deplibs=yes
                   8951:       ;;
1.23      millert  8952:
1.27      millert  8953:     sunos4*)
                   8954:       if test "x$host_vendor" = xsequent; then
                   8955:        # Use $CC to link under sequent, because it throws in some extra .o
                   8956:        # files that make .init and .fini sections work.
                   8957:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   8958:       else
                   8959:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   8960:       fi
                   8961:       hardcode_libdir_flag_spec='-L$libdir'
                   8962:       hardcode_direct=yes
                   8963:       hardcode_minus_L=yes
                   8964:       hardcode_shlibpath_var=no
                   8965:       ;;
1.23      millert  8966:
1.27      millert  8967:     sysv4)
                   8968:       case $host_vendor in
                   8969:        sni)
                   8970:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8971:          hardcode_direct=yes # is this really true???
                   8972:        ;;
                   8973:        siemens)
                   8974:          ## LD is ld it makes a PLAMLIB
                   8975:          ## CC just makes a GrossModule.
                   8976:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   8977:          reload_cmds='$CC -r -o $output$reload_objs'
                   8978:          hardcode_direct=no
                   8979:         ;;
                   8980:        motorola)
                   8981:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8982:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   8983:        ;;
                   8984:       esac
                   8985:       runpath_var='LD_RUN_PATH'
                   8986:       hardcode_shlibpath_var=no
                   8987:       ;;
1.23      millert  8988:
1.27      millert  8989:     sysv4.3*)
                   8990:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8991:       hardcode_shlibpath_var=no
                   8992:       export_dynamic_flag_spec='-Bexport'
                   8993:       ;;
1.23      millert  8994:
1.27      millert  8995:     sysv4*MP*)
                   8996:       if test -d /usr/nec; then
                   8997:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8998:        hardcode_shlibpath_var=no
                   8999:        runpath_var=LD_RUN_PATH
                   9000:        hardcode_runpath_var=yes
                   9001:        ld_shlibs=yes
                   9002:       fi
                   9003:       ;;
1.23      millert  9004:
1.27      millert  9005:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   9006:       no_undefined_flag='${wl}-z,text'
                   9007:       archive_cmds_need_lc=no
                   9008:       hardcode_shlibpath_var=no
                   9009:       runpath_var='LD_RUN_PATH'
1.23      millert  9010:
1.27      millert  9011:       if test "$GCC" = yes; then
                   9012:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9013:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9014:       else
                   9015:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9016:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9017:       fi
                   9018:       ;;
1.23      millert  9019:
1.27      millert  9020:     sysv5* | sco3.2v5* | sco5v6*)
                   9021:       # Note: We can NOT use -z defs as we might desire, because we do not
                   9022:       # link with -lc, and that would cause any symbols used from libc to
                   9023:       # always be unresolved, which means just about no library would
                   9024:       # ever link correctly.  If we're not using GNU ld we use -z text
                   9025:       # though, which does catch some bad symbols but isn't as heavy-handed
                   9026:       # as -z defs.
                   9027:       no_undefined_flag='${wl}-z,text'
                   9028:       allow_undefined_flag='${wl}-z,nodefs'
                   9029:       archive_cmds_need_lc=no
                   9030:       hardcode_shlibpath_var=no
                   9031:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   9032:       hardcode_libdir_separator=':'
                   9033:       link_all_deplibs=yes
                   9034:       export_dynamic_flag_spec='${wl}-Bexport'
                   9035:       runpath_var='LD_RUN_PATH'
1.23      millert  9036:
1.27      millert  9037:       if test "$GCC" = yes; then
                   9038:        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9039:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9040:       else
                   9041:        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9042:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9043:       fi
                   9044:       ;;
1.23      millert  9045:
1.27      millert  9046:     uts4*)
                   9047:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9048:       hardcode_libdir_flag_spec='-L$libdir'
                   9049:       hardcode_shlibpath_var=no
                   9050:       ;;
1.23      millert  9051:
1.27      millert  9052:     *)
                   9053:       ld_shlibs=no
                   9054:       ;;
                   9055:     esac
                   9056:   fi
1.23      millert  9057:
1.27      millert  9058: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
                   9059: echo "${ECHO_T}$ld_shlibs" >&6; }
                   9060: test "$ld_shlibs" = no && can_build_shared=no
1.23      millert  9061:
1.27      millert  9062: #
                   9063: # Do we need to explicitly link libc?
                   9064: #
                   9065: case "x$archive_cmds_need_lc" in
                   9066: x|xyes)
                   9067:   # Assume -lc should be added
                   9068:   archive_cmds_need_lc=yes
1.23      millert  9069:
1.27      millert  9070:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   9071:     case $archive_cmds in
                   9072:     *'~'*)
                   9073:       # FIXME: we may have to deal with multi-command sequences.
                   9074:       ;;
                   9075:     '$CC '*)
                   9076:       # Test whether the compiler implicitly links with -lc since on some
                   9077:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   9078:       # to ld, don't add -lc before -lgcc.
                   9079:       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
                   9080: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
                   9081:       $rm conftest*
                   9082:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25      millert  9083:
1.27      millert  9084:       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   9085:   (eval $ac_compile) 2>&5
                   9086:   ac_status=$?
                   9087:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9088:   (exit $ac_status); } 2>conftest.err; then
                   9089:         soname=conftest
                   9090:         lib=conftest
                   9091:         libobjs=conftest.$ac_objext
                   9092:         deplibs=
                   9093:         wl=$lt_prog_compiler_wl
                   9094:        pic_flag=$lt_prog_compiler_pic
                   9095:         compiler_flags=-v
                   9096:         linker_flags=-v
                   9097:         verstring=
                   9098:         output_objdir=.
                   9099:         libname=conftest
                   9100:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   9101:         allow_undefined_flag=
                   9102:         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
                   9103:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   9104:   ac_status=$?
                   9105:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9106:   (exit $ac_status); }
                   9107:         then
                   9108:          archive_cmds_need_lc=no
                   9109:         else
                   9110:          archive_cmds_need_lc=yes
                   9111:         fi
                   9112:         allow_undefined_flag=$lt_save_allow_undefined_flag
                   9113:       else
                   9114:         cat conftest.err 1>&5
                   9115:       fi
                   9116:       $rm conftest*
                   9117:       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
                   9118: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
                   9119:       ;;
                   9120:     esac
                   9121:   fi
                   9122:   ;;
                   9123: esac
1.23      millert  9124:
1.27      millert  9125: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
                   9126: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
                   9127: library_names_spec=
                   9128: libname_spec='lib$name'
                   9129: soname_spec=
                   9130: shrext_cmds=".so"
                   9131: postinstall_cmds=
                   9132: postuninstall_cmds=
                   9133: finish_cmds=
                   9134: finish_eval=
                   9135: shlibpath_var=
                   9136: shlibpath_overrides_runpath=unknown
                   9137: version_type=none
                   9138: dynamic_linker="$host_os ld.so"
                   9139: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23      millert  9140:
1.27      millert  9141: if test "$GCC" = yes; then
                   9142:   case $host_os in
                   9143:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   9144:     *) lt_awk_arg="/^libraries:/" ;;
                   9145:   esac
                   9146:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9147:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
                   9148:     # if the path contains ";" then we assume it to be the separator
                   9149:     # otherwise default to the standard path separator (i.e. ":") - it is
                   9150:     # assumed that no part of a normal pathname contains ";" but that should
                   9151:     # okay in the real world where ";" in dirpaths is itself problematic.
                   9152:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
                   9153:   else
                   9154:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9155:   fi
                   9156:   # Ok, now we have the path, separated by spaces, we can step through it
                   9157:   # and add multilib dir if necessary.
                   9158:   lt_tmp_lt_search_path_spec=
                   9159:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   9160:   for lt_sys_path in $lt_search_path_spec; do
                   9161:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   9162:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   9163:     else
                   9164:       test -d "$lt_sys_path" && \
                   9165:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   9166:     fi
                   9167:   done
                   9168:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
                   9169: BEGIN {RS=" "; FS="/|\n";} {
                   9170:   lt_foo="";
                   9171:   lt_count=0;
                   9172:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   9173:     if ($lt_i != "" && $lt_i != ".") {
                   9174:       if ($lt_i == "..") {
                   9175:         lt_count++;
                   9176:       } else {
                   9177:         if (lt_count == 0) {
                   9178:           lt_foo="/" $lt_i lt_foo;
                   9179:         } else {
                   9180:           lt_count--;
                   9181:         }
                   9182:       }
                   9183:     }
                   9184:   }
                   9185:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   9186:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   9187: }'`
                   9188:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25      millert  9189: else
1.27      millert  9190:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25      millert  9191: fi
1.27      millert  9192: need_lib_prefix=no
                   9193: hardcode_into_libs=no
1.25      millert  9194:
1.27      millert  9195: # when you set need_version to no, make sure it does not cause -set_version
                   9196: # flags to be left without arguments
                   9197: need_version=no
1.25      millert  9198:
1.27      millert  9199: case $host_os in
                   9200: aix3*)
                   9201:   version_type=linux
                   9202:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   9203:   shlibpath_var=LIBPATH
1.25      millert  9204:
1.27      millert  9205:   # AIX 3 has no versioning support, so we append a major version to the name.
                   9206:   soname_spec='${libname}${release}${shared_ext}$major'
                   9207:   ;;
1.23      millert  9208:
1.27      millert  9209: aix4* | aix5*)
                   9210:   version_type=linux
                   9211:   need_lib_prefix=no
                   9212:   need_version=no
                   9213:   hardcode_into_libs=yes
                   9214:   if test "$host_cpu" = ia64; then
                   9215:     # AIX 5 supports IA64
                   9216:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   9217:     shlibpath_var=LD_LIBRARY_PATH
                   9218:   else
                   9219:     # With GCC up to 2.95.x, collect2 would create an import file
                   9220:     # for dependence libraries.  The import file would start with
                   9221:     # the line `#! .'.  This would cause the generated library to
                   9222:     # depend on `.', always an invalid library.  This was fixed in
                   9223:     # development snapshots of GCC prior to 3.0.
                   9224:     case $host_os in
                   9225:       aix4 | aix4.[01] | aix4.[01].*)
                   9226:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   9227:           echo ' yes '
                   9228:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   9229:        :
                   9230:       else
                   9231:        can_build_shared=no
                   9232:       fi
                   9233:       ;;
                   9234:     esac
                   9235:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   9236:     # soname into executable. Probably we can add versioning support to
                   9237:     # collect2, so additional links can be useful in future.
                   9238:     if test "$aix_use_runtimelinking" = yes; then
                   9239:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   9240:       # instead of lib<name>.a to let people know that these are not
                   9241:       # typical AIX shared libraries.
                   9242:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9243:     else
                   9244:       # We preserve .a as extension for shared libraries through AIX4.2
                   9245:       # and later when we are not doing run time linking.
                   9246:       library_names_spec='${libname}${release}.a $libname.a'
                   9247:       soname_spec='${libname}${release}${shared_ext}$major'
                   9248:     fi
                   9249:     shlibpath_var=LIBPATH
                   9250:   fi
                   9251:   ;;
1.23      millert  9252:
1.27      millert  9253: amigaos*)
                   9254:   library_names_spec='$libname.ixlibrary $libname.a'
                   9255:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   9256:   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'
                   9257:   ;;
1.23      millert  9258:
1.27      millert  9259: beos*)
                   9260:   library_names_spec='${libname}${shared_ext}'
                   9261:   dynamic_linker="$host_os ld.so"
                   9262:   shlibpath_var=LIBRARY_PATH
                   9263:   ;;
1.23      millert  9264:
1.27      millert  9265: bsdi[45]*)
                   9266:   version_type=linux
                   9267:   need_version=no
                   9268:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9269:   soname_spec='${libname}${release}${shared_ext}$major'
                   9270:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   9271:   shlibpath_var=LD_LIBRARY_PATH
                   9272:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   9273:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   9274:   # the default ld.so.conf also contains /usr/contrib/lib and
                   9275:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   9276:   # libtool to hard-code these into programs
                   9277:   ;;
1.23      millert  9278:
1.27      millert  9279: cygwin* | mingw* | pw32*)
                   9280:   version_type=windows
                   9281:   shrext_cmds=".dll"
                   9282:   need_version=no
                   9283:   need_lib_prefix=no
1.23      millert  9284:
1.27      millert  9285:   case $GCC,$host_os in
                   9286:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   9287:     library_names_spec='$libname.dll.a'
                   9288:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   9289:     postinstall_cmds='base_file=`basename \${file}`~
                   9290:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   9291:       dldir=$destdir/`dirname \$dlpath`~
                   9292:       test -d \$dldir || mkdir -p \$dldir~
                   9293:       $install_prog $dir/$dlname \$dldir/$dlname~
                   9294:       chmod a+x \$dldir/$dlname'
                   9295:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   9296:       dlpath=$dir/\$dldll~
                   9297:        $rm \$dlpath'
                   9298:     shlibpath_overrides_runpath=yes
1.23      millert  9299:
1.27      millert  9300:     case $host_os in
                   9301:     cygwin*)
                   9302:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   9303:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9304:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   9305:       ;;
                   9306:     mingw*)
                   9307:       # MinGW DLLs use traditional 'lib' prefix
                   9308:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9309:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9310:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   9311:         # It is most probably a Windows format PATH printed by
                   9312:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   9313:         # path with ; separators, and with drive letters. We can handle the
                   9314:         # drive letters (cygwin fileutils understands them), so leave them,
                   9315:         # especially as we might pass files found there to a mingw objdump,
                   9316:         # which wouldn't understand a cygwinified path. Ahh.
                   9317:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   9318:       else
                   9319:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9320:       fi
                   9321:       ;;
                   9322:     pw32*)
                   9323:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   9324:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9325:       ;;
                   9326:     esac
                   9327:     ;;
1.23      millert  9328:
1.27      millert  9329:   *)
                   9330:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   9331:     ;;
                   9332:   esac
                   9333:   dynamic_linker='Win32 ld.exe'
                   9334:   # FIXME: first we should search . and the directory the executable is in
                   9335:   shlibpath_var=PATH
                   9336:   ;;
1.23      millert  9337:
1.27      millert  9338: darwin* | rhapsody*)
                   9339:   dynamic_linker="$host_os dyld"
                   9340:   version_type=darwin
                   9341:   need_lib_prefix=no
                   9342:   need_version=no
                   9343:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   9344:   soname_spec='${libname}${release}${major}$shared_ext'
                   9345:   shlibpath_overrides_runpath=yes
                   9346:   shlibpath_var=DYLD_LIBRARY_PATH
                   9347:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23      millert  9348:
1.27      millert  9349:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   9350:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   9351:   ;;
1.23      millert  9352:
1.27      millert  9353: dgux*)
                   9354:   version_type=linux
                   9355:   need_lib_prefix=no
                   9356:   need_version=no
                   9357:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   9358:   soname_spec='${libname}${release}${shared_ext}$major'
                   9359:   shlibpath_var=LD_LIBRARY_PATH
                   9360:   ;;
1.23      millert  9361:
1.27      millert  9362: freebsd1*)
                   9363:   dynamic_linker=no
                   9364:   ;;
1.23      millert  9365:
1.27      millert  9366: freebsd* | dragonfly*)
                   9367:   # DragonFly does not have aout.  When/if they implement a new
                   9368:   # versioning mechanism, adjust this.
                   9369:   if test -x /usr/bin/objformat; then
                   9370:     objformat=`/usr/bin/objformat`
                   9371:   else
                   9372:     case $host_os in
                   9373:     freebsd[123]*) objformat=aout ;;
                   9374:     *) objformat=elf ;;
                   9375:     esac
                   9376:   fi
                   9377:   version_type=freebsd-$objformat
                   9378:   case $version_type in
                   9379:     freebsd-elf*)
                   9380:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9381:       need_version=no
                   9382:       need_lib_prefix=no
                   9383:       ;;
                   9384:     freebsd-*)
                   9385:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   9386:       need_version=no
                   9387:       ;;
                   9388:   esac
                   9389:   shlibpath_var=LD_LIBRARY_PATH
                   9390:   case $host_os in
                   9391:   freebsd2*)
                   9392:     shlibpath_overrides_runpath=yes
                   9393:     ;;
                   9394:   freebsd3.[01]* | freebsdelf3.[01]*)
                   9395:     shlibpath_overrides_runpath=yes
                   9396:     hardcode_into_libs=yes
                   9397:     ;;
                   9398:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   9399:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   9400:     shlibpath_overrides_runpath=no
                   9401:     hardcode_into_libs=yes
                   9402:     ;;
                   9403:   *) # from 4.6 on, and DragonFly
                   9404:     shlibpath_overrides_runpath=yes
                   9405:     hardcode_into_libs=yes
                   9406:     ;;
                   9407:   esac
                   9408:   ;;
1.23      millert  9409:
1.27      millert  9410: gnu*)
                   9411:   version_type=linux
                   9412:   need_lib_prefix=no
                   9413:   need_version=no
                   9414:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   9415:   soname_spec='${libname}${release}${shared_ext}$major'
                   9416:   shlibpath_var=LD_LIBRARY_PATH
                   9417:   hardcode_into_libs=yes
                   9418:   ;;
1.23      millert  9419:
1.27      millert  9420: hpux9* | hpux10* | hpux11*)
                   9421:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   9422:   # link against other versions.
                   9423:   version_type=sunos
                   9424:   need_lib_prefix=no
                   9425:   need_version=no
                   9426:   case $host_cpu in
                   9427:   ia64*)
                   9428:     shrext_cmds='.so'
                   9429:     hardcode_into_libs=yes
                   9430:     dynamic_linker="$host_os dld.so"
                   9431:     shlibpath_var=LD_LIBRARY_PATH
                   9432:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9433:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9434:     soname_spec='${libname}${release}${shared_ext}$major'
                   9435:     if test "X$HPUX_IA64_MODE" = X32; then
                   9436:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   9437:     else
                   9438:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   9439:     fi
                   9440:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9441:     ;;
                   9442:    hppa*64*)
                   9443:      shrext_cmds='.sl'
                   9444:      hardcode_into_libs=yes
                   9445:      dynamic_linker="$host_os dld.sl"
                   9446:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   9447:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9448:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9449:      soname_spec='${libname}${release}${shared_ext}$major'
                   9450:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   9451:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9452:      ;;
                   9453:    *)
                   9454:     shrext_cmds='.sl'
                   9455:     dynamic_linker="$host_os dld.sl"
                   9456:     shlibpath_var=SHLIB_PATH
                   9457:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   9458:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9459:     soname_spec='${libname}${release}${shared_ext}$major'
                   9460:     ;;
                   9461:   esac
                   9462:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   9463:   postinstall_cmds='chmod 555 $lib'
                   9464:   ;;
1.23      millert  9465:
1.27      millert  9466: interix[3-9]*)
                   9467:   version_type=linux
                   9468:   need_lib_prefix=no
                   9469:   need_version=no
                   9470:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9471:   soname_spec='${libname}${release}${shared_ext}$major'
                   9472:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   9473:   shlibpath_var=LD_LIBRARY_PATH
                   9474:   shlibpath_overrides_runpath=no
                   9475:   hardcode_into_libs=yes
                   9476:   ;;
1.23      millert  9477:
1.27      millert  9478: irix5* | irix6* | nonstopux*)
                   9479:   case $host_os in
                   9480:     nonstopux*) version_type=nonstopux ;;
                   9481:     *)
                   9482:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   9483:                version_type=linux
                   9484:        else
                   9485:                version_type=irix
                   9486:        fi ;;
                   9487:   esac
                   9488:   need_lib_prefix=no
                   9489:   need_version=no
                   9490:   soname_spec='${libname}${release}${shared_ext}$major'
                   9491:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9492:   case $host_os in
                   9493:   irix5* | nonstopux*)
                   9494:     libsuff= shlibsuff=
                   9495:     ;;
                   9496:   *)
                   9497:     case $LD in # libtool.m4 will add one of these switches to LD
                   9498:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   9499:       libsuff= shlibsuff= libmagic=32-bit;;
                   9500:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   9501:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   9502:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   9503:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   9504:     *) libsuff= shlibsuff= libmagic=never-match;;
                   9505:     esac
                   9506:     ;;
                   9507:   esac
                   9508:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   9509:   shlibpath_overrides_runpath=no
                   9510:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   9511:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   9512:   hardcode_into_libs=yes
                   9513:   ;;
1.23      millert  9514:
1.27      millert  9515: # No shared lib support for Linux oldld, aout, or coff.
                   9516: linux*oldld* | linux*aout* | linux*coff*)
                   9517:   dynamic_linker=no
1.25      millert  9518:   ;;
1.23      millert  9519:
1.27      millert  9520: # This must be Linux ELF.
                   9521: linux* | k*bsd*-gnu)
                   9522:   version_type=linux
                   9523:   need_lib_prefix=no
                   9524:   need_version=no
                   9525:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9526:   soname_spec='${libname}${release}${shared_ext}$major'
                   9527:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   9528:   shlibpath_var=LD_LIBRARY_PATH
                   9529:   shlibpath_overrides_runpath=no
                   9530:   # This implies no fast_install, which is unacceptable.
                   9531:   # Some rework will be needed to allow for fast_install
                   9532:   # before this can be enabled.
                   9533:   hardcode_into_libs=yes
1.23      millert  9534:
1.27      millert  9535:   # Append ld.so.conf contents to the search path
                   9536:   if test -f /etc/ld.so.conf; then
                   9537:     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' ' '`
                   9538:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   9539:   fi
1.23      millert  9540:
1.27      millert  9541:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   9542:   # powerpc, because MkLinux only supported shared libraries with the
                   9543:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   9544:   # most powerpc-linux boxes support dynamic linking these days and
                   9545:   # people can always --disable-shared, the test was removed, and we
                   9546:   # assume the GNU/Linux dynamic linker is in use.
                   9547:   dynamic_linker='GNU/Linux ld.so'
                   9548:   ;;
1.23      millert  9549:
1.27      millert  9550: netbsd*)
                   9551:   version_type=sunos
                   9552:   need_lib_prefix=no
                   9553:   need_version=no
                   9554:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   9555:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   9556:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   9557:     dynamic_linker='NetBSD (a.out) ld.so'
                   9558:   else
                   9559:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9560:     soname_spec='${libname}${release}${shared_ext}$major'
                   9561:     dynamic_linker='NetBSD ld.elf_so'
                   9562:   fi
                   9563:   shlibpath_var=LD_LIBRARY_PATH
                   9564:   shlibpath_overrides_runpath=yes
                   9565:   hardcode_into_libs=yes
                   9566:   ;;
1.23      millert  9567:
1.27      millert  9568: newsos6)
                   9569:   version_type=linux
                   9570:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9571:   shlibpath_var=LD_LIBRARY_PATH
                   9572:   shlibpath_overrides_runpath=yes
                   9573:   ;;
1.23      millert  9574:
1.27      millert  9575: nto-qnx*)
                   9576:   version_type=linux
                   9577:   need_lib_prefix=no
                   9578:   need_version=no
                   9579:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9580:   soname_spec='${libname}${release}${shared_ext}$major'
                   9581:   shlibpath_var=LD_LIBRARY_PATH
                   9582:   shlibpath_overrides_runpath=yes
                   9583:   ;;
1.23      millert  9584:
1.27      millert  9585: openbsd*)
                   9586:   version_type=sunos
                   9587:   sys_lib_dlsearch_path_spec="/usr/lib"
                   9588:   need_lib_prefix=no
                   9589:   need_version=no
                   9590:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   9591:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   9592:   shlibpath_var=LD_LIBRARY_PATH
                   9593:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   9594:     case $host_os in
                   9595:       openbsd2.[89] | openbsd2.[89].*)
                   9596:        shlibpath_overrides_runpath=no
                   9597:        ;;
                   9598:       *)
                   9599:        shlibpath_overrides_runpath=yes
                   9600:        ;;
                   9601:       esac
                   9602:   else
                   9603:     shlibpath_overrides_runpath=yes
                   9604:   fi
                   9605:   ;;
1.23      millert  9606:
1.27      millert  9607: os2*)
                   9608:   libname_spec='$name'
                   9609:   shrext_cmds=".dll"
                   9610:   need_lib_prefix=no
                   9611:   library_names_spec='$libname${shared_ext} $libname.a'
                   9612:   dynamic_linker='OS/2 ld.exe'
                   9613:   shlibpath_var=LIBPATH
                   9614:   ;;
1.23      millert  9615:
1.27      millert  9616: osf3* | osf4* | osf5*)
                   9617:   version_type=osf
                   9618:   need_lib_prefix=no
                   9619:   need_version=no
                   9620:   soname_spec='${libname}${release}${shared_ext}$major'
                   9621:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9622:   shlibpath_var=LD_LIBRARY_PATH
                   9623:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   9624:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   9625:   ;;
1.23      millert  9626:
1.27      millert  9627: rdos*)
                   9628:   dynamic_linker=no
                   9629:   ;;
1.23      millert  9630:
1.27      millert  9631: solaris*)
                   9632:   version_type=linux
                   9633:   need_lib_prefix=no
                   9634:   need_version=no
                   9635:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9636:   soname_spec='${libname}${release}${shared_ext}$major'
                   9637:   shlibpath_var=LD_LIBRARY_PATH
                   9638:   shlibpath_overrides_runpath=yes
                   9639:   hardcode_into_libs=yes
                   9640:   # ldd complains unless libraries are executable
                   9641:   postinstall_cmds='chmod +x $lib'
                   9642:   ;;
1.23      millert  9643:
1.27      millert  9644: sunos4*)
                   9645:   version_type=sunos
                   9646:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   9647:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   9648:   shlibpath_var=LD_LIBRARY_PATH
                   9649:   shlibpath_overrides_runpath=yes
                   9650:   if test "$with_gnu_ld" = yes; then
                   9651:     need_lib_prefix=no
                   9652:   fi
                   9653:   need_version=no
                   9654:   ;;
1.23      millert  9655:
1.27      millert  9656: sysv4 | sysv4.3*)
                   9657:   version_type=linux
                   9658:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9659:   soname_spec='${libname}${release}${shared_ext}$major'
                   9660:   shlibpath_var=LD_LIBRARY_PATH
                   9661:   case $host_vendor in
                   9662:     sni)
                   9663:       shlibpath_overrides_runpath=no
                   9664:       need_lib_prefix=no
                   9665:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   9666:       runpath_var=LD_RUN_PATH
                   9667:       ;;
                   9668:     siemens)
                   9669:       need_lib_prefix=no
                   9670:       ;;
                   9671:     motorola)
                   9672:       need_lib_prefix=no
                   9673:       need_version=no
                   9674:       shlibpath_overrides_runpath=no
                   9675:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   9676:       ;;
                   9677:   esac
1.25      millert  9678:   ;;
                   9679:
1.27      millert  9680: sysv4*MP*)
                   9681:   if test -d /usr/nec ;then
                   9682:     version_type=linux
                   9683:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   9684:     soname_spec='$libname${shared_ext}.$major'
                   9685:     shlibpath_var=LD_LIBRARY_PATH
                   9686:   fi
                   9687:   ;;
1.25      millert  9688:
1.27      millert  9689: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   9690:   version_type=freebsd-elf
                   9691:   need_lib_prefix=no
                   9692:   need_version=no
                   9693:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9694:   soname_spec='${libname}${release}${shared_ext}$major'
                   9695:   shlibpath_var=LD_LIBRARY_PATH
                   9696:   hardcode_into_libs=yes
                   9697:   if test "$with_gnu_ld" = yes; then
                   9698:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   9699:     shlibpath_overrides_runpath=no
                   9700:   else
                   9701:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   9702:     shlibpath_overrides_runpath=yes
                   9703:     case $host_os in
                   9704:       sco3.2v5*)
                   9705:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   9706:        ;;
                   9707:     esac
                   9708:   fi
                   9709:   sys_lib_dlsearch_path_spec='/usr/lib'
1.25      millert  9710:   ;;
1.23      millert  9711:
1.27      millert  9712: uts4*)
                   9713:   version_type=linux
                   9714:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9715:   soname_spec='${libname}${release}${shared_ext}$major'
                   9716:   shlibpath_var=LD_LIBRARY_PATH
                   9717:   ;;
1.23      millert  9718:
1.25      millert  9719: *)
1.27      millert  9720:   dynamic_linker=no
1.25      millert  9721:   ;;
                   9722: esac
1.27      millert  9723: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
                   9724: echo "${ECHO_T}$dynamic_linker" >&6; }
                   9725: test "$dynamic_linker" = no && can_build_shared=no
1.23      millert  9726:
1.27      millert  9727: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   9728: if test "$GCC" = yes; then
                   9729:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25      millert  9730: fi
                   9731:
1.27      millert  9732: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
                   9733: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
                   9734: hardcode_action=
                   9735: if test -n "$hardcode_libdir_flag_spec" || \
                   9736:    test -n "$runpath_var" || \
                   9737:    test "X$hardcode_automatic" = "Xyes" ; then
1.23      millert  9738:
1.32      millert  9739:   # We can hardcode non-existent directories.
1.27      millert  9740:   if test "$hardcode_direct" != no &&
                   9741:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   9742:      # have to relink, otherwise we might link with an installed library
                   9743:      # when we should be linking with a yet-to-be-installed one
                   9744:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   9745:      test "$hardcode_minus_L" != no; then
                   9746:     # Linking always hardcodes the temporary library directory.
                   9747:     hardcode_action=relink
1.25      millert  9748:   else
1.27      millert  9749:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   9750:     hardcode_action=immediate
1.25      millert  9751:   fi
1.27      millert  9752: else
                   9753:   # We cannot hardcode anything, or else we can only hardcode existing
                   9754:   # directories.
                   9755:   hardcode_action=unsupported
1.23      millert  9756: fi
1.27      millert  9757: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
                   9758: echo "${ECHO_T}$hardcode_action" >&6; }
1.23      millert  9759:
1.27      millert  9760: if test "$hardcode_action" = relink; then
                   9761:   # Fast installation is not supported
                   9762:   enable_fast_install=no
                   9763: elif test "$shlibpath_overrides_runpath" = yes ||
                   9764:      test "$enable_shared" = no; then
                   9765:   # Fast installation is not necessary
                   9766:   enable_fast_install=needless
                   9767: fi
1.25      millert  9768:
1.27      millert  9769: striplib=
                   9770: old_striplib=
                   9771: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
                   9772: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
                   9773: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
                   9774:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   9775:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   9776:   { echo "$as_me:$LINENO: result: yes" >&5
                   9777: echo "${ECHO_T}yes" >&6; }
                   9778: else
                   9779: # FIXME - insert some real tests, host_os isn't really good enough
                   9780:   case $host_os in
                   9781:    darwin*)
                   9782:        if test -n "$STRIP" ; then
                   9783:          striplib="$STRIP -x"
                   9784:          old_striplib="$STRIP -S"
                   9785:          { echo "$as_me:$LINENO: result: yes" >&5
                   9786: echo "${ECHO_T}yes" >&6; }
                   9787:        else
                   9788:   { echo "$as_me:$LINENO: result: no" >&5
                   9789: echo "${ECHO_T}no" >&6; }
                   9790: fi
                   9791:        ;;
                   9792:    *)
                   9793:   { echo "$as_me:$LINENO: result: no" >&5
                   9794: echo "${ECHO_T}no" >&6; }
                   9795:     ;;
                   9796:   esac
                   9797: fi
1.25      millert  9798:
1.27      millert  9799: if test "x$enable_dlopen" != xyes; then
                   9800:   enable_dlopen=unknown
                   9801:   enable_dlopen_self=unknown
                   9802:   enable_dlopen_self_static=unknown
                   9803: else
                   9804:   lt_cv_dlopen=no
                   9805:   lt_cv_dlopen_libs=
1.25      millert  9806:
1.27      millert  9807:   case $host_os in
                   9808:   beos*)
                   9809:     lt_cv_dlopen="load_add_on"
                   9810:     lt_cv_dlopen_libs=
                   9811:     lt_cv_dlopen_self=yes
                   9812:     ;;
1.23      millert  9813:
1.27      millert  9814:   mingw* | pw32*)
                   9815:     lt_cv_dlopen="LoadLibrary"
                   9816:     lt_cv_dlopen_libs=
                   9817:    ;;
1.23      millert  9818:
1.27      millert  9819:   cygwin*)
                   9820:     lt_cv_dlopen="dlopen"
                   9821:     lt_cv_dlopen_libs=
                   9822:    ;;
1.23      millert  9823:
1.27      millert  9824:   darwin*)
                   9825:   # if libdl is installed we need to link against it
                   9826:     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   9827: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   9828: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   9829:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   9830: else
                   9831:   ac_check_lib_save_LIBS=$LIBS
                   9832: LIBS="-ldl  $LIBS"
                   9833: cat >conftest.$ac_ext <<_ACEOF
                   9834: /* confdefs.h.  */
                   9835: _ACEOF
                   9836: cat confdefs.h >>conftest.$ac_ext
                   9837: cat >>conftest.$ac_ext <<_ACEOF
                   9838: /* end confdefs.h.  */
1.23      millert  9839:
1.27      millert  9840: /* Override any GCC internal prototype to avoid an error.
                   9841:    Use char because int might match the return type of a GCC
                   9842:    builtin and then its argument prototype would still apply.  */
                   9843: #ifdef __cplusplus
                   9844: extern "C"
                   9845: #endif
                   9846: char dlopen ();
                   9847: int
                   9848: main ()
                   9849: {
                   9850: return dlopen ();
                   9851:   ;
                   9852:   return 0;
                   9853: }
                   9854: _ACEOF
                   9855: rm -f conftest.$ac_objext conftest$ac_exeext
                   9856: if { (ac_try="$ac_link"
                   9857: case "(($ac_try" in
                   9858:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9859:   *) ac_try_echo=$ac_try;;
                   9860: esac
                   9861: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9862:   (eval "$ac_link") 2>conftest.er1
                   9863:   ac_status=$?
                   9864:   grep -v '^ *+' conftest.er1 >conftest.err
                   9865:   rm -f conftest.er1
                   9866:   cat conftest.err >&5
                   9867:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9868:   (exit $ac_status); } && {
                   9869:         test -z "$ac_c_werror_flag" ||
                   9870:         test ! -s conftest.err
                   9871:        } && test -s conftest$ac_exeext &&
                   9872:        $as_test_x conftest$ac_exeext; then
                   9873:   ac_cv_lib_dl_dlopen=yes
                   9874: else
                   9875:   echo "$as_me: failed program was:" >&5
                   9876: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  9877:
1.27      millert  9878:        ac_cv_lib_dl_dlopen=no
                   9879: fi
1.23      millert  9880:
1.27      millert  9881: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9882:       conftest$ac_exeext conftest.$ac_ext
                   9883: LIBS=$ac_check_lib_save_LIBS
                   9884: fi
                   9885: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   9886: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   9887: if test $ac_cv_lib_dl_dlopen = yes; then
                   9888:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   9889: else
1.23      millert  9890:
1.27      millert  9891:     lt_cv_dlopen="dyld"
                   9892:     lt_cv_dlopen_libs=
                   9893:     lt_cv_dlopen_self=yes
1.23      millert  9894:
1.27      millert  9895: fi
1.23      millert  9896:
1.27      millert  9897:    ;;
1.23      millert  9898:
1.27      millert  9899:   *)
                   9900:     { echo "$as_me:$LINENO: checking for shl_load" >&5
                   9901: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
                   9902: if test "${ac_cv_func_shl_load+set}" = set; then
                   9903:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   9904: else
                   9905:   cat >conftest.$ac_ext <<_ACEOF
                   9906: /* confdefs.h.  */
                   9907: _ACEOF
                   9908: cat confdefs.h >>conftest.$ac_ext
                   9909: cat >>conftest.$ac_ext <<_ACEOF
                   9910: /* end confdefs.h.  */
                   9911: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
                   9912:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   9913: #define shl_load innocuous_shl_load
1.23      millert  9914:
1.27      millert  9915: /* System header to define __stub macros and hopefully few prototypes,
                   9916:     which can conflict with char shl_load (); below.
                   9917:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   9918:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  9919:
1.27      millert  9920: #ifdef __STDC__
                   9921: # include <limits.h>
                   9922: #else
                   9923: # include <assert.h>
                   9924: #endif
1.23      millert  9925:
1.27      millert  9926: #undef shl_load
1.23      millert  9927:
1.27      millert  9928: /* Override any GCC internal prototype to avoid an error.
                   9929:    Use char because int might match the return type of a GCC
                   9930:    builtin and then its argument prototype would still apply.  */
                   9931: #ifdef __cplusplus
                   9932: extern "C"
                   9933: #endif
                   9934: char shl_load ();
                   9935: /* The GNU C library defines this for functions which it implements
                   9936:     to always fail with ENOSYS.  Some functions are actually named
                   9937:     something starting with __ and the normal name is an alias.  */
                   9938: #if defined __stub_shl_load || defined __stub___shl_load
                   9939: choke me
                   9940: #endif
1.23      millert  9941:
1.27      millert  9942: int
                   9943: main ()
                   9944: {
                   9945: return shl_load ();
                   9946:   ;
                   9947:   return 0;
                   9948: }
                   9949: _ACEOF
                   9950: rm -f conftest.$ac_objext conftest$ac_exeext
                   9951: if { (ac_try="$ac_link"
                   9952: case "(($ac_try" in
                   9953:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9954:   *) ac_try_echo=$ac_try;;
                   9955: esac
                   9956: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9957:   (eval "$ac_link") 2>conftest.er1
                   9958:   ac_status=$?
                   9959:   grep -v '^ *+' conftest.er1 >conftest.err
                   9960:   rm -f conftest.er1
                   9961:   cat conftest.err >&5
                   9962:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9963:   (exit $ac_status); } && {
                   9964:         test -z "$ac_c_werror_flag" ||
                   9965:         test ! -s conftest.err
                   9966:        } && test -s conftest$ac_exeext &&
                   9967:        $as_test_x conftest$ac_exeext; then
                   9968:   ac_cv_func_shl_load=yes
                   9969: else
                   9970:   echo "$as_me: failed program was:" >&5
                   9971: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  9972:
1.27      millert  9973:        ac_cv_func_shl_load=no
                   9974: fi
1.23      millert  9975:
1.27      millert  9976: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9977:       conftest$ac_exeext conftest.$ac_ext
1.25      millert  9978: fi
1.27      millert  9979: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
                   9980: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
                   9981: if test $ac_cv_func_shl_load = yes; then
                   9982:   lt_cv_dlopen="shl_load"
                   9983: else
                   9984:   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
                   9985: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
                   9986: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25      millert  9987:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   9988: else
1.27      millert  9989:   ac_check_lib_save_LIBS=$LIBS
                   9990: LIBS="-ldld  $LIBS"
                   9991: cat >conftest.$ac_ext <<_ACEOF
                   9992: /* confdefs.h.  */
                   9993: _ACEOF
                   9994: cat confdefs.h >>conftest.$ac_ext
                   9995: cat >>conftest.$ac_ext <<_ACEOF
                   9996: /* end confdefs.h.  */
1.25      millert  9997:
1.27      millert  9998: /* Override any GCC internal prototype to avoid an error.
                   9999:    Use char because int might match the return type of a GCC
                   10000:    builtin and then its argument prototype would still apply.  */
                   10001: #ifdef __cplusplus
                   10002: extern "C"
                   10003: #endif
                   10004: char shl_load ();
                   10005: int
                   10006: main ()
                   10007: {
                   10008: return shl_load ();
                   10009:   ;
                   10010:   return 0;
                   10011: }
                   10012: _ACEOF
                   10013: rm -f conftest.$ac_objext conftest$ac_exeext
                   10014: if { (ac_try="$ac_link"
                   10015: case "(($ac_try" in
                   10016:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10017:   *) ac_try_echo=$ac_try;;
                   10018: esac
                   10019: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10020:   (eval "$ac_link") 2>conftest.er1
                   10021:   ac_status=$?
                   10022:   grep -v '^ *+' conftest.er1 >conftest.err
                   10023:   rm -f conftest.er1
                   10024:   cat conftest.err >&5
                   10025:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10026:   (exit $ac_status); } && {
                   10027:         test -z "$ac_c_werror_flag" ||
                   10028:         test ! -s conftest.err
                   10029:        } && test -s conftest$ac_exeext &&
                   10030:        $as_test_x conftest$ac_exeext; then
                   10031:   ac_cv_lib_dld_shl_load=yes
1.25      millert  10032: else
1.27      millert  10033:   echo "$as_me: failed program was:" >&5
                   10034: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10035:
1.27      millert  10036:        ac_cv_lib_dld_shl_load=no
1.25      millert  10037: fi
                   10038:
1.27      millert  10039: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10040:       conftest$ac_exeext conftest.$ac_ext
                   10041: LIBS=$ac_check_lib_save_LIBS
                   10042: fi
                   10043: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
                   10044: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
                   10045: if test $ac_cv_lib_dld_shl_load = yes; then
                   10046:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
                   10047: else
                   10048:   { echo "$as_me:$LINENO: checking for dlopen" >&5
                   10049: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
                   10050: if test "${ac_cv_func_dlopen+set}" = set; then
                   10051:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10052: else
                   10053:   cat >conftest.$ac_ext <<_ACEOF
                   10054: /* confdefs.h.  */
                   10055: _ACEOF
                   10056: cat confdefs.h >>conftest.$ac_ext
                   10057: cat >>conftest.$ac_ext <<_ACEOF
                   10058: /* end confdefs.h.  */
                   10059: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
                   10060:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10061: #define dlopen innocuous_dlopen
                   10062:
                   10063: /* System header to define __stub macros and hopefully few prototypes,
                   10064:     which can conflict with char dlopen (); below.
                   10065:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10066:     <limits.h> exists even on freestanding compilers.  */
                   10067:
                   10068: #ifdef __STDC__
                   10069: # include <limits.h>
                   10070: #else
                   10071: # include <assert.h>
                   10072: #endif
                   10073:
                   10074: #undef dlopen
                   10075:
                   10076: /* Override any GCC internal prototype to avoid an error.
                   10077:    Use char because int might match the return type of a GCC
                   10078:    builtin and then its argument prototype would still apply.  */
                   10079: #ifdef __cplusplus
                   10080: extern "C"
                   10081: #endif
                   10082: char dlopen ();
                   10083: /* The GNU C library defines this for functions which it implements
                   10084:     to always fail with ENOSYS.  Some functions are actually named
                   10085:     something starting with __ and the normal name is an alias.  */
                   10086: #if defined __stub_dlopen || defined __stub___dlopen
                   10087: choke me
                   10088: #endif
                   10089:
                   10090: int
                   10091: main ()
                   10092: {
                   10093: return dlopen ();
                   10094:   ;
                   10095:   return 0;
                   10096: }
                   10097: _ACEOF
                   10098: rm -f conftest.$ac_objext conftest$ac_exeext
                   10099: if { (ac_try="$ac_link"
                   10100: case "(($ac_try" in
                   10101:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10102:   *) ac_try_echo=$ac_try;;
                   10103: esac
                   10104: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10105:   (eval "$ac_link") 2>conftest.er1
                   10106:   ac_status=$?
                   10107:   grep -v '^ *+' conftest.er1 >conftest.err
                   10108:   rm -f conftest.er1
                   10109:   cat conftest.err >&5
                   10110:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10111:   (exit $ac_status); } && {
                   10112:         test -z "$ac_c_werror_flag" ||
                   10113:         test ! -s conftest.err
                   10114:        } && test -s conftest$ac_exeext &&
                   10115:        $as_test_x conftest$ac_exeext; then
                   10116:   ac_cv_func_dlopen=yes
                   10117: else
                   10118:   echo "$as_me: failed program was:" >&5
                   10119: sed 's/^/| /' conftest.$ac_ext >&5
                   10120:
                   10121:        ac_cv_func_dlopen=no
                   10122: fi
                   10123:
                   10124: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10125:       conftest$ac_exeext conftest.$ac_ext
                   10126: fi
                   10127: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   10128: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
                   10129: if test $ac_cv_func_dlopen = yes; then
                   10130:   lt_cv_dlopen="dlopen"
                   10131: else
                   10132:   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10133: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10134: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10135:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10136: else
                   10137:   ac_check_lib_save_LIBS=$LIBS
                   10138: LIBS="-ldl  $LIBS"
                   10139: cat >conftest.$ac_ext <<_ACEOF
                   10140: /* confdefs.h.  */
                   10141: _ACEOF
                   10142: cat confdefs.h >>conftest.$ac_ext
                   10143: cat >>conftest.$ac_ext <<_ACEOF
                   10144: /* end confdefs.h.  */
                   10145:
                   10146: /* Override any GCC internal prototype to avoid an error.
                   10147:    Use char because int might match the return type of a GCC
                   10148:    builtin and then its argument prototype would still apply.  */
                   10149: #ifdef __cplusplus
                   10150: extern "C"
                   10151: #endif
                   10152: char dlopen ();
                   10153: int
                   10154: main ()
                   10155: {
                   10156: return dlopen ();
                   10157:   ;
                   10158:   return 0;
                   10159: }
                   10160: _ACEOF
                   10161: rm -f conftest.$ac_objext conftest$ac_exeext
                   10162: if { (ac_try="$ac_link"
                   10163: case "(($ac_try" in
                   10164:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10165:   *) ac_try_echo=$ac_try;;
                   10166: esac
                   10167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10168:   (eval "$ac_link") 2>conftest.er1
                   10169:   ac_status=$?
                   10170:   grep -v '^ *+' conftest.er1 >conftest.err
                   10171:   rm -f conftest.er1
                   10172:   cat conftest.err >&5
                   10173:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10174:   (exit $ac_status); } && {
                   10175:         test -z "$ac_c_werror_flag" ||
                   10176:         test ! -s conftest.err
                   10177:        } && test -s conftest$ac_exeext &&
                   10178:        $as_test_x conftest$ac_exeext; then
                   10179:   ac_cv_lib_dl_dlopen=yes
                   10180: else
                   10181:   echo "$as_me: failed program was:" >&5
                   10182: sed 's/^/| /' conftest.$ac_ext >&5
                   10183:
                   10184:        ac_cv_lib_dl_dlopen=no
                   10185: fi
                   10186:
                   10187: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10188:       conftest$ac_exeext conftest.$ac_ext
                   10189: LIBS=$ac_check_lib_save_LIBS
                   10190: fi
                   10191: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10192: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10193: if test $ac_cv_lib_dl_dlopen = yes; then
                   10194:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10195: else
                   10196:   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
                   10197: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
                   10198: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
                   10199:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10200: else
                   10201:   ac_check_lib_save_LIBS=$LIBS
                   10202: LIBS="-lsvld  $LIBS"
                   10203: cat >conftest.$ac_ext <<_ACEOF
                   10204: /* confdefs.h.  */
                   10205: _ACEOF
                   10206: cat confdefs.h >>conftest.$ac_ext
                   10207: cat >>conftest.$ac_ext <<_ACEOF
                   10208: /* end confdefs.h.  */
                   10209:
                   10210: /* Override any GCC internal prototype to avoid an error.
                   10211:    Use char because int might match the return type of a GCC
                   10212:    builtin and then its argument prototype would still apply.  */
                   10213: #ifdef __cplusplus
                   10214: extern "C"
                   10215: #endif
                   10216: char dlopen ();
                   10217: int
                   10218: main ()
                   10219: {
                   10220: return dlopen ();
                   10221:   ;
                   10222:   return 0;
                   10223: }
                   10224: _ACEOF
                   10225: rm -f conftest.$ac_objext conftest$ac_exeext
                   10226: if { (ac_try="$ac_link"
                   10227: case "(($ac_try" in
                   10228:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10229:   *) ac_try_echo=$ac_try;;
                   10230: esac
                   10231: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10232:   (eval "$ac_link") 2>conftest.er1
                   10233:   ac_status=$?
                   10234:   grep -v '^ *+' conftest.er1 >conftest.err
                   10235:   rm -f conftest.er1
                   10236:   cat conftest.err >&5
                   10237:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10238:   (exit $ac_status); } && {
                   10239:         test -z "$ac_c_werror_flag" ||
                   10240:         test ! -s conftest.err
                   10241:        } && test -s conftest$ac_exeext &&
                   10242:        $as_test_x conftest$ac_exeext; then
                   10243:   ac_cv_lib_svld_dlopen=yes
                   10244: else
                   10245:   echo "$as_me: failed program was:" >&5
                   10246: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10247:
1.27      millert  10248:        ac_cv_lib_svld_dlopen=no
                   10249: fi
1.25      millert  10250:
1.27      millert  10251: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10252:       conftest$ac_exeext conftest.$ac_ext
                   10253: LIBS=$ac_check_lib_save_LIBS
                   10254: fi
                   10255: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
                   10256: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
                   10257: if test $ac_cv_lib_svld_dlopen = yes; then
                   10258:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   10259: else
                   10260:   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
                   10261: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
                   10262: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
                   10263:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10264: else
                   10265:   ac_check_lib_save_LIBS=$LIBS
                   10266: LIBS="-ldld  $LIBS"
                   10267: cat >conftest.$ac_ext <<_ACEOF
                   10268: /* confdefs.h.  */
                   10269: _ACEOF
                   10270: cat confdefs.h >>conftest.$ac_ext
                   10271: cat >>conftest.$ac_ext <<_ACEOF
                   10272: /* end confdefs.h.  */
1.25      millert  10273:
1.27      millert  10274: /* Override any GCC internal prototype to avoid an error.
                   10275:    Use char because int might match the return type of a GCC
                   10276:    builtin and then its argument prototype would still apply.  */
                   10277: #ifdef __cplusplus
                   10278: extern "C"
                   10279: #endif
                   10280: char dld_link ();
                   10281: int
                   10282: main ()
                   10283: {
                   10284: return dld_link ();
                   10285:   ;
                   10286:   return 0;
                   10287: }
                   10288: _ACEOF
                   10289: rm -f conftest.$ac_objext conftest$ac_exeext
                   10290: if { (ac_try="$ac_link"
                   10291: case "(($ac_try" in
                   10292:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10293:   *) ac_try_echo=$ac_try;;
                   10294: esac
                   10295: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10296:   (eval "$ac_link") 2>conftest.er1
                   10297:   ac_status=$?
                   10298:   grep -v '^ *+' conftest.er1 >conftest.err
                   10299:   rm -f conftest.er1
                   10300:   cat conftest.err >&5
                   10301:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10302:   (exit $ac_status); } && {
                   10303:         test -z "$ac_c_werror_flag" ||
                   10304:         test ! -s conftest.err
                   10305:        } && test -s conftest$ac_exeext &&
                   10306:        $as_test_x conftest$ac_exeext; then
                   10307:   ac_cv_lib_dld_dld_link=yes
                   10308: else
                   10309:   echo "$as_me: failed program was:" >&5
                   10310: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10311:
1.27      millert  10312:        ac_cv_lib_dld_dld_link=no
                   10313: fi
1.25      millert  10314:
1.27      millert  10315: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10316:       conftest$ac_exeext conftest.$ac_ext
                   10317: LIBS=$ac_check_lib_save_LIBS
                   10318: fi
                   10319: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
                   10320: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
                   10321: if test $ac_cv_lib_dld_dld_link = yes; then
                   10322:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
                   10323: fi
1.25      millert  10324:
1.23      millert  10325:
1.27      millert  10326: fi
1.23      millert  10327:
                   10328:
1.27      millert  10329: fi
1.23      millert  10330:
1.25      millert  10331:
1.27      millert  10332: fi
1.23      millert  10333:
                   10334:
1.27      millert  10335: fi
1.23      millert  10336:
                   10337:
1.27      millert  10338: fi
1.23      millert  10339:
1.27      millert  10340:     ;;
                   10341:   esac
1.23      millert  10342:
1.27      millert  10343:   if test "x$lt_cv_dlopen" != xno; then
                   10344:     enable_dlopen=yes
                   10345:   else
                   10346:     enable_dlopen=no
                   10347:   fi
1.25      millert  10348:
1.27      millert  10349:   case $lt_cv_dlopen in
                   10350:   dlopen)
                   10351:     save_CPPFLAGS="$CPPFLAGS"
                   10352:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23      millert  10353:
1.27      millert  10354:     save_LDFLAGS="$LDFLAGS"
                   10355:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25      millert  10356:
1.27      millert  10357:     save_LIBS="$LIBS"
                   10358:     LIBS="$lt_cv_dlopen_libs $LIBS"
1.23      millert  10359:
1.27      millert  10360:     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
                   10361: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
                   10362: if test "${lt_cv_dlopen_self+set}" = set; then
                   10363:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10364: else
                   10365:          if test "$cross_compiling" = yes; then :
                   10366:   lt_cv_dlopen_self=cross
                   10367: else
                   10368:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10369:   lt_status=$lt_dlunknown
                   10370:   cat > conftest.$ac_ext <<EOF
1.32      millert  10371: #line 10371 "configure"
1.27      millert  10372: #include "confdefs.h"
1.23      millert  10373:
1.27      millert  10374: #if HAVE_DLFCN_H
                   10375: #include <dlfcn.h>
                   10376: #endif
1.25      millert  10377:
1.27      millert  10378: #include <stdio.h>
1.25      millert  10379:
1.27      millert  10380: #ifdef RTLD_GLOBAL
                   10381: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10382: #else
                   10383: #  ifdef DL_GLOBAL
                   10384: #    define LT_DLGLOBAL                DL_GLOBAL
                   10385: #  else
                   10386: #    define LT_DLGLOBAL                0
                   10387: #  endif
                   10388: #endif
1.25      millert  10389:
1.27      millert  10390: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10391:    find out it does not work in some platform. */
                   10392: #ifndef LT_DLLAZY_OR_NOW
                   10393: #  ifdef RTLD_LAZY
                   10394: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10395: #  else
                   10396: #    ifdef DL_LAZY
                   10397: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10398: #    else
                   10399: #      ifdef RTLD_NOW
                   10400: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10401: #      else
                   10402: #        ifdef DL_NOW
                   10403: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10404: #        else
                   10405: #          define LT_DLLAZY_OR_NOW     0
                   10406: #        endif
                   10407: #      endif
                   10408: #    endif
                   10409: #  endif
                   10410: #endif
1.23      millert  10411:
1.27      millert  10412: #ifdef __cplusplus
                   10413: extern "C" void exit (int);
                   10414: #endif
1.23      millert  10415:
1.27      millert  10416: void fnord() { int i=42;}
                   10417: int main ()
                   10418: {
                   10419:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   10420:   int status = $lt_dlunknown;
1.23      millert  10421:
1.27      millert  10422:   if (self)
                   10423:     {
                   10424:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   10425:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   10426:       /* dlclose (self); */
                   10427:     }
                   10428:   else
                   10429:     puts (dlerror ());
1.23      millert  10430:
1.27      millert  10431:     exit (status);
                   10432: }
                   10433: EOF
                   10434:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10435:   (eval $ac_link) 2>&5
                   10436:   ac_status=$?
                   10437:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10438:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   10439:     (./conftest; exit; ) >&5 2>/dev/null
                   10440:     lt_status=$?
                   10441:     case x$lt_status in
                   10442:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   10443:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   10444:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23      millert  10445:     esac
1.27      millert  10446:   else :
                   10447:     # compilation failed
                   10448:     lt_cv_dlopen_self=no
1.23      millert  10449:   fi
1.27      millert  10450: fi
                   10451: rm -fr conftest*
1.23      millert  10452:
                   10453:
1.27      millert  10454: fi
                   10455: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
                   10456: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23      millert  10457:
1.27      millert  10458:     if test "x$lt_cv_dlopen_self" = xyes; then
                   10459:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   10460:       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
                   10461: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
                   10462: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25      millert  10463:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  10464: else
1.27      millert  10465:          if test "$cross_compiling" = yes; then :
                   10466:   lt_cv_dlopen_self_static=cross
1.25      millert  10467: else
1.27      millert  10468:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10469:   lt_status=$lt_dlunknown
                   10470:   cat > conftest.$ac_ext <<EOF
1.32      millert  10471: #line 10471 "configure"
1.27      millert  10472: #include "confdefs.h"
1.23      millert  10473:
1.27      millert  10474: #if HAVE_DLFCN_H
                   10475: #include <dlfcn.h>
                   10476: #endif
1.23      millert  10477:
1.27      millert  10478: #include <stdio.h>
1.25      millert  10479:
1.27      millert  10480: #ifdef RTLD_GLOBAL
                   10481: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10482: #else
                   10483: #  ifdef DL_GLOBAL
                   10484: #    define LT_DLGLOBAL                DL_GLOBAL
                   10485: #  else
                   10486: #    define LT_DLGLOBAL                0
                   10487: #  endif
                   10488: #endif
1.25      millert  10489:
1.27      millert  10490: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10491:    find out it does not work in some platform. */
                   10492: #ifndef LT_DLLAZY_OR_NOW
                   10493: #  ifdef RTLD_LAZY
                   10494: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10495: #  else
                   10496: #    ifdef DL_LAZY
                   10497: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10498: #    else
                   10499: #      ifdef RTLD_NOW
                   10500: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10501: #      else
                   10502: #        ifdef DL_NOW
                   10503: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10504: #        else
                   10505: #          define LT_DLLAZY_OR_NOW     0
                   10506: #        endif
                   10507: #      endif
                   10508: #    endif
                   10509: #  endif
                   10510: #endif
1.25      millert  10511:
1.27      millert  10512: #ifdef __cplusplus
                   10513: extern "C" void exit (int);
                   10514: #endif
1.25      millert  10515:
1.27      millert  10516: void fnord() { int i=42;}
                   10517: int main ()
                   10518: {
                   10519:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   10520:   int status = $lt_dlunknown;
1.25      millert  10521:
1.27      millert  10522:   if (self)
                   10523:     {
                   10524:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   10525:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   10526:       /* dlclose (self); */
                   10527:     }
                   10528:   else
                   10529:     puts (dlerror ());
1.25      millert  10530:
1.27      millert  10531:     exit (status);
                   10532: }
                   10533: EOF
                   10534:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10535:   (eval $ac_link) 2>&5
                   10536:   ac_status=$?
                   10537:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10538:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   10539:     (./conftest; exit; ) >&5 2>/dev/null
                   10540:     lt_status=$?
                   10541:     case x$lt_status in
                   10542:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   10543:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   10544:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   10545:     esac
                   10546:   else :
                   10547:     # compilation failed
                   10548:     lt_cv_dlopen_self_static=no
                   10549:   fi
1.23      millert  10550: fi
1.27      millert  10551: rm -fr conftest*
1.23      millert  10552:
                   10553:
1.25      millert  10554: fi
1.27      millert  10555: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
                   10556: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
                   10557:     fi
1.23      millert  10558:
1.27      millert  10559:     CPPFLAGS="$save_CPPFLAGS"
                   10560:     LDFLAGS="$save_LDFLAGS"
                   10561:     LIBS="$save_LIBS"
1.25      millert  10562:     ;;
                   10563:   esac
1.23      millert  10564:
1.27      millert  10565:   case $lt_cv_dlopen_self in
                   10566:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   10567:   *) enable_dlopen_self=unknown ;;
                   10568:   esac
1.23      millert  10569:
1.27      millert  10570:   case $lt_cv_dlopen_self_static in
                   10571:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   10572:   *) enable_dlopen_self_static=unknown ;;
1.23      millert  10573:   esac
1.27      millert  10574: fi
1.23      millert  10575:
                   10576:
1.27      millert  10577: # Report which library types will actually be built
                   10578: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
                   10579: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
                   10580: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
                   10581: echo "${ECHO_T}$can_build_shared" >&6; }
                   10582:
                   10583: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
                   10584: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
                   10585: test "$can_build_shared" = "no" && enable_shared=no
1.25      millert  10586:
1.27      millert  10587: # On AIX, shared libraries and static libraries use the same namespace, and
                   10588: # are all built from PIC.
                   10589: case $host_os in
                   10590: aix3*)
                   10591:   test "$enable_shared" = yes && enable_static=no
                   10592:   if test -n "$RANLIB"; then
                   10593:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   10594:     postinstall_cmds='$RANLIB $lib'
                   10595:   fi
1.23      millert  10596:   ;;
                   10597:
1.27      millert  10598: aix4* | aix5*)
                   10599:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   10600:     test "$enable_shared" = yes && enable_static=no
                   10601:   fi
                   10602:     ;;
1.23      millert  10603: esac
1.27      millert  10604: { echo "$as_me:$LINENO: result: $enable_shared" >&5
                   10605: echo "${ECHO_T}$enable_shared" >&6; }
1.23      millert  10606:
1.27      millert  10607: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
                   10608: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
                   10609: # Make sure either enable_shared or enable_static is yes.
                   10610: test "$enable_shared" = yes || enable_static=yes
                   10611: { echo "$as_me:$LINENO: result: $enable_static" >&5
                   10612: echo "${ECHO_T}$enable_static" >&6; }
                   10613:
                   10614: # The else clause should only fire when bootstrapping the
                   10615: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   10616: # with your package, and you will get complaints that there are
                   10617: # no rules to generate ltmain.sh.
                   10618: if test -f "$ltmain"; then
                   10619:   # See if we are running on zsh, and set the options which allow our commands through
                   10620:   # without removal of \ escapes.
                   10621:   if test -n "${ZSH_VERSION+set}" ; then
                   10622:     setopt NO_GLOB_SUBST
                   10623:   fi
                   10624:   # Now quote all the things that may contain metacharacters while being
                   10625:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   10626:   # variables and quote the copies for generation of the libtool script.
                   10627:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   10628:     SED SHELL STRIP \
                   10629:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   10630:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   10631:     deplibs_check_method reload_flag reload_cmds need_locks \
                   10632:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   10633:     lt_cv_sys_global_symbol_to_c_name_address \
                   10634:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   10635:     old_postinstall_cmds old_postuninstall_cmds \
                   10636:     compiler \
                   10637:     CC \
                   10638:     LD \
                   10639:     lt_prog_compiler_wl \
                   10640:     lt_prog_compiler_pic \
                   10641:     lt_prog_compiler_static \
                   10642:     lt_prog_compiler_no_builtin_flag \
                   10643:     export_dynamic_flag_spec \
                   10644:     thread_safe_flag_spec \
                   10645:     whole_archive_flag_spec \
                   10646:     enable_shared_with_static_runtimes \
                   10647:     old_archive_cmds \
                   10648:     old_archive_from_new_cmds \
                   10649:     predep_objects \
                   10650:     postdep_objects \
                   10651:     predeps \
                   10652:     postdeps \
                   10653:     compiler_lib_search_path \
                   10654:     archive_cmds \
                   10655:     archive_expsym_cmds \
                   10656:     postinstall_cmds \
                   10657:     postuninstall_cmds \
                   10658:     old_archive_from_expsyms_cmds \
                   10659:     allow_undefined_flag \
                   10660:     no_undefined_flag \
                   10661:     export_symbols_cmds \
                   10662:     hardcode_libdir_flag_spec \
                   10663:     hardcode_libdir_flag_spec_ld \
                   10664:     hardcode_libdir_separator \
                   10665:     hardcode_automatic \
                   10666:     module_cmds \
                   10667:     module_expsym_cmds \
                   10668:     lt_cv_prog_compiler_c_o \
                   10669:     fix_srcfile_path \
                   10670:     exclude_expsyms \
                   10671:     include_expsyms; do
                   10672:
                   10673:     case $var in
                   10674:     old_archive_cmds | \
                   10675:     old_archive_from_new_cmds | \
                   10676:     archive_cmds | \
                   10677:     archive_expsym_cmds | \
                   10678:     module_cmds | \
                   10679:     module_expsym_cmds | \
                   10680:     old_archive_from_expsyms_cmds | \
                   10681:     export_symbols_cmds | \
                   10682:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   10683:     postinstall_cmds | postuninstall_cmds | \
                   10684:     old_postinstall_cmds | old_postuninstall_cmds | \
                   10685:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   10686:       # Double-quote double-evaled strings.
                   10687:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   10688:       ;;
                   10689:     *)
                   10690:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   10691:       ;;
                   10692:     esac
                   10693:   done
1.23      millert  10694:
1.27      millert  10695:   case $lt_echo in
                   10696:   *'\$0 --fallback-echo"')
                   10697:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   10698:     ;;
                   10699:   esac
1.23      millert  10700:
1.27      millert  10701: cfgfile="${ofile}T"
                   10702:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
                   10703:   $rm -f "$cfgfile"
                   10704:   { echo "$as_me:$LINENO: creating $ofile" >&5
                   10705: echo "$as_me: creating $ofile" >&6;}
1.23      millert  10706:
1.27      millert  10707:   cat <<__EOF__ >> "$cfgfile"
                   10708: #! $SHELL
1.23      millert  10709:
1.27      millert  10710: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   10711: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
                   10712: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   10713: #
                   10714: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
                   10715: # Free Software Foundation, Inc.
                   10716: #
                   10717: # This file is part of GNU Libtool:
                   10718: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   10719: #
                   10720: # This program is free software; you can redistribute it and/or modify
                   10721: # it under the terms of the GNU General Public License as published by
                   10722: # the Free Software Foundation; either version 2 of the License, or
                   10723: # (at your option) any later version.
                   10724: #
                   10725: # This program is distributed in the hope that it will be useful, but
                   10726: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   10727: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   10728: # General Public License for more details.
                   10729: #
                   10730: # You should have received a copy of the GNU General Public License
                   10731: # along with this program; if not, write to the Free Software
                   10732: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   10733: #
                   10734: # As a special exception to the GNU General Public License, if you
                   10735: # distribute this file as part of a program that contains a
                   10736: # configuration script generated by Autoconf, you may include it under
                   10737: # the same distribution terms that you use for the rest of that program.
1.23      millert  10738:
1.27      millert  10739: # A sed program that does not truncate output.
                   10740: SED=$lt_SED
1.23      millert  10741:
1.27      millert  10742: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   10743: Xsed="$SED -e 1s/^X//"
1.23      millert  10744:
1.27      millert  10745: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   10746: # if CDPATH is set.
                   10747: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert  10748:
1.27      millert  10749: # The names of the tagged configurations supported by this script.
                   10750: available_tags=
1.23      millert  10751:
1.27      millert  10752: # ### BEGIN LIBTOOL CONFIG
1.23      millert  10753:
1.27      millert  10754: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23      millert  10755:
1.27      millert  10756: # Shell to use when invoking shell scripts.
                   10757: SHELL=$lt_SHELL
1.23      millert  10758:
1.27      millert  10759: # Whether or not to build shared libraries.
                   10760: build_libtool_libs=$enable_shared
1.23      millert  10761:
1.27      millert  10762: # Whether or not to build static libraries.
                   10763: build_old_libs=$enable_static
1.23      millert  10764:
1.27      millert  10765: # Whether or not to add -lc for building shared libraries.
                   10766: build_libtool_need_lc=$archive_cmds_need_lc
1.23      millert  10767:
1.27      millert  10768: # Whether or not to disallow shared libs when runtime libs are static
                   10769: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23      millert  10770:
1.27      millert  10771: # Whether or not to optimize for fast installation.
                   10772: fast_install=$enable_fast_install
1.23      millert  10773:
1.27      millert  10774: # The host system.
                   10775: host_alias=$host_alias
                   10776: host=$host
                   10777: host_os=$host_os
1.23      millert  10778:
1.27      millert  10779: # The build system.
                   10780: build_alias=$build_alias
                   10781: build=$build
                   10782: build_os=$build_os
1.23      millert  10783:
1.27      millert  10784: # An echo program that does not interpret backslashes.
                   10785: echo=$lt_echo
1.23      millert  10786:
1.27      millert  10787: # The archiver.
                   10788: AR=$lt_AR
                   10789: AR_FLAGS=$lt_AR_FLAGS
1.23      millert  10790:
1.27      millert  10791: # A C compiler.
                   10792: LTCC=$lt_LTCC
1.23      millert  10793:
1.27      millert  10794: # LTCC compiler flags.
                   10795: LTCFLAGS=$lt_LTCFLAGS
1.23      millert  10796:
1.27      millert  10797: # A language-specific compiler.
                   10798: CC=$lt_compiler
1.23      millert  10799:
1.27      millert  10800: # Is the compiler the GNU C compiler?
                   10801: with_gcc=$GCC
1.23      millert  10802:
1.27      millert  10803: # An ERE matcher.
                   10804: EGREP=$lt_EGREP
1.23      millert  10805:
1.27      millert  10806: # The linker used to build libraries.
                   10807: LD=$lt_LD
1.23      millert  10808:
1.27      millert  10809: # Whether we need hard or soft links.
                   10810: LN_S=$lt_LN_S
1.23      millert  10811:
1.27      millert  10812: # A BSD-compatible nm program.
                   10813: NM=$lt_NM
1.23      millert  10814:
1.27      millert  10815: # A symbol stripping program
                   10816: STRIP=$lt_STRIP
1.23      millert  10817:
1.27      millert  10818: # Used to examine libraries when file_magic_cmd begins "file"
                   10819: MAGIC_CMD=$MAGIC_CMD
1.23      millert  10820:
1.27      millert  10821: # Used on cygwin: DLL creation program.
                   10822: DLLTOOL="$DLLTOOL"
1.23      millert  10823:
1.27      millert  10824: # Used on cygwin: object dumper.
                   10825: OBJDUMP="$OBJDUMP"
1.23      millert  10826:
1.27      millert  10827: # Used on cygwin: assembler.
                   10828: AS="$AS"
1.23      millert  10829:
1.27      millert  10830: # The name of the directory that contains temporary libtool files.
                   10831: objdir=$objdir
1.23      millert  10832:
1.27      millert  10833: # How to create reloadable object files.
                   10834: reload_flag=$lt_reload_flag
                   10835: reload_cmds=$lt_reload_cmds
1.23      millert  10836:
1.27      millert  10837: # How to pass a linker flag through the compiler.
                   10838: wl=$lt_lt_prog_compiler_wl
1.23      millert  10839:
1.27      millert  10840: # Object file suffix (normally "o").
                   10841: objext="$ac_objext"
1.23      millert  10842:
1.27      millert  10843: # Old archive suffix (normally "a").
                   10844: libext="$libext"
1.23      millert  10845:
1.27      millert  10846: # Shared library suffix (normally ".so").
                   10847: shrext_cmds='$shrext_cmds'
1.23      millert  10848:
1.27      millert  10849: # Executable file suffix (normally "").
                   10850: exeext="$exeext"
1.23      millert  10851:
1.27      millert  10852: # Additional compiler flags for building library objects.
                   10853: pic_flag=$lt_lt_prog_compiler_pic
                   10854: pic_mode=$pic_mode
1.23      millert  10855:
1.27      millert  10856: # What is the maximum length of a command?
                   10857: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23      millert  10858:
1.27      millert  10859: # Does compiler simultaneously support -c and -o options?
                   10860: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23      millert  10861:
1.27      millert  10862: # Must we lock files when doing compilation?
                   10863: need_locks=$lt_need_locks
1.23      millert  10864:
1.27      millert  10865: # Do we need the lib prefix for modules?
                   10866: need_lib_prefix=$need_lib_prefix
1.23      millert  10867:
1.27      millert  10868: # Do we need a version for libraries?
                   10869: need_version=$need_version
1.23      millert  10870:
1.27      millert  10871: # Whether dlopen is supported.
                   10872: dlopen_support=$enable_dlopen
1.23      millert  10873:
1.27      millert  10874: # Whether dlopen of programs is supported.
                   10875: dlopen_self=$enable_dlopen_self
1.23      millert  10876:
1.27      millert  10877: # Whether dlopen of statically linked programs is supported.
                   10878: dlopen_self_static=$enable_dlopen_self_static
1.23      millert  10879:
1.27      millert  10880: # Compiler flag to prevent dynamic linking.
                   10881: link_static_flag=$lt_lt_prog_compiler_static
1.23      millert  10882:
1.27      millert  10883: # Compiler flag to turn off builtin functions.
                   10884: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23      millert  10885:
1.27      millert  10886: # Compiler flag to allow reflexive dlopens.
                   10887: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23      millert  10888:
1.27      millert  10889: # Compiler flag to generate shared objects directly from archives.
                   10890: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23      millert  10891:
1.27      millert  10892: # Compiler flag to generate thread-safe objects.
                   10893: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23      millert  10894:
1.27      millert  10895: # Library versioning type.
                   10896: version_type=$version_type
1.23      millert  10897:
1.27      millert  10898: # Format of library name prefix.
                   10899: libname_spec=$lt_libname_spec
1.23      millert  10900:
1.27      millert  10901: # List of archive names.  First name is the real one, the rest are links.
                   10902: # The last name is the one that the linker finds with -lNAME.
                   10903: library_names_spec=$lt_library_names_spec
1.25      millert  10904:
1.27      millert  10905: # The coded name of the library, if different from the real name.
                   10906: soname_spec=$lt_soname_spec
1.25      millert  10907:
1.27      millert  10908: # Commands used to build and install an old-style archive.
                   10909: RANLIB=$lt_RANLIB
                   10910: old_archive_cmds=$lt_old_archive_cmds
                   10911: old_postinstall_cmds=$lt_old_postinstall_cmds
                   10912: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25      millert  10913:
1.27      millert  10914: # Create an old-style archive from a shared archive.
                   10915: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25      millert  10916:
1.27      millert  10917: # Create a temporary old-style archive to link instead of a shared archive.
                   10918: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25      millert  10919:
1.27      millert  10920: # Commands used to build and install a shared archive.
                   10921: archive_cmds=$lt_archive_cmds
                   10922: archive_expsym_cmds=$lt_archive_expsym_cmds
                   10923: postinstall_cmds=$lt_postinstall_cmds
                   10924: postuninstall_cmds=$lt_postuninstall_cmds
1.25      millert  10925:
1.27      millert  10926: # Commands used to build a loadable module (assumed same as above if empty)
                   10927: module_cmds=$lt_module_cmds
                   10928: module_expsym_cmds=$lt_module_expsym_cmds
1.25      millert  10929:
1.27      millert  10930: # Commands to strip libraries.
                   10931: old_striplib=$lt_old_striplib
                   10932: striplib=$lt_striplib
1.25      millert  10933:
1.27      millert  10934: # Dependencies to place before the objects being linked to create a
                   10935: # shared library.
                   10936: predep_objects=$lt_predep_objects
                   10937:
                   10938: # Dependencies to place after the objects being linked to create a
                   10939: # shared library.
                   10940: postdep_objects=$lt_postdep_objects
                   10941:
                   10942: # Dependencies to place before the objects being linked to create a
                   10943: # shared library.
                   10944: predeps=$lt_predeps
                   10945:
                   10946: # Dependencies to place after the objects being linked to create a
                   10947: # shared library.
                   10948: postdeps=$lt_postdeps
                   10949:
                   10950: # The library search path used internally by the compiler when linking
                   10951: # a shared library.
                   10952: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25      millert  10953:
1.27      millert  10954: # Method to check whether dependent libraries are shared objects.
                   10955: deplibs_check_method=$lt_deplibs_check_method
1.25      millert  10956:
1.27      millert  10957: # Command to use when deplibs_check_method == file_magic.
                   10958: file_magic_cmd=$lt_file_magic_cmd
1.25      millert  10959:
1.27      millert  10960: # Flag that allows shared libraries with undefined symbols to be built.
                   10961: allow_undefined_flag=$lt_allow_undefined_flag
1.25      millert  10962:
1.27      millert  10963: # Flag that forces no undefined symbols.
                   10964: no_undefined_flag=$lt_no_undefined_flag
1.25      millert  10965:
1.27      millert  10966: # Commands used to finish a libtool library installation in a directory.
                   10967: finish_cmds=$lt_finish_cmds
1.25      millert  10968:
1.27      millert  10969: # Same as above, but a single script fragment to be evaled but not shown.
                   10970: finish_eval=$lt_finish_eval
1.25      millert  10971:
1.27      millert  10972: # Take the output of nm and produce a listing of raw symbols and C names.
                   10973: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25      millert  10974:
1.27      millert  10975: # Transform the output of nm in a proper C declaration
                   10976: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25      millert  10977:
1.27      millert  10978: # Transform the output of nm in a C name address pair
                   10979: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25      millert  10980:
1.27      millert  10981: # This is the shared library runtime path variable.
                   10982: runpath_var=$runpath_var
1.25      millert  10983:
1.27      millert  10984: # This is the shared library path variable.
                   10985: shlibpath_var=$shlibpath_var
1.25      millert  10986:
1.27      millert  10987: # Is shlibpath searched before the hard-coded library search path?
                   10988: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25      millert  10989:
1.27      millert  10990: # How to hardcode a shared library path into an executable.
                   10991: hardcode_action=$hardcode_action
1.25      millert  10992:
1.27      millert  10993: # Whether we should hardcode library paths into libraries.
                   10994: hardcode_into_libs=$hardcode_into_libs
1.25      millert  10995:
1.27      millert  10996: # Flag to hardcode \$libdir into a binary during linking.
                   10997: # This must work even if \$libdir does not exist.
                   10998: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25      millert  10999:
1.27      millert  11000: # If ld is used when linking, flag to hardcode \$libdir into
                   11001: # a binary during linking. This must work even if \$libdir does
                   11002: # not exist.
                   11003: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23      millert  11004:
1.27      millert  11005: # Whether we need a single -rpath flag with a separated argument.
                   11006: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23      millert  11007:
1.27      millert  11008: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   11009: # resulting binary.
                   11010: hardcode_direct=$hardcode_direct
1.25      millert  11011:
1.27      millert  11012: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   11013: # resulting binary.
                   11014: hardcode_minus_L=$hardcode_minus_L
1.25      millert  11015:
1.27      millert  11016: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   11017: # the resulting binary.
                   11018: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25      millert  11019:
1.27      millert  11020: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   11021: # and all subsequent libraries and executables linked against it.
                   11022: hardcode_automatic=$hardcode_automatic
1.25      millert  11023:
1.27      millert  11024: # Variables whose values should be saved in libtool wrapper scripts and
                   11025: # restored at relink time.
                   11026: variables_saved_for_relink="$variables_saved_for_relink"
1.25      millert  11027:
1.27      millert  11028: # Whether libtool must link a program against all its dependency libraries.
                   11029: link_all_deplibs=$link_all_deplibs
1.23      millert  11030:
1.27      millert  11031: # Compile-time system search path for libraries
                   11032: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23      millert  11033:
1.27      millert  11034: # Run-time system search path for libraries
                   11035: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23      millert  11036:
1.27      millert  11037: # Fix the shell variable \$srcfile for the compiler.
                   11038: fix_srcfile_path=$lt_fix_srcfile_path
1.23      millert  11039:
1.27      millert  11040: # Set to yes if exported symbols are required.
                   11041: always_export_symbols=$always_export_symbols
1.23      millert  11042:
1.27      millert  11043: # The commands to list exported symbols.
                   11044: export_symbols_cmds=$lt_export_symbols_cmds
1.23      millert  11045:
1.27      millert  11046: # The commands to extract the exported symbol list from a shared archive.
                   11047: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23      millert  11048:
1.27      millert  11049: # Symbols that should not be listed in the preloaded symbols.
                   11050: exclude_expsyms=$lt_exclude_expsyms
1.23      millert  11051:
1.27      millert  11052: # Symbols that must always be exported.
                   11053: include_expsyms=$lt_include_expsyms
1.23      millert  11054:
1.27      millert  11055: # ### END LIBTOOL CONFIG
1.23      millert  11056:
1.27      millert  11057: __EOF__
1.23      millert  11058:
                   11059:
1.27      millert  11060:   case $host_os in
1.25      millert  11061:   aix3*)
1.27      millert  11062:     cat <<\EOF >> "$cfgfile"
1.23      millert  11063:
1.27      millert  11064: # AIX sometimes has problems with the GCC collect2 program.  For some
                   11065: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   11066: # vanish in a puff of smoke.
                   11067: if test "X${COLLECT_NAMES+set}" != Xset; then
                   11068:   COLLECT_NAMES=
                   11069:   export COLLECT_NAMES
                   11070: fi
                   11071: EOF
1.25      millert  11072:     ;;
                   11073:   esac
1.23      millert  11074:
1.27      millert  11075:   # We use sed instead of cat because bash on DJGPP gets confused if
                   11076:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   11077:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   11078:   # is reportedly fixed, but why not run on old versions too?
                   11079:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23      millert  11080:
1.27      millert  11081:   mv -f "$cfgfile" "$ofile" || \
                   11082:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   11083:   chmod +x "$ofile"
1.23      millert  11084:
1.27      millert  11085: else
                   11086:   # If there is no Makefile yet, we rely on a make rule to execute
                   11087:   # `config.status --recheck' to rerun these tests and create the
                   11088:   # libtool script then.
                   11089:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   11090:   if test -f "$ltmain_in"; then
                   11091:     test -f Makefile && make "$ltmain"
                   11092:   fi
                   11093: fi
1.23      millert  11094:
                   11095:
1.25      millert  11096: ac_ext=c
                   11097: ac_cpp='$CPP $CPPFLAGS'
                   11098: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   11099: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   11100: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  11101:
1.25      millert  11102: CC="$lt_save_CC"
1.23      millert  11103:
                   11104:
                   11105:
1.27      millert  11106: # This can be used to rebuild libtool when needed
                   11107: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23      millert  11108:
1.27      millert  11109: # Always use our own libtool.
                   11110: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23      millert  11111:
1.27      millert  11112: # Prevent multiple expansion
1.23      millert  11113:
                   11114:
                   11115:
                   11116:
                   11117:
                   11118:
                   11119:
                   11120:
                   11121:
                   11122:
1.25      millert  11123: if test "$enable_shared" = "no"; then
                   11124:     with_noexec=no
                   11125: else
1.26      millert  11126:     eval _shrext="$shrext_cmds"
1.25      millert  11127: fi
1.27      millert  11128: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
                   11129: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23      millert  11130:
1.27      millert  11131: # Check whether --with-noexec was given.
1.25      millert  11132: if test "${with_noexec+set}" = set; then
1.27      millert  11133:   withval=$with_noexec; case $with_noexec in
1.25      millert  11134:     yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                   11135:                ;;
                   11136:     no)                ;;
                   11137:     *)         ;;
                   11138: esac
                   11139: else
                   11140:   with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27      millert  11141: fi
                   11142:
                   11143: { echo "$as_me:$LINENO: result: $with_noexec" >&5
                   11144: echo "${ECHO_T}$with_noexec" >&6; }
1.25      millert  11145: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23      millert  11146:
1.25      millert  11147: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   11148:     CFLAGS="${CFLAGS} -Wall"
                   11149: fi
1.23      millert  11150:
1.25      millert  11151: # Extract the first word of "uname", so it can be a program name with args.
                   11152: set dummy uname; ac_word=$2
1.27      millert  11153: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11154: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11155: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   11156:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11157: else
                   11158:   if test -n "$UNAMEPROG"; then
                   11159:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   11160: else
                   11161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11162: for as_dir in $PATH
                   11163: do
                   11164:   IFS=$as_save_IFS
                   11165:   test -z "$as_dir" && as_dir=.
                   11166:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11167:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11168:     ac_cv_prog_UNAMEPROG="uname"
                   11169:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11170:     break 2
                   11171:   fi
                   11172: done
                   11173: done
1.27      millert  11174: IFS=$as_save_IFS
1.23      millert  11175:
1.25      millert  11176: fi
                   11177: fi
                   11178: UNAMEPROG=$ac_cv_prog_UNAMEPROG
                   11179: if test -n "$UNAMEPROG"; then
1.27      millert  11180:   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
                   11181: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25      millert  11182: else
1.27      millert  11183:   { echo "$as_me:$LINENO: result: no" >&5
                   11184: echo "${ECHO_T}no" >&6; }
1.25      millert  11185: fi
1.23      millert  11186:
1.27      millert  11187:
1.25      millert  11188: # Extract the first word of "tr", so it can be a program name with args.
                   11189: set dummy tr; ac_word=$2
1.27      millert  11190: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11191: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11192: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   11193:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11194: else
                   11195:   if test -n "$TRPROG"; then
                   11196:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   11197: else
                   11198: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11199: for as_dir in $PATH
                   11200: do
                   11201:   IFS=$as_save_IFS
                   11202:   test -z "$as_dir" && as_dir=.
                   11203:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11204:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11205:     ac_cv_prog_TRPROG="tr"
                   11206:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11207:     break 2
                   11208:   fi
                   11209: done
                   11210: done
1.27      millert  11211: IFS=$as_save_IFS
1.23      millert  11212:
1.25      millert  11213: fi
                   11214: fi
                   11215: TRPROG=$ac_cv_prog_TRPROG
                   11216: if test -n "$TRPROG"; then
1.27      millert  11217:   { echo "$as_me:$LINENO: result: $TRPROG" >&5
                   11218: echo "${ECHO_T}$TRPROG" >&6; }
1.25      millert  11219: else
1.27      millert  11220:   { echo "$as_me:$LINENO: result: no" >&5
                   11221: echo "${ECHO_T}no" >&6; }
1.25      millert  11222: fi
1.23      millert  11223:
1.27      millert  11224:
1.25      millert  11225: # Extract the first word of "nroff", so it can be a program name with args.
                   11226: set dummy nroff; ac_word=$2
1.27      millert  11227: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11228: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11229: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   11230:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11231: else
                   11232:   if test -n "$NROFFPROG"; then
                   11233:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   11234: else
                   11235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11236: for as_dir in $PATH
                   11237: do
                   11238:   IFS=$as_save_IFS
                   11239:   test -z "$as_dir" && as_dir=.
                   11240:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11241:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11242:     ac_cv_prog_NROFFPROG="nroff"
                   11243:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11244:     break 2
                   11245:   fi
                   11246: done
                   11247: done
1.27      millert  11248: IFS=$as_save_IFS
1.23      millert  11249:
1.25      millert  11250: fi
                   11251: fi
                   11252: NROFFPROG=$ac_cv_prog_NROFFPROG
                   11253: if test -n "$NROFFPROG"; then
1.27      millert  11254:   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
                   11255: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25      millert  11256: else
1.27      millert  11257:   { echo "$as_me:$LINENO: result: no" >&5
                   11258: echo "${ECHO_T}no" >&6; }
1.25      millert  11259: fi
1.23      millert  11260:
1.27      millert  11261:
1.25      millert  11262: if test -z "$NROFFPROG"; then
                   11263:     MANTYPE="cat"
                   11264:     mansrcdir='$(srcdir)'
                   11265: fi
1.23      millert  11266:
1.25      millert  11267: if test -n "$sudo_cv_prev_host"; then
                   11268:     if test "$sudo_cv_prev_host" != "$host"; then
                   11269:        { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
                   11270: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
                   11271:    { (exit 1); exit 1; }; }
                   11272:     else
1.27      millert  11273:        { echo "$as_me:$LINENO: checking previous host type" >&5
                   11274: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25      millert  11275:        if test "${sudo_cv_prev_host+set}" = set; then
                   11276:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11277: else
                   11278:   sudo_cv_prev_host="$host"
                   11279: fi
1.23      millert  11280:
1.27      millert  11281:        { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
                   11282: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25      millert  11283:     fi
                   11284: else
                   11285:     # this will produce no output since there is no cached value
                   11286:     if test "${sudo_cv_prev_host+set}" = set; then
                   11287:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11288: else
                   11289:   sudo_cv_prev_host="$host"
                   11290: fi
1.23      millert  11291:
1.25      millert  11292: fi
1.23      millert  11293:
1.25      millert  11294: if test -n "$host_os"; then
                   11295:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   11296:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   11297:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   11298: else
                   11299:     OS="unknown"
                   11300:     OSREV=0
                   11301:     OSMAJOR=0
                   11302: fi
1.23      millert  11303:
1.25      millert  11304: case "$host" in
                   11305:     *-*-sunos4*)
                   11306:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   11307:                BROKEN_GETCWD=1
1.23      millert  11308:
1.25      millert  11309:                # system headers lack prototypes but gcc helps...
                   11310:                if test -n "$GCC"; then
                   11311:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   11312:                fi
1.23      millert  11313:
1.25      millert  11314:                shadow_funcs="getpwanam issecure"
                   11315:                ;;
                   11316:     *-*-solaris2*)
                   11317:                # To get the crypt(3) prototype (so we pass -Wall)
                   11318:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   11319:                # AFS support needs -lucb
                   11320:                if test "$with_AFS" = "yes"; then
                   11321:                    AFS_LIBS="-lc -lucb"
                   11322:                fi
                   11323:                : ${mansectsu='1m'}
                   11324:                : ${mansectform='4'}
                   11325:                : ${with_rpath='yes'}
1.27      millert  11326:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11327:                ;;
                   11328:     *-*-aix*)
                   11329:                # To get all prototypes (so we pass -Wall)
                   11330:                OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
                   11331:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   11332:                if test X"$with_blibpath" != X"no"; then
1.27      millert  11333:                    { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
                   11334: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25      millert  11335:                    O_LDFLAGS="$LDFLAGS"
                   11336:                    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
                   11337:                    cat >conftest.$ac_ext <<_ACEOF
                   11338: /* confdefs.h.  */
                   11339: _ACEOF
                   11340: cat confdefs.h >>conftest.$ac_ext
                   11341: cat >>conftest.$ac_ext <<_ACEOF
                   11342: /* end confdefs.h.  */
1.23      millert  11343:
1.25      millert  11344: int
                   11345: main ()
                   11346: {
1.23      millert  11347:
1.25      millert  11348:   ;
                   11349:   return 0;
                   11350: }
                   11351: _ACEOF
                   11352: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11353: if { (ac_try="$ac_link"
                   11354: case "(($ac_try" in
                   11355:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11356:   *) ac_try_echo=$ac_try;;
                   11357: esac
                   11358: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11359:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11360:   ac_status=$?
                   11361:   grep -v '^ *+' conftest.er1 >conftest.err
                   11362:   rm -f conftest.er1
                   11363:   cat conftest.err >&5
                   11364:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11365:   (exit $ac_status); } && {
                   11366:         test -z "$ac_c_werror_flag" ||
                   11367:         test ! -s conftest.err
                   11368:        } && test -s conftest$ac_exeext &&
                   11369:        $as_test_x conftest$ac_exeext; then
1.23      millert  11370:
1.25      millert  11371:                        if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   11372:                            blibpath="$with_blibpath"
                   11373:                        elif test -n "$GCC"; then
                   11374:                            blibpath="/usr/lib:/lib:/usr/local/lib"
                   11375:                        else
                   11376:                            blibpath="/usr/lib:/lib"
                   11377:                        fi
1.27      millert  11378:                        { echo "$as_me:$LINENO: result: yes" >&5
                   11379: echo "${ECHO_T}yes" >&6; }
1.23      millert  11380:
1.25      millert  11381: else
                   11382:   echo "$as_me: failed program was:" >&5
                   11383: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11384:
1.27      millert  11385:        { echo "$as_me:$LINENO: result: no" >&5
                   11386: echo "${ECHO_T}no" >&6; }
1.25      millert  11387: fi
1.27      millert  11388:
                   11389: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11390:       conftest$ac_exeext conftest.$ac_ext
                   11391:                fi
                   11392:                LDFLAGS="$O_LDFLAGS"
1.23      millert  11393:
1.27      millert  11394:                # Use authenticate(3) as the default authentication method
1.25      millert  11395:                if test X"$with_aixauth" = X""; then
1.23      millert  11396:
1.25      millert  11397: for ac_func in authenticate
                   11398: do
                   11399: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  11400: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11401: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   11402: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  11403:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11404: else
                   11405:   cat >conftest.$ac_ext <<_ACEOF
                   11406: /* confdefs.h.  */
                   11407: _ACEOF
                   11408: cat confdefs.h >>conftest.$ac_ext
                   11409: cat >>conftest.$ac_ext <<_ACEOF
                   11410: /* end confdefs.h.  */
                   11411: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   11412:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   11413: #define $ac_func innocuous_$ac_func
1.23      millert  11414:
1.25      millert  11415: /* System header to define __stub macros and hopefully few prototypes,
                   11416:     which can conflict with char $ac_func (); below.
                   11417:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   11418:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  11419:
1.25      millert  11420: #ifdef __STDC__
                   11421: # include <limits.h>
                   11422: #else
                   11423: # include <assert.h>
                   11424: #endif
1.23      millert  11425:
1.25      millert  11426: #undef $ac_func
1.23      millert  11427:
1.27      millert  11428: /* Override any GCC internal prototype to avoid an error.
                   11429:    Use char because int might match the return type of a GCC
                   11430:    builtin and then its argument prototype would still apply.  */
1.25      millert  11431: #ifdef __cplusplus
                   11432: extern "C"
                   11433: #endif
                   11434: char $ac_func ();
                   11435: /* The GNU C library defines this for functions which it implements
                   11436:     to always fail with ENOSYS.  Some functions are actually named
                   11437:     something starting with __ and the normal name is an alias.  */
1.27      millert  11438: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  11439: choke me
                   11440: #endif
1.23      millert  11441:
1.25      millert  11442: int
                   11443: main ()
                   11444: {
1.27      millert  11445: return $ac_func ();
1.25      millert  11446:   ;
                   11447:   return 0;
                   11448: }
                   11449: _ACEOF
                   11450: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11451: if { (ac_try="$ac_link"
                   11452: case "(($ac_try" in
                   11453:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11454:   *) ac_try_echo=$ac_try;;
                   11455: esac
                   11456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11457:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11458:   ac_status=$?
                   11459:   grep -v '^ *+' conftest.er1 >conftest.err
                   11460:   rm -f conftest.er1
                   11461:   cat conftest.err >&5
                   11462:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11463:   (exit $ac_status); } && {
                   11464:         test -z "$ac_c_werror_flag" ||
                   11465:         test ! -s conftest.err
                   11466:        } && test -s conftest$ac_exeext &&
                   11467:        $as_test_x conftest$ac_exeext; then
1.25      millert  11468:   eval "$as_ac_var=yes"
                   11469: else
                   11470:   echo "$as_me: failed program was:" >&5
                   11471: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11472:
1.27      millert  11473:        eval "$as_ac_var=no"
1.25      millert  11474: fi
1.27      millert  11475:
                   11476: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11477:       conftest$ac_exeext conftest.$ac_ext
                   11478: fi
1.27      millert  11479: ac_res=`eval echo '${'$as_ac_var'}'`
                   11480:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   11481: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  11482: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   11483:   cat >>confdefs.h <<_ACEOF
                   11484: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   11485: _ACEOF
1.27      millert  11486:  AUTH_EXCL_DEF="AIX_AUTH"
1.25      millert  11487: fi
                   11488: done
1.23      millert  11489:
1.25      millert  11490:                fi
                   11491:                ;;
                   11492:     *-*-hiuxmpp*)
                   11493:                : ${mansectsu='1m'}
                   11494:                : ${mansectform='4'}
                   11495:                ;;
                   11496:     *-*-hpux*)
                   11497:                # AFS support needs -lBSD
                   11498:                if test "$with_AFS" = "yes"; then
                   11499:                    AFS_LIBS="-lc -lBSD"
                   11500:                fi
                   11501:                : ${mansectsu='1m'}
                   11502:                : ${mansectform='4'}
1.23      millert  11503:
1.25      millert  11504:                case "$host" in
                   11505:                        *-*-hpux1-8.*)
                   11506:                            cat >>confdefs.h <<\_ACEOF
                   11507: #define BROKEN_SYSLOG 1
                   11508: _ACEOF
1.23      millert  11509:
                   11510:
1.25      millert  11511:                            # Not sure if setuid binaries are safe in < 9.x
                   11512:                            if test -n "$GCC"; then
                   11513:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   11514:                            else
                   11515:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   11516:                            fi
                   11517:                        ;;
                   11518:                        *-*-hpux9.*)
                   11519:                            cat >>confdefs.h <<\_ACEOF
                   11520: #define BROKEN_SYSLOG 1
                   11521: _ACEOF
1.23      millert  11522:
                   11523:
1.25      millert  11524:                            shadow_funcs="getspwuid"
1.23      millert  11525:
1.25      millert  11526:                            # DCE support (requires ANSI C compiler)
                   11527:                            if test "$with_DCE" = "yes"; then
                   11528:                                # order of libs in 9.X is important. -lc_r must be last
                   11529:                                SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   11530:                                LIBS="${LIBS} -ldce -lM -lc_r"
                   11531:                                CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
                   11532:                            fi
                   11533:                        ;;
                   11534:                        *-*-hpux10.*)
                   11535:                            shadow_funcs="getprpwnam iscomsec"
                   11536:                            shadow_libs="-lsec"
                   11537:                        ;;
                   11538:                        *)
                   11539:                            shadow_funcs="getspnam iscomsec"
                   11540:                            shadow_libs="-lsec"
1.27      millert  11541:                            test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11542:                        ;;
                   11543:                esac
                   11544:                ;;
                   11545:     *-dec-osf*)
                   11546:                # ignore envariables wrt dynamic lib path
                   11547:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23      millert  11548:
1.28      millert  11549:                : ${CHECKSIA='true'}
1.27      millert  11550:                { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
                   11551: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
                   11552:                # Check whether --enable-sia was given.
1.25      millert  11553: if test "${enable_sia+set}" = set; then
1.27      millert  11554:   enableval=$enable_sia;  case "$enableval" in
                   11555:                    yes)        { echo "$as_me:$LINENO: result: no" >&5
                   11556: echo "${ECHO_T}no" >&6; }
1.28      millert  11557:                                CHECKSIA=true
1.25      millert  11558:                                ;;
1.27      millert  11559:                    no)         { echo "$as_me:$LINENO: result: yes" >&5
                   11560: echo "${ECHO_T}yes" >&6; }
1.25      millert  11561:                                CHECKSIA=false
                   11562:                                ;;
1.27      millert  11563:                    *)          { echo "$as_me:$LINENO: result: no" >&5
                   11564: echo "${ECHO_T}no" >&6; }
1.25      millert  11565:                                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   11566: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   11567:                                ;;
                   11568:                  esac
1.23      millert  11569:
1.25      millert  11570: else
1.27      millert  11571:   { echo "$as_me:$LINENO: result: no" >&5
                   11572: echo "${ECHO_T}no" >&6; }
                   11573: fi
                   11574:
1.23      millert  11575:
1.25      millert  11576:                shadow_funcs="getprpwnam dispcrypt"
                   11577:                # OSF/1 4.x and higher need -ldb too
                   11578:                if test $OSMAJOR -lt 4; then
                   11579:                    shadow_libs="-lsecurity -laud -lm"
                   11580:                else
                   11581:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   11582:                fi
1.23      millert  11583:
1.25      millert  11584:                # use SIA by default, if we have it
1.27      millert  11585:                test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23      millert  11586:
1.27      millert  11587:                #
                   11588:                # Some versions of Digital Unix ship with a broken
                   11589:                # copy of prot.h, which we need for shadow passwords.
                   11590:                # XXX - make should remove this as part of distclean
                   11591:                #
                   11592:                { echo "$as_me:$LINENO: checking for broken prot.h" >&5
                   11593: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
                   11594:                cat >conftest.$ac_ext <<_ACEOF
1.25      millert  11595: /* confdefs.h.  */
                   11596: _ACEOF
                   11597: cat confdefs.h >>conftest.$ac_ext
                   11598: cat >>conftest.$ac_ext <<_ACEOF
                   11599: /* end confdefs.h.  */
1.23      millert  11600:
1.25      millert  11601: #include <sys/types.h>
                   11602: #include <sys/security.h>
                   11603: #include <prot.h>
1.23      millert  11604:
1.25      millert  11605: int
                   11606: main ()
                   11607: {
                   11608: exit(0);
                   11609:   ;
                   11610:   return 0;
                   11611: }
                   11612: _ACEOF
                   11613: rm -f conftest.$ac_objext
1.27      millert  11614: if { (ac_try="$ac_compile"
                   11615: case "(($ac_try" in
                   11616:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11617:   *) ac_try_echo=$ac_try;;
                   11618: esac
                   11619: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11620:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  11621:   ac_status=$?
                   11622:   grep -v '^ *+' conftest.er1 >conftest.err
                   11623:   rm -f conftest.er1
                   11624:   cat conftest.err >&5
                   11625:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11626:   (exit $ac_status); } && {
                   11627:         test -z "$ac_c_werror_flag" ||
                   11628:         test ! -s conftest.err
                   11629:        } && test -s conftest.$ac_objext; then
                   11630:   { echo "$as_me:$LINENO: result: no" >&5
                   11631: echo "${ECHO_T}no" >&6; }
1.25      millert  11632: else
                   11633:   echo "$as_me: failed program was:" >&5
                   11634: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11635:
1.27      millert  11636:        { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
                   11637: echo "${ECHO_T}yes, fixing locally" >&6; }
                   11638:                sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23      millert  11639:
1.25      millert  11640: fi
1.27      millert  11641:
                   11642: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  11643:                : ${mansectsu='8'}
                   11644:                : ${mansectform='4'}
                   11645:                ;;
                   11646:     *-*-irix*)
                   11647:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   11648:                if test -z "$NROFFPROG"; then
                   11649:                    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)'
                   11650:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   11651:                        if test -d /usr/share/catman/local; then
                   11652:                            mandir="/usr/share/catman/local"
                   11653:                        else
                   11654:                            mandir="/usr/catman/local"
                   11655:                        fi
                   11656:                    fi
                   11657:                else
                   11658:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   11659:                        if test -d "/usr/share/man/local"; then
                   11660:                            mandir="/usr/share/man/local"
                   11661:                        else
                   11662:                            mandir="/usr/man/local"
                   11663:                        fi
                   11664:                    fi
                   11665:                fi
                   11666:                # IRIX <= 4 needs -lsun
                   11667:                if test "$OSMAJOR" -le 4; then
1.27      millert  11668:                    { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
                   11669: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25      millert  11670: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   11671:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11672: else
                   11673:   ac_check_lib_save_LIBS=$LIBS
                   11674: LIBS="-lsun  $LIBS"
                   11675: cat >conftest.$ac_ext <<_ACEOF
                   11676: /* confdefs.h.  */
                   11677: _ACEOF
                   11678: cat confdefs.h >>conftest.$ac_ext
                   11679: cat >>conftest.$ac_ext <<_ACEOF
                   11680: /* end confdefs.h.  */
1.23      millert  11681:
1.27      millert  11682: /* Override any GCC internal prototype to avoid an error.
                   11683:    Use char because int might match the return type of a GCC
                   11684:    builtin and then its argument prototype would still apply.  */
1.25      millert  11685: #ifdef __cplusplus
                   11686: extern "C"
                   11687: #endif
                   11688: char getpwnam ();
                   11689: int
                   11690: main ()
                   11691: {
1.27      millert  11692: return getpwnam ();
1.25      millert  11693:   ;
                   11694:   return 0;
                   11695: }
                   11696: _ACEOF
                   11697: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11698: if { (ac_try="$ac_link"
                   11699: case "(($ac_try" in
                   11700:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11701:   *) ac_try_echo=$ac_try;;
                   11702: esac
                   11703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11704:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11705:   ac_status=$?
                   11706:   grep -v '^ *+' conftest.er1 >conftest.err
                   11707:   rm -f conftest.er1
                   11708:   cat conftest.err >&5
                   11709:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11710:   (exit $ac_status); } && {
                   11711:         test -z "$ac_c_werror_flag" ||
                   11712:         test ! -s conftest.err
                   11713:        } && test -s conftest$ac_exeext &&
                   11714:        $as_test_x conftest$ac_exeext; then
1.25      millert  11715:   ac_cv_lib_sun_getpwnam=yes
                   11716: else
                   11717:   echo "$as_me: failed program was:" >&5
                   11718: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11719:
1.27      millert  11720:        ac_cv_lib_sun_getpwnam=no
1.25      millert  11721: fi
1.27      millert  11722:
                   11723: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11724:       conftest$ac_exeext conftest.$ac_ext
                   11725: LIBS=$ac_check_lib_save_LIBS
                   11726: fi
1.27      millert  11727: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
                   11728: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25      millert  11729: if test $ac_cv_lib_sun_getpwnam = yes; then
                   11730:   LIBS="${LIBS} -lsun"
                   11731: fi
1.23      millert  11732:
1.25      millert  11733:                fi
                   11734:                : ${mansectsu='1m'}
                   11735:                : ${mansectform='4'}
                   11736:                ;;
                   11737:     *-*-linux*)
                   11738:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   11739:                # Some Linux versions need to link with -lshadow
                   11740:                shadow_funcs="getspnam"
                   11741:                shadow_libs_optional="-lshadow"
1.27      millert  11742:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11743:                ;;
                   11744:     *-convex-bsd*)
                   11745:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   11746:                if test -z "$GCC"; then
                   11747:                    CFLAGS="${CFLAGS} -D__STDC__"
                   11748:                fi
1.23      millert  11749:
1.25      millert  11750:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   11751:                shadow_funcs="getprpwnam"
                   11752:                shadow_libs="-lprot"
                   11753:                ;;
                   11754:     *-*-ultrix*)
                   11755:                OS="ultrix"
                   11756:                shadow_funcs="getauthuid"
                   11757:                shadow_libs="-lauth"
                   11758:                ;;
                   11759:     *-*-riscos*)
                   11760:                LIBS="${LIBS} -lsun -lbsd"
                   11761:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   11762:                OSDEFS="${OSDEFS} -D_MIPS"
                   11763:                : ${mansectsu='1m'}
                   11764:                : ${mansectform='4'}
                   11765:                ;;
                   11766:     *-*-isc*)
                   11767:                OSDEFS="${OSDEFS} -D_ISC"
                   11768:                LIB_CRYPT=1
                   11769:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   11770:                LIBS="${LIBS} -lcrypt"
1.23      millert  11771:
1.25      millert  11772:                shadow_funcs="getspnam"
                   11773:                shadow_libs="-lsec"
1.23      millert  11774:
1.25      millert  11775:                : ${mansectsu='1m'}
                   11776:                : ${mansectform='4'}
                   11777:                ;;
                   11778:     *-*-sco*|*-sco-*)
                   11779:                shadow_funcs="getprpwnam"
                   11780:                shadow_libs="-lprot -lx"
                   11781:                : ${mansectsu='1m'}
                   11782:                : ${mansectform='4'}
                   11783:                ;;
                   11784:     m88k-motorola-sysv*)
                   11785:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   11786:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   11787:                : ${mansectsu='1m'}
                   11788:                : ${mansectform='4'}
                   11789:                ;;
                   11790:     *-sequent-sysv*)
                   11791:                shadow_funcs="getspnam"
                   11792:                shadow_libs="-lsec"
                   11793:                : ${mansectsu='1m'}
                   11794:                : ${mansectform='4'}
                   11795:                : ${with_rpath='yes'}
                   11796:                ;;
                   11797:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.27      millert  11798:                { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
                   11799: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25      millert  11800: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   11801:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11802: else
                   11803:   ac_check_lib_save_LIBS=$LIBS
                   11804: LIBS="-lc89  $LIBS"
                   11805: cat >conftest.$ac_ext <<_ACEOF
                   11806: /* confdefs.h.  */
                   11807: _ACEOF
                   11808: cat confdefs.h >>conftest.$ac_ext
                   11809: cat >>conftest.$ac_ext <<_ACEOF
                   11810: /* end confdefs.h.  */
1.23      millert  11811:
1.27      millert  11812: /* Override any GCC internal prototype to avoid an error.
                   11813:    Use char because int might match the return type of a GCC
                   11814:    builtin and then its argument prototype would still apply.  */
1.25      millert  11815: #ifdef __cplusplus
                   11816: extern "C"
                   11817: #endif
                   11818: char strcasecmp ();
                   11819: int
                   11820: main ()
                   11821: {
1.27      millert  11822: return strcasecmp ();
1.25      millert  11823:   ;
                   11824:   return 0;
                   11825: }
                   11826: _ACEOF
                   11827: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11828: if { (ac_try="$ac_link"
                   11829: case "(($ac_try" in
                   11830:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11831:   *) ac_try_echo=$ac_try;;
                   11832: esac
                   11833: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11834:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11835:   ac_status=$?
                   11836:   grep -v '^ *+' conftest.er1 >conftest.err
                   11837:   rm -f conftest.er1
                   11838:   cat conftest.err >&5
                   11839:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11840:   (exit $ac_status); } && {
                   11841:         test -z "$ac_c_werror_flag" ||
                   11842:         test ! -s conftest.err
                   11843:        } && test -s conftest$ac_exeext &&
                   11844:        $as_test_x conftest$ac_exeext; then
1.25      millert  11845:   ac_cv_lib_c89_strcasecmp=yes
                   11846: else
                   11847:   echo "$as_me: failed program was:" >&5
                   11848: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11849:
1.27      millert  11850:        ac_cv_lib_c89_strcasecmp=no
1.25      millert  11851: fi
1.27      millert  11852:
                   11853: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11854:       conftest$ac_exeext conftest.$ac_ext
                   11855: LIBS=$ac_check_lib_save_LIBS
                   11856: fi
1.27      millert  11857: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
                   11858: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25      millert  11859: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   11860:   cat >>confdefs.h <<\_ACEOF
                   11861: #define HAVE_STRCASECMP 1
                   11862: _ACEOF
                   11863:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   11864: fi
1.23      millert  11865:
1.25      millert  11866:                : ${mansectsu='1m'}
                   11867:                : ${mansectform='4'}
                   11868:                : ${with_rpath='yes'}
                   11869:                ;;
                   11870:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   11871:                LIBS="${LIBS} -lgen"
                   11872:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   11873:                : ${mansectsu='1m'}
                   11874:                : ${mansectform='4'}
                   11875:                : ${with_rpath='yes'}
                   11876:                ;;
                   11877:     *-*-bsdi*)
                   11878:                SKIP_SETREUID=yes
                   11879:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   11880:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   11881:                    case "$OSMAJOR" in
                   11882:                        2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
                   11883: echo "$as_me: using shlicc as CC" >&6;}
                   11884:                                ac_cv_prog_CC=shlicc
                   11885:                                CC="$ac_cv_prog_CC"
                   11886:                                ;;
                   11887:                    esac
                   11888:                fi
                   11889:                # Check for newer BSD auth API (just check for >= 3.0?)
                   11890:                if test -z "$with_bsdauth"; then
1.23      millert  11891:
1.25      millert  11892: for ac_func in auth_challenge
                   11893: do
                   11894: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  11895: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11896: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   11897: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  11898:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11899: else
                   11900:   cat >conftest.$ac_ext <<_ACEOF
                   11901: /* confdefs.h.  */
                   11902: _ACEOF
                   11903: cat confdefs.h >>conftest.$ac_ext
                   11904: cat >>conftest.$ac_ext <<_ACEOF
                   11905: /* end confdefs.h.  */
                   11906: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   11907:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   11908: #define $ac_func innocuous_$ac_func
1.23      millert  11909:
1.25      millert  11910: /* System header to define __stub macros and hopefully few prototypes,
                   11911:     which can conflict with char $ac_func (); below.
                   11912:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   11913:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  11914:
1.25      millert  11915: #ifdef __STDC__
                   11916: # include <limits.h>
                   11917: #else
                   11918: # include <assert.h>
                   11919: #endif
1.23      millert  11920:
1.25      millert  11921: #undef $ac_func
1.23      millert  11922:
1.27      millert  11923: /* Override any GCC internal prototype to avoid an error.
                   11924:    Use char because int might match the return type of a GCC
                   11925:    builtin and then its argument prototype would still apply.  */
1.25      millert  11926: #ifdef __cplusplus
                   11927: extern "C"
                   11928: #endif
                   11929: char $ac_func ();
                   11930: /* The GNU C library defines this for functions which it implements
                   11931:     to always fail with ENOSYS.  Some functions are actually named
                   11932:     something starting with __ and the normal name is an alias.  */
1.27      millert  11933: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  11934: choke me
                   11935: #endif
1.23      millert  11936:
1.25      millert  11937: int
                   11938: main ()
                   11939: {
1.27      millert  11940: return $ac_func ();
1.25      millert  11941:   ;
                   11942:   return 0;
                   11943: }
                   11944: _ACEOF
                   11945: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11946: if { (ac_try="$ac_link"
                   11947: case "(($ac_try" in
                   11948:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11949:   *) ac_try_echo=$ac_try;;
                   11950: esac
                   11951: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11952:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11953:   ac_status=$?
                   11954:   grep -v '^ *+' conftest.er1 >conftest.err
                   11955:   rm -f conftest.er1
                   11956:   cat conftest.err >&5
                   11957:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11958:   (exit $ac_status); } && {
                   11959:         test -z "$ac_c_werror_flag" ||
                   11960:         test ! -s conftest.err
                   11961:        } && test -s conftest$ac_exeext &&
                   11962:        $as_test_x conftest$ac_exeext; then
1.25      millert  11963:   eval "$as_ac_var=yes"
                   11964: else
                   11965:   echo "$as_me: failed program was:" >&5
                   11966: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11967:
1.27      millert  11968:        eval "$as_ac_var=no"
1.25      millert  11969: fi
1.27      millert  11970:
                   11971: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11972:       conftest$ac_exeext conftest.$ac_ext
                   11973: fi
1.27      millert  11974: ac_res=`eval echo '${'$as_ac_var'}'`
                   11975:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   11976: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  11977: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   11978:   cat >>confdefs.h <<_ACEOF
                   11979: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   11980: _ACEOF
1.27      millert  11981:  AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  11982: fi
                   11983: done
1.23      millert  11984:
1.25      millert  11985:                fi
                   11986:                ;;
                   11987:     *-*-freebsd*)
                   11988:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   11989:                # backported to 2.0.5.  We just take 2.1 and above...
                   11990:                case "$OSREV" in
                   11991:                0.*|1.*|2.0*)
                   11992:                    SKIP_SETREUID=yes
                   11993:                    ;;
                   11994:                esac
                   11995:                if test "$with_skey" = "yes"; then
                   11996:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   11997:                fi
1.27      millert  11998:                CHECKSHADOW="false"
                   11999:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12000:                : ${with_logincap='maybe'}
                   12001:                ;;
                   12002:     *-*-*openbsd*)
                   12003:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   12004:                # we will use setreuid(2) instead.
                   12005:                SKIP_SETREUID=yes
1.27      millert  12006:                CHECKSHADOW="false"
1.25      millert  12007:                # OpenBSD >= 3.0 supports BSD auth
                   12008:                if test -z "$with_bsdauth"; then
                   12009:                    case "$OSREV" in
                   12010:                    0-2.*)
                   12011:                        ;;
                   12012:                    *)
1.27      millert  12013:                        AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12014:                        ;;
                   12015:                    esac
                   12016:                fi
                   12017:                : ${with_logincap='maybe'}
                   12018:                ;;
                   12019:     *-*-*netbsd*)
                   12020:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   12021:                case "$OSREV" in
                   12022:                0.9*|1.012*|1.3|1.3.1)
                   12023:                    SKIP_SETREUID=yes
                   12024:                    ;;
                   12025:                esac
1.27      millert  12026:                CHECKSHADOW="false"
                   12027:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12028:                : ${with_logincap='maybe'}
                   12029:                ;;
                   12030:     *-*-dragonfly*)
                   12031:                if test "$with_skey" = "yes"; then
                   12032:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12033:                fi
1.27      millert  12034:                CHECKSHADOW="false"
                   12035:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12036:                : ${with_logincap='yes'}
                   12037:                ;;
                   12038:     *-*-*bsd*)
1.27      millert  12039:                CHECKSHADOW="false"
1.25      millert  12040:                ;;
                   12041:     *-*-darwin*)
                   12042:                SKIP_SETREUID=yes
1.27      millert  12043:                CHECKSHADOW="false"
                   12044:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12045:                : ${with_logincap='yes'}
                   12046:                ;;
                   12047:     *-*-nextstep*)
                   12048:                # lockf() on is broken on the NeXT -- use flock instead
                   12049:                ac_cv_func_lockf=no
                   12050:                ac_cv_func_flock=yes
                   12051:                ;;
                   12052:     *-*-*sysv4*)
                   12053:                : ${mansectsu='1m'}
                   12054:                : ${mansectform='4'}
                   12055:                : ${with_rpath='yes'}
                   12056:                ;;
                   12057:     *-*-sysv*)
                   12058:                : ${mansectsu='1m'}
                   12059:                : ${mansectform='4'}
1.27      millert  12060:                ;;
                   12061:     *-gnu*)
                   12062:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12063:                ;;
                   12064: esac
                   12065:
                   12066: AUTH_REG=${AUTH_REG# }
                   12067: AUTH_EXCL=${AUTH_EXCL# }
                   12068: if test -n "$AUTH_EXCL"; then
                   12069:     set -- $AUTH_EXCL
                   12070:     if test $# != 1; then
                   12071:        { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
                   12072: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
                   12073:    { (exit 1); exit 1; }; }
                   12074:     fi
                   12075:     if test -n "$AUTH_REG"; then
                   12076:        { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
                   12077: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
                   12078:    { (exit 1); exit 1; }; }
                   12079:     fi
                   12080: fi
                   12081: if test X"${with_skey}${with_opie}" = X"yesyes"; then
                   12082:     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
                   12083: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   12084:    { (exit 1); exit 1; }; }
                   12085: fi
1.23      millert  12086:
1.25      millert  12087: : ${mansectsu='8'}
                   12088: : ${mansectform='5'}
1.23      millert  12089:
1.25      millert  12090: if test -n "$with_libpath"; then
                   12091:     for i in ${with_libpath}; do
1.23      millert  12092:
1.25      millert  12093:     if test X"$with_rpath" = X"yes"; then
                   12094:        LDFLAGS="${LDFLAGS} -L$i -R$i"
                   12095:     else
                   12096:        LDFLAGS="${LDFLAGS} -L$i"
                   12097:     fi
                   12098:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   12099:        blibpath_add="${blibpath_add}:$i"
                   12100:     fi
1.23      millert  12101:
1.25      millert  12102:     done
                   12103: fi
                   12104: if test -n "$with_libraries"; then
                   12105:     for i in ${with_libraries}; do
                   12106:        case $i in
                   12107:            -l*)        ;;
                   12108:            *.a)        ;;
                   12109:            *.o)        ;;
                   12110:            *)  i="-l${i}";;
                   12111:        esac
                   12112:        LIBS="${LIBS} ${i}"
                   12113:     done
                   12114: fi
1.23      millert  12115:
1.25      millert  12116: if test $ac_cv_c_compiler_gnu = yes; then
1.27      millert  12117:     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
                   12118: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25      millert  12119: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   12120:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12121: else
                   12122:     ac_pattern="Autoconf.*'x'"
                   12123:   cat >conftest.$ac_ext <<_ACEOF
                   12124: /* confdefs.h.  */
                   12125: _ACEOF
                   12126: cat confdefs.h >>conftest.$ac_ext
                   12127: cat >>conftest.$ac_ext <<_ACEOF
                   12128: /* end confdefs.h.  */
                   12129: #include <sgtty.h>
                   12130: Autoconf TIOCGETP
                   12131: _ACEOF
                   12132: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12133:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12134:   ac_cv_prog_gcc_traditional=yes
                   12135: else
                   12136:   ac_cv_prog_gcc_traditional=no
                   12137: fi
                   12138: rm -f conftest*
1.23      millert  12139:
                   12140:
1.25      millert  12141:   if test $ac_cv_prog_gcc_traditional = no; then
                   12142:     cat >conftest.$ac_ext <<_ACEOF
                   12143: /* confdefs.h.  */
                   12144: _ACEOF
                   12145: cat confdefs.h >>conftest.$ac_ext
                   12146: cat >>conftest.$ac_ext <<_ACEOF
                   12147: /* end confdefs.h.  */
                   12148: #include <termio.h>
                   12149: Autoconf TCGETA
                   12150: _ACEOF
                   12151: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12152:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12153:   ac_cv_prog_gcc_traditional=yes
                   12154: fi
                   12155: rm -f conftest*
1.23      millert  12156:
1.25      millert  12157:   fi
                   12158: fi
1.27      millert  12159: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
                   12160: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25      millert  12161:   if test $ac_cv_prog_gcc_traditional = yes; then
                   12162:     CC="$CC -traditional"
                   12163:   fi
                   12164: fi
1.23      millert  12165:
1.27      millert  12166: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   12167: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25      millert  12168: if test "${ac_cv_c_const+set}" = set; then
                   12169:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12170: else
                   12171:   cat >conftest.$ac_ext <<_ACEOF
                   12172: /* confdefs.h.  */
                   12173: _ACEOF
                   12174: cat confdefs.h >>conftest.$ac_ext
                   12175: cat >>conftest.$ac_ext <<_ACEOF
                   12176: /* end confdefs.h.  */
1.23      millert  12177:
1.25      millert  12178: int
                   12179: main ()
                   12180: {
                   12181: /* FIXME: Include the comments suggested by Paul. */
                   12182: #ifndef __cplusplus
                   12183:   /* Ultrix mips cc rejects this.  */
                   12184:   typedef int charset[2];
1.27      millert  12185:   const charset cs;
1.25      millert  12186:   /* SunOS 4.1.1 cc rejects this.  */
1.27      millert  12187:   char const *const *pcpcc;
                   12188:   char **ppc;
1.25      millert  12189:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   12190:   struct point {int x, y;};
                   12191:   static struct point const zero = {0,0};
                   12192:   /* AIX XL C 1.02.0.0 rejects this.
                   12193:      It does not let you subtract one const X* pointer from another in
                   12194:      an arm of an if-expression whose if-part is not a constant
                   12195:      expression */
                   12196:   const char *g = "string";
1.27      millert  12197:   pcpcc = &g + (g ? g-g : 0);
1.25      millert  12198:   /* HPUX 7.0 cc rejects these. */
1.27      millert  12199:   ++pcpcc;
                   12200:   ppc = (char**) pcpcc;
                   12201:   pcpcc = (char const *const *) ppc;
1.25      millert  12202:   { /* SCO 3.2v4 cc rejects this.  */
                   12203:     char *t;
                   12204:     char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23      millert  12205:
1.25      millert  12206:     *t++ = 0;
1.27      millert  12207:     if (s) return 0;
1.25      millert  12208:   }
                   12209:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   12210:     int x[] = {25, 17};
                   12211:     const int *foo = &x[0];
                   12212:     ++foo;
                   12213:   }
                   12214:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   12215:     typedef const int *iptr;
                   12216:     iptr p = 0;
                   12217:     ++p;
                   12218:   }
                   12219:   { /* AIX XL C 1.02.0.0 rejects this saying
                   12220:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   12221:     struct s { int j; const int *ap[3]; };
                   12222:     struct s *b; b->j = 5;
                   12223:   }
                   12224:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   12225:     const int foo = 10;
1.27      millert  12226:     if (!foo) return 0;
1.25      millert  12227:   }
1.27      millert  12228:   return !cs[0] && !zero.x;
1.25      millert  12229: #endif
1.23      millert  12230:
1.25      millert  12231:   ;
                   12232:   return 0;
                   12233: }
                   12234: _ACEOF
                   12235: rm -f conftest.$ac_objext
1.27      millert  12236: if { (ac_try="$ac_compile"
                   12237: case "(($ac_try" in
                   12238:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12239:   *) ac_try_echo=$ac_try;;
                   12240: esac
                   12241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12242:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12243:   ac_status=$?
                   12244:   grep -v '^ *+' conftest.er1 >conftest.err
                   12245:   rm -f conftest.er1
                   12246:   cat conftest.err >&5
                   12247:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12248:   (exit $ac_status); } && {
                   12249:         test -z "$ac_c_werror_flag" ||
                   12250:         test ! -s conftest.err
                   12251:        } && test -s conftest.$ac_objext; then
1.25      millert  12252:   ac_cv_c_const=yes
                   12253: else
                   12254:   echo "$as_me: failed program was:" >&5
                   12255: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12256:
1.27      millert  12257:        ac_cv_c_const=no
1.25      millert  12258: fi
1.27      millert  12259:
                   12260: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12261: fi
1.27      millert  12262: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   12263: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25      millert  12264: if test $ac_cv_c_const = no; then
1.23      millert  12265:
1.25      millert  12266: cat >>confdefs.h <<\_ACEOF
                   12267: #define const
                   12268: _ACEOF
1.23      millert  12269:
1.25      millert  12270: fi
1.23      millert  12271:
1.27      millert  12272: { echo "$as_me:$LINENO: checking for working volatile" >&5
                   12273: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25      millert  12274: if test "${ac_cv_c_volatile+set}" = set; then
                   12275:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12276: else
                   12277:   cat >conftest.$ac_ext <<_ACEOF
                   12278: /* confdefs.h.  */
                   12279: _ACEOF
                   12280: cat confdefs.h >>conftest.$ac_ext
                   12281: cat >>conftest.$ac_ext <<_ACEOF
                   12282: /* end confdefs.h.  */
1.23      millert  12283:
1.25      millert  12284: int
                   12285: main ()
                   12286: {
1.23      millert  12287:
1.25      millert  12288: volatile int x;
1.27      millert  12289: int * volatile y = (int *) 0;
                   12290: return !x && !y;
1.25      millert  12291:   ;
                   12292:   return 0;
                   12293: }
                   12294: _ACEOF
                   12295: rm -f conftest.$ac_objext
1.27      millert  12296: if { (ac_try="$ac_compile"
                   12297: case "(($ac_try" in
                   12298:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12299:   *) ac_try_echo=$ac_try;;
                   12300: esac
                   12301: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12302:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12303:   ac_status=$?
                   12304:   grep -v '^ *+' conftest.er1 >conftest.err
                   12305:   rm -f conftest.er1
                   12306:   cat conftest.err >&5
                   12307:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12308:   (exit $ac_status); } && {
                   12309:         test -z "$ac_c_werror_flag" ||
                   12310:         test ! -s conftest.err
                   12311:        } && test -s conftest.$ac_objext; then
1.25      millert  12312:   ac_cv_c_volatile=yes
                   12313: else
                   12314:   echo "$as_me: failed program was:" >&5
                   12315: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12316:
1.27      millert  12317:        ac_cv_c_volatile=no
1.25      millert  12318: fi
1.27      millert  12319:
                   12320: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12321: fi
1.27      millert  12322: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   12323: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25      millert  12324: if test $ac_cv_c_volatile = no; then
1.23      millert  12325:
1.25      millert  12326: cat >>confdefs.h <<\_ACEOF
                   12327: #define volatile
                   12328: _ACEOF
1.23      millert  12329:
1.25      millert  12330: fi
1.23      millert  12331:
1.25      millert  12332: for ac_prog in 'bison -y' byacc
                   12333: do
                   12334:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   12335: set dummy $ac_prog; ac_word=$2
1.27      millert  12336: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   12337: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  12338: if test "${ac_cv_prog_YACC+set}" = set; then
                   12339:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12340: else
                   12341:   if test -n "$YACC"; then
                   12342:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   12343: else
                   12344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   12345: for as_dir in $PATH
                   12346: do
                   12347:   IFS=$as_save_IFS
                   12348:   test -z "$as_dir" && as_dir=.
                   12349:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  12350:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  12351:     ac_cv_prog_YACC="$ac_prog"
                   12352:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   12353:     break 2
                   12354:   fi
                   12355: done
                   12356: done
1.27      millert  12357: IFS=$as_save_IFS
1.23      millert  12358:
1.25      millert  12359: fi
                   12360: fi
                   12361: YACC=$ac_cv_prog_YACC
                   12362: if test -n "$YACC"; then
1.27      millert  12363:   { echo "$as_me:$LINENO: result: $YACC" >&5
                   12364: echo "${ECHO_T}$YACC" >&6; }
1.25      millert  12365: else
1.27      millert  12366:   { echo "$as_me:$LINENO: result: no" >&5
                   12367: echo "${ECHO_T}no" >&6; }
1.25      millert  12368: fi
1.23      millert  12369:
1.27      millert  12370:
1.25      millert  12371:   test -n "$YACC" && break
                   12372: done
                   12373: test -n "$YACC" || YACC="yacc"
1.23      millert  12374:
1.27      millert  12375: { echo "$as_me:$LINENO: checking for mv" >&5
                   12376: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25      millert  12377: if test -f "/usr/bin/mv"; then
1.27      millert  12378:     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
                   12379: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25      millert  12380:     cat >>confdefs.h <<\EOF
                   12381: #define _PATH_MV "/usr/bin/mv"
                   12382: EOF
1.23      millert  12383:
1.25      millert  12384: elif test -f "/bin/mv"; then
1.27      millert  12385:     { echo "$as_me:$LINENO: result: /bin/mv" >&5
                   12386: echo "${ECHO_T}/bin/mv" >&6; }
1.25      millert  12387:     cat >>confdefs.h <<\EOF
                   12388: #define _PATH_MV "/bin/mv"
                   12389: EOF
1.23      millert  12390:
1.25      millert  12391: elif test -f "/usr/ucb/mv"; then
1.27      millert  12392:     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
                   12393: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25      millert  12394:     cat >>confdefs.h <<\EOF
                   12395: #define _PATH_MV "/usr/ucb/mv"
                   12396: EOF
1.23      millert  12397:
1.25      millert  12398: elif test -f "/usr/sbin/mv"; then
1.27      millert  12399:     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
                   12400: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25      millert  12401:     cat >>confdefs.h <<\EOF
                   12402: #define _PATH_MV "/usr/sbin/mv"
                   12403: EOF
1.23      millert  12404:
1.25      millert  12405: else
1.27      millert  12406:     { echo "$as_me:$LINENO: result: not found" >&5
                   12407: echo "${ECHO_T}not found" >&6; }
1.25      millert  12408: fi
1.23      millert  12409:
1.27      millert  12410: { echo "$as_me:$LINENO: checking for bourne shell" >&5
                   12411: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25      millert  12412: if test -f "/bin/sh"; then
1.27      millert  12413:     { echo "$as_me:$LINENO: result: /bin/sh" >&5
                   12414: echo "${ECHO_T}/bin/sh" >&6; }
1.25      millert  12415:     cat >>confdefs.h <<\EOF
                   12416: #define _PATH_BSHELL "/bin/sh"
                   12417: EOF
1.23      millert  12418:
1.25      millert  12419: elif test -f "/usr/bin/sh"; then
1.27      millert  12420:     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
                   12421: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25      millert  12422:     cat >>confdefs.h <<\EOF
                   12423: #define _PATH_BSHELL "/usr/bin/sh"
                   12424: EOF
1.23      millert  12425:
1.25      millert  12426: elif test -f "/sbin/sh"; then
1.27      millert  12427:     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
                   12428: echo "${ECHO_T}/sbin/sh" >&6; }
1.25      millert  12429:     cat >>confdefs.h <<\EOF
                   12430: #define _PATH_BSHELL "/sbin/sh"
                   12431: EOF
1.23      millert  12432:
1.25      millert  12433: elif test -f "/usr/sbin/sh"; then
1.27      millert  12434:     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
                   12435: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25      millert  12436:     cat >>confdefs.h <<\EOF
                   12437: #define _PATH_BSHELL "/usr/sbin/sh"
                   12438: EOF
1.23      millert  12439:
1.25      millert  12440: elif test -f "/bin/ksh"; then
1.27      millert  12441:     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
                   12442: echo "${ECHO_T}/bin/ksh" >&6; }
1.25      millert  12443:     cat >>confdefs.h <<\EOF
                   12444: #define _PATH_BSHELL "/bin/ksh"
                   12445: EOF
1.23      millert  12446:
1.25      millert  12447: elif test -f "/usr/bin/ksh"; then
1.27      millert  12448:     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
                   12449: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25      millert  12450:     cat >>confdefs.h <<\EOF
                   12451: #define _PATH_BSHELL "/usr/bin/ksh"
                   12452: EOF
1.23      millert  12453:
1.25      millert  12454: elif test -f "/bin/bash"; then
1.27      millert  12455:     { echo "$as_me:$LINENO: result: /bin/bash" >&5
                   12456: echo "${ECHO_T}/bin/bash" >&6; }
1.25      millert  12457:     cat >>confdefs.h <<\EOF
                   12458: #define _PATH_BSHELL "/bin/bash"
                   12459: EOF
1.23      millert  12460:
1.25      millert  12461: elif test -f "/usr/bin/bash"; then
1.27      millert  12462:     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
                   12463: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25      millert  12464:     cat >>confdefs.h <<\EOF
                   12465: #define _PATH_BSHELL "/usr/bin/bash"
                   12466: EOF
1.23      millert  12467:
1.25      millert  12468: else
1.27      millert  12469:     { echo "$as_me:$LINENO: result: not found" >&5
                   12470: echo "${ECHO_T}not found" >&6; }
1.25      millert  12471: fi
1.23      millert  12472:
1.25      millert  12473: if test -z "$with_sendmail"; then
1.27      millert  12474:     { echo "$as_me:$LINENO: checking for sendmail" >&5
                   12475: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25      millert  12476: if test -f "/usr/sbin/sendmail"; then
1.27      millert  12477:     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
                   12478: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25      millert  12479:     cat >>confdefs.h <<\EOF
                   12480: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   12481: EOF
1.23      millert  12482:
1.25      millert  12483: elif test -f "/usr/lib/sendmail"; then
1.27      millert  12484:     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
                   12485: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25      millert  12486:     cat >>confdefs.h <<\EOF
                   12487: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   12488: EOF
1.23      millert  12489:
1.25      millert  12490: elif test -f "/usr/etc/sendmail"; then
1.27      millert  12491:     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
                   12492: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25      millert  12493:     cat >>confdefs.h <<\EOF
                   12494: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   12495: EOF
1.23      millert  12496:
1.25      millert  12497: elif test -f "/usr/ucblib/sendmail"; then
1.27      millert  12498:     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
                   12499: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25      millert  12500:     cat >>confdefs.h <<\EOF
                   12501: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   12502: EOF
1.23      millert  12503:
1.25      millert  12504: elif test -f "/usr/local/lib/sendmail"; then
1.27      millert  12505:     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
                   12506: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25      millert  12507:     cat >>confdefs.h <<\EOF
                   12508: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   12509: EOF
1.23      millert  12510:
1.25      millert  12511: elif test -f "/usr/local/bin/sendmail"; then
1.27      millert  12512:     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
                   12513: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25      millert  12514:     cat >>confdefs.h <<\EOF
                   12515: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   12516: EOF
1.23      millert  12517:
1.25      millert  12518: else
1.27      millert  12519:     { echo "$as_me:$LINENO: result: not found" >&5
                   12520: echo "${ECHO_T}not found" >&6; }
1.25      millert  12521: fi
1.23      millert  12522:
1.25      millert  12523: fi
                   12524: if test -z "$with_editor"; then
1.27      millert  12525:     { echo "$as_me:$LINENO: checking for vi" >&5
                   12526: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25      millert  12527: if test -f "/usr/bin/vi"; then
1.27      millert  12528:     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
                   12529: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25      millert  12530:     cat >>confdefs.h <<\EOF
                   12531: #define _PATH_VI "/usr/bin/vi"
                   12532: EOF
1.23      millert  12533:
1.25      millert  12534: elif test -f "/usr/ucb/vi"; then
1.27      millert  12535:     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
                   12536: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25      millert  12537:     cat >>confdefs.h <<\EOF
                   12538: #define _PATH_VI "/usr/ucb/vi"
                   12539: EOF
1.23      millert  12540:
1.25      millert  12541: elif test -f "/usr/bsd/vi"; then
1.27      millert  12542:     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
                   12543: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25      millert  12544:     cat >>confdefs.h <<\EOF
                   12545: #define _PATH_VI "/usr/bsd/vi"
                   12546: EOF
1.23      millert  12547:
1.25      millert  12548: elif test -f "/bin/vi"; then
1.27      millert  12549:     { echo "$as_me:$LINENO: result: /bin/vi" >&5
                   12550: echo "${ECHO_T}/bin/vi" >&6; }
1.25      millert  12551:     cat >>confdefs.h <<\EOF
                   12552: #define _PATH_VI "/bin/vi"
                   12553: EOF
1.23      millert  12554:
1.25      millert  12555: elif test -f "/usr/local/bin/vi"; then
1.27      millert  12556:     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
                   12557: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25      millert  12558:     cat >>confdefs.h <<\EOF
                   12559: #define _PATH_VI "/usr/local/bin/vi"
                   12560: EOF
1.23      millert  12561:
                   12562: else
1.27      millert  12563:     { echo "$as_me:$LINENO: result: not found" >&5
                   12564: echo "${ECHO_T}not found" >&6; }
1.23      millert  12565: fi
                   12566:
1.25      millert  12567: fi
1.27      millert  12568: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   12569: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25      millert  12570: if test "${ac_cv_header_stdc+set}" = set; then
                   12571:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12572: else
                   12573:   cat >conftest.$ac_ext <<_ACEOF
                   12574: /* confdefs.h.  */
                   12575: _ACEOF
                   12576: cat confdefs.h >>conftest.$ac_ext
                   12577: cat >>conftest.$ac_ext <<_ACEOF
                   12578: /* end confdefs.h.  */
                   12579: #include <stdlib.h>
                   12580: #include <stdarg.h>
                   12581: #include <string.h>
                   12582: #include <float.h>
1.23      millert  12583:
1.25      millert  12584: int
                   12585: main ()
                   12586: {
1.23      millert  12587:
1.25      millert  12588:   ;
                   12589:   return 0;
                   12590: }
                   12591: _ACEOF
                   12592: rm -f conftest.$ac_objext
1.27      millert  12593: if { (ac_try="$ac_compile"
                   12594: case "(($ac_try" in
                   12595:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12596:   *) ac_try_echo=$ac_try;;
                   12597: esac
                   12598: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12599:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12600:   ac_status=$?
                   12601:   grep -v '^ *+' conftest.er1 >conftest.err
                   12602:   rm -f conftest.er1
                   12603:   cat conftest.err >&5
                   12604:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12605:   (exit $ac_status); } && {
                   12606:         test -z "$ac_c_werror_flag" ||
                   12607:         test ! -s conftest.err
                   12608:        } && test -s conftest.$ac_objext; then
1.25      millert  12609:   ac_cv_header_stdc=yes
                   12610: else
                   12611:   echo "$as_me: failed program was:" >&5
                   12612: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12613:
1.27      millert  12614:        ac_cv_header_stdc=no
1.25      millert  12615: fi
1.27      millert  12616:
                   12617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  12618:
1.25      millert  12619: if test $ac_cv_header_stdc = yes; then
                   12620:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   12621:   cat >conftest.$ac_ext <<_ACEOF
                   12622: /* confdefs.h.  */
                   12623: _ACEOF
                   12624: cat confdefs.h >>conftest.$ac_ext
                   12625: cat >>conftest.$ac_ext <<_ACEOF
                   12626: /* end confdefs.h.  */
                   12627: #include <string.h>
1.23      millert  12628:
1.25      millert  12629: _ACEOF
                   12630: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12631:   $EGREP "memchr" >/dev/null 2>&1; then
                   12632:   :
                   12633: else
                   12634:   ac_cv_header_stdc=no
                   12635: fi
                   12636: rm -f conftest*
1.23      millert  12637:
                   12638: fi
                   12639:
1.25      millert  12640: if test $ac_cv_header_stdc = yes; then
                   12641:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   12642:   cat >conftest.$ac_ext <<_ACEOF
                   12643: /* confdefs.h.  */
                   12644: _ACEOF
                   12645: cat confdefs.h >>conftest.$ac_ext
                   12646: cat >>conftest.$ac_ext <<_ACEOF
                   12647: /* end confdefs.h.  */
                   12648: #include <stdlib.h>
1.23      millert  12649:
1.25      millert  12650: _ACEOF
                   12651: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12652:   $EGREP "free" >/dev/null 2>&1; then
                   12653:   :
1.23      millert  12654: else
1.25      millert  12655:   ac_cv_header_stdc=no
1.23      millert  12656: fi
1.25      millert  12657: rm -f conftest*
1.23      millert  12658:
                   12659: fi
                   12660:
1.25      millert  12661: if test $ac_cv_header_stdc = yes; then
                   12662:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   12663:   if test "$cross_compiling" = yes; then
                   12664:   :
1.1       millert  12665: else
1.25      millert  12666:   cat >conftest.$ac_ext <<_ACEOF
                   12667: /* confdefs.h.  */
                   12668: _ACEOF
                   12669: cat confdefs.h >>conftest.$ac_ext
                   12670: cat >>conftest.$ac_ext <<_ACEOF
                   12671: /* end confdefs.h.  */
                   12672: #include <ctype.h>
1.27      millert  12673: #include <stdlib.h>
1.25      millert  12674: #if ((' ' & 0x0FF) == 0x020)
                   12675: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   12676: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   12677: #else
                   12678: # define ISLOWER(c) \
                   12679:                   (('a' <= (c) && (c) <= 'i') \
                   12680:                     || ('j' <= (c) && (c) <= 'r') \
                   12681:                     || ('s' <= (c) && (c) <= 'z'))
                   12682: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   12683: #endif
                   12684:
                   12685: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   12686: int
                   12687: main ()
                   12688: {
                   12689:   int i;
                   12690:   for (i = 0; i < 256; i++)
                   12691:     if (XOR (islower (i), ISLOWER (i))
                   12692:        || toupper (i) != TOUPPER (i))
1.27      millert  12693:       return 2;
                   12694:   return 0;
1.25      millert  12695: }
                   12696: _ACEOF
                   12697: rm -f conftest$ac_exeext
1.27      millert  12698: if { (ac_try="$ac_link"
                   12699: case "(($ac_try" in
                   12700:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12701:   *) ac_try_echo=$ac_try;;
                   12702: esac
                   12703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12704:   (eval "$ac_link") 2>&5
1.25      millert  12705:   ac_status=$?
                   12706:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12707:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27      millert  12708:   { (case "(($ac_try" in
                   12709:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12710:   *) ac_try_echo=$ac_try;;
                   12711: esac
                   12712: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12713:   (eval "$ac_try") 2>&5
1.25      millert  12714:   ac_status=$?
                   12715:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12716:   (exit $ac_status); }; }; then
                   12717:   :
1.1       millert  12718: else
1.25      millert  12719:   echo "$as_me: program exited with status $ac_status" >&5
                   12720: echo "$as_me: failed program was:" >&5
                   12721: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  12722:
1.25      millert  12723: ( exit $ac_status )
                   12724: ac_cv_header_stdc=no
                   12725: fi
1.27      millert  12726: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  12727: fi
1.27      millert  12728:
                   12729:
1.1       millert  12730: fi
                   12731: fi
1.27      millert  12732: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   12733: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25      millert  12734: if test $ac_cv_header_stdc = yes; then
1.1       millert  12735:
1.25      millert  12736: cat >>confdefs.h <<\_ACEOF
                   12737: #define STDC_HEADERS 1
                   12738: _ACEOF
1.9       millert  12739:
1.1       millert  12740: fi
                   12741:
1.25      millert  12742:
                   12743:
                   12744:
                   12745:
                   12746:
                   12747: ac_header_dirent=no
                   12748: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   12749:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27      millert  12750: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   12751: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
                   12752: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  12753:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12754: else
1.25      millert  12755:   cat >conftest.$ac_ext <<_ACEOF
                   12756: /* confdefs.h.  */
                   12757: _ACEOF
                   12758: cat confdefs.h >>conftest.$ac_ext
                   12759: cat >>conftest.$ac_ext <<_ACEOF
                   12760: /* end confdefs.h.  */
                   12761: #include <sys/types.h>
                   12762: #include <$ac_hdr>
                   12763:
                   12764: int
                   12765: main ()
                   12766: {
                   12767: if ((DIR *) 0)
                   12768: return 0;
                   12769:   ;
                   12770:   return 0;
                   12771: }
                   12772: _ACEOF
                   12773: rm -f conftest.$ac_objext
1.27      millert  12774: if { (ac_try="$ac_compile"
                   12775: case "(($ac_try" in
                   12776:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12777:   *) ac_try_echo=$ac_try;;
                   12778: esac
                   12779: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12780:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12781:   ac_status=$?
                   12782:   grep -v '^ *+' conftest.er1 >conftest.err
                   12783:   rm -f conftest.er1
                   12784:   cat conftest.err >&5
                   12785:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12786:   (exit $ac_status); } && {
                   12787:         test -z "$ac_c_werror_flag" ||
                   12788:         test ! -s conftest.err
                   12789:        } && test -s conftest.$ac_objext; then
1.25      millert  12790:   eval "$as_ac_Header=yes"
1.1       millert  12791: else
1.25      millert  12792:   echo "$as_me: failed program was:" >&5
                   12793: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  12794:
1.27      millert  12795:        eval "$as_ac_Header=no"
1.1       millert  12796: fi
1.27      millert  12797:
                   12798: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  12799: fi
1.27      millert  12800: ac_res=`eval echo '${'$as_ac_Header'}'`
                   12801:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12802: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12803: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   12804:   cat >>confdefs.h <<_ACEOF
                   12805: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   12806: _ACEOF
1.9       millert  12807:
1.25      millert  12808: ac_header_dirent=$ac_hdr; break
1.9       millert  12809: fi
1.16      millert  12810:
1.25      millert  12811: done
                   12812: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   12813: if test $ac_header_dirent = dirent.h; then
1.27      millert  12814:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   12815: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  12816: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  12817:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12818: else
1.25      millert  12819:   ac_func_search_save_LIBS=$LIBS
                   12820: cat >conftest.$ac_ext <<_ACEOF
                   12821: /* confdefs.h.  */
                   12822: _ACEOF
                   12823: cat confdefs.h >>conftest.$ac_ext
                   12824: cat >>conftest.$ac_ext <<_ACEOF
                   12825: /* end confdefs.h.  */
1.1       millert  12826:
1.27      millert  12827: /* Override any GCC internal prototype to avoid an error.
                   12828:    Use char because int might match the return type of a GCC
                   12829:    builtin and then its argument prototype would still apply.  */
1.25      millert  12830: #ifdef __cplusplus
                   12831: extern "C"
                   12832: #endif
                   12833: char opendir ();
                   12834: int
                   12835: main ()
                   12836: {
1.27      millert  12837: return opendir ();
1.25      millert  12838:   ;
                   12839:   return 0;
                   12840: }
                   12841: _ACEOF
1.27      millert  12842: for ac_lib in '' dir; do
                   12843:   if test -z "$ac_lib"; then
                   12844:     ac_res="none required"
                   12845:   else
                   12846:     ac_res=-l$ac_lib
                   12847:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   12848:   fi
                   12849:   rm -f conftest.$ac_objext conftest$ac_exeext
                   12850: if { (ac_try="$ac_link"
                   12851: case "(($ac_try" in
                   12852:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12853:   *) ac_try_echo=$ac_try;;
                   12854: esac
                   12855: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12856:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12857:   ac_status=$?
                   12858:   grep -v '^ *+' conftest.er1 >conftest.err
                   12859:   rm -f conftest.er1
                   12860:   cat conftest.err >&5
                   12861:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12862:   (exit $ac_status); } && {
                   12863:         test -z "$ac_c_werror_flag" ||
                   12864:         test ! -s conftest.err
                   12865:        } && test -s conftest$ac_exeext &&
                   12866:        $as_test_x conftest$ac_exeext; then
                   12867:   ac_cv_search_opendir=$ac_res
1.1       millert  12868: else
1.25      millert  12869:   echo "$as_me: failed program was:" >&5
                   12870: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  12871:
1.27      millert  12872:
1.1       millert  12873: fi
                   12874:
1.27      millert  12875: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12876:       conftest$ac_exeext
                   12877:   if test "${ac_cv_search_opendir+set}" = set; then
                   12878:   break
                   12879: fi
                   12880: done
                   12881: if test "${ac_cv_search_opendir+set}" = set; then
                   12882:   :
1.1       millert  12883: else
1.27      millert  12884:   ac_cv_search_opendir=no
1.25      millert  12885: fi
1.27      millert  12886: rm conftest.$ac_ext
1.25      millert  12887: LIBS=$ac_func_search_save_LIBS
1.1       millert  12888: fi
1.27      millert  12889: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   12890: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   12891: ac_res=$ac_cv_search_opendir
                   12892: if test "$ac_res" != no; then
                   12893:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       millert  12894:
1.25      millert  12895: fi
1.1       millert  12896:
1.25      millert  12897: else
1.27      millert  12898:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   12899: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  12900: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  12901:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12902: else
1.25      millert  12903:   ac_func_search_save_LIBS=$LIBS
                   12904: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12905: /* confdefs.h.  */
                   12906: _ACEOF
                   12907: cat confdefs.h >>conftest.$ac_ext
                   12908: cat >>conftest.$ac_ext <<_ACEOF
                   12909: /* end confdefs.h.  */
1.25      millert  12910:
1.27      millert  12911: /* Override any GCC internal prototype to avoid an error.
                   12912:    Use char because int might match the return type of a GCC
                   12913:    builtin and then its argument prototype would still apply.  */
1.9       millert  12914: #ifdef __cplusplus
                   12915: extern "C"
                   12916: #endif
1.25      millert  12917: char opendir ();
1.16      millert  12918: int
                   12919: main ()
                   12920: {
1.27      millert  12921: return opendir ();
1.9       millert  12922:   ;
                   12923:   return 0;
                   12924: }
                   12925: _ACEOF
1.27      millert  12926: for ac_lib in '' x; do
                   12927:   if test -z "$ac_lib"; then
                   12928:     ac_res="none required"
                   12929:   else
                   12930:     ac_res=-l$ac_lib
                   12931:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   12932:   fi
                   12933:   rm -f conftest.$ac_objext conftest$ac_exeext
                   12934: if { (ac_try="$ac_link"
                   12935: case "(($ac_try" in
                   12936:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12937:   *) ac_try_echo=$ac_try;;
                   12938: esac
                   12939: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12940:   (eval "$ac_link") 2>conftest.er1
1.9       millert  12941:   ac_status=$?
1.25      millert  12942:   grep -v '^ *+' conftest.er1 >conftest.err
                   12943:   rm -f conftest.er1
                   12944:   cat conftest.err >&5
1.16      millert  12945:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12946:   (exit $ac_status); } && {
                   12947:         test -z "$ac_c_werror_flag" ||
                   12948:         test ! -s conftest.err
                   12949:        } && test -s conftest$ac_exeext &&
                   12950:        $as_test_x conftest$ac_exeext; then
                   12951:   ac_cv_search_opendir=$ac_res
1.9       millert  12952: else
                   12953:   echo "$as_me: failed program was:" >&5
1.16      millert  12954: sed 's/^/| /' conftest.$ac_ext >&5
                   12955:
1.27      millert  12956:
1.1       millert  12957: fi
1.17      millert  12958:
1.27      millert  12959: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12960:       conftest$ac_exeext
                   12961:   if test "${ac_cv_search_opendir+set}" = set; then
                   12962:   break
                   12963: fi
                   12964: done
                   12965: if test "${ac_cv_search_opendir+set}" = set; then
                   12966:   :
1.17      millert  12967: else
1.27      millert  12968:   ac_cv_search_opendir=no
1.25      millert  12969: fi
1.27      millert  12970: rm conftest.$ac_ext
1.25      millert  12971: LIBS=$ac_func_search_save_LIBS
                   12972: fi
1.27      millert  12973: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   12974: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   12975: ac_res=$ac_cv_search_opendir
                   12976: if test "$ac_res" != no; then
                   12977:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25      millert  12978:
                   12979: fi
                   12980:
                   12981: fi
                   12982:
1.27      millert  12983: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
                   12984: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25      millert  12985: if test "${ac_cv_header_time+set}" = set; then
1.9       millert  12986:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12987: else
1.25      millert  12988:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12989: /* confdefs.h.  */
                   12990: _ACEOF
                   12991: cat confdefs.h >>conftest.$ac_ext
                   12992: cat >>conftest.$ac_ext <<_ACEOF
                   12993: /* end confdefs.h.  */
1.25      millert  12994: #include <sys/types.h>
                   12995: #include <sys/time.h>
                   12996: #include <time.h>
1.9       millert  12997:
                   12998: int
                   12999: main ()
                   13000: {
1.25      millert  13001: if ((struct tm *) 0)
                   13002: return 0;
1.9       millert  13003:   ;
                   13004:   return 0;
                   13005: }
                   13006: _ACEOF
1.25      millert  13007: rm -f conftest.$ac_objext
1.27      millert  13008: if { (ac_try="$ac_compile"
                   13009: case "(($ac_try" in
                   13010:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13011:   *) ac_try_echo=$ac_try;;
                   13012: esac
                   13013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13014:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13015:   ac_status=$?
1.25      millert  13016:   grep -v '^ *+' conftest.er1 >conftest.err
                   13017:   rm -f conftest.er1
                   13018:   cat conftest.err >&5
1.16      millert  13019:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13020:   (exit $ac_status); } && {
                   13021:         test -z "$ac_c_werror_flag" ||
                   13022:         test ! -s conftest.err
                   13023:        } && test -s conftest.$ac_objext; then
1.25      millert  13024:   ac_cv_header_time=yes
1.9       millert  13025: else
                   13026:   echo "$as_me: failed program was:" >&5
1.16      millert  13027: sed 's/^/| /' conftest.$ac_ext >&5
                   13028:
1.27      millert  13029:        ac_cv_header_time=no
1.9       millert  13030: fi
1.27      millert  13031:
                   13032: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13033: fi
1.27      millert  13034: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
                   13035: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25      millert  13036: if test $ac_cv_header_time = yes; then
                   13037:
                   13038: cat >>confdefs.h <<\_ACEOF
                   13039: #define TIME_WITH_SYS_TIME 1
1.16      millert  13040: _ACEOF
1.25      millert  13041:
                   13042: fi
                   13043:
                   13044:
                   13045:
                   13046:
                   13047:
                   13048:
                   13049:
                   13050:
                   13051: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
                   13052: do
                   13053: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13054: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13055:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13056: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13057: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13058:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13059: fi
1.27      millert  13060: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13061:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13062: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13063: else
1.25      millert  13064:   # Is the header compilable?
1.27      millert  13065: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13066: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9       millert  13067: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13068: /* confdefs.h.  */
                   13069: _ACEOF
                   13070: cat confdefs.h >>conftest.$ac_ext
                   13071: cat >>conftest.$ac_ext <<_ACEOF
                   13072: /* end confdefs.h.  */
1.25      millert  13073: $ac_includes_default
                   13074: #include <$ac_header>
1.9       millert  13075: _ACEOF
1.25      millert  13076: rm -f conftest.$ac_objext
1.27      millert  13077: if { (ac_try="$ac_compile"
                   13078: case "(($ac_try" in
                   13079:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13080:   *) ac_try_echo=$ac_try;;
                   13081: esac
                   13082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13083:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13084:   ac_status=$?
1.25      millert  13085:   grep -v '^ *+' conftest.er1 >conftest.err
                   13086:   rm -f conftest.er1
                   13087:   cat conftest.err >&5
1.16      millert  13088:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13089:   (exit $ac_status); } && {
                   13090:         test -z "$ac_c_werror_flag" ||
                   13091:         test ! -s conftest.err
                   13092:        } && test -s conftest.$ac_objext; then
1.25      millert  13093:   ac_header_compiler=yes
1.9       millert  13094: else
                   13095:   echo "$as_me: failed program was:" >&5
1.16      millert  13096: sed 's/^/| /' conftest.$ac_ext >&5
                   13097:
1.27      millert  13098:        ac_header_compiler=no
1.9       millert  13099: fi
1.27      millert  13100:
                   13101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13102: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13103: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  13104:
                   13105: # Is the header present?
1.27      millert  13106: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13107: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25      millert  13108: cat >conftest.$ac_ext <<_ACEOF
                   13109: /* confdefs.h.  */
                   13110: _ACEOF
                   13111: cat confdefs.h >>conftest.$ac_ext
                   13112: cat >>conftest.$ac_ext <<_ACEOF
                   13113: /* end confdefs.h.  */
                   13114: #include <$ac_header>
1.16      millert  13115: _ACEOF
1.27      millert  13116: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13117: case "(($ac_try" in
                   13118:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13119:   *) ac_try_echo=$ac_try;;
                   13120: esac
                   13121: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13122:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  13123:   ac_status=$?
                   13124:   grep -v '^ *+' conftest.er1 >conftest.err
                   13125:   rm -f conftest.er1
                   13126:   cat conftest.err >&5
                   13127:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13128:   (exit $ac_status); } >/dev/null && {
                   13129:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13130:         test ! -s conftest.err
                   13131:        }; then
1.25      millert  13132:   ac_header_preproc=yes
                   13133: else
                   13134:   echo "$as_me: failed program was:" >&5
                   13135: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13136:
1.25      millert  13137:   ac_header_preproc=no
1.1       millert  13138: fi
1.27      millert  13139:
1.25      millert  13140: rm -f conftest.err conftest.$ac_ext
1.27      millert  13141: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13142: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  13143:
1.25      millert  13144: # So?  What about this header?
                   13145: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13146:   yes:no: )
                   13147:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13148: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13149:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13150: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13151:     ac_header_preproc=yes
                   13152:     ;;
                   13153:   no:yes:* )
                   13154:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13155: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13156:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13157: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13158:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13159: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13160:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13161: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13162:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13163: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13164:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13165: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13166:
1.25      millert  13167:     ;;
                   13168: esac
1.27      millert  13169: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13170: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13171: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13172:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13173: else
                   13174:   eval "$as_ac_Header=\$ac_header_preproc"
                   13175: fi
1.27      millert  13176: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13177:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13178: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13179:
1.25      millert  13180: fi
                   13181: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13182:   cat >>confdefs.h <<_ACEOF
                   13183: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23      millert  13184: _ACEOF
                   13185:
1.25      millert  13186: fi
1.23      millert  13187:
1.25      millert  13188: done
1.23      millert  13189:
                   13190:
1.25      millert  13191: for ac_header in err.h
1.23      millert  13192: do
1.25      millert  13193: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13194: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13195:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13196: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13197: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  13198:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13199: fi
1.27      millert  13200: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13201:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13202: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13203: else
1.25      millert  13204:   # Is the header compilable?
1.27      millert  13205: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13206: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25      millert  13207: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  13208: /* confdefs.h.  */
                   13209: _ACEOF
                   13210: cat confdefs.h >>conftest.$ac_ext
                   13211: cat >>conftest.$ac_ext <<_ACEOF
                   13212: /* end confdefs.h.  */
1.25      millert  13213: $ac_includes_default
                   13214: #include <$ac_header>
1.23      millert  13215: _ACEOF
1.25      millert  13216: rm -f conftest.$ac_objext
1.27      millert  13217: if { (ac_try="$ac_compile"
                   13218: case "(($ac_try" in
                   13219:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13220:   *) ac_try_echo=$ac_try;;
                   13221: esac
                   13222: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13223:   (eval "$ac_compile") 2>conftest.er1
1.23      millert  13224:   ac_status=$?
1.25      millert  13225:   grep -v '^ *+' conftest.er1 >conftest.err
                   13226:   rm -f conftest.er1
                   13227:   cat conftest.err >&5
1.23      millert  13228:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13229:   (exit $ac_status); } && {
                   13230:         test -z "$ac_c_werror_flag" ||
                   13231:         test ! -s conftest.err
                   13232:        } && test -s conftest.$ac_objext; then
1.25      millert  13233:   ac_header_compiler=yes
1.23      millert  13234: else
                   13235:   echo "$as_me: failed program was:" >&5
                   13236: sed 's/^/| /' conftest.$ac_ext >&5
                   13237:
1.27      millert  13238:        ac_header_compiler=no
1.23      millert  13239: fi
1.27      millert  13240:
                   13241: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13242: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13243: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  13244:
1.25      millert  13245: # Is the header present?
1.27      millert  13246: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13247: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  13248: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13249: /* confdefs.h.  */
                   13250: _ACEOF
                   13251: cat confdefs.h >>conftest.$ac_ext
                   13252: cat >>conftest.$ac_ext <<_ACEOF
                   13253: /* end confdefs.h.  */
1.25      millert  13254: #include <$ac_header>
1.9       millert  13255: _ACEOF
1.27      millert  13256: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13257: case "(($ac_try" in
                   13258:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13259:   *) ac_try_echo=$ac_try;;
                   13260: esac
                   13261: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13262:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  13263:   ac_status=$?
1.25      millert  13264:   grep -v '^ *+' conftest.er1 >conftest.err
                   13265:   rm -f conftest.er1
                   13266:   cat conftest.err >&5
1.16      millert  13267:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13268:   (exit $ac_status); } >/dev/null && {
                   13269:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13270:         test ! -s conftest.err
                   13271:        }; then
1.25      millert  13272:   ac_header_preproc=yes
1.9       millert  13273: else
                   13274:   echo "$as_me: failed program was:" >&5
1.16      millert  13275: sed 's/^/| /' conftest.$ac_ext >&5
                   13276:
1.25      millert  13277:   ac_header_preproc=no
                   13278: fi
1.27      millert  13279:
1.25      millert  13280: rm -f conftest.err conftest.$ac_ext
1.27      millert  13281: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13282: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  13283:
                   13284: # So?  What about this header?
                   13285: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13286:   yes:no: )
                   13287:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13288: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13289:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13290: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13291:     ac_header_preproc=yes
                   13292:     ;;
                   13293:   no:yes:* )
                   13294:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13295: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13296:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13297: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13298:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13299: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13300:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13301: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13302:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13303: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13304:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13305: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13306:
1.25      millert  13307:     ;;
                   13308: esac
1.27      millert  13309: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13310: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13311: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13312:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13313: else
                   13314:   eval "$as_ac_Header=\$ac_header_preproc"
                   13315: fi
1.27      millert  13316: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13317:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13318: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13319:
1.9       millert  13320: fi
1.25      millert  13321: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13322:   cat >>confdefs.h <<_ACEOF
                   13323: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13324: _ACEOF
                   13325:
                   13326: else
1.27      millert  13327:   case " $LIBOBJS " in
1.25      millert  13328:   *" err.$ac_objext "* ) ;;
1.27      millert  13329:   *) LIBOBJS="$LIBOBJS err.$ac_objext"
                   13330:  ;;
1.25      millert  13331: esac
                   13332:
1.9       millert  13333: fi
1.25      millert  13334:
                   13335: done
                   13336:
                   13337: if test "$OS" != "ultrix"; then
1.27      millert  13338:     { echo "$as_me:$LINENO: checking POSIX termios" >&5
                   13339: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
1.25      millert  13340: if test "${ac_cv_sys_posix_termios+set}" = set; then
1.9       millert  13341:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13342: else
1.25      millert  13343:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13344: /* confdefs.h.  */
                   13345: _ACEOF
                   13346: cat confdefs.h >>conftest.$ac_ext
                   13347: cat >>conftest.$ac_ext <<_ACEOF
                   13348: /* end confdefs.h.  */
1.25      millert  13349: #include <sys/types.h>
                   13350: #include <unistd.h>
                   13351: #include <termios.h>
1.9       millert  13352:
                   13353: int
                   13354: main ()
                   13355: {
1.25      millert  13356: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   13357:    tcgetattr(0, 0);
1.9       millert  13358:   ;
                   13359:   return 0;
                   13360: }
                   13361: _ACEOF
                   13362: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  13363: if { (ac_try="$ac_link"
                   13364: case "(($ac_try" in
                   13365:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13366:   *) ac_try_echo=$ac_try;;
                   13367: esac
                   13368: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13369:   (eval "$ac_link") 2>conftest.er1
1.9       millert  13370:   ac_status=$?
1.25      millert  13371:   grep -v '^ *+' conftest.er1 >conftest.err
                   13372:   rm -f conftest.er1
                   13373:   cat conftest.err >&5
1.16      millert  13374:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13375:   (exit $ac_status); } && {
                   13376:         test -z "$ac_c_werror_flag" ||
                   13377:         test ! -s conftest.err
                   13378:        } && test -s conftest$ac_exeext &&
                   13379:        $as_test_x conftest$ac_exeext; then
1.25      millert  13380:   ac_cv_sys_posix_termios=yes
1.9       millert  13381: else
                   13382:   echo "$as_me: failed program was:" >&5
1.16      millert  13383: sed 's/^/| /' conftest.$ac_ext >&5
                   13384:
1.27      millert  13385:        ac_cv_sys_posix_termios=no
1.9       millert  13386: fi
1.27      millert  13387:
                   13388: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  13389:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  13390: fi
1.27      millert  13391: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
                   13392: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
1.25      millert  13393:
                   13394:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   13395:        cat >>confdefs.h <<\_ACEOF
                   13396: #define HAVE_TERMIOS_H 1
1.16      millert  13397: _ACEOF
1.1       millert  13398:
1.25      millert  13399:     else
1.1       millert  13400:
1.25      millert  13401: for ac_header in termio.h
                   13402: do
                   13403: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13404: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13405:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13406: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13407: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13408:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13409: fi
1.27      millert  13410: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13411:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13412: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13413: else
1.25      millert  13414:   # Is the header compilable?
1.27      millert  13415: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13416: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.23      millert  13417: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13418: /* confdefs.h.  */
                   13419: _ACEOF
                   13420: cat confdefs.h >>conftest.$ac_ext
                   13421: cat >>conftest.$ac_ext <<_ACEOF
                   13422: /* end confdefs.h.  */
1.25      millert  13423: $ac_includes_default
                   13424: #include <$ac_header>
1.9       millert  13425: _ACEOF
1.25      millert  13426: rm -f conftest.$ac_objext
1.27      millert  13427: if { (ac_try="$ac_compile"
                   13428: case "(($ac_try" in
                   13429:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13430:   *) ac_try_echo=$ac_try;;
                   13431: esac
                   13432: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13433:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13434:   ac_status=$?
1.25      millert  13435:   grep -v '^ *+' conftest.er1 >conftest.err
                   13436:   rm -f conftest.er1
                   13437:   cat conftest.err >&5
1.16      millert  13438:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13439:   (exit $ac_status); } && {
                   13440:         test -z "$ac_c_werror_flag" ||
                   13441:         test ! -s conftest.err
                   13442:        } && test -s conftest.$ac_objext; then
1.25      millert  13443:   ac_header_compiler=yes
                   13444: else
                   13445:   echo "$as_me: failed program was:" >&5
                   13446: sed 's/^/| /' conftest.$ac_ext >&5
                   13447:
1.27      millert  13448:        ac_header_compiler=no
1.25      millert  13449: fi
1.27      millert  13450:
                   13451: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13452: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13453: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  13454:
                   13455: # Is the header present?
1.27      millert  13456: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13457: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25      millert  13458: cat >conftest.$ac_ext <<_ACEOF
                   13459: /* confdefs.h.  */
                   13460: _ACEOF
                   13461: cat confdefs.h >>conftest.$ac_ext
                   13462: cat >>conftest.$ac_ext <<_ACEOF
                   13463: /* end confdefs.h.  */
                   13464: #include <$ac_header>
                   13465: _ACEOF
1.27      millert  13466: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13467: case "(($ac_try" in
                   13468:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13469:   *) ac_try_echo=$ac_try;;
                   13470: esac
                   13471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13472:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  13473:   ac_status=$?
                   13474:   grep -v '^ *+' conftest.er1 >conftest.err
                   13475:   rm -f conftest.er1
                   13476:   cat conftest.err >&5
                   13477:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13478:   (exit $ac_status); } >/dev/null && {
                   13479:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13480:         test ! -s conftest.err
                   13481:        }; then
1.25      millert  13482:   ac_header_preproc=yes
1.9       millert  13483: else
                   13484:   echo "$as_me: failed program was:" >&5
1.16      millert  13485: sed 's/^/| /' conftest.$ac_ext >&5
                   13486:
1.25      millert  13487:   ac_header_preproc=no
                   13488: fi
1.27      millert  13489:
1.25      millert  13490: rm -f conftest.err conftest.$ac_ext
1.27      millert  13491: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13492: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  13493:
                   13494: # So?  What about this header?
                   13495: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13496:   yes:no: )
                   13497:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13498: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13499:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13500: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13501:     ac_header_preproc=yes
                   13502:     ;;
                   13503:   no:yes:* )
                   13504:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13505: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13506:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13507: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13508:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13509: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13510:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13511: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13512:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13513: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13514:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13515: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13516:
1.25      millert  13517:     ;;
                   13518: esac
1.27      millert  13519: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13520: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13521: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13522:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13523: else
                   13524:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  13525: fi
1.27      millert  13526: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13527:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13528: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13529:
1.9       millert  13530: fi
1.25      millert  13531: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13532:   cat >>confdefs.h <<_ACEOF
                   13533: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16      millert  13534: _ACEOF
1.25      millert  13535:
1.1       millert  13536: fi
                   13537:
1.25      millert  13538: done
1.1       millert  13539:
1.25      millert  13540:     fi
                   13541: fi
                   13542: if test ${with_logincap-'no'} != "no"; then
1.9       millert  13543:
1.25      millert  13544: for ac_header in login_cap.h
                   13545: do
                   13546: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13547: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13548:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13549: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13550: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13551:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13552: fi
1.27      millert  13553: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13554:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13555: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13556: else
1.25      millert  13557:   # Is the header compilable?
1.27      millert  13558: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13559: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25      millert  13560: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13561: /* confdefs.h.  */
                   13562: _ACEOF
                   13563: cat confdefs.h >>conftest.$ac_ext
                   13564: cat >>conftest.$ac_ext <<_ACEOF
                   13565: /* end confdefs.h.  */
1.25      millert  13566: $ac_includes_default
                   13567: #include <$ac_header>
                   13568: _ACEOF
                   13569: rm -f conftest.$ac_objext
1.27      millert  13570: if { (ac_try="$ac_compile"
                   13571: case "(($ac_try" in
                   13572:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13573:   *) ac_try_echo=$ac_try;;
                   13574: esac
                   13575: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13576:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13577:   ac_status=$?
                   13578:   grep -v '^ *+' conftest.er1 >conftest.err
                   13579:   rm -f conftest.er1
                   13580:   cat conftest.err >&5
                   13581:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13582:   (exit $ac_status); } && {
                   13583:         test -z "$ac_c_werror_flag" ||
                   13584:         test ! -s conftest.err
                   13585:        } && test -s conftest.$ac_objext; then
1.25      millert  13586:   ac_header_compiler=yes
1.9       millert  13587: else
                   13588:   echo "$as_me: failed program was:" >&5
1.16      millert  13589: sed 's/^/| /' conftest.$ac_ext >&5
                   13590:
1.27      millert  13591:        ac_header_compiler=no
1.9       millert  13592: fi
1.27      millert  13593:
                   13594: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13595: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13596: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9       millert  13597:
1.25      millert  13598: # Is the header present?
1.27      millert  13599: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13600: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  13601: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13602: /* confdefs.h.  */
                   13603: _ACEOF
                   13604: cat confdefs.h >>conftest.$ac_ext
                   13605: cat >>conftest.$ac_ext <<_ACEOF
                   13606: /* end confdefs.h.  */
1.25      millert  13607: #include <$ac_header>
1.9       millert  13608: _ACEOF
1.27      millert  13609: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13610: case "(($ac_try" in
                   13611:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13612:   *) ac_try_echo=$ac_try;;
                   13613: esac
                   13614: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13615:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  13616:   ac_status=$?
1.25      millert  13617:   grep -v '^ *+' conftest.er1 >conftest.err
                   13618:   rm -f conftest.er1
                   13619:   cat conftest.err >&5
1.16      millert  13620:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13621:   (exit $ac_status); } >/dev/null && {
                   13622:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13623:         test ! -s conftest.err
                   13624:        }; then
1.25      millert  13625:   ac_header_preproc=yes
1.9       millert  13626: else
                   13627:   echo "$as_me: failed program was:" >&5
1.16      millert  13628: sed 's/^/| /' conftest.$ac_ext >&5
                   13629:
1.25      millert  13630:   ac_header_preproc=no
1.9       millert  13631: fi
1.27      millert  13632:
1.25      millert  13633: rm -f conftest.err conftest.$ac_ext
1.27      millert  13634: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13635: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  13636:
                   13637: # So?  What about this header?
                   13638: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13639:   yes:no: )
                   13640:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13641: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13642:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13643: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13644:     ac_header_preproc=yes
                   13645:     ;;
                   13646:   no:yes:* )
                   13647:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13648: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13649:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13650: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13651:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13652: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13653:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13654: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13655:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13656: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13657:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13658: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13659:
1.25      millert  13660:     ;;
                   13661: esac
1.27      millert  13662: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13663: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13664: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13665:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13666: else
                   13667:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  13668: fi
1.27      millert  13669: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13670:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13671: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13672:
1.1       millert  13673: fi
1.25      millert  13674: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13675:   cat >>confdefs.h <<_ACEOF
                   13676: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13677: _ACEOF
1.1       millert  13678:
1.31      millert  13679:        case "$OS" in
                   13680:            freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
                   13681:            ;;
                   13682:        esac
                   13683:
1.25      millert  13684: fi
1.1       millert  13685:
1.25      millert  13686: done
1.1       millert  13687:
1.25      millert  13688: fi
                   13689: if test ${with_project-'no'} != "no"; then
                   13690:     if test "${ac_cv_header_project_h+set}" = set; then
1.27      millert  13691:   { echo "$as_me:$LINENO: checking for project.h" >&5
                   13692: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  13693: if test "${ac_cv_header_project_h+set}" = set; then
1.9       millert  13694:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13695: fi
1.27      millert  13696: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   13697: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1       millert  13698: else
1.25      millert  13699:   # Is the header compilable?
1.27      millert  13700: { echo "$as_me:$LINENO: checking project.h usability" >&5
                   13701: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25      millert  13702: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13703: /* confdefs.h.  */
                   13704: _ACEOF
                   13705: cat confdefs.h >>conftest.$ac_ext
                   13706: cat >>conftest.$ac_ext <<_ACEOF
                   13707: /* end confdefs.h.  */
1.25      millert  13708: $ac_includes_default
                   13709: #include <project.h>
1.9       millert  13710: _ACEOF
1.25      millert  13711: rm -f conftest.$ac_objext
1.27      millert  13712: if { (ac_try="$ac_compile"
                   13713: case "(($ac_try" in
                   13714:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13715:   *) ac_try_echo=$ac_try;;
                   13716: esac
                   13717: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13718:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13719:   ac_status=$?
1.25      millert  13720:   grep -v '^ *+' conftest.er1 >conftest.err
                   13721:   rm -f conftest.er1
                   13722:   cat conftest.err >&5
1.16      millert  13723:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13724:   (exit $ac_status); } && {
                   13725:         test -z "$ac_c_werror_flag" ||
                   13726:         test ! -s conftest.err
                   13727:        } && test -s conftest.$ac_objext; then
1.25      millert  13728:   ac_header_compiler=yes
1.9       millert  13729: else
                   13730:   echo "$as_me: failed program was:" >&5
1.16      millert  13731: sed 's/^/| /' conftest.$ac_ext >&5
                   13732:
1.27      millert  13733:        ac_header_compiler=no
1.9       millert  13734: fi
1.27      millert  13735:
                   13736: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13737: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13738: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       millert  13739:
1.25      millert  13740: # Is the header present?
1.27      millert  13741: { echo "$as_me:$LINENO: checking project.h presence" >&5
                   13742: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25      millert  13743: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13744: /* confdefs.h.  */
                   13745: _ACEOF
                   13746: cat confdefs.h >>conftest.$ac_ext
                   13747: cat >>conftest.$ac_ext <<_ACEOF
                   13748: /* end confdefs.h.  */
1.25      millert  13749: #include <project.h>
1.9       millert  13750: _ACEOF
1.27      millert  13751: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13752: case "(($ac_try" in
                   13753:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13754:   *) ac_try_echo=$ac_try;;
                   13755: esac
                   13756: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13757:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  13758:   ac_status=$?
1.25      millert  13759:   grep -v '^ *+' conftest.er1 >conftest.err
                   13760:   rm -f conftest.er1
                   13761:   cat conftest.err >&5
1.16      millert  13762:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13763:   (exit $ac_status); } >/dev/null && {
                   13764:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13765:         test ! -s conftest.err
                   13766:        }; then
1.25      millert  13767:   ac_header_preproc=yes
1.9       millert  13768: else
                   13769:   echo "$as_me: failed program was:" >&5
1.16      millert  13770: sed 's/^/| /' conftest.$ac_ext >&5
                   13771:
1.25      millert  13772:   ac_header_preproc=no
                   13773: fi
1.27      millert  13774:
1.25      millert  13775: rm -f conftest.err conftest.$ac_ext
1.27      millert  13776: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13777: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  13778:
                   13779: # So?  What about this header?
                   13780: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13781:   yes:no: )
                   13782:     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   13783: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13784:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
                   13785: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
                   13786:     ac_header_preproc=yes
                   13787:     ;;
                   13788:   no:yes:* )
                   13789:     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
                   13790: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
                   13791:     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
                   13792: echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
                   13793:     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
                   13794: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
                   13795:     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
                   13796: echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13797:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
                   13798: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
                   13799:     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
                   13800: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.27      millert  13801:
1.25      millert  13802:     ;;
                   13803: esac
1.27      millert  13804: { echo "$as_me:$LINENO: checking for project.h" >&5
                   13805: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  13806: if test "${ac_cv_header_project_h+set}" = set; then
                   13807:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13808: else
                   13809:   ac_cv_header_project_h=$ac_header_preproc
1.9       millert  13810: fi
1.27      millert  13811: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   13812: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25      millert  13813:
1.9       millert  13814: fi
1.25      millert  13815: if test $ac_cv_header_project_h = yes; then
                   13816:   cat >>confdefs.h <<\_ACEOF
                   13817: #define HAVE_PROJECT_H 1
1.16      millert  13818: _ACEOF
1.1       millert  13819:
1.25      millert  13820:        SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1       millert  13821: else
1.25      millert  13822:   -
1.1       millert  13823: fi
                   13824:
1.25      millert  13825:
                   13826: fi
1.27      millert  13827: { echo "$as_me:$LINENO: checking for mode_t" >&5
                   13828: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25      millert  13829: if test "${ac_cv_type_mode_t+set}" = set; then
1.9       millert  13830:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13831: else
1.25      millert  13832:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13833: /* confdefs.h.  */
                   13834: _ACEOF
                   13835: cat confdefs.h >>conftest.$ac_ext
                   13836: cat >>conftest.$ac_ext <<_ACEOF
                   13837: /* end confdefs.h.  */
1.25      millert  13838: $ac_includes_default
1.27      millert  13839: typedef mode_t ac__type_new_;
1.9       millert  13840: int
                   13841: main ()
                   13842: {
1.27      millert  13843: if ((ac__type_new_ *) 0)
1.25      millert  13844:   return 0;
1.27      millert  13845: if (sizeof (ac__type_new_))
1.25      millert  13846:   return 0;
1.9       millert  13847:   ;
                   13848:   return 0;
                   13849: }
                   13850: _ACEOF
1.25      millert  13851: rm -f conftest.$ac_objext
1.27      millert  13852: if { (ac_try="$ac_compile"
                   13853: case "(($ac_try" in
                   13854:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13855:   *) ac_try_echo=$ac_try;;
                   13856: esac
                   13857: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13858:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13859:   ac_status=$?
1.25      millert  13860:   grep -v '^ *+' conftest.er1 >conftest.err
                   13861:   rm -f conftest.er1
                   13862:   cat conftest.err >&5
1.16      millert  13863:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13864:   (exit $ac_status); } && {
                   13865:         test -z "$ac_c_werror_flag" ||
                   13866:         test ! -s conftest.err
                   13867:        } && test -s conftest.$ac_objext; then
1.25      millert  13868:   ac_cv_type_mode_t=yes
1.9       millert  13869: else
                   13870:   echo "$as_me: failed program was:" >&5
1.16      millert  13871: sed 's/^/| /' conftest.$ac_ext >&5
                   13872:
1.27      millert  13873:        ac_cv_type_mode_t=no
1.9       millert  13874: fi
1.27      millert  13875:
                   13876: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13877: fi
1.27      millert  13878: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   13879: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25      millert  13880: if test $ac_cv_type_mode_t = yes; then
                   13881:   :
1.1       millert  13882: else
1.25      millert  13883:
                   13884: cat >>confdefs.h <<_ACEOF
                   13885: #define mode_t int
                   13886: _ACEOF
                   13887:
1.1       millert  13888: fi
                   13889:
1.27      millert  13890: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
                   13891: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25      millert  13892: if test "${ac_cv_type_uid_t+set}" = set; then
1.9       millert  13893:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13894: else
1.9       millert  13895:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13896: /* confdefs.h.  */
                   13897: _ACEOF
                   13898: cat confdefs.h >>conftest.$ac_ext
                   13899: cat >>conftest.$ac_ext <<_ACEOF
                   13900: /* end confdefs.h.  */
1.25      millert  13901: #include <sys/types.h>
1.1       millert  13902:
1.9       millert  13903: _ACEOF
1.25      millert  13904: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13905:   $EGREP "uid_t" >/dev/null 2>&1; then
                   13906:   ac_cv_type_uid_t=yes
1.9       millert  13907: else
1.25      millert  13908:   ac_cv_type_uid_t=no
                   13909: fi
                   13910: rm -f conftest*
1.16      millert  13911:
1.9       millert  13912: fi
1.27      millert  13913: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
                   13914: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25      millert  13915: if test $ac_cv_type_uid_t = no; then
                   13916:
                   13917: cat >>confdefs.h <<\_ACEOF
                   13918: #define uid_t int
                   13919: _ACEOF
                   13920:
                   13921:
                   13922: cat >>confdefs.h <<\_ACEOF
                   13923: #define gid_t int
1.16      millert  13924: _ACEOF
1.1       millert  13925:
                   13926: fi
                   13927:
1.27      millert  13928: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
                   13929: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
1.25      millert  13930: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   13931:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13932: else
                   13933:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13934: /* confdefs.h.  */
                   13935: _ACEOF
                   13936: cat confdefs.h >>conftest.$ac_ext
                   13937: cat >>conftest.$ac_ext <<_ACEOF
                   13938: /* end confdefs.h.  */
1.1       millert  13939: #include <sys/types.h>
1.25      millert  13940: #include <signal.h>
1.9       millert  13941:
1.27      millert  13942: typedef sig_atomic_t ac__type_new_;
1.9       millert  13943: int
                   13944: main ()
                   13945: {
1.27      millert  13946: if ((ac__type_new_ *) 0)
1.25      millert  13947:   return 0;
1.27      millert  13948: if (sizeof (ac__type_new_))
1.25      millert  13949:   return 0;
1.9       millert  13950:   ;
                   13951:   return 0;
                   13952: }
                   13953: _ACEOF
                   13954: rm -f conftest.$ac_objext
1.27      millert  13955: if { (ac_try="$ac_compile"
                   13956: case "(($ac_try" in
                   13957:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13958:   *) ac_try_echo=$ac_try;;
                   13959: esac
                   13960: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13961:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13962:   ac_status=$?
1.25      millert  13963:   grep -v '^ *+' conftest.er1 >conftest.err
                   13964:   rm -f conftest.er1
                   13965:   cat conftest.err >&5
1.16      millert  13966:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13967:   (exit $ac_status); } && {
                   13968:         test -z "$ac_c_werror_flag" ||
                   13969:         test ! -s conftest.err
                   13970:        } && test -s conftest.$ac_objext; then
1.25      millert  13971:   ac_cv_type_sig_atomic_t=yes
1.9       millert  13972: else
                   13973:   echo "$as_me: failed program was:" >&5
1.16      millert  13974: sed 's/^/| /' conftest.$ac_ext >&5
                   13975:
1.27      millert  13976:        ac_cv_type_sig_atomic_t=no
1.25      millert  13977: fi
1.27      millert  13978:
                   13979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  13980: fi
1.27      millert  13981: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
                   13982: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
1.25      millert  13983: if test $ac_cv_type_sig_atomic_t = yes; then
                   13984:
                   13985: cat >>confdefs.h <<_ACEOF
                   13986: #define HAVE_SIG_ATOMIC_T 1
                   13987: _ACEOF
                   13988:
                   13989:
                   13990: else
                   13991:   cat >>confdefs.h <<\_ACEOF
                   13992: #define sig_atomic_t int
                   13993: _ACEOF
1.9       millert  13994:
1.1       millert  13995: fi
1.25      millert  13996:
1.27      millert  13997: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
                   13998: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
1.25      millert  13999: if test "${ac_cv_type_sigaction_t+set}" = set; then
1.9       millert  14000:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14001: else
1.25      millert  14002:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14003: /* confdefs.h.  */
                   14004: _ACEOF
                   14005: cat confdefs.h >>conftest.$ac_ext
                   14006: cat >>conftest.$ac_ext <<_ACEOF
                   14007: /* end confdefs.h.  */
1.25      millert  14008: #include <sys/types.h>
                   14009: #include <signal.h>
1.9       millert  14010:
1.27      millert  14011: typedef sigaction_t ac__type_new_;
1.9       millert  14012: int
1.25      millert  14013: main ()
                   14014: {
1.27      millert  14015: if ((ac__type_new_ *) 0)
1.25      millert  14016:   return 0;
1.27      millert  14017: if (sizeof (ac__type_new_))
1.25      millert  14018:   return 0;
1.9       millert  14019:   ;
                   14020:   return 0;
                   14021: }
                   14022: _ACEOF
1.25      millert  14023: rm -f conftest.$ac_objext
1.27      millert  14024: if { (ac_try="$ac_compile"
                   14025: case "(($ac_try" in
                   14026:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14027:   *) ac_try_echo=$ac_try;;
                   14028: esac
                   14029: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14030:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14031:   ac_status=$?
1.25      millert  14032:   grep -v '^ *+' conftest.er1 >conftest.err
                   14033:   rm -f conftest.er1
                   14034:   cat conftest.err >&5
1.16      millert  14035:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14036:   (exit $ac_status); } && {
                   14037:         test -z "$ac_c_werror_flag" ||
                   14038:         test ! -s conftest.err
                   14039:        } && test -s conftest.$ac_objext; then
1.25      millert  14040:   ac_cv_type_sigaction_t=yes
1.9       millert  14041: else
                   14042:   echo "$as_me: failed program was:" >&5
1.16      millert  14043: sed 's/^/| /' conftest.$ac_ext >&5
                   14044:
1.27      millert  14045:        ac_cv_type_sigaction_t=no
1.9       millert  14046: fi
1.27      millert  14047:
                   14048: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14049: fi
1.27      millert  14050: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
                   14051: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
1.25      millert  14052: if test $ac_cv_type_sigaction_t = yes; then
                   14053:
                   14054: cat >>confdefs.h <<_ACEOF
                   14055: #define HAVE_SIGACTION_T 1
                   14056: _ACEOF
                   14057:
                   14058: cat >>confdefs.h <<\_ACEOF
                   14059: #define HAVE_SIGACTION_T 1
                   14060: _ACEOF
                   14061:
1.1       millert  14062: fi
                   14063:
1.27      millert  14064: { echo "$as_me:$LINENO: checking for struct timespec" >&5
                   14065: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25      millert  14066: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9       millert  14067:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14068: else
1.9       millert  14069:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14070: /* confdefs.h.  */
                   14071: _ACEOF
                   14072: cat confdefs.h >>conftest.$ac_ext
                   14073: cat >>conftest.$ac_ext <<_ACEOF
                   14074: /* end confdefs.h.  */
1.25      millert  14075: #include <sys/types.h>
                   14076: #if TIME_WITH_SYS_TIME
                   14077: # include <sys/time.h>
1.1       millert  14078: #endif
1.31      millert  14079: #include <time.h>
1.1       millert  14080:
1.27      millert  14081: typedef struct timespec ac__type_new_;
1.16      millert  14082: int
                   14083: main ()
                   14084: {
1.27      millert  14085: if ((ac__type_new_ *) 0)
1.25      millert  14086:   return 0;
1.27      millert  14087: if (sizeof (ac__type_new_))
1.25      millert  14088:   return 0;
1.9       millert  14089:   ;
                   14090:   return 0;
                   14091: }
                   14092: _ACEOF
1.25      millert  14093: rm -f conftest.$ac_objext
1.27      millert  14094: if { (ac_try="$ac_compile"
                   14095: case "(($ac_try" in
                   14096:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14097:   *) ac_try_echo=$ac_try;;
                   14098: esac
                   14099: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14100:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14101:   ac_status=$?
1.25      millert  14102:   grep -v '^ *+' conftest.er1 >conftest.err
                   14103:   rm -f conftest.er1
                   14104:   cat conftest.err >&5
1.16      millert  14105:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14106:   (exit $ac_status); } && {
                   14107:         test -z "$ac_c_werror_flag" ||
                   14108:         test ! -s conftest.err
                   14109:        } && test -s conftest.$ac_objext; then
1.25      millert  14110:   ac_cv_type_struct_timespec=yes
1.9       millert  14111: else
                   14112:   echo "$as_me: failed program was:" >&5
1.16      millert  14113: sed 's/^/| /' conftest.$ac_ext >&5
                   14114:
1.27      millert  14115:        ac_cv_type_struct_timespec=no
1.9       millert  14116: fi
1.27      millert  14117:
                   14118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14119: fi
1.27      millert  14120: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
                   14121: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25      millert  14122: if test $ac_cv_type_struct_timespec = yes; then
                   14123:   cat >>confdefs.h <<\_ACEOF
                   14124: #define HAVE_TIMESPEC 1
1.16      millert  14125: _ACEOF
1.1       millert  14126:
1.25      millert  14127: fi
                   14128:
1.31      millert  14129: { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
                   14130: echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
                   14131: if test "${ac_cv_type_struct_in6_addr+set}" = set; then
                   14132:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14133: else
                   14134:   cat >conftest.$ac_ext <<_ACEOF
                   14135: /* confdefs.h.  */
                   14136: _ACEOF
                   14137: cat confdefs.h >>conftest.$ac_ext
                   14138: cat >>conftest.$ac_ext <<_ACEOF
                   14139: /* end confdefs.h.  */
                   14140: #include <sys/types.h>
                   14141: #include <netinet/in.h>
                   14142:
                   14143: typedef struct in6_addr ac__type_new_;
                   14144: int
                   14145: main ()
                   14146: {
                   14147: if ((ac__type_new_ *) 0)
                   14148:   return 0;
                   14149: if (sizeof (ac__type_new_))
                   14150:   return 0;
                   14151:   ;
                   14152:   return 0;
                   14153: }
                   14154: _ACEOF
                   14155: rm -f conftest.$ac_objext
                   14156: if { (ac_try="$ac_compile"
                   14157: case "(($ac_try" in
                   14158:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14159:   *) ac_try_echo=$ac_try;;
                   14160: esac
                   14161: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14162:   (eval "$ac_compile") 2>conftest.er1
                   14163:   ac_status=$?
                   14164:   grep -v '^ *+' conftest.er1 >conftest.err
                   14165:   rm -f conftest.er1
                   14166:   cat conftest.err >&5
                   14167:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14168:   (exit $ac_status); } && {
                   14169:         test -z "$ac_c_werror_flag" ||
                   14170:         test ! -s conftest.err
                   14171:        } && test -s conftest.$ac_objext; then
                   14172:   ac_cv_type_struct_in6_addr=yes
                   14173: else
                   14174:   echo "$as_me: failed program was:" >&5
                   14175: sed 's/^/| /' conftest.$ac_ext >&5
                   14176:
                   14177:        ac_cv_type_struct_in6_addr=no
                   14178: fi
                   14179:
                   14180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14181: fi
                   14182: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
                   14183: echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
                   14184: if test $ac_cv_type_struct_in6_addr = yes; then
                   14185:
                   14186: cat >>confdefs.h <<_ACEOF
                   14187: #define HAVE_STRUCT_IN6_ADDR 1
                   14188: _ACEOF
                   14189:
                   14190: cat >>confdefs.h <<\_ACEOF
                   14191: #define HAVE_IN6_ADDR 1
                   14192: _ACEOF
                   14193:
                   14194: fi
                   14195:
1.27      millert  14196: { echo "$as_me:$LINENO: checking for size_t" >&5
                   14197: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25      millert  14198: if test "${sudo_cv_type_size_t+set}" = set; then
                   14199:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14200: else
                   14201:   cat >conftest.$ac_ext <<_ACEOF
                   14202: /* confdefs.h.  */
                   14203: _ACEOF
                   14204: cat confdefs.h >>conftest.$ac_ext
                   14205: cat >>conftest.$ac_ext <<_ACEOF
                   14206: /* end confdefs.h.  */
                   14207: #include <sys/types.h>
                   14208: #include <stdio.h>
                   14209: #if STDC_HEADERS
                   14210: #include <stdlib.h>
                   14211: #endif
                   14212: #if HAVE_UNISTD_H
                   14213: #include <unistd.h>
                   14214: #endif
                   14215: _ACEOF
                   14216: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14217:   $EGREP "size_t" >/dev/null 2>&1; then
                   14218:   sudo_cv_type_size_t=yes
1.1       millert  14219: else
1.25      millert  14220:   sudo_cv_type_size_t=no
                   14221: fi
                   14222: rm -f conftest*
                   14223:
                   14224: fi
1.27      millert  14225: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
                   14226: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25      millert  14227: if test $sudo_cv_type_size_t = no; then
                   14228:
                   14229: cat >>confdefs.h <<\_ACEOF
                   14230: #define size_t int
                   14231: _ACEOF
                   14232:
                   14233: fi
                   14234:
1.27      millert  14235: { echo "$as_me:$LINENO: checking for ssize_t" >&5
                   14236: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25      millert  14237: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9       millert  14238:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14239: else
1.25      millert  14240:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14241: /* confdefs.h.  */
                   14242: _ACEOF
                   14243: cat confdefs.h >>conftest.$ac_ext
                   14244: cat >>conftest.$ac_ext <<_ACEOF
                   14245: /* end confdefs.h.  */
1.25      millert  14246: #include <sys/types.h>
                   14247: #include <stdio.h>
                   14248: #if STDC_HEADERS
                   14249: #include <stdlib.h>
                   14250: #endif
                   14251: #if HAVE_UNISTD_H
                   14252: #include <unistd.h>
1.9       millert  14253: #endif
                   14254: _ACEOF
1.25      millert  14255: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14256:   $EGREP "ssize_t" >/dev/null 2>&1; then
                   14257:   sudo_cv_type_ssize_t=yes
1.9       millert  14258: else
1.25      millert  14259:   sudo_cv_type_ssize_t=no
                   14260: fi
                   14261: rm -f conftest*
1.16      millert  14262:
1.9       millert  14263: fi
1.27      millert  14264: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
                   14265: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25      millert  14266: if test $sudo_cv_type_ssize_t = no; then
                   14267:
                   14268: cat >>confdefs.h <<\_ACEOF
                   14269: #define ssize_t int
                   14270: _ACEOF
                   14271:
1.9       millert  14272: fi
1.25      millert  14273:
1.27      millert  14274: { echo "$as_me:$LINENO: checking for dev_t" >&5
                   14275: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25      millert  14276: if test "${sudo_cv_type_dev_t+set}" = set; then
                   14277:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14278: else
                   14279:   cat >conftest.$ac_ext <<_ACEOF
                   14280: /* confdefs.h.  */
                   14281: _ACEOF
                   14282: cat confdefs.h >>conftest.$ac_ext
                   14283: cat >>conftest.$ac_ext <<_ACEOF
                   14284: /* end confdefs.h.  */
                   14285: #include <sys/types.h>
                   14286: #include <stdio.h>
                   14287: #if STDC_HEADERS
                   14288: #include <stdlib.h>
                   14289: #endif
                   14290: #if HAVE_UNISTD_H
                   14291: #include <unistd.h>
                   14292: #endif
1.16      millert  14293: _ACEOF
1.25      millert  14294: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14295:   $EGREP "dev_t" >/dev/null 2>&1; then
                   14296:   sudo_cv_type_dev_t=yes
                   14297: else
                   14298:   sudo_cv_type_dev_t=no
1.1       millert  14299: fi
1.25      millert  14300: rm -f conftest*
1.1       millert  14301:
                   14302: fi
1.27      millert  14303: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
                   14304: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25      millert  14305: if test $sudo_cv_type_dev_t = no; then
1.1       millert  14306:
1.25      millert  14307: cat >>confdefs.h <<\_ACEOF
                   14308: #define dev_t int
                   14309: _ACEOF
1.1       millert  14310:
1.25      millert  14311: fi
1.1       millert  14312:
1.27      millert  14313: { echo "$as_me:$LINENO: checking for ino_t" >&5
                   14314: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
                   14315: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9       millert  14316:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14317: else
1.25      millert  14318:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14319: /* confdefs.h.  */
                   14320: _ACEOF
                   14321: cat confdefs.h >>conftest.$ac_ext
                   14322: cat >>conftest.$ac_ext <<_ACEOF
                   14323: /* end confdefs.h.  */
1.25      millert  14324: #include <sys/types.h>
1.27      millert  14325: #include <stdio.h>
                   14326: #if STDC_HEADERS
                   14327: #include <stdlib.h>
                   14328: #endif
                   14329: #if HAVE_UNISTD_H
                   14330: #include <unistd.h>
                   14331: #endif
1.9       millert  14332: _ACEOF
1.27      millert  14333: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14334:   $EGREP "ino_t" >/dev/null 2>&1; then
                   14335:   sudo_cv_type_ino_t=yes
1.9       millert  14336: else
1.27      millert  14337:   sudo_cv_type_ino_t=no
                   14338: fi
                   14339: rm -f conftest*
1.16      millert  14340:
1.25      millert  14341: fi
1.27      millert  14342: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
                   14343: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
                   14344: if test $sudo_cv_type_ino_t = no; then
1.25      millert  14345:
                   14346: cat >>confdefs.h <<\_ACEOF
1.27      millert  14347: #define ino_t unsigned int
1.16      millert  14348: _ACEOF
1.25      millert  14349:
1.1       millert  14350: fi
                   14351:
1.27      millert  14352: { echo "$as_me:$LINENO: checking for full void implementation" >&5
                   14353: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
                   14354: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14355: /* confdefs.h.  */
                   14356: _ACEOF
                   14357: cat confdefs.h >>conftest.$ac_ext
                   14358: cat >>conftest.$ac_ext <<_ACEOF
                   14359: /* end confdefs.h.  */
1.25      millert  14360:
1.9       millert  14361: int
                   14362: main ()
                   14363: {
1.27      millert  14364: void *foo;
                   14365: foo = (void *)0; (void *)"test";
1.9       millert  14366:   ;
                   14367:   return 0;
                   14368: }
                   14369: _ACEOF
1.25      millert  14370: rm -f conftest.$ac_objext
1.27      millert  14371: if { (ac_try="$ac_compile"
                   14372: case "(($ac_try" in
                   14373:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14374:   *) ac_try_echo=$ac_try;;
                   14375: esac
                   14376: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14377:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14378:   ac_status=$?
1.25      millert  14379:   grep -v '^ *+' conftest.er1 >conftest.err
                   14380:   rm -f conftest.er1
                   14381:   cat conftest.err >&5
1.16      millert  14382:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14383:   (exit $ac_status); } && {
                   14384:         test -z "$ac_c_werror_flag" ||
                   14385:         test ! -s conftest.err
                   14386:        } && test -s conftest.$ac_objext; then
                   14387:
                   14388: cat >>confdefs.h <<\_ACEOF
                   14389: #define VOID void
                   14390: _ACEOF
                   14391:
                   14392: { echo "$as_me:$LINENO: result: yes" >&5
                   14393: echo "${ECHO_T}yes" >&6; }
1.9       millert  14394: else
                   14395:   echo "$as_me: failed program was:" >&5
1.16      millert  14396: sed 's/^/| /' conftest.$ac_ext >&5
                   14397:
1.27      millert  14398:        cat >>confdefs.h <<\_ACEOF
                   14399: #define VOID char
1.16      millert  14400: _ACEOF
1.9       millert  14401:
1.27      millert  14402: { echo "$as_me:$LINENO: result: no" >&5
                   14403: echo "${ECHO_T}no" >&6; }
                   14404: fi
1.1       millert  14405:
1.27      millert  14406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.6       millert  14407:
1.27      millert  14408: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
                   14409: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
                   14410: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9       millert  14411:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14412: else
1.27      millert  14413:   rm -f conftestdata
                   14414: if test "$cross_compiling" = yes; then
                   14415:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
                   14416: See \`config.log' for more details." >&5
                   14417: echo "$as_me: error: cannot run test program while cross compiling
                   14418: See \`config.log' for more details." >&2;}
                   14419:    { (exit 1); exit 1; }; }
                   14420: else
1.9       millert  14421:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14422: /* confdefs.h.  */
                   14423: _ACEOF
                   14424: cat confdefs.h >>conftest.$ac_ext
                   14425: cat >>conftest.$ac_ext <<_ACEOF
                   14426: /* end confdefs.h.  */
1.27      millert  14427: #include <stdio.h>
                   14428: #include <pwd.h>
                   14429: #include <limits.h>
                   14430: #include <sys/types.h>
                   14431: #include <sys/param.h>
                   14432: main() {
                   14433:   FILE *f;
                   14434:   char b[1024];
                   14435:   uid_t u = (uid_t) -1;
1.25      millert  14436:
1.27      millert  14437:   if ((f = fopen("conftestdata", "w")) == NULL)
                   14438:     exit(1);
1.25      millert  14439:
1.27      millert  14440:   (void) sprintf(b, "%lu", (unsigned long) u);
                   14441:   (void) fprintf(f, "%d\n", strlen(b));
                   14442:   (void) fclose(f);
                   14443:   exit(0);
1.9       millert  14444: }
                   14445: _ACEOF
1.27      millert  14446: rm -f conftest$ac_exeext
                   14447: if { (ac_try="$ac_link"
                   14448: case "(($ac_try" in
                   14449:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14450:   *) ac_try_echo=$ac_try;;
                   14451: esac
                   14452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14453:   (eval "$ac_link") 2>&5
1.9       millert  14454:   ac_status=$?
1.16      millert  14455:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14456:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   14457:   { (case "(($ac_try" in
                   14458:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14459:   *) ac_try_echo=$ac_try;;
                   14460: esac
                   14461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14462:   (eval "$ac_try") 2>&5
1.9       millert  14463:   ac_status=$?
1.16      millert  14464:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14465:   (exit $ac_status); }; }; then
1.27      millert  14466:   sudo_cv_uid_t_len=`cat conftestdata`
1.9       millert  14467: else
1.27      millert  14468:   echo "$as_me: program exited with status $ac_status" >&5
                   14469: echo "$as_me: failed program was:" >&5
1.16      millert  14470: sed 's/^/| /' conftest.$ac_ext >&5
                   14471:
1.27      millert  14472: ( exit $ac_status )
                   14473: sudo_cv_uid_t_len=10
1.9       millert  14474: fi
1.27      millert  14475: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14476: fi
1.27      millert  14477:
                   14478:
1.25      millert  14479:
                   14480: fi
                   14481:
1.27      millert  14482: rm -f conftestdata
                   14483: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
                   14484: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
                   14485:
                   14486: cat >>confdefs.h <<_ACEOF
                   14487: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   14488: _ACEOF
                   14489:
1.25      millert  14490:
1.27      millert  14491: { echo "$as_me:$LINENO: checking for long long" >&5
                   14492: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
                   14493: if test "${ac_cv_type_long_long+set}" = set; then
1.9       millert  14494:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14495: else
1.25      millert  14496:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14497: /* confdefs.h.  */
                   14498: _ACEOF
                   14499: cat confdefs.h >>conftest.$ac_ext
                   14500: cat >>conftest.$ac_ext <<_ACEOF
                   14501: /* end confdefs.h.  */
1.27      millert  14502: $ac_includes_default
                   14503: typedef long long ac__type_new_;
1.9       millert  14504: int
                   14505: main ()
                   14506: {
1.27      millert  14507: if ((ac__type_new_ *) 0)
                   14508:   return 0;
                   14509: if (sizeof (ac__type_new_))
                   14510:   return 0;
1.9       millert  14511:   ;
                   14512:   return 0;
                   14513: }
                   14514: _ACEOF
1.27      millert  14515: rm -f conftest.$ac_objext
                   14516: if { (ac_try="$ac_compile"
                   14517: case "(($ac_try" in
                   14518:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14519:   *) ac_try_echo=$ac_try;;
                   14520: esac
                   14521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14522:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14523:   ac_status=$?
1.25      millert  14524:   grep -v '^ *+' conftest.er1 >conftest.err
                   14525:   rm -f conftest.er1
                   14526:   cat conftest.err >&5
1.16      millert  14527:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14528:   (exit $ac_status); } && {
                   14529:         test -z "$ac_c_werror_flag" ||
                   14530:         test ! -s conftest.err
                   14531:        } && test -s conftest.$ac_objext; then
                   14532:   ac_cv_type_long_long=yes
1.9       millert  14533: else
                   14534:   echo "$as_me: failed program was:" >&5
1.16      millert  14535: sed 's/^/| /' conftest.$ac_ext >&5
                   14536:
1.27      millert  14537:        ac_cv_type_long_long=no
1.9       millert  14538: fi
1.27      millert  14539:
                   14540: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14541: fi
1.27      millert  14542: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
                   14543: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
                   14544: if test $ac_cv_type_long_long = yes; then
                   14545:
                   14546: cat >>confdefs.h <<_ACEOF
                   14547: #define HAVE_LONG_LONG 1
1.16      millert  14548: _ACEOF
1.9       millert  14549:
1.1       millert  14550:
1.27      millert  14551: cat >>confdefs.h <<\_ACEOF
                   14552: #define HAVE_LONG_LONG 1
                   14553: _ACEOF
                   14554:
                   14555: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
                   14556: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
                   14557: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9       millert  14558:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14559: else
1.27      millert  14560:   if test "$cross_compiling" = yes; then
                   14561:   sudo_cv_type_long_is_quad=no
                   14562: else
1.9       millert  14563:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14564: /* confdefs.h.  */
                   14565: _ACEOF
                   14566: cat confdefs.h >>conftest.$ac_ext
                   14567: cat >>conftest.$ac_ext <<_ACEOF
                   14568: /* end confdefs.h.  */
1.25      millert  14569:
1.27      millert  14570: main() {
                   14571: if (sizeof(long long) == sizeof(long)) exit(0);
                   14572: else exit(1);
1.9       millert  14573: }
                   14574: _ACEOF
1.27      millert  14575: rm -f conftest$ac_exeext
                   14576: if { (ac_try="$ac_link"
                   14577: case "(($ac_try" in
                   14578:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14579:   *) ac_try_echo=$ac_try;;
                   14580: esac
                   14581: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14582:   (eval "$ac_link") 2>&5
1.9       millert  14583:   ac_status=$?
1.16      millert  14584:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14585:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   14586:   { (case "(($ac_try" in
                   14587:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14588:   *) ac_try_echo=$ac_try;;
                   14589: esac
                   14590: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14591:   (eval "$ac_try") 2>&5
1.9       millert  14592:   ac_status=$?
1.16      millert  14593:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14594:   (exit $ac_status); }; }; then
1.27      millert  14595:   sudo_cv_type_long_is_quad=yes
1.9       millert  14596: else
1.27      millert  14597:   echo "$as_me: program exited with status $ac_status" >&5
                   14598: echo "$as_me: failed program was:" >&5
1.16      millert  14599: sed 's/^/| /' conftest.$ac_ext >&5
                   14600:
1.27      millert  14601: ( exit $ac_status )
                   14602: sudo_cv_type_long_is_quad=no
                   14603: fi
                   14604: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14605: fi
1.27      millert  14606:
                   14607:
                   14608: rm -f core core.* *.core
1.9       millert  14609: fi
1.27      millert  14610: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
                   14611: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
                   14612: if test $sudo_cv_type_long_is_quad = yes; then
                   14613:
                   14614: cat >>confdefs.h <<\_ACEOF
                   14615: #define LONG_IS_QUAD 1
1.16      millert  14616: _ACEOF
1.27      millert  14617:
1.25      millert  14618: fi
                   14619:
                   14620: fi
                   14621:
1.27      millert  14622: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
                   14623: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
                   14624: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9       millert  14625:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14626: else
1.27      millert  14627:   if test "$cross_compiling" = yes; then
                   14628:   sudo_cv_sock_sa_len=no
                   14629: else
1.25      millert  14630:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14631: /* confdefs.h.  */
                   14632: _ACEOF
                   14633: cat confdefs.h >>conftest.$ac_ext
                   14634: cat >>conftest.$ac_ext <<_ACEOF
                   14635: /* end confdefs.h.  */
1.27      millert  14636: #include <sys/types.h>
                   14637: #include <sys/socket.h>
                   14638: main() {
                   14639: struct sockaddr s;
                   14640: s.sa_len = 0;
                   14641: exit(0);
1.9       millert  14642: }
                   14643: _ACEOF
1.27      millert  14644: rm -f conftest$ac_exeext
                   14645: if { (ac_try="$ac_link"
                   14646: case "(($ac_try" in
                   14647:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14648:   *) ac_try_echo=$ac_try;;
                   14649: esac
                   14650: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14651:   (eval "$ac_link") 2>&5
1.9       millert  14652:   ac_status=$?
1.16      millert  14653:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14654:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   14655:   { (case "(($ac_try" in
                   14656:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14657:   *) ac_try_echo=$ac_try;;
                   14658: esac
                   14659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14660:   (eval "$ac_try") 2>&5
1.9       millert  14661:   ac_status=$?
1.16      millert  14662:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14663:   (exit $ac_status); }; }; then
1.27      millert  14664:   sudo_cv_sock_sa_len=yes
1.9       millert  14665: else
1.27      millert  14666:   echo "$as_me: program exited with status $ac_status" >&5
                   14667: echo "$as_me: failed program was:" >&5
1.16      millert  14668: sed 's/^/| /' conftest.$ac_ext >&5
                   14669:
1.27      millert  14670: ( exit $ac_status )
                   14671: sudo_cv_sock_sa_len=no
1.9       millert  14672: fi
1.27      millert  14673: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14674: fi
1.1       millert  14675:
1.27      millert  14676:
                   14677: rm -f core core.* *.core
1.1       millert  14678: fi
1.27      millert  14679: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
                   14680: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
                   14681: if test $sudo_cv_sock_sa_len = yes; then
                   14682:
                   14683: cat >>confdefs.h <<\_ACEOF
                   14684: #define HAVE_SA_LEN 1
                   14685: _ACEOF
1.1       millert  14686:
                   14687: fi
                   14688:
1.27      millert  14689: case "$DEFS" in
                   14690:     *"RETSIGTYPE"*)    ;;
                   14691:     *)                 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
                   14692: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
                   14693: if test "${ac_cv_type_signal+set}" = set; then
1.9       millert  14694:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14695: else
1.9       millert  14696:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14697: /* confdefs.h.  */
                   14698: _ACEOF
                   14699: cat confdefs.h >>conftest.$ac_ext
                   14700: cat >>conftest.$ac_ext <<_ACEOF
                   14701: /* end confdefs.h.  */
1.27      millert  14702: #include <sys/types.h>
                   14703: #include <signal.h>
1.9       millert  14704:
                   14705: int
                   14706: main ()
                   14707: {
1.27      millert  14708: return *(signal (0, 0)) (0) == 1;
1.9       millert  14709:   ;
                   14710:   return 0;
1.1       millert  14711: }
1.9       millert  14712: _ACEOF
1.27      millert  14713: rm -f conftest.$ac_objext
                   14714: if { (ac_try="$ac_compile"
                   14715: case "(($ac_try" in
                   14716:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14717:   *) ac_try_echo=$ac_try;;
                   14718: esac
                   14719: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14720:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14721:   ac_status=$?
1.25      millert  14722:   grep -v '^ *+' conftest.er1 >conftest.err
                   14723:   rm -f conftest.er1
                   14724:   cat conftest.err >&5
1.16      millert  14725:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14726:   (exit $ac_status); } && {
                   14727:         test -z "$ac_c_werror_flag" ||
                   14728:         test ! -s conftest.err
                   14729:        } && test -s conftest.$ac_objext; then
                   14730:   ac_cv_type_signal=int
1.1       millert  14731: else
1.9       millert  14732:   echo "$as_me: failed program was:" >&5
1.16      millert  14733: sed 's/^/| /' conftest.$ac_ext >&5
                   14734:
1.27      millert  14735:        ac_cv_type_signal=void
1.9       millert  14736: fi
1.27      millert  14737:
                   14738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  14739: fi
1.27      millert  14740: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
                   14741: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
                   14742:
                   14743: cat >>confdefs.h <<_ACEOF
                   14744: #define RETSIGTYPE $ac_cv_type_signal
1.25      millert  14745: _ACEOF
                   14746:
1.27      millert  14747: ;;
                   14748: esac
1.32      millert  14749: { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
                   14750: echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
                   14751: if test "${ac_cv_type_getgroups+set}" = set; then
                   14752:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14753: else
                   14754:   if test "$cross_compiling" = yes; then
                   14755:   ac_cv_type_getgroups=cross
                   14756: else
                   14757:   cat >conftest.$ac_ext <<_ACEOF
                   14758: /* confdefs.h.  */
                   14759: _ACEOF
                   14760: cat confdefs.h >>conftest.$ac_ext
                   14761: cat >>conftest.$ac_ext <<_ACEOF
                   14762: /* end confdefs.h.  */
                   14763: /* Thanks to Mike Rendell for this test.  */
                   14764: $ac_includes_default
                   14765: #define NGID 256
                   14766: #undef MAX
                   14767: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   14768:
                   14769: int
                   14770: main ()
                   14771: {
                   14772:   gid_t gidset[NGID];
                   14773:   int i, n;
                   14774:   union { gid_t gval; long int lval; }  val;
                   14775:
                   14776:   val.lval = -1;
                   14777:   for (i = 0; i < NGID; i++)
                   14778:     gidset[i] = val.gval;
                   14779:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   14780:                 gidset);
                   14781:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   14782:      happens when gid_t is short int but getgroups modifies an array
                   14783:      of ints.  */
                   14784:   return n > 0 && gidset[n] != val.gval;
                   14785: }
                   14786: _ACEOF
                   14787: rm -f conftest$ac_exeext
                   14788: if { (ac_try="$ac_link"
                   14789: case "(($ac_try" in
                   14790:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14791:   *) ac_try_echo=$ac_try;;
                   14792: esac
                   14793: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14794:   (eval "$ac_link") 2>&5
                   14795:   ac_status=$?
                   14796:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14797:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   14798:   { (case "(($ac_try" in
                   14799:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14800:   *) ac_try_echo=$ac_try;;
                   14801: esac
                   14802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14803:   (eval "$ac_try") 2>&5
                   14804:   ac_status=$?
                   14805:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14806:   (exit $ac_status); }; }; then
                   14807:   ac_cv_type_getgroups=gid_t
                   14808: else
                   14809:   echo "$as_me: program exited with status $ac_status" >&5
                   14810: echo "$as_me: failed program was:" >&5
                   14811: sed 's/^/| /' conftest.$ac_ext >&5
                   14812:
                   14813: ( exit $ac_status )
                   14814: ac_cv_type_getgroups=int
                   14815: fi
                   14816: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   14817: fi
                   14818:
                   14819:
                   14820: if test $ac_cv_type_getgroups = cross; then
                   14821:         cat >conftest.$ac_ext <<_ACEOF
                   14822: /* confdefs.h.  */
                   14823: _ACEOF
                   14824: cat confdefs.h >>conftest.$ac_ext
                   14825: cat >>conftest.$ac_ext <<_ACEOF
                   14826: /* end confdefs.h.  */
                   14827: #include <unistd.h>
                   14828:
                   14829: _ACEOF
                   14830: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14831:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
                   14832:   ac_cv_type_getgroups=gid_t
                   14833: else
                   14834:   ac_cv_type_getgroups=int
                   14835: fi
                   14836: rm -f conftest*
                   14837:
                   14838: fi
                   14839: fi
                   14840: { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
                   14841: echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
                   14842:
                   14843: cat >>confdefs.h <<_ACEOF
                   14844: #define GETGROUPS_T $ac_cv_type_getgroups
                   14845: _ACEOF
                   14846:
                   14847:
                   14848: { echo "$as_me:$LINENO: checking for size_t" >&5
                   14849: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
                   14850: if test "${ac_cv_type_size_t+set}" = set; then
                   14851:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14852: else
                   14853:   cat >conftest.$ac_ext <<_ACEOF
                   14854: /* confdefs.h.  */
                   14855: _ACEOF
                   14856: cat confdefs.h >>conftest.$ac_ext
                   14857: cat >>conftest.$ac_ext <<_ACEOF
                   14858: /* end confdefs.h.  */
                   14859: $ac_includes_default
                   14860: typedef size_t ac__type_new_;
                   14861: int
                   14862: main ()
                   14863: {
                   14864: if ((ac__type_new_ *) 0)
                   14865:   return 0;
                   14866: if (sizeof (ac__type_new_))
                   14867:   return 0;
                   14868:   ;
                   14869:   return 0;
                   14870: }
                   14871: _ACEOF
                   14872: rm -f conftest.$ac_objext
                   14873: if { (ac_try="$ac_compile"
                   14874: case "(($ac_try" in
                   14875:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14876:   *) ac_try_echo=$ac_try;;
                   14877: esac
                   14878: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14879:   (eval "$ac_compile") 2>conftest.er1
                   14880:   ac_status=$?
                   14881:   grep -v '^ *+' conftest.er1 >conftest.err
                   14882:   rm -f conftest.er1
                   14883:   cat conftest.err >&5
                   14884:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14885:   (exit $ac_status); } && {
                   14886:         test -z "$ac_c_werror_flag" ||
                   14887:         test ! -s conftest.err
                   14888:        } && test -s conftest.$ac_objext; then
                   14889:   ac_cv_type_size_t=yes
                   14890: else
                   14891:   echo "$as_me: failed program was:" >&5
                   14892: sed 's/^/| /' conftest.$ac_ext >&5
                   14893:
                   14894:        ac_cv_type_size_t=no
                   14895: fi
                   14896:
                   14897: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14898: fi
                   14899: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
                   14900: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
                   14901: if test $ac_cv_type_size_t = yes; then
                   14902:   :
                   14903: else
                   14904:
                   14905: cat >>confdefs.h <<_ACEOF
                   14906: #define size_t unsigned int
                   14907: _ACEOF
                   14908:
                   14909: fi
                   14910:
                   14911: { echo "$as_me:$LINENO: checking for getgroups" >&5
                   14912: echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
                   14913: if test "${ac_cv_func_getgroups+set}" = set; then
                   14914:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14915: else
                   14916:   cat >conftest.$ac_ext <<_ACEOF
                   14917: /* confdefs.h.  */
                   14918: _ACEOF
                   14919: cat confdefs.h >>conftest.$ac_ext
                   14920: cat >>conftest.$ac_ext <<_ACEOF
                   14921: /* end confdefs.h.  */
                   14922: /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
                   14923:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14924: #define getgroups innocuous_getgroups
                   14925:
                   14926: /* System header to define __stub macros and hopefully few prototypes,
                   14927:     which can conflict with char getgroups (); below.
                   14928:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14929:     <limits.h> exists even on freestanding compilers.  */
                   14930:
                   14931: #ifdef __STDC__
                   14932: # include <limits.h>
                   14933: #else
                   14934: # include <assert.h>
                   14935: #endif
                   14936:
                   14937: #undef getgroups
                   14938:
                   14939: /* Override any GCC internal prototype to avoid an error.
                   14940:    Use char because int might match the return type of a GCC
                   14941:    builtin and then its argument prototype would still apply.  */
                   14942: #ifdef __cplusplus
                   14943: extern "C"
                   14944: #endif
                   14945: char getgroups ();
                   14946: /* The GNU C library defines this for functions which it implements
                   14947:     to always fail with ENOSYS.  Some functions are actually named
                   14948:     something starting with __ and the normal name is an alias.  */
                   14949: #if defined __stub_getgroups || defined __stub___getgroups
                   14950: choke me
                   14951: #endif
                   14952:
                   14953: int
                   14954: main ()
                   14955: {
                   14956: return getgroups ();
                   14957:   ;
                   14958:   return 0;
                   14959: }
                   14960: _ACEOF
                   14961: rm -f conftest.$ac_objext conftest$ac_exeext
                   14962: if { (ac_try="$ac_link"
                   14963: case "(($ac_try" in
                   14964:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14965:   *) ac_try_echo=$ac_try;;
                   14966: esac
                   14967: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14968:   (eval "$ac_link") 2>conftest.er1
                   14969:   ac_status=$?
                   14970:   grep -v '^ *+' conftest.er1 >conftest.err
                   14971:   rm -f conftest.er1
                   14972:   cat conftest.err >&5
                   14973:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14974:   (exit $ac_status); } && {
                   14975:         test -z "$ac_c_werror_flag" ||
                   14976:         test ! -s conftest.err
                   14977:        } && test -s conftest$ac_exeext &&
                   14978:        $as_test_x conftest$ac_exeext; then
                   14979:   ac_cv_func_getgroups=yes
                   14980: else
                   14981:   echo "$as_me: failed program was:" >&5
                   14982: sed 's/^/| /' conftest.$ac_ext >&5
                   14983:
                   14984:        ac_cv_func_getgroups=no
                   14985: fi
                   14986:
                   14987: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   14988:       conftest$ac_exeext conftest.$ac_ext
                   14989: fi
                   14990: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
                   14991: echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
                   14992:
                   14993:
                   14994: # If we don't yet have getgroups, see if it's in -lbsd.
                   14995: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
                   14996: ac_save_LIBS=$LIBS
                   14997: if test $ac_cv_func_getgroups = no; then
                   14998:   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
                   14999: echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
                   15000: if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
                   15001:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15002: else
                   15003:   ac_check_lib_save_LIBS=$LIBS
                   15004: LIBS="-lbsd  $LIBS"
                   15005: cat >conftest.$ac_ext <<_ACEOF
                   15006: /* confdefs.h.  */
                   15007: _ACEOF
                   15008: cat confdefs.h >>conftest.$ac_ext
                   15009: cat >>conftest.$ac_ext <<_ACEOF
                   15010: /* end confdefs.h.  */
                   15011:
                   15012: /* Override any GCC internal prototype to avoid an error.
                   15013:    Use char because int might match the return type of a GCC
                   15014:    builtin and then its argument prototype would still apply.  */
                   15015: #ifdef __cplusplus
                   15016: extern "C"
                   15017: #endif
                   15018: char getgroups ();
                   15019: int
                   15020: main ()
                   15021: {
                   15022: return getgroups ();
                   15023:   ;
                   15024:   return 0;
                   15025: }
                   15026: _ACEOF
                   15027: rm -f conftest.$ac_objext conftest$ac_exeext
                   15028: if { (ac_try="$ac_link"
                   15029: case "(($ac_try" in
                   15030:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15031:   *) ac_try_echo=$ac_try;;
                   15032: esac
                   15033: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15034:   (eval "$ac_link") 2>conftest.er1
                   15035:   ac_status=$?
                   15036:   grep -v '^ *+' conftest.er1 >conftest.err
                   15037:   rm -f conftest.er1
                   15038:   cat conftest.err >&5
                   15039:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15040:   (exit $ac_status); } && {
                   15041:         test -z "$ac_c_werror_flag" ||
                   15042:         test ! -s conftest.err
                   15043:        } && test -s conftest$ac_exeext &&
                   15044:        $as_test_x conftest$ac_exeext; then
                   15045:   ac_cv_lib_bsd_getgroups=yes
                   15046: else
                   15047:   echo "$as_me: failed program was:" >&5
                   15048: sed 's/^/| /' conftest.$ac_ext >&5
                   15049:
                   15050:        ac_cv_lib_bsd_getgroups=no
                   15051: fi
                   15052:
                   15053: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15054:       conftest$ac_exeext conftest.$ac_ext
                   15055: LIBS=$ac_check_lib_save_LIBS
                   15056: fi
                   15057: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
                   15058: echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
                   15059: if test $ac_cv_lib_bsd_getgroups = yes; then
                   15060:   GETGROUPS_LIB=-lbsd
                   15061: fi
                   15062:
                   15063: fi
                   15064:
                   15065: # Run the program to test the functionality of the system-supplied
                   15066: # getgroups function only if there is such a function.
                   15067: if test $ac_cv_func_getgroups = yes; then
                   15068:   { echo "$as_me:$LINENO: checking for working getgroups" >&5
                   15069: echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
                   15070: if test "${ac_cv_func_getgroups_works+set}" = set; then
                   15071:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15072: else
                   15073:   if test "$cross_compiling" = yes; then
                   15074:   ac_cv_func_getgroups_works=no
                   15075: else
                   15076:   cat >conftest.$ac_ext <<_ACEOF
                   15077: /* confdefs.h.  */
                   15078: _ACEOF
                   15079: cat confdefs.h >>conftest.$ac_ext
                   15080: cat >>conftest.$ac_ext <<_ACEOF
                   15081: /* end confdefs.h.  */
                   15082: $ac_includes_default
                   15083: int
                   15084: main ()
                   15085: {
                   15086: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
                   15087:        return getgroups (0, 0) == -1;
                   15088:   ;
                   15089:   return 0;
                   15090: }
                   15091: _ACEOF
                   15092: rm -f conftest$ac_exeext
                   15093: if { (ac_try="$ac_link"
                   15094: case "(($ac_try" in
                   15095:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15096:   *) ac_try_echo=$ac_try;;
                   15097: esac
                   15098: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15099:   (eval "$ac_link") 2>&5
                   15100:   ac_status=$?
                   15101:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15102:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15103:   { (case "(($ac_try" in
                   15104:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15105:   *) ac_try_echo=$ac_try;;
                   15106: esac
                   15107: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15108:   (eval "$ac_try") 2>&5
                   15109:   ac_status=$?
                   15110:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15111:   (exit $ac_status); }; }; then
                   15112:   ac_cv_func_getgroups_works=yes
                   15113: else
                   15114:   echo "$as_me: program exited with status $ac_status" >&5
                   15115: echo "$as_me: failed program was:" >&5
                   15116: sed 's/^/| /' conftest.$ac_ext >&5
                   15117:
                   15118: ( exit $ac_status )
                   15119: ac_cv_func_getgroups_works=no
                   15120: fi
                   15121: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15122: fi
                   15123:
                   15124:
                   15125:
                   15126: fi
                   15127: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
                   15128: echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
                   15129:   if test $ac_cv_func_getgroups_works = yes; then
                   15130:
                   15131: cat >>confdefs.h <<\_ACEOF
                   15132: #define HAVE_GETGROUPS 1
                   15133: _ACEOF
                   15134:
                   15135:   fi
                   15136: fi
                   15137: LIBS=$ac_save_LIBS
                   15138:
1.27      millert  15139:
                   15140:
                   15141:
                   15142:
                   15143:
                   15144:
                   15145:
                   15146:
                   15147:
                   15148:
                   15149:
                   15150:
                   15151:
                   15152:
                   15153:
                   15154: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   15155:               strftime setrlimit initgroups getgroups fstat gettimeofday \
                   15156:               setlocale getaddrinfo
1.25      millert  15157: do
                   15158: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15159: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15160: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15161: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15162:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15163: else
                   15164:   cat >conftest.$ac_ext <<_ACEOF
                   15165: /* confdefs.h.  */
                   15166: _ACEOF
                   15167: cat confdefs.h >>conftest.$ac_ext
                   15168: cat >>conftest.$ac_ext <<_ACEOF
                   15169: /* end confdefs.h.  */
                   15170: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15171:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15172: #define $ac_func innocuous_$ac_func
                   15173:
                   15174: /* System header to define __stub macros and hopefully few prototypes,
                   15175:     which can conflict with char $ac_func (); below.
                   15176:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15177:     <limits.h> exists even on freestanding compilers.  */
                   15178:
                   15179: #ifdef __STDC__
                   15180: # include <limits.h>
                   15181: #else
                   15182: # include <assert.h>
                   15183: #endif
                   15184:
                   15185: #undef $ac_func
                   15186:
1.27      millert  15187: /* Override any GCC internal prototype to avoid an error.
                   15188:    Use char because int might match the return type of a GCC
                   15189:    builtin and then its argument prototype would still apply.  */
1.25      millert  15190: #ifdef __cplusplus
                   15191: extern "C"
                   15192: #endif
                   15193: char $ac_func ();
                   15194: /* The GNU C library defines this for functions which it implements
                   15195:     to always fail with ENOSYS.  Some functions are actually named
                   15196:     something starting with __ and the normal name is an alias.  */
1.27      millert  15197: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15198: choke me
                   15199: #endif
1.9       millert  15200:
                   15201: int
                   15202: main ()
                   15203: {
1.27      millert  15204: return $ac_func ();
1.9       millert  15205:   ;
                   15206:   return 0;
                   15207: }
                   15208: _ACEOF
1.25      millert  15209: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15210: if { (ac_try="$ac_link"
                   15211: case "(($ac_try" in
                   15212:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15213:   *) ac_try_echo=$ac_try;;
                   15214: esac
                   15215: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15216:   (eval "$ac_link") 2>conftest.er1
1.9       millert  15217:   ac_status=$?
1.25      millert  15218:   grep -v '^ *+' conftest.er1 >conftest.err
                   15219:   rm -f conftest.er1
                   15220:   cat conftest.err >&5
1.16      millert  15221:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15222:   (exit $ac_status); } && {
                   15223:         test -z "$ac_c_werror_flag" ||
                   15224:         test ! -s conftest.err
                   15225:        } && test -s conftest$ac_exeext &&
                   15226:        $as_test_x conftest$ac_exeext; then
1.25      millert  15227:   eval "$as_ac_var=yes"
1.9       millert  15228: else
                   15229:   echo "$as_me: failed program was:" >&5
1.16      millert  15230: sed 's/^/| /' conftest.$ac_ext >&5
                   15231:
1.27      millert  15232:        eval "$as_ac_var=no"
1.9       millert  15233: fi
1.27      millert  15234:
                   15235: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15236:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15237: fi
1.27      millert  15238: ac_res=`eval echo '${'$as_ac_var'}'`
                   15239:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15240: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15241: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15242:   cat >>confdefs.h <<_ACEOF
                   15243: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  15244: _ACEOF
1.1       millert  15245:
                   15246: fi
1.9       millert  15247: done
                   15248:
1.27      millert  15249: if test -z "$SKIP_SETRESUID"; then
1.1       millert  15250:
1.27      millert  15251: for ac_func in setresuid
1.25      millert  15252: do
                   15253: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15254: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15255: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15256: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15257:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15258: else
1.25      millert  15259:   cat >conftest.$ac_ext <<_ACEOF
                   15260: /* confdefs.h.  */
                   15261: _ACEOF
                   15262: cat confdefs.h >>conftest.$ac_ext
                   15263: cat >>conftest.$ac_ext <<_ACEOF
                   15264: /* end confdefs.h.  */
                   15265: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15266:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15267: #define $ac_func innocuous_$ac_func
1.9       millert  15268:
1.25      millert  15269: /* System header to define __stub macros and hopefully few prototypes,
                   15270:     which can conflict with char $ac_func (); below.
                   15271:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15272:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  15273:
1.25      millert  15274: #ifdef __STDC__
                   15275: # include <limits.h>
                   15276: #else
                   15277: # include <assert.h>
                   15278: #endif
1.9       millert  15279:
1.25      millert  15280: #undef $ac_func
1.9       millert  15281:
1.27      millert  15282: /* Override any GCC internal prototype to avoid an error.
                   15283:    Use char because int might match the return type of a GCC
                   15284:    builtin and then its argument prototype would still apply.  */
1.25      millert  15285: #ifdef __cplusplus
                   15286: extern "C"
                   15287: #endif
                   15288: char $ac_func ();
                   15289: /* The GNU C library defines this for functions which it implements
                   15290:     to always fail with ENOSYS.  Some functions are actually named
                   15291:     something starting with __ and the normal name is an alias.  */
1.27      millert  15292: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15293: choke me
                   15294: #endif
1.9       millert  15295:
1.25      millert  15296: int
                   15297: main ()
                   15298: {
1.27      millert  15299: return $ac_func ();
1.25      millert  15300:   ;
                   15301:   return 0;
                   15302: }
                   15303: _ACEOF
                   15304: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15305: if { (ac_try="$ac_link"
                   15306: case "(($ac_try" in
                   15307:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15308:   *) ac_try_echo=$ac_try;;
                   15309: esac
                   15310: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15311:   (eval "$ac_link") 2>conftest.er1
1.25      millert  15312:   ac_status=$?
                   15313:   grep -v '^ *+' conftest.er1 >conftest.err
                   15314:   rm -f conftest.er1
                   15315:   cat conftest.err >&5
                   15316:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15317:   (exit $ac_status); } && {
                   15318:         test -z "$ac_c_werror_flag" ||
                   15319:         test ! -s conftest.err
                   15320:        } && test -s conftest$ac_exeext &&
                   15321:        $as_test_x conftest$ac_exeext; then
1.25      millert  15322:   eval "$as_ac_var=yes"
                   15323: else
                   15324:   echo "$as_me: failed program was:" >&5
                   15325: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  15326:
1.27      millert  15327:        eval "$as_ac_var=no"
1.1       millert  15328: fi
1.27      millert  15329:
                   15330: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15331:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15332: fi
1.27      millert  15333: ac_res=`eval echo '${'$as_ac_var'}'`
                   15334:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15335: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15336: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15337:   cat >>confdefs.h <<_ACEOF
                   15338: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15339: _ACEOF
1.27      millert  15340:  SKIP_SETREUID=yes
1.25      millert  15341: fi
                   15342: done
1.23      millert  15343:
                   15344: fi
1.27      millert  15345: if test -z "$SKIP_SETREUID"; then
1.23      millert  15346:
1.27      millert  15347: for ac_func in setreuid
1.25      millert  15348: do
                   15349: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15350: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15351: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15352: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  15353:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15354: else
                   15355:   cat >conftest.$ac_ext <<_ACEOF
                   15356: /* confdefs.h.  */
                   15357: _ACEOF
                   15358: cat confdefs.h >>conftest.$ac_ext
                   15359: cat >>conftest.$ac_ext <<_ACEOF
                   15360: /* end confdefs.h.  */
1.25      millert  15361: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15362:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15363: #define $ac_func innocuous_$ac_func
                   15364:
                   15365: /* System header to define __stub macros and hopefully few prototypes,
                   15366:     which can conflict with char $ac_func (); below.
                   15367:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15368:     <limits.h> exists even on freestanding compilers.  */
                   15369:
                   15370: #ifdef __STDC__
                   15371: # include <limits.h>
                   15372: #else
                   15373: # include <assert.h>
                   15374: #endif
                   15375:
                   15376: #undef $ac_func
                   15377:
1.27      millert  15378: /* Override any GCC internal prototype to avoid an error.
                   15379:    Use char because int might match the return type of a GCC
                   15380:    builtin and then its argument prototype would still apply.  */
1.25      millert  15381: #ifdef __cplusplus
                   15382: extern "C"
                   15383: #endif
                   15384: char $ac_func ();
                   15385: /* The GNU C library defines this for functions which it implements
                   15386:     to always fail with ENOSYS.  Some functions are actually named
                   15387:     something starting with __ and the normal name is an alias.  */
1.27      millert  15388: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15389: choke me
                   15390: #endif
1.23      millert  15391:
                   15392: int
                   15393: main ()
                   15394: {
1.27      millert  15395: return $ac_func ();
1.23      millert  15396:   ;
                   15397:   return 0;
                   15398: }
                   15399: _ACEOF
1.25      millert  15400: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15401: if { (ac_try="$ac_link"
                   15402: case "(($ac_try" in
                   15403:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15404:   *) ac_try_echo=$ac_try;;
                   15405: esac
                   15406: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15407:   (eval "$ac_link") 2>conftest.er1
1.23      millert  15408:   ac_status=$?
1.25      millert  15409:   grep -v '^ *+' conftest.er1 >conftest.err
                   15410:   rm -f conftest.er1
                   15411:   cat conftest.err >&5
1.23      millert  15412:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15413:   (exit $ac_status); } && {
                   15414:         test -z "$ac_c_werror_flag" ||
                   15415:         test ! -s conftest.err
                   15416:        } && test -s conftest$ac_exeext &&
                   15417:        $as_test_x conftest$ac_exeext; then
1.25      millert  15418:   eval "$as_ac_var=yes"
1.23      millert  15419: else
                   15420:   echo "$as_me: failed program was:" >&5
                   15421: sed 's/^/| /' conftest.$ac_ext >&5
                   15422:
1.27      millert  15423:        eval "$as_ac_var=no"
1.25      millert  15424: fi
1.27      millert  15425:
                   15426: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15427:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15428: fi
1.27      millert  15429: ac_res=`eval echo '${'$as_ac_var'}'`
                   15430:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15431: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15432: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15433:   cat >>confdefs.h <<_ACEOF
                   15434: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15435: _ACEOF
1.27      millert  15436:  SKIP_SETEUID=yes
1.23      millert  15437: fi
1.27      millert  15438: done
1.23      millert  15439:
                   15440: fi
1.27      millert  15441: if test -z "$SKIP_SETEUID"; then
1.25      millert  15442:
1.27      millert  15443: for ac_func in seteuid
1.25      millert  15444: do
                   15445: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15446: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15447: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15448: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15449:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15450: else
1.23      millert  15451:   cat >conftest.$ac_ext <<_ACEOF
                   15452: /* confdefs.h.  */
                   15453: _ACEOF
                   15454: cat confdefs.h >>conftest.$ac_ext
                   15455: cat >>conftest.$ac_ext <<_ACEOF
                   15456: /* end confdefs.h.  */
1.25      millert  15457: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15458:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15459: #define $ac_func innocuous_$ac_func
                   15460:
                   15461: /* System header to define __stub macros and hopefully few prototypes,
                   15462:     which can conflict with char $ac_func (); below.
                   15463:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15464:     <limits.h> exists even on freestanding compilers.  */
                   15465:
                   15466: #ifdef __STDC__
                   15467: # include <limits.h>
                   15468: #else
                   15469: # include <assert.h>
                   15470: #endif
                   15471:
                   15472: #undef $ac_func
1.23      millert  15473:
1.27      millert  15474: /* Override any GCC internal prototype to avoid an error.
                   15475:    Use char because int might match the return type of a GCC
                   15476:    builtin and then its argument prototype would still apply.  */
1.25      millert  15477: #ifdef __cplusplus
                   15478: extern "C"
                   15479: #endif
                   15480: char $ac_func ();
                   15481: /* The GNU C library defines this for functions which it implements
                   15482:     to always fail with ENOSYS.  Some functions are actually named
                   15483:     something starting with __ and the normal name is an alias.  */
1.27      millert  15484: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15485: choke me
1.23      millert  15486: #endif
                   15487:
                   15488: int
                   15489: main ()
                   15490: {
1.27      millert  15491: return $ac_func ();
1.25      millert  15492:   ;
                   15493:   return 0;
1.23      millert  15494: }
                   15495: _ACEOF
1.25      millert  15496: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15497: if { (ac_try="$ac_link"
                   15498: case "(($ac_try" in
                   15499:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15500:   *) ac_try_echo=$ac_try;;
                   15501: esac
                   15502: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15503:   (eval "$ac_link") 2>conftest.er1
1.25      millert  15504:   ac_status=$?
                   15505:   grep -v '^ *+' conftest.er1 >conftest.err
                   15506:   rm -f conftest.er1
                   15507:   cat conftest.err >&5
                   15508:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15509:   (exit $ac_status); } && {
                   15510:         test -z "$ac_c_werror_flag" ||
                   15511:         test ! -s conftest.err
                   15512:        } && test -s conftest$ac_exeext &&
                   15513:        $as_test_x conftest$ac_exeext; then
1.25      millert  15514:   eval "$as_ac_var=yes"
1.23      millert  15515: else
1.25      millert  15516:   echo "$as_me: failed program was:" >&5
1.23      millert  15517: sed 's/^/| /' conftest.$ac_ext >&5
                   15518:
1.27      millert  15519:        eval "$as_ac_var=no"
1.23      millert  15520: fi
1.27      millert  15521:
                   15522: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15523:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15524: fi
1.27      millert  15525: ac_res=`eval echo '${'$as_ac_var'}'`
                   15526:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15527: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15528: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15529:   cat >>confdefs.h <<_ACEOF
                   15530: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  15531: _ACEOF
1.27      millert  15532:
1.23      millert  15533: fi
1.25      millert  15534: done
1.23      millert  15535:
1.27      millert  15536: fi
                   15537: if test X"$with_interfaces" != X"no"; then
1.23      millert  15538:
1.27      millert  15539: for ac_func in getifaddrs
1.25      millert  15540: do
                   15541: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15542: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15543: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15544: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  15545:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15546: else
                   15547:   cat >conftest.$ac_ext <<_ACEOF
                   15548: /* confdefs.h.  */
                   15549: _ACEOF
                   15550: cat confdefs.h >>conftest.$ac_ext
                   15551: cat >>conftest.$ac_ext <<_ACEOF
                   15552: /* end confdefs.h.  */
1.25      millert  15553: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15554:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15555: #define $ac_func innocuous_$ac_func
                   15556:
                   15557: /* System header to define __stub macros and hopefully few prototypes,
                   15558:     which can conflict with char $ac_func (); below.
                   15559:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15560:     <limits.h> exists even on freestanding compilers.  */
                   15561:
                   15562: #ifdef __STDC__
                   15563: # include <limits.h>
                   15564: #else
                   15565: # include <assert.h>
                   15566: #endif
                   15567:
                   15568: #undef $ac_func
                   15569:
1.27      millert  15570: /* Override any GCC internal prototype to avoid an error.
                   15571:    Use char because int might match the return type of a GCC
                   15572:    builtin and then its argument prototype would still apply.  */
1.25      millert  15573: #ifdef __cplusplus
                   15574: extern "C"
                   15575: #endif
                   15576: char $ac_func ();
                   15577: /* The GNU C library defines this for functions which it implements
                   15578:     to always fail with ENOSYS.  Some functions are actually named
                   15579:     something starting with __ and the normal name is an alias.  */
1.27      millert  15580: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15581: choke me
                   15582: #endif
1.23      millert  15583:
                   15584: int
                   15585: main ()
                   15586: {
1.27      millert  15587: return $ac_func ();
1.23      millert  15588:   ;
                   15589:   return 0;
                   15590: }
                   15591: _ACEOF
1.25      millert  15592: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15593: if { (ac_try="$ac_link"
                   15594: case "(($ac_try" in
                   15595:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15596:   *) ac_try_echo=$ac_try;;
                   15597: esac
                   15598: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15599:   (eval "$ac_link") 2>conftest.er1
1.23      millert  15600:   ac_status=$?
1.25      millert  15601:   grep -v '^ *+' conftest.er1 >conftest.err
                   15602:   rm -f conftest.er1
                   15603:   cat conftest.err >&5
1.23      millert  15604:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15605:   (exit $ac_status); } && {
                   15606:         test -z "$ac_c_werror_flag" ||
                   15607:         test ! -s conftest.err
                   15608:        } && test -s conftest$ac_exeext &&
                   15609:        $as_test_x conftest$ac_exeext; then
1.25      millert  15610:   eval "$as_ac_var=yes"
1.23      millert  15611: else
                   15612:   echo "$as_me: failed program was:" >&5
                   15613: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  15614:
1.27      millert  15615:        eval "$as_ac_var=no"
1.23      millert  15616: fi
1.27      millert  15617:
                   15618: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15619:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15620: fi
1.27      millert  15621: ac_res=`eval echo '${'$as_ac_var'}'`
                   15622:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15623: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15624: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  15625:   cat >>confdefs.h <<_ACEOF
1.25      millert  15626: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  15627: _ACEOF
1.25      millert  15628:
1.27      millert  15629: for ac_func in freeifaddrs
1.25      millert  15630: do
                   15631: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15632: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15633: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15634: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  15635:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15636: else
1.25      millert  15637:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15638: /* confdefs.h.  */
                   15639: _ACEOF
                   15640: cat confdefs.h >>conftest.$ac_ext
                   15641: cat >>conftest.$ac_ext <<_ACEOF
                   15642: /* end confdefs.h.  */
1.25      millert  15643: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15644:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15645: #define $ac_func innocuous_$ac_func
                   15646:
                   15647: /* System header to define __stub macros and hopefully few prototypes,
                   15648:     which can conflict with char $ac_func (); below.
                   15649:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15650:     <limits.h> exists even on freestanding compilers.  */
                   15651:
                   15652: #ifdef __STDC__
                   15653: # include <limits.h>
                   15654: #else
                   15655: # include <assert.h>
                   15656: #endif
                   15657:
                   15658: #undef $ac_func
1.9       millert  15659:
1.27      millert  15660: /* Override any GCC internal prototype to avoid an error.
                   15661:    Use char because int might match the return type of a GCC
                   15662:    builtin and then its argument prototype would still apply.  */
1.23      millert  15663: #ifdef __cplusplus
                   15664: extern "C"
                   15665: #endif
1.25      millert  15666: char $ac_func ();
                   15667: /* The GNU C library defines this for functions which it implements
                   15668:     to always fail with ENOSYS.  Some functions are actually named
                   15669:     something starting with __ and the normal name is an alias.  */
1.27      millert  15670: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15671: choke me
                   15672: #endif
                   15673:
1.16      millert  15674: int
                   15675: main ()
                   15676: {
1.27      millert  15677: return $ac_func ();
1.16      millert  15678:   ;
                   15679:   return 0;
                   15680: }
1.9       millert  15681: _ACEOF
1.23      millert  15682: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15683: if { (ac_try="$ac_link"
                   15684: case "(($ac_try" in
                   15685:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15686:   *) ac_try_echo=$ac_try;;
                   15687: esac
                   15688: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15689:   (eval "$ac_link") 2>conftest.er1
1.16      millert  15690:   ac_status=$?
1.25      millert  15691:   grep -v '^ *+' conftest.er1 >conftest.err
                   15692:   rm -f conftest.er1
                   15693:   cat conftest.err >&5
1.16      millert  15694:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15695:   (exit $ac_status); } && {
                   15696:         test -z "$ac_c_werror_flag" ||
                   15697:         test ! -s conftest.err
                   15698:        } && test -s conftest$ac_exeext &&
                   15699:        $as_test_x conftest$ac_exeext; then
1.25      millert  15700:   eval "$as_ac_var=yes"
1.1       millert  15701: else
1.9       millert  15702:   echo "$as_me: failed program was:" >&5
1.16      millert  15703: sed 's/^/| /' conftest.$ac_ext >&5
                   15704:
1.27      millert  15705:        eval "$as_ac_var=no"
1.25      millert  15706: fi
1.27      millert  15707:
                   15708: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15709:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  15710: fi
1.27      millert  15711: ac_res=`eval echo '${'$as_ac_var'}'`
                   15712:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15713: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15714: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15715:   cat >>confdefs.h <<_ACEOF
                   15716: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15717: _ACEOF
                   15718:
1.27      millert  15719: fi
                   15720: done
                   15721:
                   15722: fi
                   15723: done
                   15724:
                   15725: fi
                   15726: if test -z "$BROKEN_GETCWD"; then
                   15727:
                   15728: for ac_func in getcwd
1.25      millert  15729: do
                   15730: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15731: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15732: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15733: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15734:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15735: else
                   15736:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15737: /* confdefs.h.  */
                   15738: _ACEOF
                   15739: cat confdefs.h >>conftest.$ac_ext
                   15740: cat >>conftest.$ac_ext <<_ACEOF
                   15741: /* end confdefs.h.  */
1.25      millert  15742: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15743:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15744: #define $ac_func innocuous_$ac_func
                   15745:
                   15746: /* System header to define __stub macros and hopefully few prototypes,
                   15747:     which can conflict with char $ac_func (); below.
                   15748:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15749:     <limits.h> exists even on freestanding compilers.  */
                   15750:
                   15751: #ifdef __STDC__
                   15752: # include <limits.h>
                   15753: #else
                   15754: # include <assert.h>
                   15755: #endif
                   15756:
                   15757: #undef $ac_func
1.9       millert  15758:
1.27      millert  15759: /* Override any GCC internal prototype to avoid an error.
                   15760:    Use char because int might match the return type of a GCC
                   15761:    builtin and then its argument prototype would still apply.  */
1.23      millert  15762: #ifdef __cplusplus
                   15763: extern "C"
                   15764: #endif
1.25      millert  15765: char $ac_func ();
                   15766: /* The GNU C library defines this for functions which it implements
                   15767:     to always fail with ENOSYS.  Some functions are actually named
                   15768:     something starting with __ and the normal name is an alias.  */
1.27      millert  15769: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15770: choke me
                   15771: #endif
                   15772:
1.23      millert  15773: int
                   15774: main ()
                   15775: {
1.27      millert  15776: return $ac_func ();
1.23      millert  15777:   ;
                   15778:   return 0;
                   15779: }
1.9       millert  15780: _ACEOF
1.23      millert  15781: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15782: if { (ac_try="$ac_link"
                   15783: case "(($ac_try" in
                   15784:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15785:   *) ac_try_echo=$ac_try;;
                   15786: esac
                   15787: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15788:   (eval "$ac_link") 2>conftest.er1
1.23      millert  15789:   ac_status=$?
1.25      millert  15790:   grep -v '^ *+' conftest.er1 >conftest.err
                   15791:   rm -f conftest.er1
                   15792:   cat conftest.err >&5
1.23      millert  15793:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15794:   (exit $ac_status); } && {
                   15795:         test -z "$ac_c_werror_flag" ||
                   15796:         test ! -s conftest.err
                   15797:        } && test -s conftest$ac_exeext &&
                   15798:        $as_test_x conftest$ac_exeext; then
1.25      millert  15799:   eval "$as_ac_var=yes"
1.1       millert  15800: else
1.23      millert  15801:   echo "$as_me: failed program was:" >&5
                   15802: sed 's/^/| /' conftest.$ac_ext >&5
                   15803:
1.27      millert  15804:        eval "$as_ac_var=no"
1.25      millert  15805: fi
1.27      millert  15806:
                   15807: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15808:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15809: fi
1.27      millert  15810: ac_res=`eval echo '${'$as_ac_var'}'`
                   15811:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15812: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15813: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15814:   cat >>confdefs.h <<_ACEOF
                   15815: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15816: _ACEOF
                   15817:
1.27      millert  15818: else
                   15819:   case " $LIBOBJS " in
                   15820:   *" $ac_func.$ac_objext "* ) ;;
                   15821:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   15822:  ;;
                   15823: esac
                   15824:
1.23      millert  15825: fi
1.25      millert  15826: done
1.27      millert  15827:
                   15828:
1.1       millert  15829: fi
                   15830:
1.27      millert  15831: for ac_func in glob
1.25      millert  15832: do
                   15833: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15834: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15835: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15836: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  15837:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15838: else
1.25      millert  15839:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15840: /* confdefs.h.  */
                   15841: _ACEOF
                   15842: cat confdefs.h >>conftest.$ac_ext
                   15843: cat >>conftest.$ac_ext <<_ACEOF
                   15844: /* end confdefs.h.  */
1.25      millert  15845: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15846:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15847: #define $ac_func innocuous_$ac_func
                   15848:
                   15849: /* System header to define __stub macros and hopefully few prototypes,
                   15850:     which can conflict with char $ac_func (); below.
                   15851:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15852:     <limits.h> exists even on freestanding compilers.  */
                   15853:
                   15854: #ifdef __STDC__
                   15855: # include <limits.h>
                   15856: #else
                   15857: # include <assert.h>
                   15858: #endif
                   15859:
                   15860: #undef $ac_func
1.9       millert  15861:
1.27      millert  15862: /* Override any GCC internal prototype to avoid an error.
                   15863:    Use char because int might match the return type of a GCC
                   15864:    builtin and then its argument prototype would still apply.  */
1.23      millert  15865: #ifdef __cplusplus
                   15866: extern "C"
                   15867: #endif
1.25      millert  15868: char $ac_func ();
                   15869: /* The GNU C library defines this for functions which it implements
                   15870:     to always fail with ENOSYS.  Some functions are actually named
                   15871:     something starting with __ and the normal name is an alias.  */
1.27      millert  15872: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15873: choke me
                   15874: #endif
                   15875:
1.23      millert  15876: int
                   15877: main ()
                   15878: {
1.27      millert  15879: return $ac_func ();
1.23      millert  15880:   ;
                   15881:   return 0;
                   15882: }
1.9       millert  15883: _ACEOF
1.23      millert  15884: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15885: if { (ac_try="$ac_link"
                   15886: case "(($ac_try" in
                   15887:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15888:   *) ac_try_echo=$ac_try;;
                   15889: esac
                   15890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15891:   (eval "$ac_link") 2>conftest.er1
1.23      millert  15892:   ac_status=$?
1.25      millert  15893:   grep -v '^ *+' conftest.er1 >conftest.err
                   15894:   rm -f conftest.er1
                   15895:   cat conftest.err >&5
1.23      millert  15896:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15897:   (exit $ac_status); } && {
                   15898:         test -z "$ac_c_werror_flag" ||
                   15899:         test ! -s conftest.err
                   15900:        } && test -s conftest$ac_exeext &&
                   15901:        $as_test_x conftest$ac_exeext; then
1.25      millert  15902:   eval "$as_ac_var=yes"
1.1       millert  15903: else
1.23      millert  15904:   echo "$as_me: failed program was:" >&5
                   15905: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  15906:
1.27      millert  15907:        eval "$as_ac_var=no"
1.25      millert  15908: fi
1.27      millert  15909:
                   15910: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15911:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  15912: fi
1.27      millert  15913: ac_res=`eval echo '${'$as_ac_var'}'`
                   15914:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15915: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15916: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15917:   cat >>confdefs.h <<_ACEOF
                   15918: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15919: _ACEOF
1.27      millert  15920:  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
                   15921: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
1.25      millert  15922: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15923: /* confdefs.h.  */
                   15924: _ACEOF
                   15925: cat confdefs.h >>conftest.$ac_ext
                   15926: cat >>conftest.$ac_ext <<_ACEOF
                   15927: /* end confdefs.h.  */
1.27      millert  15928: #include <glob.h>
1.9       millert  15929: int
                   15930: main ()
                   15931: {
1.27      millert  15932: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23      millert  15933:   ;
                   15934:   return 0;
1.9       millert  15935: }
                   15936: _ACEOF
1.27      millert  15937: rm -f conftest.$ac_objext
                   15938: if { (ac_try="$ac_compile"
                   15939: case "(($ac_try" in
                   15940:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15941:   *) ac_try_echo=$ac_try;;
                   15942: esac
                   15943: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15944:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15945:   ac_status=$?
1.25      millert  15946:   grep -v '^ *+' conftest.er1 >conftest.err
                   15947:   rm -f conftest.er1
                   15948:   cat conftest.err >&5
1.16      millert  15949:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15950:   (exit $ac_status); } && {
                   15951:         test -z "$ac_c_werror_flag" ||
                   15952:         test ! -s conftest.err
                   15953:        } && test -s conftest.$ac_objext; then
                   15954:   cat >>confdefs.h <<\_ACEOF
                   15955: #define HAVE_EXTENDED_GLOB 1
                   15956: _ACEOF
1.16      millert  15957:
1.27      millert  15958:     { echo "$as_me:$LINENO: result: yes" >&5
                   15959: echo "${ECHO_T}yes" >&6; }
1.23      millert  15960: else
                   15961:   echo "$as_me: failed program was:" >&5
                   15962: sed 's/^/| /' conftest.$ac_ext >&5
                   15963:
1.27      millert  15964:        case " $LIBOBJS " in
                   15965:   *" glob.$ac_objext "* ) ;;
                   15966:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   15967:  ;;
1.25      millert  15968: esac
                   15969:
1.27      millert  15970:     { echo "$as_me:$LINENO: result: no" >&5
                   15971: echo "${ECHO_T}no" >&6; }
1.25      millert  15972: fi
                   15973:
1.27      millert  15974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  15975: else
1.27      millert  15976:   case " $LIBOBJS " in
                   15977:   *" glob.$ac_objext "* ) ;;
                   15978:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   15979:  ;;
1.23      millert  15980: esac
                   15981:
                   15982: fi
1.27      millert  15983: done
1.9       millert  15984:
1.23      millert  15985:
                   15986:
1.27      millert  15987: for ac_func in lockf flock
1.25      millert  15988: do
                   15989: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15990: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15991: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15992: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  15993:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15994: else
1.25      millert  15995:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15996: /* confdefs.h.  */
                   15997: _ACEOF
                   15998: cat confdefs.h >>conftest.$ac_ext
                   15999: cat >>conftest.$ac_ext <<_ACEOF
                   16000: /* end confdefs.h.  */
1.25      millert  16001: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16002:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16003: #define $ac_func innocuous_$ac_func
                   16004:
                   16005: /* System header to define __stub macros and hopefully few prototypes,
                   16006:     which can conflict with char $ac_func (); below.
                   16007:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16008:     <limits.h> exists even on freestanding compilers.  */
                   16009:
                   16010: #ifdef __STDC__
                   16011: # include <limits.h>
                   16012: #else
                   16013: # include <assert.h>
                   16014: #endif
                   16015:
                   16016: #undef $ac_func
                   16017:
1.27      millert  16018: /* Override any GCC internal prototype to avoid an error.
                   16019:    Use char because int might match the return type of a GCC
                   16020:    builtin and then its argument prototype would still apply.  */
1.25      millert  16021: #ifdef __cplusplus
                   16022: extern "C"
                   16023: #endif
                   16024: char $ac_func ();
                   16025: /* The GNU C library defines this for functions which it implements
                   16026:     to always fail with ENOSYS.  Some functions are actually named
                   16027:     something starting with __ and the normal name is an alias.  */
1.27      millert  16028: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16029: choke me
                   16030: #endif
                   16031:
                   16032: int
                   16033: main ()
                   16034: {
1.27      millert  16035: return $ac_func ();
1.25      millert  16036:   ;
                   16037:   return 0;
                   16038: }
1.16      millert  16039: _ACEOF
1.25      millert  16040: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16041: if { (ac_try="$ac_link"
                   16042: case "(($ac_try" in
                   16043:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16044:   *) ac_try_echo=$ac_try;;
                   16045: esac
                   16046: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16047:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16048:   ac_status=$?
1.25      millert  16049:   grep -v '^ *+' conftest.er1 >conftest.err
                   16050:   rm -f conftest.er1
                   16051:   cat conftest.err >&5
1.16      millert  16052:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16053:   (exit $ac_status); } && {
                   16054:         test -z "$ac_c_werror_flag" ||
                   16055:         test ! -s conftest.err
                   16056:        } && test -s conftest$ac_exeext &&
                   16057:        $as_test_x conftest$ac_exeext; then
1.25      millert  16058:   eval "$as_ac_var=yes"
1.16      millert  16059: else
                   16060:   echo "$as_me: failed program was:" >&5
                   16061: sed 's/^/| /' conftest.$ac_ext >&5
                   16062:
1.27      millert  16063:        eval "$as_ac_var=no"
1.25      millert  16064: fi
1.27      millert  16065:
                   16066: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16067:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  16068: fi
1.27      millert  16069: ac_res=`eval echo '${'$as_ac_var'}'`
                   16070:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16071: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16072: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16073:   cat >>confdefs.h <<_ACEOF
                   16074: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16075: _ACEOF
1.27      millert  16076:  break
                   16077: fi
                   16078: done
                   16079:
1.25      millert  16080:
1.23      millert  16081:
1.27      millert  16082: for ac_func in waitpid wait3
1.25      millert  16083: do
                   16084: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16085: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16086: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16087: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16088:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16089: else
                   16090:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16091: /* confdefs.h.  */
                   16092: _ACEOF
                   16093: cat confdefs.h >>conftest.$ac_ext
                   16094: cat >>conftest.$ac_ext <<_ACEOF
                   16095: /* end confdefs.h.  */
1.25      millert  16096: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16097:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16098: #define $ac_func innocuous_$ac_func
                   16099:
                   16100: /* System header to define __stub macros and hopefully few prototypes,
                   16101:     which can conflict with char $ac_func (); below.
                   16102:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16103:     <limits.h> exists even on freestanding compilers.  */
                   16104:
                   16105: #ifdef __STDC__
                   16106: # include <limits.h>
                   16107: #else
                   16108: # include <assert.h>
                   16109: #endif
                   16110:
                   16111: #undef $ac_func
                   16112:
1.27      millert  16113: /* Override any GCC internal prototype to avoid an error.
                   16114:    Use char because int might match the return type of a GCC
                   16115:    builtin and then its argument prototype would still apply.  */
1.25      millert  16116: #ifdef __cplusplus
                   16117: extern "C"
                   16118: #endif
                   16119: char $ac_func ();
                   16120: /* The GNU C library defines this for functions which it implements
                   16121:     to always fail with ENOSYS.  Some functions are actually named
                   16122:     something starting with __ and the normal name is an alias.  */
1.27      millert  16123: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16124: choke me
                   16125: #endif
                   16126:
                   16127: int
                   16128: main ()
                   16129: {
1.27      millert  16130: return $ac_func ();
1.25      millert  16131:   ;
                   16132:   return 0;
                   16133: }
1.9       millert  16134: _ACEOF
1.25      millert  16135: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16136: if { (ac_try="$ac_link"
                   16137: case "(($ac_try" in
                   16138:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16139:   *) ac_try_echo=$ac_try;;
                   16140: esac
                   16141: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16142:   (eval "$ac_link") 2>conftest.er1
1.9       millert  16143:   ac_status=$?
1.23      millert  16144:   grep -v '^ *+' conftest.er1 >conftest.err
                   16145:   rm -f conftest.er1
                   16146:   cat conftest.err >&5
1.16      millert  16147:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16148:   (exit $ac_status); } && {
                   16149:         test -z "$ac_c_werror_flag" ||
                   16150:         test ! -s conftest.err
                   16151:        } && test -s conftest$ac_exeext &&
                   16152:        $as_test_x conftest$ac_exeext; then
1.25      millert  16153:   eval "$as_ac_var=yes"
1.23      millert  16154: else
                   16155:   echo "$as_me: failed program was:" >&5
                   16156: sed 's/^/| /' conftest.$ac_ext >&5
                   16157:
1.27      millert  16158:        eval "$as_ac_var=no"
1.23      millert  16159: fi
1.27      millert  16160:
                   16161: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16162:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  16163: fi
1.27      millert  16164: ac_res=`eval echo '${'$as_ac_var'}'`
                   16165:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16166: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16167: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  16168:   cat >>confdefs.h <<_ACEOF
1.25      millert  16169: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16170: _ACEOF
1.25      millert  16171:  break
                   16172: fi
                   16173: done
1.23      millert  16174:
1.16      millert  16175:
1.27      millert  16176:
                   16177: for ac_func in innetgr _innetgr
1.25      millert  16178: do
                   16179: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16180: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16181: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16182: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16183:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16184: else
1.23      millert  16185:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16186: /* confdefs.h.  */
                   16187: _ACEOF
                   16188: cat confdefs.h >>conftest.$ac_ext
                   16189: cat >>conftest.$ac_ext <<_ACEOF
                   16190: /* end confdefs.h.  */
1.25      millert  16191: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16192:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16193: #define $ac_func innocuous_$ac_func
                   16194:
                   16195: /* System header to define __stub macros and hopefully few prototypes,
                   16196:     which can conflict with char $ac_func (); below.
                   16197:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16198:     <limits.h> exists even on freestanding compilers.  */
                   16199:
                   16200: #ifdef __STDC__
                   16201: # include <limits.h>
                   16202: #else
                   16203: # include <assert.h>
                   16204: #endif
                   16205:
                   16206: #undef $ac_func
                   16207:
1.27      millert  16208: /* Override any GCC internal prototype to avoid an error.
                   16209:    Use char because int might match the return type of a GCC
                   16210:    builtin and then its argument prototype would still apply.  */
1.25      millert  16211: #ifdef __cplusplus
                   16212: extern "C"
                   16213: #endif
                   16214: char $ac_func ();
                   16215: /* The GNU C library defines this for functions which it implements
                   16216:     to always fail with ENOSYS.  Some functions are actually named
                   16217:     something starting with __ and the normal name is an alias.  */
1.27      millert  16218: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16219: choke me
                   16220: #endif
1.16      millert  16221:
                   16222: int
                   16223: main ()
                   16224: {
1.27      millert  16225: return $ac_func ();
1.16      millert  16226:   ;
                   16227:   return 0;
                   16228: }
                   16229: _ACEOF
                   16230: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16231: if { (ac_try="$ac_link"
                   16232: case "(($ac_try" in
                   16233:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16234:   *) ac_try_echo=$ac_try;;
                   16235: esac
                   16236: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16237:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16238:   ac_status=$?
1.25      millert  16239:   grep -v '^ *+' conftest.er1 >conftest.err
                   16240:   rm -f conftest.er1
                   16241:   cat conftest.err >&5
1.16      millert  16242:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16243:   (exit $ac_status); } && {
                   16244:         test -z "$ac_c_werror_flag" ||
                   16245:         test ! -s conftest.err
                   16246:        } && test -s conftest$ac_exeext &&
                   16247:        $as_test_x conftest$ac_exeext; then
1.25      millert  16248:   eval "$as_ac_var=yes"
1.16      millert  16249: else
                   16250:   echo "$as_me: failed program was:" >&5
                   16251: sed 's/^/| /' conftest.$ac_ext >&5
                   16252:
1.27      millert  16253:        eval "$as_ac_var=no"
1.16      millert  16254: fi
1.27      millert  16255:
                   16256: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16257:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16258: fi
1.27      millert  16259: ac_res=`eval echo '${'$as_ac_var'}'`
                   16260:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16261: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16262: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16263:   cat >>confdefs.h <<_ACEOF
                   16264: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16265: _ACEOF
1.9       millert  16266:
1.27      millert  16267: for ac_func in getdomainname
                   16268: do
                   16269: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16270: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16271: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16272: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16      millert  16273:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16274: else
1.25      millert  16275:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16276: /* confdefs.h.  */
                   16277: _ACEOF
                   16278: cat confdefs.h >>conftest.$ac_ext
                   16279: cat >>conftest.$ac_ext <<_ACEOF
                   16280: /* end confdefs.h.  */
1.27      millert  16281: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16282:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16283: #define $ac_func innocuous_$ac_func
1.16      millert  16284:
1.27      millert  16285: /* System header to define __stub macros and hopefully few prototypes,
                   16286:     which can conflict with char $ac_func (); below.
                   16287:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16288:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  16289:
1.27      millert  16290: #ifdef __STDC__
                   16291: # include <limits.h>
                   16292: #else
                   16293: # include <assert.h>
                   16294: #endif
1.25      millert  16295:
1.27      millert  16296: #undef $ac_func
1.25      millert  16297:
1.27      millert  16298: /* Override any GCC internal prototype to avoid an error.
                   16299:    Use char because int might match the return type of a GCC
                   16300:    builtin and then its argument prototype would still apply.  */
                   16301: #ifdef __cplusplus
                   16302: extern "C"
                   16303: #endif
                   16304: char $ac_func ();
                   16305: /* The GNU C library defines this for functions which it implements
                   16306:     to always fail with ENOSYS.  Some functions are actually named
                   16307:     something starting with __ and the normal name is an alias.  */
                   16308: #if defined __stub_$ac_func || defined __stub___$ac_func
                   16309: choke me
                   16310: #endif
1.23      millert  16311:
1.25      millert  16312: int
                   16313: main ()
                   16314: {
1.27      millert  16315: return $ac_func ();
1.25      millert  16316:   ;
                   16317:   return 0;
                   16318: }
1.23      millert  16319: _ACEOF
1.25      millert  16320: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16321: if { (ac_try="$ac_link"
                   16322: case "(($ac_try" in
                   16323:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16324:   *) ac_try_echo=$ac_try;;
                   16325: esac
                   16326: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16327:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16328:   ac_status=$?
                   16329:   grep -v '^ *+' conftest.er1 >conftest.err
                   16330:   rm -f conftest.er1
                   16331:   cat conftest.err >&5
                   16332:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16333:   (exit $ac_status); } && {
                   16334:         test -z "$ac_c_werror_flag" ||
                   16335:         test ! -s conftest.err
                   16336:        } && test -s conftest$ac_exeext &&
                   16337:        $as_test_x conftest$ac_exeext; then
                   16338:   eval "$as_ac_var=yes"
1.23      millert  16339: else
                   16340:   echo "$as_me: failed program was:" >&5
                   16341: sed 's/^/| /' conftest.$ac_ext >&5
                   16342:
1.27      millert  16343:        eval "$as_ac_var=no"
1.25      millert  16344: fi
1.27      millert  16345:
                   16346: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16347:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16348: fi
1.27      millert  16349: ac_res=`eval echo '${'$as_ac_var'}'`
                   16350:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16351: echo "${ECHO_T}$ac_res" >&6; }
                   16352: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16353:   cat >>confdefs.h <<_ACEOF
                   16354: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  16355: _ACEOF
1.1       millert  16356:
1.27      millert  16357: fi
                   16358: done
                   16359:  break
                   16360: fi
                   16361: done
1.25      millert  16362:
                   16363:
1.27      millert  16364: for ac_func in lsearch
1.1       millert  16365: do
1.25      millert  16366: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16367: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16368: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16369: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16370:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  16371: else
1.25      millert  16372:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16373: /* confdefs.h.  */
                   16374: _ACEOF
                   16375: cat confdefs.h >>conftest.$ac_ext
                   16376: cat >>conftest.$ac_ext <<_ACEOF
                   16377: /* end confdefs.h.  */
1.25      millert  16378: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16379:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16380: #define $ac_func innocuous_$ac_func
                   16381:
                   16382: /* System header to define __stub macros and hopefully few prototypes,
                   16383:     which can conflict with char $ac_func (); below.
                   16384:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16385:     <limits.h> exists even on freestanding compilers.  */
                   16386:
                   16387: #ifdef __STDC__
                   16388: # include <limits.h>
                   16389: #else
                   16390: # include <assert.h>
                   16391: #endif
                   16392:
                   16393: #undef $ac_func
                   16394:
1.27      millert  16395: /* Override any GCC internal prototype to avoid an error.
                   16396:    Use char because int might match the return type of a GCC
                   16397:    builtin and then its argument prototype would still apply.  */
1.25      millert  16398: #ifdef __cplusplus
                   16399: extern "C"
                   16400: #endif
                   16401: char $ac_func ();
                   16402: /* The GNU C library defines this for functions which it implements
                   16403:     to always fail with ENOSYS.  Some functions are actually named
                   16404:     something starting with __ and the normal name is an alias.  */
1.27      millert  16405: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16406: choke me
                   16407: #endif
                   16408:
                   16409: int
                   16410: main ()
                   16411: {
1.27      millert  16412: return $ac_func ();
1.25      millert  16413:   ;
                   16414:   return 0;
                   16415: }
1.16      millert  16416: _ACEOF
1.25      millert  16417: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16418: if { (ac_try="$ac_link"
                   16419: case "(($ac_try" in
                   16420:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16421:   *) ac_try_echo=$ac_try;;
                   16422: esac
                   16423: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16424:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16425:   ac_status=$?
1.25      millert  16426:   grep -v '^ *+' conftest.er1 >conftest.err
                   16427:   rm -f conftest.er1
                   16428:   cat conftest.err >&5
1.16      millert  16429:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16430:   (exit $ac_status); } && {
                   16431:         test -z "$ac_c_werror_flag" ||
                   16432:         test ! -s conftest.err
                   16433:        } && test -s conftest$ac_exeext &&
                   16434:        $as_test_x conftest$ac_exeext; then
1.25      millert  16435:   eval "$as_ac_var=yes"
1.9       millert  16436: else
1.16      millert  16437:   echo "$as_me: failed program was:" >&5
                   16438: sed 's/^/| /' conftest.$ac_ext >&5
                   16439:
1.27      millert  16440:        eval "$as_ac_var=no"
1.25      millert  16441: fi
1.27      millert  16442:
                   16443: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16444:       conftest$ac_exeext conftest.$ac_ext
                   16445: fi
1.27      millert  16446: ac_res=`eval echo '${'$as_ac_var'}'`
                   16447:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16448: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16449: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16450:   cat >>confdefs.h <<_ACEOF
                   16451: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16452: _ACEOF
                   16453:
                   16454: else
1.27      millert  16455:   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
                   16456: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
                   16457: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
1.25      millert  16458:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16459: else
1.27      millert  16460:   ac_check_lib_save_LIBS=$LIBS
                   16461: LIBS="-lcompat  $LIBS"
                   16462: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16463: /* confdefs.h.  */
                   16464: _ACEOF
                   16465: cat confdefs.h >>conftest.$ac_ext
                   16466: cat >>conftest.$ac_ext <<_ACEOF
                   16467: /* end confdefs.h.  */
1.25      millert  16468:
1.27      millert  16469: /* Override any GCC internal prototype to avoid an error.
                   16470:    Use char because int might match the return type of a GCC
                   16471:    builtin and then its argument prototype would still apply.  */
1.25      millert  16472: #ifdef __cplusplus
                   16473: extern "C"
                   16474: #endif
1.27      millert  16475: char lsearch ();
1.25      millert  16476: int
                   16477: main ()
                   16478: {
1.27      millert  16479: return lsearch ();
1.25      millert  16480:   ;
                   16481:   return 0;
                   16482: }
1.9       millert  16483: _ACEOF
1.25      millert  16484: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16485: if { (ac_try="$ac_link"
                   16486: case "(($ac_try" in
                   16487:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16488:   *) ac_try_echo=$ac_try;;
                   16489: esac
                   16490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16491:   (eval "$ac_link") 2>conftest.er1
1.9       millert  16492:   ac_status=$?
1.16      millert  16493:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  16494:   rm -f conftest.er1
                   16495:   cat conftest.err >&5
1.16      millert  16496:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16497:   (exit $ac_status); } && {
                   16498:         test -z "$ac_c_werror_flag" ||
                   16499:         test ! -s conftest.err
                   16500:        } && test -s conftest$ac_exeext &&
                   16501:        $as_test_x conftest$ac_exeext; then
                   16502:   ac_cv_lib_compat_lsearch=yes
1.1       millert  16503: else
1.9       millert  16504:   echo "$as_me: failed program was:" >&5
1.16      millert  16505: sed 's/^/| /' conftest.$ac_ext >&5
                   16506:
1.27      millert  16507:        ac_cv_lib_compat_lsearch=no
1.1       millert  16508: fi
1.27      millert  16509:
                   16510: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16511:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  16512: LIBS=$ac_check_lib_save_LIBS
1.16      millert  16513: fi
1.27      millert  16514: { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
                   16515: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
                   16516: if test $ac_cv_lib_compat_lsearch = yes; then
                   16517:   { echo "$as_me:$LINENO: checking for search.h" >&5
                   16518: echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
                   16519: if test "${ac_cv_header_search_h+set}" = set; then
1.18      millert  16520:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16521: else
1.25      millert  16522:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  16523: /* confdefs.h.  */
                   16524: _ACEOF
                   16525: cat confdefs.h >>conftest.$ac_ext
                   16526: cat >>conftest.$ac_ext <<_ACEOF
                   16527: /* end confdefs.h.  */
1.27      millert  16528: #include <search.h>
1.18      millert  16529: _ACEOF
1.27      millert  16530: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   16531: case "(($ac_try" in
                   16532:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16533:   *) ac_try_echo=$ac_try;;
                   16534: esac
                   16535: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16536:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.18      millert  16537:   ac_status=$?
1.25      millert  16538:   grep -v '^ *+' conftest.er1 >conftest.err
                   16539:   rm -f conftest.er1
                   16540:   cat conftest.err >&5
1.18      millert  16541:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16542:   (exit $ac_status); } >/dev/null && {
                   16543:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   16544:         test ! -s conftest.err
                   16545:        }; then
                   16546:   ac_cv_header_search_h=yes
1.23      millert  16547: else
1.25      millert  16548:   echo "$as_me: failed program was:" >&5
                   16549: sed 's/^/| /' conftest.$ac_ext >&5
                   16550:
1.27      millert  16551:   ac_cv_header_search_h=no
1.23      millert  16552: fi
1.27      millert  16553:
                   16554: rm -f conftest.err conftest.$ac_ext
1.23      millert  16555: fi
1.27      millert  16556: { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
                   16557: echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
                   16558: if test $ac_cv_header_search_h = yes; then
1.23      millert  16559:   cat >>confdefs.h <<\_ACEOF
1.27      millert  16560: #define HAVE_LSEARCH 1
1.23      millert  16561: _ACEOF
1.27      millert  16562:  LIBS="${LIBS} -lcompat"
                   16563: else
                   16564:   case " $LIBOBJS " in
                   16565:   *" lsearch.$ac_objext "* ) ;;
                   16566:   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
                   16567:  ;;
                   16568: esac
1.25      millert  16569:
1.23      millert  16570: fi
                   16571:
                   16572:
1.27      millert  16573: else
                   16574:   case " $LIBOBJS " in
                   16575:   *" lsearch.$ac_objext "* ) ;;
                   16576:   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
                   16577:  ;;
                   16578: esac
                   16579:
                   16580: fi
                   16581:
1.23      millert  16582: fi
1.25      millert  16583: done
                   16584:
                   16585:
1.27      millert  16586: for ac_func in utimes
1.25      millert  16587: do
                   16588: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16589: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16590: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16591: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16592:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16593: else
                   16594:   cat >conftest.$ac_ext <<_ACEOF
                   16595: /* confdefs.h.  */
                   16596: _ACEOF
                   16597: cat confdefs.h >>conftest.$ac_ext
                   16598: cat >>conftest.$ac_ext <<_ACEOF
                   16599: /* end confdefs.h.  */
1.25      millert  16600: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16601:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16602: #define $ac_func innocuous_$ac_func
                   16603:
                   16604: /* System header to define __stub macros and hopefully few prototypes,
                   16605:     which can conflict with char $ac_func (); below.
                   16606:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16607:     <limits.h> exists even on freestanding compilers.  */
                   16608:
                   16609: #ifdef __STDC__
                   16610: # include <limits.h>
                   16611: #else
                   16612: # include <assert.h>
                   16613: #endif
                   16614:
                   16615: #undef $ac_func
                   16616:
1.27      millert  16617: /* Override any GCC internal prototype to avoid an error.
                   16618:    Use char because int might match the return type of a GCC
                   16619:    builtin and then its argument prototype would still apply.  */
1.25      millert  16620: #ifdef __cplusplus
                   16621: extern "C"
                   16622: #endif
                   16623: char $ac_func ();
                   16624: /* The GNU C library defines this for functions which it implements
                   16625:     to always fail with ENOSYS.  Some functions are actually named
                   16626:     something starting with __ and the normal name is an alias.  */
1.27      millert  16627: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16628: choke me
                   16629: #endif
                   16630:
1.23      millert  16631: int
                   16632: main ()
                   16633: {
1.27      millert  16634: return $ac_func ();
1.23      millert  16635:   ;
                   16636:   return 0;
                   16637: }
                   16638: _ACEOF
1.25      millert  16639: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16640: if { (ac_try="$ac_link"
                   16641: case "(($ac_try" in
                   16642:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16643:   *) ac_try_echo=$ac_try;;
                   16644: esac
                   16645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16646:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16647:   ac_status=$?
1.25      millert  16648:   grep -v '^ *+' conftest.er1 >conftest.err
                   16649:   rm -f conftest.er1
                   16650:   cat conftest.err >&5
1.23      millert  16651:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16652:   (exit $ac_status); } && {
                   16653:         test -z "$ac_c_werror_flag" ||
                   16654:         test ! -s conftest.err
                   16655:        } && test -s conftest$ac_exeext &&
                   16656:        $as_test_x conftest$ac_exeext; then
1.25      millert  16657:   eval "$as_ac_var=yes"
1.23      millert  16658: else
                   16659:   echo "$as_me: failed program was:" >&5
                   16660: sed 's/^/| /' conftest.$ac_ext >&5
                   16661:
1.27      millert  16662:        eval "$as_ac_var=no"
1.23      millert  16663: fi
1.27      millert  16664:
                   16665: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16666:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16667: fi
1.27      millert  16668: ac_res=`eval echo '${'$as_ac_var'}'`
                   16669:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16670: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16671: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16672:   cat >>confdefs.h <<_ACEOF
                   16673: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16674: _ACEOF
                   16675:
1.23      millert  16676:
1.27      millert  16677: for ac_func in futimes futimesat
1.25      millert  16678: do
                   16679: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16680: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16681: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16682: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  16683:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16684: else
1.23      millert  16685:   cat >conftest.$ac_ext <<_ACEOF
                   16686: /* confdefs.h.  */
                   16687: _ACEOF
                   16688: cat confdefs.h >>conftest.$ac_ext
                   16689: cat >>conftest.$ac_ext <<_ACEOF
                   16690: /* end confdefs.h.  */
1.25      millert  16691: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16692:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16693: #define $ac_func innocuous_$ac_func
                   16694:
                   16695: /* System header to define __stub macros and hopefully few prototypes,
                   16696:     which can conflict with char $ac_func (); below.
                   16697:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16698:     <limits.h> exists even on freestanding compilers.  */
                   16699:
                   16700: #ifdef __STDC__
                   16701: # include <limits.h>
                   16702: #else
                   16703: # include <assert.h>
                   16704: #endif
                   16705:
                   16706: #undef $ac_func
                   16707:
1.27      millert  16708: /* Override any GCC internal prototype to avoid an error.
                   16709:    Use char because int might match the return type of a GCC
                   16710:    builtin and then its argument prototype would still apply.  */
1.25      millert  16711: #ifdef __cplusplus
                   16712: extern "C"
                   16713: #endif
                   16714: char $ac_func ();
                   16715: /* The GNU C library defines this for functions which it implements
                   16716:     to always fail with ENOSYS.  Some functions are actually named
                   16717:     something starting with __ and the normal name is an alias.  */
1.27      millert  16718: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16719: choke me
                   16720: #endif
1.23      millert  16721:
1.25      millert  16722: int
                   16723: main ()
                   16724: {
1.27      millert  16725: return $ac_func ();
1.25      millert  16726:   ;
                   16727:   return 0;
                   16728: }
1.23      millert  16729: _ACEOF
1.25      millert  16730: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16731: if { (ac_try="$ac_link"
                   16732: case "(($ac_try" in
                   16733:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16734:   *) ac_try_echo=$ac_try;;
                   16735: esac
                   16736: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16737:   (eval "$ac_link") 2>conftest.er1
1.25      millert  16738:   ac_status=$?
                   16739:   grep -v '^ *+' conftest.er1 >conftest.err
                   16740:   rm -f conftest.er1
                   16741:   cat conftest.err >&5
                   16742:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16743:   (exit $ac_status); } && {
                   16744:         test -z "$ac_c_werror_flag" ||
                   16745:         test ! -s conftest.err
                   16746:        } && test -s conftest$ac_exeext &&
                   16747:        $as_test_x conftest$ac_exeext; then
1.25      millert  16748:   eval "$as_ac_var=yes"
1.23      millert  16749: else
1.25      millert  16750:   echo "$as_me: failed program was:" >&5
                   16751: sed 's/^/| /' conftest.$ac_ext >&5
                   16752:
1.27      millert  16753:        eval "$as_ac_var=no"
1.25      millert  16754: fi
1.27      millert  16755:
                   16756: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16757:       conftest$ac_exeext conftest.$ac_ext
                   16758: fi
1.27      millert  16759: ac_res=`eval echo '${'$as_ac_var'}'`
                   16760:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16761: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16762: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16763:   cat >>confdefs.h <<_ACEOF
                   16764: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16765: _ACEOF
                   16766:  break
1.23      millert  16767: fi
1.25      millert  16768: done
                   16769:
1.27      millert  16770: else
1.23      millert  16771:
1.27      millert  16772: for ac_func in futime
1.25      millert  16773: do
                   16774: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16775: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16776: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16777: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16778:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16779: else
                   16780:   cat >conftest.$ac_ext <<_ACEOF
                   16781: /* confdefs.h.  */
1.18      millert  16782: _ACEOF
1.23      millert  16783: cat confdefs.h >>conftest.$ac_ext
                   16784: cat >>conftest.$ac_ext <<_ACEOF
                   16785: /* end confdefs.h.  */
1.25      millert  16786: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16787:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16788: #define $ac_func innocuous_$ac_func
                   16789:
                   16790: /* System header to define __stub macros and hopefully few prototypes,
                   16791:     which can conflict with char $ac_func (); below.
                   16792:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16793:     <limits.h> exists even on freestanding compilers.  */
                   16794:
                   16795: #ifdef __STDC__
                   16796: # include <limits.h>
                   16797: #else
                   16798: # include <assert.h>
                   16799: #endif
                   16800:
                   16801: #undef $ac_func
                   16802:
1.27      millert  16803: /* Override any GCC internal prototype to avoid an error.
                   16804:    Use char because int might match the return type of a GCC
                   16805:    builtin and then its argument prototype would still apply.  */
1.25      millert  16806: #ifdef __cplusplus
                   16807: extern "C"
                   16808: #endif
                   16809: char $ac_func ();
                   16810: /* The GNU C library defines this for functions which it implements
                   16811:     to always fail with ENOSYS.  Some functions are actually named
                   16812:     something starting with __ and the normal name is an alias.  */
1.27      millert  16813: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16814: choke me
                   16815: #endif
1.18      millert  16816:
1.23      millert  16817: int
                   16818: main ()
                   16819: {
1.27      millert  16820: return $ac_func ();
1.25      millert  16821:   ;
                   16822:   return 0;
                   16823: }
1.9       millert  16824: _ACEOF
1.27      millert  16825: rm -f conftest.$ac_objext conftest$ac_exeext
                   16826: if { (ac_try="$ac_link"
                   16827: case "(($ac_try" in
                   16828:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16829:   *) ac_try_echo=$ac_try;;
                   16830: esac
                   16831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16832:   (eval "$ac_link") 2>conftest.er1
1.25      millert  16833:   ac_status=$?
                   16834:   grep -v '^ *+' conftest.er1 >conftest.err
                   16835:   rm -f conftest.er1
                   16836:   cat conftest.err >&5
                   16837:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16838:   (exit $ac_status); } && {
                   16839:         test -z "$ac_c_werror_flag" ||
                   16840:         test ! -s conftest.err
                   16841:        } && test -s conftest$ac_exeext &&
                   16842:        $as_test_x conftest$ac_exeext; then
                   16843:   eval "$as_ac_var=yes"
1.1       millert  16844: else
1.25      millert  16845:   echo "$as_me: failed program was:" >&5
                   16846: sed 's/^/| /' conftest.$ac_ext >&5
                   16847:
1.27      millert  16848:        eval "$as_ac_var=no"
1.23      millert  16849: fi
1.27      millert  16850:
                   16851: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   16852:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  16853: fi
1.27      millert  16854: ac_res=`eval echo '${'$as_ac_var'}'`
                   16855:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16856: echo "${ECHO_T}$ac_res" >&6; }
                   16857: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16858:   cat >>confdefs.h <<_ACEOF
                   16859: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16860: _ACEOF
1.16      millert  16861:
                   16862: fi
1.27      millert  16863: done
                   16864:  case " $LIBOBJS " in
                   16865:   *" utimes.$ac_objext "* ) ;;
                   16866:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
                   16867:  ;;
                   16868: esac
1.9       millert  16869:
                   16870: fi
1.27      millert  16871: done
1.16      millert  16872:
1.27      millert  16873: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
                   16874: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
                   16875: if test "${sudo_cv_func_fnmatch+set}" = set; then
                   16876:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16877: else
                   16878:   rm -f conftestdata; > conftestdata
                   16879: if test "$cross_compiling" = yes; then
                   16880:   sudo_cv_func_fnmatch=no
                   16881: else
                   16882:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16883: /* confdefs.h.  */
                   16884: _ACEOF
                   16885: cat confdefs.h >>conftest.$ac_ext
                   16886: cat >>conftest.$ac_ext <<_ACEOF
                   16887: /* end confdefs.h.  */
1.27      millert  16888: #include <fnmatch.h>
                   16889: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.16      millert  16890: _ACEOF
1.27      millert  16891: rm -f conftest$ac_exeext
                   16892: if { (ac_try="$ac_link"
                   16893: case "(($ac_try" in
                   16894:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16895:   *) ac_try_echo=$ac_try;;
                   16896: esac
                   16897: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16898:   (eval "$ac_link") 2>&5
1.25      millert  16899:   ac_status=$?
                   16900:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16901:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   16902:   { (case "(($ac_try" in
                   16903:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16904:   *) ac_try_echo=$ac_try;;
                   16905: esac
                   16906: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16907:   (eval "$ac_try") 2>&5
1.16      millert  16908:   ac_status=$?
                   16909:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16910:   (exit $ac_status); }; }; then
1.27      millert  16911:   sudo_cv_func_fnmatch=yes
1.1       millert  16912: else
1.27      millert  16913:   echo "$as_me: program exited with status $ac_status" >&5
                   16914: echo "$as_me: failed program was:" >&5
1.16      millert  16915: sed 's/^/| /' conftest.$ac_ext >&5
                   16916:
1.27      millert  16917: ( exit $ac_status )
                   16918: sudo_cv_func_fnmatch=no
1.16      millert  16919: fi
1.27      millert  16920: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   16921: fi
                   16922:
                   16923:
                   16924: rm -f core core.* *.core
1.25      millert  16925: fi
1.27      millert  16926:
                   16927: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
                   16928: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
                   16929: if test $sudo_cv_func_fnmatch = yes; then
1.25      millert  16930:   cat >>confdefs.h <<\_ACEOF
1.27      millert  16931: #define HAVE_FNMATCH 1
1.25      millert  16932: _ACEOF
                   16933:
1.9       millert  16934: else
1.27      millert  16935:   case " $LIBOBJS " in
                   16936:   *" fnmatch.$ac_objext "* ) ;;
                   16937:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
                   16938:  ;;
                   16939: esac
                   16940:
                   16941: fi
1.16      millert  16942:
1.27      millert  16943: { echo "$as_me:$LINENO: checking for isblank" >&5
                   16944: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
                   16945: if test "${sudo_cv_func_isblank+set}" = set; then
                   16946:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16947: else
                   16948:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16949: /* confdefs.h.  */
                   16950: _ACEOF
                   16951: cat confdefs.h >>conftest.$ac_ext
                   16952: cat >>conftest.$ac_ext <<_ACEOF
                   16953: /* end confdefs.h.  */
1.27      millert  16954: #include <ctype.h>
1.9       millert  16955: int
                   16956: main ()
                   16957: {
1.27      millert  16958: return (isblank('a'));
1.9       millert  16959:   ;
                   16960:   return 0;
                   16961: }
                   16962: _ACEOF
1.23      millert  16963: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16964: if { (ac_try="$ac_link"
                   16965: case "(($ac_try" in
                   16966:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16967:   *) ac_try_echo=$ac_try;;
                   16968: esac
                   16969: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16970:   (eval "$ac_link") 2>conftest.er1
1.9       millert  16971:   ac_status=$?
1.25      millert  16972:   grep -v '^ *+' conftest.er1 >conftest.err
                   16973:   rm -f conftest.er1
                   16974:   cat conftest.err >&5
1.16      millert  16975:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16976:   (exit $ac_status); } && {
                   16977:         test -z "$ac_c_werror_flag" ||
                   16978:         test ! -s conftest.err
                   16979:        } && test -s conftest$ac_exeext &&
                   16980:        $as_test_x conftest$ac_exeext; then
                   16981:   sudo_cv_func_isblank=yes
1.25      millert  16982: else
                   16983:   echo "$as_me: failed program was:" >&5
                   16984: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  16985:
1.27      millert  16986:        sudo_cv_func_isblank=no
1.25      millert  16987: fi
1.27      millert  16988:
                   16989: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16990:       conftest$ac_exeext conftest.$ac_ext
                   16991: fi
1.27      millert  16992: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
                   16993: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
                   16994:
                   16995:   if test "$sudo_cv_func_isblank" = "yes"; then
                   16996:
                   16997: cat >>confdefs.h <<\_ACEOF
                   16998: #define HAVE_ISBLANK 1
                   16999: _ACEOF
                   17000:
                   17001:   fi
                   17002:
                   17003:
                   17004:
                   17005:
                   17006:
                   17007:
1.9       millert  17008:
1.27      millert  17009: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
                   17010: do
                   17011: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17012: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17013: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17014: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17015:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  17016: else
1.9       millert  17017:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17018: /* confdefs.h.  */
                   17019: _ACEOF
                   17020: cat confdefs.h >>conftest.$ac_ext
                   17021: cat >>conftest.$ac_ext <<_ACEOF
1.25      millert  17022: /* end confdefs.h.  */
1.27      millert  17023: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25      millert  17024:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  17025: #define $ac_func innocuous_$ac_func
1.25      millert  17026:
                   17027: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  17028:     which can conflict with char $ac_func (); below.
1.25      millert  17029:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17030:     <limits.h> exists even on freestanding compilers.  */
                   17031:
                   17032: #ifdef __STDC__
                   17033: # include <limits.h>
                   17034: #else
                   17035: # include <assert.h>
                   17036: #endif
                   17037:
1.27      millert  17038: #undef $ac_func
1.25      millert  17039:
1.27      millert  17040: /* Override any GCC internal prototype to avoid an error.
                   17041:    Use char because int might match the return type of a GCC
                   17042:    builtin and then its argument prototype would still apply.  */
1.25      millert  17043: #ifdef __cplusplus
                   17044: extern "C"
                   17045: #endif
1.27      millert  17046: char $ac_func ();
1.25      millert  17047: /* The GNU C library defines this for functions which it implements
                   17048:     to always fail with ENOSYS.  Some functions are actually named
                   17049:     something starting with __ and the normal name is an alias.  */
1.27      millert  17050: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17051: choke me
                   17052: #endif
                   17053:
                   17054: int
                   17055: main ()
                   17056: {
1.27      millert  17057: return $ac_func ();
1.25      millert  17058:   ;
                   17059:   return 0;
                   17060: }
                   17061: _ACEOF
                   17062: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17063: if { (ac_try="$ac_link"
                   17064: case "(($ac_try" in
                   17065:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17066:   *) ac_try_echo=$ac_try;;
                   17067: esac
                   17068: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17069:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17070:   ac_status=$?
                   17071:   grep -v '^ *+' conftest.er1 >conftest.err
                   17072:   rm -f conftest.er1
                   17073:   cat conftest.err >&5
                   17074:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17075:   (exit $ac_status); } && {
                   17076:         test -z "$ac_c_werror_flag" ||
                   17077:         test ! -s conftest.err
                   17078:        } && test -s conftest$ac_exeext &&
                   17079:        $as_test_x conftest$ac_exeext; then
                   17080:   eval "$as_ac_var=yes"
1.23      millert  17081: else
1.25      millert  17082:   echo "$as_me: failed program was:" >&5
1.23      millert  17083: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17084:
1.27      millert  17085:        eval "$as_ac_var=no"
1.23      millert  17086: fi
1.27      millert  17087:
                   17088: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17089:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17090: fi
1.27      millert  17091: ac_res=`eval echo '${'$as_ac_var'}'`
                   17092:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17093: echo "${ECHO_T}$ac_res" >&6; }
                   17094: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17095:   cat >>confdefs.h <<_ACEOF
                   17096: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17097: _ACEOF
                   17098:
1.23      millert  17099: else
1.27      millert  17100:   case " $LIBOBJS " in
                   17101:   *" $ac_func.$ac_objext "* ) ;;
                   17102:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   17103:  ;;
                   17104: esac
                   17105:
                   17106: fi
                   17107: done
                   17108:
                   17109:
                   17110:
                   17111: for ac_func in closefrom
                   17112: do
                   17113: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17114: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17115: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17116: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17117:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17118: else
1.27      millert  17119:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17120: /* confdefs.h.  */
                   17121: _ACEOF
                   17122: cat confdefs.h >>conftest.$ac_ext
                   17123: cat >>conftest.$ac_ext <<_ACEOF
                   17124: /* end confdefs.h.  */
1.27      millert  17125: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17126:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17127: #define $ac_func innocuous_$ac_func
                   17128:
                   17129: /* System header to define __stub macros and hopefully few prototypes,
                   17130:     which can conflict with char $ac_func (); below.
                   17131:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17132:     <limits.h> exists even on freestanding compilers.  */
                   17133:
                   17134: #ifdef __STDC__
                   17135: # include <limits.h>
                   17136: #else
                   17137: # include <assert.h>
                   17138: #endif
1.25      millert  17139:
1.27      millert  17140: #undef $ac_func
                   17141:
                   17142: /* Override any GCC internal prototype to avoid an error.
                   17143:    Use char because int might match the return type of a GCC
                   17144:    builtin and then its argument prototype would still apply.  */
1.25      millert  17145: #ifdef __cplusplus
                   17146: extern "C"
                   17147: #endif
1.27      millert  17148: char $ac_func ();
                   17149: /* The GNU C library defines this for functions which it implements
                   17150:     to always fail with ENOSYS.  Some functions are actually named
                   17151:     something starting with __ and the normal name is an alias.  */
                   17152: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17153: choke me
                   17154: #endif
                   17155:
1.25      millert  17156: int
                   17157: main ()
                   17158: {
1.27      millert  17159: return $ac_func ();
1.25      millert  17160:   ;
                   17161:   return 0;
1.9       millert  17162: }
                   17163: _ACEOF
1.25      millert  17164: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17165: if { (ac_try="$ac_link"
                   17166: case "(($ac_try" in
                   17167:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17168:   *) ac_try_echo=$ac_try;;
                   17169: esac
                   17170: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17171:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17172:   ac_status=$?
                   17173:   grep -v '^ *+' conftest.er1 >conftest.err
                   17174:   rm -f conftest.er1
                   17175:   cat conftest.err >&5
                   17176:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17177:   (exit $ac_status); } && {
                   17178:         test -z "$ac_c_werror_flag" ||
                   17179:         test ! -s conftest.err
                   17180:        } && test -s conftest$ac_exeext &&
                   17181:        $as_test_x conftest$ac_exeext; then
                   17182:   eval "$as_ac_var=yes"
1.7       millert  17183: else
1.25      millert  17184:   echo "$as_me: failed program was:" >&5
1.16      millert  17185: sed 's/^/| /' conftest.$ac_ext >&5
                   17186:
1.27      millert  17187:        eval "$as_ac_var=no"
1.23      millert  17188: fi
1.27      millert  17189:
                   17190: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17191:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  17192: fi
                   17193: ac_res=`eval echo '${'$as_ac_var'}'`
                   17194:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17195: echo "${ECHO_T}$ac_res" >&6; }
                   17196: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17197:   cat >>confdefs.h <<_ACEOF
                   17198: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17199: _ACEOF
                   17200:
                   17201: else
                   17202:   case " $LIBOBJS " in
                   17203:   *" closefrom.$ac_objext "* ) ;;
                   17204:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
                   17205:  ;;
                   17206: esac
                   17207:
                   17208:     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
                   17209: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
                   17210: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.9       millert  17211:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17212: else
1.27      millert  17213:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17214: /* confdefs.h.  */
                   17215: _ACEOF
                   17216: cat confdefs.h >>conftest.$ac_ext
                   17217: cat >>conftest.$ac_ext <<_ACEOF
                   17218: /* end confdefs.h.  */
1.27      millert  17219:  #include <limits.h>
                   17220:          #include <fcntl.h>
1.25      millert  17221:
1.9       millert  17222: int
                   17223: main ()
                   17224: {
1.27      millert  17225: #ifndef F_CLOSEM
                   17226:   (void) F_CLOSEM;
                   17227: #endif
                   17228:
1.9       millert  17229:   ;
                   17230:   return 0;
                   17231: }
                   17232: _ACEOF
1.27      millert  17233: rm -f conftest.$ac_objext
                   17234: if { (ac_try="$ac_compile"
                   17235: case "(($ac_try" in
                   17236:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17237:   *) ac_try_echo=$ac_try;;
                   17238: esac
                   17239: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17240:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17241:   ac_status=$?
1.25      millert  17242:   grep -v '^ *+' conftest.er1 >conftest.err
                   17243:   rm -f conftest.er1
                   17244:   cat conftest.err >&5
1.16      millert  17245:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17246:   (exit $ac_status); } && {
                   17247:         test -z "$ac_c_werror_flag" ||
                   17248:         test ! -s conftest.err
                   17249:        } && test -s conftest.$ac_objext; then
                   17250:   ac_cv_have_decl_F_CLOSEM=yes
1.1       millert  17251: else
1.9       millert  17252:   echo "$as_me: failed program was:" >&5
1.16      millert  17253: sed 's/^/| /' conftest.$ac_ext >&5
                   17254:
1.27      millert  17255:        ac_cv_have_decl_F_CLOSEM=no
                   17256: fi
                   17257:
                   17258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17259: fi
                   17260: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
                   17261: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
                   17262: if test $ac_cv_have_decl_F_CLOSEM = yes; then
                   17263:   cat >>confdefs.h <<\_ACEOF
                   17264: #define HAVE_FCNTL_CLOSEM 1
                   17265: _ACEOF
                   17266:
1.1       millert  17267: fi
1.27      millert  17268:
                   17269:
1.1       millert  17270: fi
1.27      millert  17271: done
                   17272:
                   17273:
                   17274: for ac_func in mkstemp
                   17275: do
                   17276: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17277: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17278: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17279: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17280:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17281: else
1.27      millert  17282:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17283: /* confdefs.h.  */
                   17284: _ACEOF
                   17285: cat confdefs.h >>conftest.$ac_ext
                   17286: cat >>conftest.$ac_ext <<_ACEOF
                   17287: /* end confdefs.h.  */
1.27      millert  17288: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17289:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17290: #define $ac_func innocuous_$ac_func
1.25      millert  17291:
1.27      millert  17292: /* System header to define __stub macros and hopefully few prototypes,
                   17293:     which can conflict with char $ac_func (); below.
                   17294:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17295:     <limits.h> exists even on freestanding compilers.  */
                   17296:
                   17297: #ifdef __STDC__
                   17298: # include <limits.h>
                   17299: #else
                   17300: # include <assert.h>
                   17301: #endif
                   17302:
                   17303: #undef $ac_func
                   17304:
                   17305: /* Override any GCC internal prototype to avoid an error.
                   17306:    Use char because int might match the return type of a GCC
                   17307:    builtin and then its argument prototype would still apply.  */
1.23      millert  17308: #ifdef __cplusplus
                   17309: extern "C"
                   17310: #endif
1.27      millert  17311: char $ac_func ();
                   17312: /* The GNU C library defines this for functions which it implements
                   17313:     to always fail with ENOSYS.  Some functions are actually named
                   17314:     something starting with __ and the normal name is an alias.  */
                   17315: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17316: choke me
                   17317: #endif
                   17318:
1.23      millert  17319: int
                   17320: main ()
                   17321: {
1.27      millert  17322: return $ac_func ();
1.23      millert  17323:   ;
                   17324:   return 0;
                   17325: }
1.9       millert  17326: _ACEOF
1.23      millert  17327: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17328: if { (ac_try="$ac_link"
                   17329: case "(($ac_try" in
                   17330:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17331:   *) ac_try_echo=$ac_try;;
                   17332: esac
                   17333: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17334:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17335:   ac_status=$?
1.25      millert  17336:   grep -v '^ *+' conftest.er1 >conftest.err
                   17337:   rm -f conftest.er1
                   17338:   cat conftest.err >&5
1.23      millert  17339:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17340:   (exit $ac_status); } && {
                   17341:         test -z "$ac_c_werror_flag" ||
                   17342:         test ! -s conftest.err
                   17343:        } && test -s conftest$ac_exeext &&
                   17344:        $as_test_x conftest$ac_exeext; then
                   17345:   eval "$as_ac_var=yes"
1.1       millert  17346: else
1.23      millert  17347:   echo "$as_me: failed program was:" >&5
                   17348: sed 's/^/| /' conftest.$ac_ext >&5
                   17349:
1.27      millert  17350:        eval "$as_ac_var=no"
1.25      millert  17351: fi
1.27      millert  17352:
                   17353: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17354:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  17355: fi
1.27      millert  17356: ac_res=`eval echo '${'$as_ac_var'}'`
                   17357:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17358: echo "${ECHO_T}$ac_res" >&6; }
                   17359: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17360:   cat >>confdefs.h <<_ACEOF
                   17361: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17362: _ACEOF
1.25      millert  17363:
1.27      millert  17364: else
                   17365:   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.1       millert  17366:
                   17367:
1.27      millert  17368: for ac_func in random lrand48
                   17369: do
                   17370: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17371: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17372: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17373: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17374:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17375: else
1.9       millert  17376:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17377: /* confdefs.h.  */
                   17378: _ACEOF
                   17379: cat confdefs.h >>conftest.$ac_ext
                   17380: cat >>conftest.$ac_ext <<_ACEOF
                   17381: /* end confdefs.h.  */
1.27      millert  17382: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25      millert  17383:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  17384: #define $ac_func innocuous_$ac_func
1.25      millert  17385:
1.23      millert  17386: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  17387:     which can conflict with char $ac_func (); below.
1.23      millert  17388:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17389:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17390:
1.23      millert  17391: #ifdef __STDC__
                   17392: # include <limits.h>
                   17393: #else
                   17394: # include <assert.h>
                   17395: #endif
1.25      millert  17396:
1.27      millert  17397: #undef $ac_func
1.25      millert  17398:
1.27      millert  17399: /* Override any GCC internal prototype to avoid an error.
                   17400:    Use char because int might match the return type of a GCC
                   17401:    builtin and then its argument prototype would still apply.  */
1.23      millert  17402: #ifdef __cplusplus
                   17403: extern "C"
                   17404: #endif
1.27      millert  17405: char $ac_func ();
1.23      millert  17406: /* The GNU C library defines this for functions which it implements
                   17407:     to always fail with ENOSYS.  Some functions are actually named
                   17408:     something starting with __ and the normal name is an alias.  */
1.27      millert  17409: #if defined __stub_$ac_func || defined __stub___$ac_func
1.23      millert  17410: choke me
1.1       millert  17411: #endif
                   17412:
1.9       millert  17413: int
                   17414: main ()
                   17415: {
1.27      millert  17416: return $ac_func ();
1.9       millert  17417:   ;
                   17418:   return 0;
                   17419: }
                   17420: _ACEOF
1.23      millert  17421: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17422: if { (ac_try="$ac_link"
                   17423: case "(($ac_try" in
                   17424:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17425:   *) ac_try_echo=$ac_try;;
                   17426: esac
                   17427: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17428:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17429:   ac_status=$?
1.25      millert  17430:   grep -v '^ *+' conftest.er1 >conftest.err
                   17431:   rm -f conftest.er1
                   17432:   cat conftest.err >&5
1.16      millert  17433:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17434:   (exit $ac_status); } && {
                   17435:         test -z "$ac_c_werror_flag" ||
                   17436:         test ! -s conftest.err
                   17437:        } && test -s conftest$ac_exeext &&
                   17438:        $as_test_x conftest$ac_exeext; then
                   17439:   eval "$as_ac_var=yes"
1.23      millert  17440: else
                   17441:   echo "$as_me: failed program was:" >&5
                   17442: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17443:
1.27      millert  17444:        eval "$as_ac_var=no"
1.23      millert  17445: fi
1.27      millert  17446:
                   17447: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17448:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17449: fi
1.27      millert  17450: ac_res=`eval echo '${'$as_ac_var'}'`
                   17451:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17452: echo "${ECHO_T}$ac_res" >&6; }
                   17453: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17454:   cat >>confdefs.h <<_ACEOF
                   17455: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17456: _ACEOF
                   17457:  break
                   17458: fi
                   17459: done
                   17460:
                   17461:
                   17462: fi
                   17463: done
                   17464:
                   17465:
                   17466:
                   17467:
                   17468:
                   17469: for ac_func in snprintf vsnprintf asprintf vasprintf
                   17470: do
                   17471: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17472: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17473: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17474: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17475:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17476: else
1.27      millert  17477:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17478: /* confdefs.h.  */
                   17479: _ACEOF
                   17480: cat confdefs.h >>conftest.$ac_ext
1.23      millert  17481: cat >>conftest.$ac_ext <<_ACEOF
                   17482: /* end confdefs.h.  */
1.27      millert  17483: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17484:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17485: #define $ac_func innocuous_$ac_func
                   17486:
                   17487: /* System header to define __stub macros and hopefully few prototypes,
                   17488:     which can conflict with char $ac_func (); below.
                   17489:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17490:     <limits.h> exists even on freestanding compilers.  */
                   17491:
                   17492: #ifdef __STDC__
                   17493: # include <limits.h>
                   17494: #else
                   17495: # include <assert.h>
                   17496: #endif
                   17497:
                   17498: #undef $ac_func
1.25      millert  17499:
1.27      millert  17500: /* Override any GCC internal prototype to avoid an error.
                   17501:    Use char because int might match the return type of a GCC
                   17502:    builtin and then its argument prototype would still apply.  */
1.23      millert  17503: #ifdef __cplusplus
                   17504: extern "C"
                   17505: #endif
1.27      millert  17506: char $ac_func ();
                   17507: /* The GNU C library defines this for functions which it implements
                   17508:     to always fail with ENOSYS.  Some functions are actually named
                   17509:     something starting with __ and the normal name is an alias.  */
                   17510: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17511: choke me
                   17512: #endif
                   17513:
1.23      millert  17514: int
                   17515: main ()
                   17516: {
1.27      millert  17517: return $ac_func ();
1.23      millert  17518:   ;
                   17519:   return 0;
1.1       millert  17520: }
1.9       millert  17521: _ACEOF
1.23      millert  17522: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17523: if { (ac_try="$ac_link"
                   17524: case "(($ac_try" in
                   17525:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17526:   *) ac_try_echo=$ac_try;;
                   17527: esac
                   17528: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17529:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17530:   ac_status=$?
1.25      millert  17531:   grep -v '^ *+' conftest.er1 >conftest.err
                   17532:   rm -f conftest.er1
                   17533:   cat conftest.err >&5
1.16      millert  17534:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17535:   (exit $ac_status); } && {
                   17536:         test -z "$ac_c_werror_flag" ||
                   17537:         test ! -s conftest.err
                   17538:        } && test -s conftest$ac_exeext &&
                   17539:        $as_test_x conftest$ac_exeext; then
                   17540:   eval "$as_ac_var=yes"
1.1       millert  17541: else
1.23      millert  17542:   echo "$as_me: failed program was:" >&5
1.16      millert  17543: sed 's/^/| /' conftest.$ac_ext >&5
                   17544:
1.27      millert  17545:        eval "$as_ac_var=no"
1.23      millert  17546: fi
1.27      millert  17547:
                   17548: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17549:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  17550: fi
1.27      millert  17551: ac_res=`eval echo '${'$as_ac_var'}'`
                   17552:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17553: echo "${ECHO_T}$ac_res" >&6; }
                   17554: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17555:   cat >>confdefs.h <<_ACEOF
                   17556: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17557: _ACEOF
                   17558:
1.25      millert  17559: else
1.27      millert  17560:   NEED_SNPRINTF=1
                   17561: fi
                   17562: done
                   17563:
                   17564: if test X"$ac_cv_type_struct_timespec" != X"no"; then
                   17565:     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
                   17566: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
                   17567: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.23      millert  17568:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17569: else
1.27      millert  17570:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17571: /* confdefs.h.  */
                   17572: _ACEOF
                   17573: cat confdefs.h >>conftest.$ac_ext
                   17574: cat >>conftest.$ac_ext <<_ACEOF
                   17575: /* end confdefs.h.  */
1.27      millert  17576: $ac_includes_default
1.9       millert  17577: int
                   17578: main ()
                   17579: {
1.27      millert  17580: static struct stat ac_aggr;
                   17581: if (ac_aggr.st_mtim)
                   17582: return 0;
1.9       millert  17583:   ;
                   17584:   return 0;
                   17585: }
                   17586: _ACEOF
1.27      millert  17587: rm -f conftest.$ac_objext
                   17588: if { (ac_try="$ac_compile"
                   17589: case "(($ac_try" in
                   17590:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17591:   *) ac_try_echo=$ac_try;;
                   17592: esac
                   17593: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17594:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17595:   ac_status=$?
1.25      millert  17596:   grep -v '^ *+' conftest.er1 >conftest.err
                   17597:   rm -f conftest.er1
                   17598:   cat conftest.err >&5
1.16      millert  17599:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17600:   (exit $ac_status); } && {
                   17601:         test -z "$ac_c_werror_flag" ||
                   17602:         test ! -s conftest.err
                   17603:        } && test -s conftest.$ac_objext; then
                   17604:   ac_cv_member_struct_stat_st_mtim=yes
1.23      millert  17605: else
                   17606:   echo "$as_me: failed program was:" >&5
                   17607: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17608:
1.27      millert  17609:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17610: /* confdefs.h.  */
                   17611: _ACEOF
                   17612: cat confdefs.h >>conftest.$ac_ext
                   17613: cat >>conftest.$ac_ext <<_ACEOF
                   17614: /* end confdefs.h.  */
1.27      millert  17615: $ac_includes_default
1.23      millert  17616: int
                   17617: main ()
                   17618: {
1.27      millert  17619: static struct stat ac_aggr;
                   17620: if (sizeof ac_aggr.st_mtim)
                   17621: return 0;
1.23      millert  17622:   ;
                   17623:   return 0;
                   17624: }
1.9       millert  17625: _ACEOF
1.27      millert  17626: rm -f conftest.$ac_objext
                   17627: if { (ac_try="$ac_compile"
                   17628: case "(($ac_try" in
                   17629:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17630:   *) ac_try_echo=$ac_try;;
                   17631: esac
                   17632: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17633:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17634:   ac_status=$?
1.25      millert  17635:   grep -v '^ *+' conftest.er1 >conftest.err
                   17636:   rm -f conftest.er1
                   17637:   cat conftest.err >&5
1.16      millert  17638:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17639:   (exit $ac_status); } && {
                   17640:         test -z "$ac_c_werror_flag" ||
                   17641:         test ! -s conftest.err
                   17642:        } && test -s conftest.$ac_objext; then
                   17643:   ac_cv_member_struct_stat_st_mtim=yes
1.1       millert  17644: else
1.23      millert  17645:   echo "$as_me: failed program was:" >&5
1.16      millert  17646: sed 's/^/| /' conftest.$ac_ext >&5
                   17647:
1.27      millert  17648:        ac_cv_member_struct_stat_st_mtim=no
1.25      millert  17649: fi
                   17650:
1.27      millert  17651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  17652: fi
                   17653:
1.27      millert  17654: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  17655: fi
1.27      millert  17656: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
                   17657: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
                   17658: if test $ac_cv_member_struct_stat_st_mtim = yes; then
                   17659:   cat >>confdefs.h <<\_ACEOF
                   17660: #define HAVE_ST_MTIM 1
                   17661: _ACEOF
1.25      millert  17662:
1.27      millert  17663: else
                   17664:   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
                   17665: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
                   17666: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9       millert  17667:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17668: else
1.9       millert  17669:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17670: /* confdefs.h.  */
                   17671: _ACEOF
                   17672: cat confdefs.h >>conftest.$ac_ext
                   17673: cat >>conftest.$ac_ext <<_ACEOF
                   17674: /* end confdefs.h.  */
1.27      millert  17675: $ac_includes_default
1.23      millert  17676: int
                   17677: main ()
                   17678: {
1.27      millert  17679: static struct stat ac_aggr;
                   17680: if (ac_aggr.st_mtimespec)
                   17681: return 0;
1.23      millert  17682:   ;
                   17683:   return 0;
1.1       millert  17684: }
1.9       millert  17685: _ACEOF
1.27      millert  17686: rm -f conftest.$ac_objext
                   17687: if { (ac_try="$ac_compile"
                   17688: case "(($ac_try" in
                   17689:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17690:   *) ac_try_echo=$ac_try;;
                   17691: esac
                   17692: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17693:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17694:   ac_status=$?
1.25      millert  17695:   grep -v '^ *+' conftest.er1 >conftest.err
                   17696:   rm -f conftest.er1
                   17697:   cat conftest.err >&5
1.16      millert  17698:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17699:   (exit $ac_status); } && {
                   17700:         test -z "$ac_c_werror_flag" ||
                   17701:         test ! -s conftest.err
                   17702:        } && test -s conftest.$ac_objext; then
                   17703:   ac_cv_member_struct_stat_st_mtimespec=yes
1.1       millert  17704: else
1.23      millert  17705:   echo "$as_me: failed program was:" >&5
1.16      millert  17706: sed 's/^/| /' conftest.$ac_ext >&5
                   17707:
1.27      millert  17708:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17709: /* confdefs.h.  */
                   17710: _ACEOF
                   17711: cat confdefs.h >>conftest.$ac_ext
                   17712: cat >>conftest.$ac_ext <<_ACEOF
                   17713: /* end confdefs.h.  */
1.27      millert  17714: $ac_includes_default
1.9       millert  17715: int
                   17716: main ()
                   17717: {
1.27      millert  17718: static struct stat ac_aggr;
                   17719: if (sizeof ac_aggr.st_mtimespec)
                   17720: return 0;
1.9       millert  17721:   ;
                   17722:   return 0;
                   17723: }
                   17724: _ACEOF
1.27      millert  17725: rm -f conftest.$ac_objext
                   17726: if { (ac_try="$ac_compile"
                   17727: case "(($ac_try" in
                   17728:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17729:   *) ac_try_echo=$ac_try;;
                   17730: esac
                   17731: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17732:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17733:   ac_status=$?
1.25      millert  17734:   grep -v '^ *+' conftest.er1 >conftest.err
                   17735:   rm -f conftest.er1
                   17736:   cat conftest.err >&5
1.16      millert  17737:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17738:   (exit $ac_status); } && {
                   17739:         test -z "$ac_c_werror_flag" ||
                   17740:         test ! -s conftest.err
                   17741:        } && test -s conftest.$ac_objext; then
                   17742:   ac_cv_member_struct_stat_st_mtimespec=yes
1.16      millert  17743: else
                   17744:   echo "$as_me: failed program was:" >&5
                   17745: sed 's/^/| /' conftest.$ac_ext >&5
                   17746:
1.27      millert  17747:        ac_cv_member_struct_stat_st_mtimespec=no
                   17748: fi
                   17749:
                   17750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17751: fi
                   17752:
                   17753: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17754: fi
                   17755: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
                   17756: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
                   17757: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
                   17758:   cat >>confdefs.h <<\_ACEOF
                   17759: #define HAVE_ST_MTIMESPEC 1
                   17760: _ACEOF
                   17761:
1.16      millert  17762: fi
1.27      millert  17763:
1.16      millert  17764: fi
1.27      millert  17765:
                   17766:     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
                   17767: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
                   17768:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17769: /* confdefs.h.  */
                   17770: _ACEOF
                   17771: cat confdefs.h >>conftest.$ac_ext
                   17772: cat >>conftest.$ac_ext <<_ACEOF
                   17773: /* end confdefs.h.  */
1.27      millert  17774: #include <sys/types.h>
                   17775: #include <sys/time.h>
1.16      millert  17776: int
                   17777: main ()
                   17778: {
1.27      millert  17779: struct timespec ts1, ts2;
                   17780: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
                   17781: #ifndef timespecsub
                   17782: #error missing timespecsub
                   17783: #endif
                   17784: timespecsub(&ts1, &ts2);
1.16      millert  17785:   ;
                   17786:   return 0;
                   17787: }
                   17788: _ACEOF
1.27      millert  17789: rm -f conftest.$ac_objext
                   17790: if { (ac_try="$ac_compile"
                   17791: case "(($ac_try" in
                   17792:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17793:   *) ac_try_echo=$ac_try;;
                   17794: esac
                   17795: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17796:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  17797:   ac_status=$?
1.25      millert  17798:   grep -v '^ *+' conftest.er1 >conftest.err
                   17799:   rm -f conftest.er1
                   17800:   cat conftest.err >&5
1.16      millert  17801:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17802:   (exit $ac_status); } && {
                   17803:         test -z "$ac_c_werror_flag" ||
                   17804:         test ! -s conftest.err
                   17805:        } && test -s conftest.$ac_objext; then
                   17806:   cat >>confdefs.h <<\_ACEOF
                   17807: #define HAVE_TIMESPECSUB2 1
                   17808: _ACEOF
                   17809:
                   17810:     { echo "$as_me:$LINENO: result: yes" >&5
                   17811: echo "${ECHO_T}yes" >&6; }
1.1       millert  17812: else
1.9       millert  17813:   echo "$as_me: failed program was:" >&5
1.16      millert  17814: sed 's/^/| /' conftest.$ac_ext >&5
                   17815:
1.27      millert  17816:        { echo "$as_me:$LINENO: result: no" >&5
                   17817: echo "${ECHO_T}no" >&6; }
1.1       millert  17818: fi
1.27      millert  17819:
                   17820: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  17821: fi
1.25      millert  17822: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17823: /* confdefs.h.  */
                   17824: _ACEOF
                   17825: cat confdefs.h >>conftest.$ac_ext
                   17826: cat >>conftest.$ac_ext <<_ACEOF
                   17827: /* end confdefs.h.  */
1.27      millert  17828: #include <sys/types.h>
                   17829: #include <$ac_header_dirent>
1.16      millert  17830: int
                   17831: main ()
                   17832: {
1.27      millert  17833: DIR d; (void)dirfd(&d);
1.9       millert  17834:   ;
                   17835:   return 0;
                   17836: }
                   17837: _ACEOF
                   17838: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17839: if { (ac_try="$ac_link"
                   17840: case "(($ac_try" in
                   17841:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17842:   *) ac_try_echo=$ac_try;;
                   17843: esac
                   17844: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17845:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17846:   ac_status=$?
1.25      millert  17847:   grep -v '^ *+' conftest.er1 >conftest.err
                   17848:   rm -f conftest.er1
                   17849:   cat conftest.err >&5
1.16      millert  17850:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17851:   (exit $ac_status); } && {
                   17852:         test -z "$ac_c_werror_flag" ||
                   17853:         test ! -s conftest.err
                   17854:        } && test -s conftest$ac_exeext &&
                   17855:        $as_test_x conftest$ac_exeext; then
                   17856:   cat >>confdefs.h <<\_ACEOF
                   17857: #define HAVE_DIRFD 1
                   17858: _ACEOF
                   17859:
1.9       millert  17860: else
                   17861:   echo "$as_me: failed program was:" >&5
1.16      millert  17862: sed 's/^/| /' conftest.$ac_ext >&5
                   17863:
1.27      millert  17864:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17865: /* confdefs.h.  */
                   17866: _ACEOF
                   17867: cat confdefs.h >>conftest.$ac_ext
                   17868: cat >>conftest.$ac_ext <<_ACEOF
                   17869: /* end confdefs.h.  */
1.27      millert  17870: #include <sys/types.h>
                   17871: #include <$ac_header_dirent>
1.16      millert  17872: int
                   17873: main ()
                   17874: {
1.27      millert  17875: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9       millert  17876:   ;
                   17877:   return 0;
                   17878: }
                   17879: _ACEOF
                   17880: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17881: if { (ac_try="$ac_link"
                   17882: case "(($ac_try" in
                   17883:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17884:   *) ac_try_echo=$ac_try;;
                   17885: esac
                   17886: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17887:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17888:   ac_status=$?
1.25      millert  17889:   grep -v '^ *+' conftest.er1 >conftest.err
                   17890:   rm -f conftest.er1
                   17891:   cat conftest.err >&5
1.16      millert  17892:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17893:   (exit $ac_status); } && {
                   17894:         test -z "$ac_c_werror_flag" ||
                   17895:         test ! -s conftest.err
                   17896:        } && test -s conftest$ac_exeext &&
                   17897:        $as_test_x conftest$ac_exeext; then
                   17898:   cat >>confdefs.h <<\_ACEOF
                   17899: #define HAVE_DD_FD 1
                   17900: _ACEOF
                   17901:
1.9       millert  17902: else
                   17903:   echo "$as_me: failed program was:" >&5
1.16      millert  17904: sed 's/^/| /' conftest.$ac_ext >&5
                   17905:
1.25      millert  17906:
1.9       millert  17907: fi
1.25      millert  17908:
1.27      millert  17909: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17910:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  17911: fi
                   17912:
1.27      millert  17913: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17914:       conftest$ac_exeext conftest.$ac_ext
                   17915: if test -n "$NEED_SNPRINTF"; then
                   17916:     case " $LIBOBJS " in
                   17917:   *" snprintf.$ac_objext "* ) ;;
                   17918:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
                   17919:  ;;
                   17920: esac
1.1       millert  17921:
1.25      millert  17922: fi
1.27      millert  17923: { echo "$as_me:$LINENO: checking for socket" >&5
                   17924: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
                   17925: if test "${ac_cv_func_socket+set}" = set; then
1.9       millert  17926:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17927: else
1.9       millert  17928:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17929: /* confdefs.h.  */
                   17930: _ACEOF
                   17931: cat confdefs.h >>conftest.$ac_ext
                   17932: cat >>conftest.$ac_ext <<_ACEOF
                   17933: /* end confdefs.h.  */
1.27      millert  17934: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25      millert  17935:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  17936: #define socket innocuous_socket
1.25      millert  17937:
1.1       millert  17938: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  17939:     which can conflict with char socket (); below.
1.16      millert  17940:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17941:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17942:
1.16      millert  17943: #ifdef __STDC__
                   17944: # include <limits.h>
                   17945: #else
                   17946: # include <assert.h>
                   17947: #endif
1.25      millert  17948:
1.27      millert  17949: #undef socket
1.25      millert  17950:
1.27      millert  17951: /* Override any GCC internal prototype to avoid an error.
                   17952:    Use char because int might match the return type of a GCC
                   17953:    builtin and then its argument prototype would still apply.  */
1.9       millert  17954: #ifdef __cplusplus
                   17955: extern "C"
                   17956: #endif
1.27      millert  17957: char socket ();
1.1       millert  17958: /* The GNU C library defines this for functions which it implements
                   17959:     to always fail with ENOSYS.  Some functions are actually named
                   17960:     something starting with __ and the normal name is an alias.  */
1.27      millert  17961: #if defined __stub_socket || defined __stub___socket
1.1       millert  17962: choke me
                   17963: #endif
                   17964:
1.16      millert  17965: int
                   17966: main ()
                   17967: {
1.27      millert  17968: return socket ();
1.9       millert  17969:   ;
                   17970:   return 0;
                   17971: }
                   17972: _ACEOF
                   17973: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17974: if { (ac_try="$ac_link"
                   17975: case "(($ac_try" in
                   17976:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17977:   *) ac_try_echo=$ac_try;;
                   17978: esac
                   17979: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17980:   (eval "$ac_link") 2>conftest.er1
1.13      millert  17981:   ac_status=$?
1.25      millert  17982:   grep -v '^ *+' conftest.er1 >conftest.err
                   17983:   rm -f conftest.er1
                   17984:   cat conftest.err >&5
1.16      millert  17985:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17986:   (exit $ac_status); } && {
                   17987:         test -z "$ac_c_werror_flag" ||
                   17988:         test ! -s conftest.err
                   17989:        } && test -s conftest$ac_exeext &&
                   17990:        $as_test_x conftest$ac_exeext; then
                   17991:   ac_cv_func_socket=yes
1.13      millert  17992: else
                   17993:   echo "$as_me: failed program was:" >&5
1.16      millert  17994: sed 's/^/| /' conftest.$ac_ext >&5
                   17995:
1.27      millert  17996:        ac_cv_func_socket=no
1.13      millert  17997: fi
1.27      millert  17998:
                   17999: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18000:       conftest$ac_exeext conftest.$ac_ext
1.13      millert  18001: fi
1.27      millert  18002: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   18003: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
                   18004: if test $ac_cv_func_socket = yes; then
1.25      millert  18005:   :
                   18006: else
1.27      millert  18007:   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18008: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18009: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13      millert  18010:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18011: else
1.25      millert  18012:   ac_check_lib_save_LIBS=$LIBS
                   18013: LIBS="-lsocket  $LIBS"
                   18014: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18015: /* confdefs.h.  */
                   18016: _ACEOF
                   18017: cat confdefs.h >>conftest.$ac_ext
                   18018: cat >>conftest.$ac_ext <<_ACEOF
                   18019: /* end confdefs.h.  */
1.25      millert  18020:
1.27      millert  18021: /* Override any GCC internal prototype to avoid an error.
                   18022:    Use char because int might match the return type of a GCC
                   18023:    builtin and then its argument prototype would still apply.  */
1.13      millert  18024: #ifdef __cplusplus
                   18025: extern "C"
                   18026: #endif
1.27      millert  18027: char socket ();
1.16      millert  18028: int
                   18029: main ()
                   18030: {
1.27      millert  18031: return socket ();
1.13      millert  18032:   ;
                   18033:   return 0;
                   18034: }
                   18035: _ACEOF
                   18036: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18037: if { (ac_try="$ac_link"
                   18038: case "(($ac_try" in
                   18039:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18040:   *) ac_try_echo=$ac_try;;
                   18041: esac
                   18042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18043:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18044:   ac_status=$?
1.25      millert  18045:   grep -v '^ *+' conftest.er1 >conftest.err
                   18046:   rm -f conftest.er1
                   18047:   cat conftest.err >&5
1.16      millert  18048:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18049:   (exit $ac_status); } && {
                   18050:         test -z "$ac_c_werror_flag" ||
                   18051:         test ! -s conftest.err
                   18052:        } && test -s conftest$ac_exeext &&
                   18053:        $as_test_x conftest$ac_exeext; then
                   18054:   ac_cv_lib_socket_socket=yes
1.9       millert  18055: else
                   18056:   echo "$as_me: failed program was:" >&5
1.16      millert  18057: sed 's/^/| /' conftest.$ac_ext >&5
                   18058:
1.27      millert  18059:        ac_cv_lib_socket_socket=no
1.9       millert  18060: fi
1.27      millert  18061:
                   18062: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18063:       conftest$ac_exeext conftest.$ac_ext
                   18064: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18065: fi
1.27      millert  18066: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   18067: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
                   18068: if test $ac_cv_lib_socket_socket = yes; then
1.25      millert  18069:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18070: else
1.27      millert  18071:   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
                   18072: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
                   18073: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9       millert  18074:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18075: else
1.25      millert  18076:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18077: LIBS="-linet  $LIBS"
1.25      millert  18078: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18079: /* confdefs.h.  */
                   18080: _ACEOF
                   18081: cat confdefs.h >>conftest.$ac_ext
                   18082: cat >>conftest.$ac_ext <<_ACEOF
                   18083: /* end confdefs.h.  */
1.25      millert  18084:
1.27      millert  18085: /* Override any GCC internal prototype to avoid an error.
                   18086:    Use char because int might match the return type of a GCC
                   18087:    builtin and then its argument prototype would still apply.  */
1.9       millert  18088: #ifdef __cplusplus
                   18089: extern "C"
1.1       millert  18090: #endif
1.27      millert  18091: char socket ();
1.16      millert  18092: int
                   18093: main ()
                   18094: {
1.27      millert  18095: return socket ();
1.9       millert  18096:   ;
                   18097:   return 0;
                   18098: }
                   18099: _ACEOF
                   18100: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18101: if { (ac_try="$ac_link"
                   18102: case "(($ac_try" in
                   18103:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18104:   *) ac_try_echo=$ac_try;;
                   18105: esac
                   18106: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18107:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18108:   ac_status=$?
1.25      millert  18109:   grep -v '^ *+' conftest.er1 >conftest.err
                   18110:   rm -f conftest.er1
                   18111:   cat conftest.err >&5
1.16      millert  18112:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18113:   (exit $ac_status); } && {
                   18114:         test -z "$ac_c_werror_flag" ||
                   18115:         test ! -s conftest.err
                   18116:        } && test -s conftest$ac_exeext &&
                   18117:        $as_test_x conftest$ac_exeext; then
                   18118:   ac_cv_lib_inet_socket=yes
1.23      millert  18119: else
                   18120:   echo "$as_me: failed program was:" >&5
                   18121: sed 's/^/| /' conftest.$ac_ext >&5
                   18122:
1.27      millert  18123:        ac_cv_lib_inet_socket=no
1.23      millert  18124: fi
1.27      millert  18125:
                   18126: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18127:       conftest$ac_exeext conftest.$ac_ext
                   18128: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18129: fi
1.27      millert  18130: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
                   18131: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
                   18132: if test $ac_cv_lib_inet_socket = yes; then
                   18133:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23      millert  18134: else
1.27      millert  18135:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
                   18136: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
                   18137: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18138: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18139: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23      millert  18140:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18141: else
                   18142:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18143: LIBS="-lsocket -lnsl $LIBS"
1.23      millert  18144: cat >conftest.$ac_ext <<_ACEOF
                   18145: /* confdefs.h.  */
                   18146: _ACEOF
                   18147: cat confdefs.h >>conftest.$ac_ext
                   18148: cat >>conftest.$ac_ext <<_ACEOF
                   18149: /* end confdefs.h.  */
                   18150:
1.27      millert  18151: /* Override any GCC internal prototype to avoid an error.
                   18152:    Use char because int might match the return type of a GCC
                   18153:    builtin and then its argument prototype would still apply.  */
1.23      millert  18154: #ifdef __cplusplus
                   18155: extern "C"
                   18156: #endif
1.27      millert  18157: char socket ();
1.23      millert  18158: int
                   18159: main ()
                   18160: {
1.27      millert  18161: return socket ();
1.23      millert  18162:   ;
                   18163:   return 0;
                   18164: }
                   18165: _ACEOF
                   18166: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18167: if { (ac_try="$ac_link"
                   18168: case "(($ac_try" in
                   18169:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18170:   *) ac_try_echo=$ac_try;;
                   18171: esac
                   18172: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18173:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18174:   ac_status=$?
1.25      millert  18175:   grep -v '^ *+' conftest.er1 >conftest.err
                   18176:   rm -f conftest.er1
                   18177:   cat conftest.err >&5
1.23      millert  18178:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18179:   (exit $ac_status); } && {
                   18180:         test -z "$ac_c_werror_flag" ||
                   18181:         test ! -s conftest.err
                   18182:        } && test -s conftest$ac_exeext &&
                   18183:        $as_test_x conftest$ac_exeext; then
                   18184:   ac_cv_lib_socket_socket_lnsl=yes
1.23      millert  18185: else
                   18186:   echo "$as_me: failed program was:" >&5
                   18187: sed 's/^/| /' conftest.$ac_ext >&5
                   18188:
1.27      millert  18189:        ac_cv_lib_socket_socket_lnsl=no
1.23      millert  18190: fi
1.27      millert  18191:
                   18192: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18193:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18194: LIBS=$ac_check_lib_save_LIBS
                   18195: fi
1.27      millert  18196: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
                   18197: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
                   18198: if test $ac_cv_lib_socket_socket_lnsl = yes; then
                   18199:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  18200: fi
1.16      millert  18201:
1.23      millert  18202: fi
                   18203:
                   18204: fi
1.1       millert  18205:
                   18206: fi
                   18207:
1.27      millert  18208: { echo "$as_me:$LINENO: checking for inet_addr" >&5
                   18209: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
                   18210: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9       millert  18211:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18212: else
1.9       millert  18213:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18214: /* confdefs.h.  */
                   18215: _ACEOF
                   18216: cat confdefs.h >>conftest.$ac_ext
                   18217: cat >>conftest.$ac_ext <<_ACEOF
                   18218: /* end confdefs.h.  */
1.27      millert  18219: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
                   18220:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18221: #define inet_addr innocuous_inet_addr
                   18222:
                   18223: /* System header to define __stub macros and hopefully few prototypes,
                   18224:     which can conflict with char inet_addr (); below.
                   18225:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18226:     <limits.h> exists even on freestanding compilers.  */
                   18227:
                   18228: #ifdef __STDC__
                   18229: # include <limits.h>
                   18230: #else
                   18231: # include <assert.h>
                   18232: #endif
                   18233:
                   18234: #undef inet_addr
                   18235:
                   18236: /* Override any GCC internal prototype to avoid an error.
                   18237:    Use char because int might match the return type of a GCC
                   18238:    builtin and then its argument prototype would still apply.  */
                   18239: #ifdef __cplusplus
                   18240: extern "C"
                   18241: #endif
                   18242: char inet_addr ();
                   18243: /* The GNU C library defines this for functions which it implements
                   18244:     to always fail with ENOSYS.  Some functions are actually named
                   18245:     something starting with __ and the normal name is an alias.  */
                   18246: #if defined __stub_inet_addr || defined __stub___inet_addr
                   18247: choke me
                   18248: #endif
                   18249:
1.16      millert  18250: int
                   18251: main ()
                   18252: {
1.27      millert  18253: return inet_addr ();
1.9       millert  18254:   ;
                   18255:   return 0;
                   18256: }
                   18257: _ACEOF
                   18258: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18259: if { (ac_try="$ac_link"
                   18260: case "(($ac_try" in
                   18261:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18262:   *) ac_try_echo=$ac_try;;
                   18263: esac
                   18264: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18265:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18266:   ac_status=$?
1.25      millert  18267:   grep -v '^ *+' conftest.er1 >conftest.err
                   18268:   rm -f conftest.er1
                   18269:   cat conftest.err >&5
1.16      millert  18270:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18271:   (exit $ac_status); } && {
                   18272:         test -z "$ac_c_werror_flag" ||
                   18273:         test ! -s conftest.err
                   18274:        } && test -s conftest$ac_exeext &&
                   18275:        $as_test_x conftest$ac_exeext; then
                   18276:   ac_cv_func_inet_addr=yes
1.9       millert  18277: else
                   18278:   echo "$as_me: failed program was:" >&5
1.16      millert  18279: sed 's/^/| /' conftest.$ac_ext >&5
                   18280:
1.27      millert  18281:        ac_cv_func_inet_addr=no
1.9       millert  18282: fi
1.27      millert  18283:
                   18284: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18285:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18286: fi
1.27      millert  18287: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
                   18288: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
                   18289: if test $ac_cv_func_inet_addr = yes; then
                   18290:   :
                   18291: else
                   18292:   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
                   18293: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
                   18294: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9       millert  18295:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18296: else
1.9       millert  18297:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18298: /* confdefs.h.  */
                   18299: _ACEOF
                   18300: cat confdefs.h >>conftest.$ac_ext
                   18301: cat >>conftest.$ac_ext <<_ACEOF
                   18302: /* end confdefs.h.  */
1.27      millert  18303: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
                   18304:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18305: #define __inet_addr innocuous___inet_addr
                   18306:
                   18307: /* System header to define __stub macros and hopefully few prototypes,
                   18308:     which can conflict with char __inet_addr (); below.
                   18309:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18310:     <limits.h> exists even on freestanding compilers.  */
                   18311:
                   18312: #ifdef __STDC__
                   18313: # include <limits.h>
1.16      millert  18314: #else
1.27      millert  18315: # include <assert.h>
                   18316: #endif
                   18317:
                   18318: #undef __inet_addr
                   18319:
                   18320: /* Override any GCC internal prototype to avoid an error.
                   18321:    Use char because int might match the return type of a GCC
                   18322:    builtin and then its argument prototype would still apply.  */
                   18323: #ifdef __cplusplus
                   18324: extern "C"
                   18325: #endif
                   18326: char __inet_addr ();
                   18327: /* The GNU C library defines this for functions which it implements
                   18328:     to always fail with ENOSYS.  Some functions are actually named
                   18329:     something starting with __ and the normal name is an alias.  */
                   18330: #if defined __stub___inet_addr || defined __stub_____inet_addr
                   18331: choke me
1.1       millert  18332: #endif
                   18333:
1.16      millert  18334: int
                   18335: main ()
                   18336: {
1.27      millert  18337: return __inet_addr ();
1.9       millert  18338:   ;
                   18339:   return 0;
                   18340: }
                   18341: _ACEOF
                   18342: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18343: if { (ac_try="$ac_link"
                   18344: case "(($ac_try" in
                   18345:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18346:   *) ac_try_echo=$ac_try;;
                   18347: esac
                   18348: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18349:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18350:   ac_status=$?
1.25      millert  18351:   grep -v '^ *+' conftest.er1 >conftest.err
                   18352:   rm -f conftest.er1
                   18353:   cat conftest.err >&5
1.16      millert  18354:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18355:   (exit $ac_status); } && {
                   18356:         test -z "$ac_c_werror_flag" ||
                   18357:         test ! -s conftest.err
                   18358:        } && test -s conftest$ac_exeext &&
                   18359:        $as_test_x conftest$ac_exeext; then
                   18360:   ac_cv_func___inet_addr=yes
1.9       millert  18361: else
                   18362:   echo "$as_me: failed program was:" >&5
1.16      millert  18363: sed 's/^/| /' conftest.$ac_ext >&5
                   18364:
1.27      millert  18365:        ac_cv_func___inet_addr=no
1.9       millert  18366: fi
1.27      millert  18367:
                   18368: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18369:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18370: fi
1.27      millert  18371: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
                   18372: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
                   18373: if test $ac_cv_func___inet_addr = yes; then
                   18374:   :
1.25      millert  18375: else
1.27      millert  18376:   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
                   18377: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
                   18378: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25      millert  18379:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18380: else
1.27      millert  18381:   ac_check_lib_save_LIBS=$LIBS
                   18382: LIBS="-lnsl  $LIBS"
                   18383: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  18384: /* confdefs.h.  */
                   18385: _ACEOF
                   18386: cat confdefs.h >>conftest.$ac_ext
                   18387: cat >>conftest.$ac_ext <<_ACEOF
                   18388: /* end confdefs.h.  */
1.27      millert  18389:
                   18390: /* Override any GCC internal prototype to avoid an error.
                   18391:    Use char because int might match the return type of a GCC
                   18392:    builtin and then its argument prototype would still apply.  */
                   18393: #ifdef __cplusplus
                   18394: extern "C"
1.25      millert  18395: #endif
1.27      millert  18396: char inet_addr ();
                   18397: int
                   18398: main ()
                   18399: {
                   18400: return inet_addr ();
                   18401:   ;
                   18402:   return 0;
                   18403: }
1.16      millert  18404: _ACEOF
1.27      millert  18405: rm -f conftest.$ac_objext conftest$ac_exeext
                   18406: if { (ac_try="$ac_link"
                   18407: case "(($ac_try" in
                   18408:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18409:   *) ac_try_echo=$ac_try;;
                   18410: esac
                   18411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18412:   (eval "$ac_link") 2>conftest.er1
                   18413:   ac_status=$?
                   18414:   grep -v '^ *+' conftest.er1 >conftest.err
                   18415:   rm -f conftest.er1
                   18416:   cat conftest.err >&5
                   18417:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18418:   (exit $ac_status); } && {
                   18419:         test -z "$ac_c_werror_flag" ||
                   18420:         test ! -s conftest.err
                   18421:        } && test -s conftest$ac_exeext &&
                   18422:        $as_test_x conftest$ac_exeext; then
                   18423:   ac_cv_lib_nsl_inet_addr=yes
1.25      millert  18424: else
1.27      millert  18425:   echo "$as_me: failed program was:" >&5
                   18426: sed 's/^/| /' conftest.$ac_ext >&5
                   18427:
                   18428:        ac_cv_lib_nsl_inet_addr=no
1.1       millert  18429: fi
                   18430:
1.27      millert  18431: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18432:       conftest$ac_exeext conftest.$ac_ext
                   18433: LIBS=$ac_check_lib_save_LIBS
1.25      millert  18434: fi
1.27      millert  18435: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
                   18436: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
                   18437: if test $ac_cv_lib_nsl_inet_addr = yes; then
                   18438:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   18439: else
                   18440:   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
                   18441: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
                   18442: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9       millert  18443:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18444: else
1.27      millert  18445:   ac_check_lib_save_LIBS=$LIBS
                   18446: LIBS="-linet  $LIBS"
                   18447: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18448: /* confdefs.h.  */
                   18449: _ACEOF
                   18450: cat confdefs.h >>conftest.$ac_ext
                   18451: cat >>conftest.$ac_ext <<_ACEOF
                   18452: /* end confdefs.h.  */
1.25      millert  18453:
1.27      millert  18454: /* Override any GCC internal prototype to avoid an error.
                   18455:    Use char because int might match the return type of a GCC
                   18456:    builtin and then its argument prototype would still apply.  */
1.9       millert  18457: #ifdef __cplusplus
                   18458: extern "C"
                   18459: #endif
1.27      millert  18460: char inet_addr ();
1.16      millert  18461: int
                   18462: main ()
                   18463: {
1.27      millert  18464: return inet_addr ();
1.9       millert  18465:   ;
                   18466:   return 0;
                   18467: }
                   18468: _ACEOF
                   18469: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18470: if { (ac_try="$ac_link"
                   18471: case "(($ac_try" in
                   18472:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18473:   *) ac_try_echo=$ac_try;;
                   18474: esac
                   18475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18476:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18477:   ac_status=$?
1.25      millert  18478:   grep -v '^ *+' conftest.er1 >conftest.err
                   18479:   rm -f conftest.er1
                   18480:   cat conftest.err >&5
1.16      millert  18481:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18482:   (exit $ac_status); } && {
                   18483:         test -z "$ac_c_werror_flag" ||
                   18484:         test ! -s conftest.err
                   18485:        } && test -s conftest$ac_exeext &&
                   18486:        $as_test_x conftest$ac_exeext; then
                   18487:   ac_cv_lib_inet_inet_addr=yes
1.9       millert  18488: else
                   18489:   echo "$as_me: failed program was:" >&5
1.16      millert  18490: sed 's/^/| /' conftest.$ac_ext >&5
                   18491:
1.27      millert  18492:        ac_cv_lib_inet_inet_addr=no
1.9       millert  18493: fi
1.27      millert  18494:
                   18495: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18496:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  18497: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18498: fi
1.27      millert  18499: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
                   18500: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
                   18501: if test $ac_cv_lib_inet_inet_addr = yes; then
                   18502:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   18503: else
                   18504:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
                   18505: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
                   18506: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
                   18507: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
                   18508: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23      millert  18509:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18510: else
1.27      millert  18511:   ac_check_lib_save_LIBS=$LIBS
                   18512: LIBS="-lsocket -lnsl $LIBS"
                   18513: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  18514: /* confdefs.h.  */
                   18515: _ACEOF
                   18516: cat confdefs.h >>conftest.$ac_ext
                   18517: cat >>conftest.$ac_ext <<_ACEOF
                   18518: /* end confdefs.h.  */
                   18519:
1.27      millert  18520: /* Override any GCC internal prototype to avoid an error.
                   18521:    Use char because int might match the return type of a GCC
                   18522:    builtin and then its argument prototype would still apply.  */
                   18523: #ifdef __cplusplus
                   18524: extern "C"
                   18525: #endif
                   18526: char inet_addr ();
1.25      millert  18527: int
                   18528: main ()
                   18529: {
1.27      millert  18530: return inet_addr ();
                   18531:   ;
                   18532:   return 0;
1.25      millert  18533: }
1.23      millert  18534: _ACEOF
1.27      millert  18535: rm -f conftest.$ac_objext conftest$ac_exeext
                   18536: if { (ac_try="$ac_link"
                   18537: case "(($ac_try" in
                   18538:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18539:   *) ac_try_echo=$ac_try;;
                   18540: esac
                   18541: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18542:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18543:   ac_status=$?
1.27      millert  18544:   grep -v '^ *+' conftest.er1 >conftest.err
                   18545:   rm -f conftest.er1
                   18546:   cat conftest.err >&5
1.23      millert  18547:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18548:   (exit $ac_status); } && {
                   18549:         test -z "$ac_c_werror_flag" ||
                   18550:         test ! -s conftest.err
                   18551:        } && test -s conftest$ac_exeext &&
                   18552:        $as_test_x conftest$ac_exeext; then
                   18553:   ac_cv_lib_socket_inet_addr_lnsl=yes
1.23      millert  18554: else
1.27      millert  18555:   echo "$as_me: failed program was:" >&5
1.23      millert  18556: sed 's/^/| /' conftest.$ac_ext >&5
                   18557:
1.27      millert  18558:        ac_cv_lib_socket_inet_addr_lnsl=no
1.23      millert  18559: fi
1.27      millert  18560:
                   18561: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18562:       conftest$ac_exeext conftest.$ac_ext
                   18563: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18564: fi
1.27      millert  18565: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
                   18566: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
                   18567: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
                   18568:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  18569: fi
1.25      millert  18570:
1.27      millert  18571: fi
1.16      millert  18572:
1.27      millert  18573: fi
1.25      millert  18574:
1.23      millert  18575: fi
1.16      millert  18576:
1.9       millert  18577: fi
1.23      millert  18578:
1.27      millert  18579: { echo "$as_me:$LINENO: checking for syslog" >&5
                   18580: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
                   18581: if test "${ac_cv_func_syslog+set}" = set; then
1.9       millert  18582:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18583: else
1.9       millert  18584:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18585: /* confdefs.h.  */
                   18586: _ACEOF
                   18587: cat confdefs.h >>conftest.$ac_ext
                   18588: cat >>conftest.$ac_ext <<_ACEOF
                   18589: /* end confdefs.h.  */
1.27      millert  18590: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25      millert  18591:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18592: #define syslog innocuous_syslog
1.25      millert  18593:
1.16      millert  18594: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18595:     which can conflict with char syslog (); below.
1.16      millert  18596:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18597:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18598:
1.16      millert  18599: #ifdef __STDC__
                   18600: # include <limits.h>
                   18601: #else
                   18602: # include <assert.h>
                   18603: #endif
1.25      millert  18604:
1.27      millert  18605: #undef syslog
1.25      millert  18606:
1.27      millert  18607: /* Override any GCC internal prototype to avoid an error.
                   18608:    Use char because int might match the return type of a GCC
                   18609:    builtin and then its argument prototype would still apply.  */
1.9       millert  18610: #ifdef __cplusplus
                   18611: extern "C"
                   18612: #endif
1.27      millert  18613: char syslog ();
1.1       millert  18614: /* The GNU C library defines this for functions which it implements
                   18615:     to always fail with ENOSYS.  Some functions are actually named
                   18616:     something starting with __ and the normal name is an alias.  */
1.27      millert  18617: #if defined __stub_syslog || defined __stub___syslog
1.1       millert  18618: choke me
                   18619: #endif
                   18620:
1.16      millert  18621: int
                   18622: main ()
                   18623: {
1.27      millert  18624: return syslog ();
1.9       millert  18625:   ;
                   18626:   return 0;
                   18627: }
                   18628: _ACEOF
                   18629: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18630: if { (ac_try="$ac_link"
                   18631: case "(($ac_try" in
                   18632:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18633:   *) ac_try_echo=$ac_try;;
                   18634: esac
                   18635: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18636:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18637:   ac_status=$?
1.25      millert  18638:   grep -v '^ *+' conftest.er1 >conftest.err
                   18639:   rm -f conftest.er1
                   18640:   cat conftest.err >&5
1.16      millert  18641:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18642:   (exit $ac_status); } && {
                   18643:         test -z "$ac_c_werror_flag" ||
                   18644:         test ! -s conftest.err
                   18645:        } && test -s conftest$ac_exeext &&
                   18646:        $as_test_x conftest$ac_exeext; then
                   18647:   ac_cv_func_syslog=yes
1.9       millert  18648: else
                   18649:   echo "$as_me: failed program was:" >&5
1.16      millert  18650: sed 's/^/| /' conftest.$ac_ext >&5
                   18651:
1.27      millert  18652:        ac_cv_func_syslog=no
1.9       millert  18653: fi
1.27      millert  18654:
                   18655: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18656:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18657: fi
1.27      millert  18658: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
                   18659: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
                   18660: if test $ac_cv_func_syslog = yes; then
                   18661:   :
1.23      millert  18662: else
1.27      millert  18663:   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
                   18664: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
                   18665: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9       millert  18666:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18667: else
1.27      millert  18668:   ac_check_lib_save_LIBS=$LIBS
                   18669: LIBS="-lsocket  $LIBS"
                   18670: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18671: /* confdefs.h.  */
                   18672: _ACEOF
                   18673: cat confdefs.h >>conftest.$ac_ext
                   18674: cat >>conftest.$ac_ext <<_ACEOF
                   18675: /* end confdefs.h.  */
1.25      millert  18676:
1.27      millert  18677: /* Override any GCC internal prototype to avoid an error.
                   18678:    Use char because int might match the return type of a GCC
                   18679:    builtin and then its argument prototype would still apply.  */
                   18680: #ifdef __cplusplus
                   18681: extern "C"
                   18682: #endif
                   18683: char syslog ();
1.25      millert  18684: int
                   18685: main ()
1.16      millert  18686: {
1.27      millert  18687: return syslog ();
1.25      millert  18688:   ;
                   18689:   return 0;
1.9       millert  18690: }
                   18691: _ACEOF
1.25      millert  18692: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18693: if { (ac_try="$ac_link"
                   18694: case "(($ac_try" in
                   18695:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18696:   *) ac_try_echo=$ac_try;;
                   18697: esac
                   18698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18699:   (eval "$ac_link") 2>conftest.er1
1.25      millert  18700:   ac_status=$?
                   18701:   grep -v '^ *+' conftest.er1 >conftest.err
                   18702:   rm -f conftest.er1
                   18703:   cat conftest.err >&5
                   18704:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18705:   (exit $ac_status); } && {
                   18706:         test -z "$ac_c_werror_flag" ||
                   18707:         test ! -s conftest.err
                   18708:        } && test -s conftest$ac_exeext &&
                   18709:        $as_test_x conftest$ac_exeext; then
                   18710:   ac_cv_lib_socket_syslog=yes
1.25      millert  18711: else
                   18712:   echo "$as_me: failed program was:" >&5
                   18713: sed 's/^/| /' conftest.$ac_ext >&5
                   18714:
1.27      millert  18715:        ac_cv_lib_socket_syslog=no
1.25      millert  18716: fi
1.27      millert  18717:
                   18718: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18719:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  18720: LIBS=$ac_check_lib_save_LIBS
1.25      millert  18721: fi
1.27      millert  18722: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
                   18723: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
                   18724: if test $ac_cv_lib_socket_syslog = yes; then
                   18725:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18726: else
                   18727:   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
                   18728: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
                   18729: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   18730:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18731: else
                   18732:   ac_check_lib_save_LIBS=$LIBS
                   18733: LIBS="-lnsl  $LIBS"
                   18734: cat >conftest.$ac_ext <<_ACEOF
                   18735: /* confdefs.h.  */
                   18736: _ACEOF
                   18737: cat confdefs.h >>conftest.$ac_ext
                   18738: cat >>conftest.$ac_ext <<_ACEOF
                   18739: /* end confdefs.h.  */
1.25      millert  18740:
1.27      millert  18741: /* Override any GCC internal prototype to avoid an error.
                   18742:    Use char because int might match the return type of a GCC
                   18743:    builtin and then its argument prototype would still apply.  */
                   18744: #ifdef __cplusplus
                   18745: extern "C"
                   18746: #endif
                   18747: char syslog ();
                   18748: int
                   18749: main ()
                   18750: {
                   18751: return syslog ();
                   18752:   ;
                   18753:   return 0;
                   18754: }
1.25      millert  18755: _ACEOF
1.27      millert  18756: rm -f conftest.$ac_objext conftest$ac_exeext
                   18757: if { (ac_try="$ac_link"
                   18758: case "(($ac_try" in
                   18759:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18760:   *) ac_try_echo=$ac_try;;
1.25      millert  18761: esac
1.27      millert  18762: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18763:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18764:   ac_status=$?
1.25      millert  18765:   grep -v '^ *+' conftest.er1 >conftest.err
                   18766:   rm -f conftest.er1
                   18767:   cat conftest.err >&5
1.16      millert  18768:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18769:   (exit $ac_status); } && {
                   18770:         test -z "$ac_c_werror_flag" ||
                   18771:         test ! -s conftest.err
                   18772:        } && test -s conftest$ac_exeext &&
                   18773:        $as_test_x conftest$ac_exeext; then
                   18774:   ac_cv_lib_nsl_syslog=yes
1.9       millert  18775: else
                   18776:   echo "$as_me: failed program was:" >&5
1.16      millert  18777: sed 's/^/| /' conftest.$ac_ext >&5
                   18778:
1.27      millert  18779:        ac_cv_lib_nsl_syslog=no
                   18780: fi
1.25      millert  18781:
1.27      millert  18782: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18783:       conftest$ac_exeext conftest.$ac_ext
                   18784: LIBS=$ac_check_lib_save_LIBS
                   18785: fi
                   18786: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
                   18787: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
                   18788: if test $ac_cv_lib_nsl_syslog = yes; then
                   18789:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   18790: else
                   18791:   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
                   18792: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
                   18793: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9       millert  18794:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18795: else
1.27      millert  18796:   ac_check_lib_save_LIBS=$LIBS
                   18797: LIBS="-linet  $LIBS"
1.25      millert  18798: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  18799: /* confdefs.h.  */
                   18800: _ACEOF
                   18801: cat confdefs.h >>conftest.$ac_ext
                   18802: cat >>conftest.$ac_ext <<_ACEOF
                   18803: /* end confdefs.h.  */
1.27      millert  18804:
                   18805: /* Override any GCC internal prototype to avoid an error.
                   18806:    Use char because int might match the return type of a GCC
                   18807:    builtin and then its argument prototype would still apply.  */
                   18808: #ifdef __cplusplus
                   18809: extern "C"
                   18810: #endif
                   18811: char syslog ();
                   18812: int
                   18813: main ()
                   18814: {
                   18815: return syslog ();
                   18816:   ;
                   18817:   return 0;
                   18818: }
1.23      millert  18819: _ACEOF
1.27      millert  18820: rm -f conftest.$ac_objext conftest$ac_exeext
                   18821: if { (ac_try="$ac_link"
                   18822: case "(($ac_try" in
                   18823:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18824:   *) ac_try_echo=$ac_try;;
                   18825: esac
                   18826: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18827:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18828:   ac_status=$?
1.25      millert  18829:   grep -v '^ *+' conftest.er1 >conftest.err
                   18830:   rm -f conftest.er1
                   18831:   cat conftest.err >&5
1.23      millert  18832:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18833:   (exit $ac_status); } && {
                   18834:         test -z "$ac_c_werror_flag" ||
                   18835:         test ! -s conftest.err
                   18836:        } && test -s conftest$ac_exeext &&
                   18837:        $as_test_x conftest$ac_exeext; then
                   18838:   ac_cv_lib_inet_syslog=yes
1.1       millert  18839: else
1.23      millert  18840:   echo "$as_me: failed program was:" >&5
                   18841: sed 's/^/| /' conftest.$ac_ext >&5
                   18842:
1.27      millert  18843:        ac_cv_lib_inet_syslog=no
                   18844: fi
                   18845:
                   18846: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18847:       conftest$ac_exeext conftest.$ac_ext
                   18848: LIBS=$ac_check_lib_save_LIBS
                   18849: fi
                   18850: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
                   18851: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
                   18852: if test $ac_cv_lib_inet_syslog = yes; then
                   18853:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   18854: fi
                   18855:
                   18856: fi
                   18857:
                   18858: fi
                   18859:
1.25      millert  18860: fi
                   18861:
1.27      millert  18862: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   18863:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   18864: # for constant arguments.  Useless!
                   18865: { echo "$as_me:$LINENO: checking for working alloca.h" >&5
                   18866: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
                   18867: if test "${ac_cv_working_alloca_h+set}" = set; then
                   18868:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18869: else
                   18870:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18871: /* confdefs.h.  */
                   18872: _ACEOF
                   18873: cat confdefs.h >>conftest.$ac_ext
                   18874: cat >>conftest.$ac_ext <<_ACEOF
                   18875: /* end confdefs.h.  */
1.27      millert  18876: #include <alloca.h>
                   18877: int
                   18878: main ()
                   18879: {
                   18880: char *p = (char *) alloca (2 * sizeof (int));
                   18881:                          if (p) return 0;
                   18882:   ;
                   18883:   return 0;
                   18884: }
1.9       millert  18885: _ACEOF
1.27      millert  18886: rm -f conftest.$ac_objext conftest$ac_exeext
                   18887: if { (ac_try="$ac_link"
                   18888: case "(($ac_try" in
                   18889:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18890:   *) ac_try_echo=$ac_try;;
                   18891: esac
                   18892: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18893:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18894:   ac_status=$?
1.25      millert  18895:   grep -v '^ *+' conftest.er1 >conftest.err
                   18896:   rm -f conftest.er1
                   18897:   cat conftest.err >&5
1.16      millert  18898:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18899:   (exit $ac_status); } && {
                   18900:         test -z "$ac_c_werror_flag" ||
                   18901:         test ! -s conftest.err
                   18902:        } && test -s conftest$ac_exeext &&
                   18903:        $as_test_x conftest$ac_exeext; then
                   18904:   ac_cv_working_alloca_h=yes
1.1       millert  18905: else
1.23      millert  18906:   echo "$as_me: failed program was:" >&5
1.16      millert  18907: sed 's/^/| /' conftest.$ac_ext >&5
                   18908:
1.27      millert  18909:        ac_cv_working_alloca_h=no
1.25      millert  18910: fi
                   18911:
1.27      millert  18912: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18913:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18914: fi
1.27      millert  18915: { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
                   18916: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
                   18917: if test $ac_cv_working_alloca_h = yes; then
                   18918:
                   18919: cat >>confdefs.h <<\_ACEOF
                   18920: #define HAVE_ALLOCA_H 1
                   18921: _ACEOF
1.25      millert  18922:
1.1       millert  18923: fi
                   18924:
1.27      millert  18925: { echo "$as_me:$LINENO: checking for alloca" >&5
                   18926: echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
                   18927: if test "${ac_cv_func_alloca_works+set}" = set; then
1.9       millert  18928:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18929: else
1.27      millert  18930:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18931: /* confdefs.h.  */
                   18932: _ACEOF
                   18933: cat confdefs.h >>conftest.$ac_ext
                   18934: cat >>conftest.$ac_ext <<_ACEOF
                   18935: /* end confdefs.h.  */
1.27      millert  18936: #ifdef __GNUC__
                   18937: # define alloca __builtin_alloca
                   18938: #else
                   18939: # ifdef _MSC_VER
                   18940: #  include <malloc.h>
                   18941: #  define alloca _alloca
                   18942: # else
                   18943: #  ifdef HAVE_ALLOCA_H
                   18944: #   include <alloca.h>
                   18945: #  else
                   18946: #   ifdef _AIX
                   18947:  #pragma alloca
                   18948: #   else
                   18949: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   18950: char *alloca ();
                   18951: #    endif
                   18952: #   endif
                   18953: #  endif
                   18954: # endif
                   18955: #endif
1.25      millert  18956:
1.23      millert  18957: int
                   18958: main ()
                   18959: {
1.27      millert  18960: char *p = (char *) alloca (1);
                   18961:                                    if (p) return 0;
1.23      millert  18962:   ;
                   18963:   return 0;
                   18964: }
1.9       millert  18965: _ACEOF
1.25      millert  18966: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18967: if { (ac_try="$ac_link"
                   18968: case "(($ac_try" in
                   18969:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18970:   *) ac_try_echo=$ac_try;;
                   18971: esac
                   18972: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18973:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18974:   ac_status=$?
1.25      millert  18975:   grep -v '^ *+' conftest.er1 >conftest.err
                   18976:   rm -f conftest.er1
                   18977:   cat conftest.err >&5
1.16      millert  18978:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18979:   (exit $ac_status); } && {
                   18980:         test -z "$ac_c_werror_flag" ||
                   18981:         test ! -s conftest.err
                   18982:        } && test -s conftest$ac_exeext &&
                   18983:        $as_test_x conftest$ac_exeext; then
                   18984:   ac_cv_func_alloca_works=yes
1.1       millert  18985: else
1.23      millert  18986:   echo "$as_me: failed program was:" >&5
1.16      millert  18987: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  18988:
1.27      millert  18989:        ac_cv_func_alloca_works=no
1.25      millert  18990: fi
1.27      millert  18991:
                   18992: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18993:       conftest$ac_exeext conftest.$ac_ext
                   18994: fi
1.27      millert  18995: { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
                   18996: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
                   18997:
                   18998: if test $ac_cv_func_alloca_works = yes; then
                   18999:
                   19000: cat >>confdefs.h <<\_ACEOF
                   19001: #define HAVE_ALLOCA 1
                   19002: _ACEOF
                   19003:
                   19004: else
                   19005:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   19006: # that cause trouble.  Some versions do not even contain alloca or
                   19007: # contain a buggy version.  If you still want to use their alloca,
                   19008: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   19009:
                   19010: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
                   19011:
                   19012: cat >>confdefs.h <<\_ACEOF
                   19013: #define C_ALLOCA 1
                   19014: _ACEOF
                   19015:
                   19016:
                   19017: { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
                   19018: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
                   19019: if test "${ac_cv_os_cray+set}" = set; then
                   19020:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19021: else
                   19022:   cat >conftest.$ac_ext <<_ACEOF
                   19023: /* confdefs.h.  */
                   19024: _ACEOF
                   19025: cat confdefs.h >>conftest.$ac_ext
                   19026: cat >>conftest.$ac_ext <<_ACEOF
                   19027: /* end confdefs.h.  */
                   19028: #if defined CRAY && ! defined CRAY2
                   19029: webecray
                   19030: #else
                   19031: wenotbecray
                   19032: #endif
                   19033:
                   19034: _ACEOF
                   19035: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   19036:   $EGREP "webecray" >/dev/null 2>&1; then
                   19037:   ac_cv_os_cray=yes
1.25      millert  19038: else
1.27      millert  19039:   ac_cv_os_cray=no
                   19040: fi
                   19041: rm -f conftest*
1.25      millert  19042:
1.27      millert  19043: fi
                   19044: { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
                   19045: echo "${ECHO_T}$ac_cv_os_cray" >&6; }
                   19046: if test $ac_cv_os_cray = yes; then
                   19047:   for ac_func in _getb67 GETB67 getb67; do
                   19048:     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19049: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19050: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19051: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  19052:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19053: else
1.27      millert  19054:   cat >conftest.$ac_ext <<_ACEOF
                   19055: /* confdefs.h.  */
                   19056: _ACEOF
                   19057: cat confdefs.h >>conftest.$ac_ext
                   19058: cat >>conftest.$ac_ext <<_ACEOF
                   19059: /* end confdefs.h.  */
                   19060: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19061:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19062: #define $ac_func innocuous_$ac_func
                   19063:
                   19064: /* System header to define __stub macros and hopefully few prototypes,
                   19065:     which can conflict with char $ac_func (); below.
                   19066:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19067:     <limits.h> exists even on freestanding compilers.  */
                   19068:
                   19069: #ifdef __STDC__
                   19070: # include <limits.h>
                   19071: #else
                   19072: # include <assert.h>
                   19073: #endif
                   19074:
                   19075: #undef $ac_func
1.25      millert  19076:
1.27      millert  19077: /* Override any GCC internal prototype to avoid an error.
                   19078:    Use char because int might match the return type of a GCC
                   19079:    builtin and then its argument prototype would still apply.  */
1.25      millert  19080: #ifdef __cplusplus
                   19081: extern "C"
                   19082: #endif
1.27      millert  19083: char $ac_func ();
                   19084: /* The GNU C library defines this for functions which it implements
                   19085:     to always fail with ENOSYS.  Some functions are actually named
                   19086:     something starting with __ and the normal name is an alias.  */
                   19087: #if defined __stub_$ac_func || defined __stub___$ac_func
                   19088: choke me
                   19089: #endif
                   19090:
1.9       millert  19091: int
                   19092: main ()
                   19093: {
1.27      millert  19094: return $ac_func ();
1.9       millert  19095:   ;
                   19096:   return 0;
                   19097: }
                   19098: _ACEOF
1.25      millert  19099: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19100: if { (ac_try="$ac_link"
                   19101: case "(($ac_try" in
                   19102:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19103:   *) ac_try_echo=$ac_try;;
                   19104: esac
                   19105: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19106:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19107:   ac_status=$?
1.25      millert  19108:   grep -v '^ *+' conftest.er1 >conftest.err
                   19109:   rm -f conftest.er1
                   19110:   cat conftest.err >&5
1.16      millert  19111:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19112:   (exit $ac_status); } && {
                   19113:         test -z "$ac_c_werror_flag" ||
                   19114:         test ! -s conftest.err
                   19115:        } && test -s conftest$ac_exeext &&
                   19116:        $as_test_x conftest$ac_exeext; then
                   19117:   eval "$as_ac_var=yes"
1.9       millert  19118: else
                   19119:   echo "$as_me: failed program was:" >&5
1.16      millert  19120: sed 's/^/| /' conftest.$ac_ext >&5
                   19121:
1.27      millert  19122:        eval "$as_ac_var=no"
1.23      millert  19123: fi
1.27      millert  19124:
                   19125: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19126:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19127: fi
1.27      millert  19128: ac_res=`eval echo '${'$as_ac_var'}'`
                   19129:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19130: echo "${ECHO_T}$ac_res" >&6; }
                   19131: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   19132:
                   19133: cat >>confdefs.h <<_ACEOF
                   19134: #define CRAY_STACKSEG_END $ac_func
                   19135: _ACEOF
                   19136:
                   19137:     break
1.1       millert  19138: fi
                   19139:
1.27      millert  19140:   done
1.23      millert  19141: fi
1.16      millert  19142:
1.27      millert  19143: { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
                   19144: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
                   19145: if test "${ac_cv_c_stack_direction+set}" = set; then
                   19146:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19147: else
                   19148:   if test "$cross_compiling" = yes; then
                   19149:   ac_cv_c_stack_direction=0
                   19150: else
                   19151:   cat >conftest.$ac_ext <<_ACEOF
1.24      millert  19152: /* confdefs.h.  */
                   19153: _ACEOF
                   19154: cat confdefs.h >>conftest.$ac_ext
                   19155: cat >>conftest.$ac_ext <<_ACEOF
                   19156: /* end confdefs.h.  */
1.27      millert  19157: $ac_includes_default
                   19158: int
                   19159: find_stack_direction ()
                   19160: {
                   19161:   static char *addr = 0;
                   19162:   auto char dummy;
                   19163:   if (addr == 0)
                   19164:     {
                   19165:       addr = &dummy;
                   19166:       return find_stack_direction ();
                   19167:     }
                   19168:   else
                   19169:     return (&dummy > addr) ? 1 : -1;
                   19170: }
                   19171:
1.24      millert  19172: int
                   19173: main ()
                   19174: {
1.27      millert  19175:   return find_stack_direction () < 0;
1.24      millert  19176: }
                   19177: _ACEOF
1.27      millert  19178: rm -f conftest$ac_exeext
                   19179: if { (ac_try="$ac_link"
                   19180: case "(($ac_try" in
                   19181:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19182:   *) ac_try_echo=$ac_try;;
                   19183: esac
                   19184: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19185:   (eval "$ac_link") 2>&5
1.24      millert  19186:   ac_status=$?
                   19187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19188:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   19189:   { (case "(($ac_try" in
                   19190:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19191:   *) ac_try_echo=$ac_try;;
                   19192: esac
                   19193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19194:   (eval "$ac_try") 2>&5
1.24      millert  19195:   ac_status=$?
                   19196:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19197:   (exit $ac_status); }; }; then
1.27      millert  19198:   ac_cv_c_stack_direction=1
                   19199: else
                   19200:   echo "$as_me: program exited with status $ac_status" >&5
                   19201: echo "$as_me: failed program was:" >&5
                   19202: sed 's/^/| /' conftest.$ac_ext >&5
                   19203:
                   19204: ( exit $ac_status )
                   19205: ac_cv_c_stack_direction=-1
                   19206: fi
                   19207: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   19208: fi
                   19209:
                   19210:
                   19211: fi
                   19212: { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
                   19213: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
                   19214:
                   19215: cat >>confdefs.h <<_ACEOF
                   19216: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   19217: _ACEOF
                   19218:
                   19219:
                   19220: fi
                   19221:
                   19222: fi
1.24      millert  19223:
1.27      millert  19224: for ac_func in getprogname
                   19225: do
                   19226: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19227: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19228: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19229: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  19230:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.24      millert  19231: else
1.27      millert  19232:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19233: /* confdefs.h.  */
                   19234: _ACEOF
                   19235: cat confdefs.h >>conftest.$ac_ext
                   19236: cat >>conftest.$ac_ext <<_ACEOF
                   19237: /* end confdefs.h.  */
1.27      millert  19238: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19239:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19240: #define $ac_func innocuous_$ac_func
                   19241:
                   19242: /* System header to define __stub macros and hopefully few prototypes,
                   19243:     which can conflict with char $ac_func (); below.
                   19244:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19245:     <limits.h> exists even on freestanding compilers.  */
                   19246:
                   19247: #ifdef __STDC__
                   19248: # include <limits.h>
                   19249: #else
                   19250: # include <assert.h>
                   19251: #endif
1.25      millert  19252:
1.27      millert  19253: #undef $ac_func
                   19254:
                   19255: /* Override any GCC internal prototype to avoid an error.
                   19256:    Use char because int might match the return type of a GCC
                   19257:    builtin and then its argument prototype would still apply.  */
                   19258: #ifdef __cplusplus
                   19259: extern "C"
                   19260: #endif
                   19261: char $ac_func ();
                   19262: /* The GNU C library defines this for functions which it implements
                   19263:     to always fail with ENOSYS.  Some functions are actually named
                   19264:     something starting with __ and the normal name is an alias.  */
                   19265: #if defined __stub_$ac_func || defined __stub___$ac_func
                   19266: choke me
                   19267: #endif
1.25      millert  19268:
1.16      millert  19269: int
                   19270: main ()
                   19271: {
1.27      millert  19272: return $ac_func ();
1.9       millert  19273:   ;
                   19274:   return 0;
                   19275: }
                   19276: _ACEOF
                   19277: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19278: if { (ac_try="$ac_link"
                   19279: case "(($ac_try" in
                   19280:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19281:   *) ac_try_echo=$ac_try;;
                   19282: esac
                   19283: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19284:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19285:   ac_status=$?
1.25      millert  19286:   grep -v '^ *+' conftest.er1 >conftest.err
                   19287:   rm -f conftest.er1
                   19288:   cat conftest.err >&5
1.16      millert  19289:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19290:   (exit $ac_status); } && {
                   19291:         test -z "$ac_c_werror_flag" ||
                   19292:         test ! -s conftest.err
                   19293:        } && test -s conftest$ac_exeext &&
                   19294:        $as_test_x conftest$ac_exeext; then
                   19295:   eval "$as_ac_var=yes"
1.25      millert  19296: else
                   19297:   echo "$as_me: failed program was:" >&5
                   19298: sed 's/^/| /' conftest.$ac_ext >&5
                   19299:
1.27      millert  19300:        eval "$as_ac_var=no"
1.25      millert  19301: fi
1.27      millert  19302:
                   19303: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19304:       conftest$ac_exeext conftest.$ac_ext
                   19305: fi
1.27      millert  19306: ac_res=`eval echo '${'$as_ac_var'}'`
                   19307:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19308: echo "${ECHO_T}$ac_res" >&6; }
                   19309: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   19310:   cat >>confdefs.h <<_ACEOF
                   19311: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   19312: _ACEOF
1.23      millert  19313:
1.9       millert  19314: else
1.16      millert  19315:
1.27      millert  19316:     { echo "$as_me:$LINENO: checking for __progname" >&5
                   19317: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
                   19318:     if test "${sudo_cv___progname+set}" = set; then
1.25      millert  19319:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19320: else
1.27      millert  19321:
                   19322:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19323: /* confdefs.h.  */
                   19324: _ACEOF
                   19325: cat confdefs.h >>conftest.$ac_ext
                   19326: cat >>conftest.$ac_ext <<_ACEOF
                   19327: /* end confdefs.h.  */
1.25      millert  19328:
1.16      millert  19329: int
                   19330: main ()
                   19331: {
1.27      millert  19332: extern char *__progname; (void)puts(__progname);
1.9       millert  19333:   ;
                   19334:   return 0;
                   19335: }
                   19336: _ACEOF
                   19337: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19338: if { (ac_try="$ac_link"
                   19339: case "(($ac_try" in
                   19340:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19341:   *) ac_try_echo=$ac_try;;
                   19342: esac
                   19343: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19344:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19345:   ac_status=$?
1.25      millert  19346:   grep -v '^ *+' conftest.er1 >conftest.err
                   19347:   rm -f conftest.er1
                   19348:   cat conftest.err >&5
1.16      millert  19349:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19350:   (exit $ac_status); } && {
                   19351:         test -z "$ac_c_werror_flag" ||
                   19352:         test ! -s conftest.err
                   19353:        } && test -s conftest$ac_exeext &&
                   19354:        $as_test_x conftest$ac_exeext; then
                   19355:   sudo_cv___progname=yes
1.9       millert  19356: else
                   19357:   echo "$as_me: failed program was:" >&5
1.16      millert  19358: sed 's/^/| /' conftest.$ac_ext >&5
                   19359:
1.27      millert  19360:        sudo_cv___progname=no
1.9       millert  19361: fi
1.27      millert  19362:
                   19363: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19364:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19365: fi
1.25      millert  19366:
1.27      millert  19367:     if test "$sudo_cv___progname" = "yes"; then
                   19368:        cat >>confdefs.h <<\_ACEOF
                   19369: #define HAVE___PROGNAME 1
                   19370: _ACEOF
                   19371:
                   19372:     else
                   19373:        case " $LIBOBJS " in
                   19374:   *" getprogname.$ac_objext "* ) ;;
                   19375:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
                   19376:  ;;
                   19377: esac
                   19378:
                   19379:     fi
                   19380:     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
                   19381: echo "${ECHO_T}$sudo_cv___progname" >&6; }
                   19382:
                   19383: fi
                   19384: done
                   19385:
                   19386:
                   19387:
                   19388: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
                   19389:     for auth in $AUTH_EXCL_DEF; do
                   19390:        case $auth in
                   19391:            AIX_AUTH)   with_aixauth=maybe;;
                   19392:            BSD_AUTH)   with_bsdauth=maybe;;
                   19393:            PAM)        with_pam=maybe;;
                   19394:            SIA)        CHECKSIA=true;;
                   19395:        esac
                   19396:     done
                   19397: fi
                   19398:
                   19399: if test ${with_pam-"no"} != "no"; then
                   19400:                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
                   19401: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
                   19402: if test "${ac_cv_lib_dl_main+set}" = set; then
1.9       millert  19403:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19404: else
1.25      millert  19405:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  19406: LIBS="-ldl  $LIBS"
1.25      millert  19407: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19408: /* confdefs.h.  */
                   19409: _ACEOF
                   19410: cat confdefs.h >>conftest.$ac_ext
                   19411: cat >>conftest.$ac_ext <<_ACEOF
                   19412: /* end confdefs.h.  */
1.25      millert  19413:
1.1       millert  19414:
1.16      millert  19415: int
                   19416: main ()
                   19417: {
1.27      millert  19418: return main ();
1.9       millert  19419:   ;
                   19420:   return 0;
                   19421: }
                   19422: _ACEOF
                   19423: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19424: if { (ac_try="$ac_link"
                   19425: case "(($ac_try" in
                   19426:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19427:   *) ac_try_echo=$ac_try;;
                   19428: esac
                   19429: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19430:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19431:   ac_status=$?
1.25      millert  19432:   grep -v '^ *+' conftest.er1 >conftest.err
                   19433:   rm -f conftest.er1
                   19434:   cat conftest.err >&5
1.16      millert  19435:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19436:   (exit $ac_status); } && {
                   19437:         test -z "$ac_c_werror_flag" ||
                   19438:         test ! -s conftest.err
                   19439:        } && test -s conftest$ac_exeext &&
                   19440:        $as_test_x conftest$ac_exeext; then
                   19441:   ac_cv_lib_dl_main=yes
1.25      millert  19442: else
                   19443:   echo "$as_me: failed program was:" >&5
                   19444: sed 's/^/| /' conftest.$ac_ext >&5
                   19445:
1.27      millert  19446:        ac_cv_lib_dl_main=no
1.9       millert  19447: fi
1.27      millert  19448:
                   19449: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19450:       conftest$ac_exeext conftest.$ac_ext
                   19451: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19452: fi
1.27      millert  19453: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
                   19454: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
                   19455: if test $ac_cv_lib_dl_main = yes; then
                   19456:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
1.1       millert  19457: else
1.27      millert  19458:   SUDO_LIBS="${SUDO_LIBS} -lpam"
1.25      millert  19459: fi
                   19460:
1.27      millert  19461:     ac_cv_lib_dl=ac_cv_lib_dl_main
                   19462:
1.25      millert  19463:
                   19464:
1.27      millert  19465: for ac_header in security/pam_appl.h pam/pam_appl.h
                   19466: do
                   19467: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   19468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   19469:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   19470: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   19471: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   19472:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  19473: fi
1.27      millert  19474: ac_res=`eval echo '${'$as_ac_Header'}'`
                   19475:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19476: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  19477: else
1.27      millert  19478:   # Is the header compilable?
                   19479: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   19480: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   19481: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19482: /* confdefs.h.  */
                   19483: _ACEOF
                   19484: cat confdefs.h >>conftest.$ac_ext
                   19485: cat >>conftest.$ac_ext <<_ACEOF
                   19486: /* end confdefs.h.  */
1.27      millert  19487: $ac_includes_default
                   19488: #include <$ac_header>
1.9       millert  19489: _ACEOF
1.25      millert  19490: rm -f conftest.$ac_objext
1.27      millert  19491: if { (ac_try="$ac_compile"
                   19492: case "(($ac_try" in
                   19493:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19494:   *) ac_try_echo=$ac_try;;
                   19495: esac
                   19496: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19497:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  19498:   ac_status=$?
1.25      millert  19499:   grep -v '^ *+' conftest.er1 >conftest.err
                   19500:   rm -f conftest.er1
                   19501:   cat conftest.err >&5
1.16      millert  19502:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19503:   (exit $ac_status); } && {
                   19504:         test -z "$ac_c_werror_flag" ||
                   19505:         test ! -s conftest.err
                   19506:        } && test -s conftest.$ac_objext; then
                   19507:   ac_header_compiler=yes
1.9       millert  19508: else
                   19509:   echo "$as_me: failed program was:" >&5
1.16      millert  19510: sed 's/^/| /' conftest.$ac_ext >&5
                   19511:
1.27      millert  19512:        ac_header_compiler=no
                   19513: fi
1.25      millert  19514:
1.27      millert  19515: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19516: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   19517: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  19518:
1.27      millert  19519: # Is the header present?
                   19520: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   19521: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   19522: cat >conftest.$ac_ext <<_ACEOF
                   19523: /* confdefs.h.  */
1.25      millert  19524: _ACEOF
1.27      millert  19525: cat confdefs.h >>conftest.$ac_ext
                   19526: cat >>conftest.$ac_ext <<_ACEOF
                   19527: /* end confdefs.h.  */
                   19528: #include <$ac_header>
1.25      millert  19529: _ACEOF
1.27      millert  19530: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   19531: case "(($ac_try" in
                   19532:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19533:   *) ac_try_echo=$ac_try;;
                   19534: esac
                   19535: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19536:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  19537:   ac_status=$?
                   19538:   grep -v '^ *+' conftest.er1 >conftest.err
                   19539:   rm -f conftest.er1
                   19540:   cat conftest.err >&5
                   19541:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19542:   (exit $ac_status); } >/dev/null && {
                   19543:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   19544:         test ! -s conftest.err
                   19545:        }; then
                   19546:   ac_header_preproc=yes
1.1       millert  19547: else
1.25      millert  19548:   echo "$as_me: failed program was:" >&5
                   19549: sed 's/^/| /' conftest.$ac_ext >&5
                   19550:
1.27      millert  19551:   ac_header_preproc=no
                   19552: fi
                   19553:
                   19554: rm -f conftest.err conftest.$ac_ext
                   19555: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   19556: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   19557:
                   19558: # So?  What about this header?
                   19559: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   19560:   yes:no: )
                   19561:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   19562: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   19563:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   19564: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   19565:     ac_header_preproc=yes
                   19566:     ;;
                   19567:   no:yes:* )
                   19568:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   19569: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   19570:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   19571: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   19572:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   19573: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   19574:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   19575: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   19576:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   19577: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   19578:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   19579: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   19580:
                   19581:     ;;
                   19582: esac
                   19583: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   19584: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   19585: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   19586:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19587: else
                   19588:   eval "$as_ac_Header=\$ac_header_preproc"
                   19589: fi
                   19590: ac_res=`eval echo '${'$as_ac_Header'}'`
                   19591:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19592: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  19593:
                   19594: fi
1.27      millert  19595: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   19596:   cat >>confdefs.h <<_ACEOF
                   19597: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   19598: _ACEOF
                   19599:  with_pam=yes; break
                   19600: fi
                   19601:
                   19602: done
                   19603:
                   19604:     if test "$with_pam" = "yes"; then
                   19605:        cat >>confdefs.h <<\_ACEOF
                   19606: #define HAVE_PAM 1
                   19607: _ACEOF
1.25      millert  19608:
1.27      millert  19609:        AUTH_OBJS="$AUTH_OBJS pam.o";
                   19610:        AUTH_EXCL=PAM
1.30      millert  19611:        { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
                   19612: echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
                   19613:        # Check whether --enable-pam_session was given.
                   19614: if test "${enable_pam_session+set}" = set; then
                   19615:   enableval=$enable_pam_session;  case "$enableval" in
                   19616:                yes)    { echo "$as_me:$LINENO: result: yes" >&5
                   19617: echo "${ECHO_T}yes" >&6; }
                   19618:                        ;;
                   19619:                no)             { echo "$as_me:$LINENO: result: no" >&5
                   19620: echo "${ECHO_T}no" >&6; }
                   19621:                            cat >>confdefs.h <<\_ACEOF
                   19622: #define NO_PAM_SESSION 1
                   19623: _ACEOF
                   19624:
                   19625:                            ;;
                   19626:                *)              { echo "$as_me:$LINENO: result: no" >&5
                   19627: echo "${ECHO_T}no" >&6; }
                   19628:                            { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
                   19629: echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
                   19630:                            ;;
                   19631:            esac
                   19632: else
                   19633:   { echo "$as_me:$LINENO: result: yes" >&5
                   19634: echo "${ECHO_T}yes" >&6; }
                   19635: fi
                   19636:
1.32      millert  19637:        case $host in
                   19638:            *-*-linux*|*-*-solaris*)
                   19639:
                   19640: for ac_func in dgettext
                   19641: do
                   19642: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19643: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19644: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19645: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   19646:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19647: else
                   19648:   cat >conftest.$ac_ext <<_ACEOF
                   19649: /* confdefs.h.  */
                   19650: _ACEOF
                   19651: cat confdefs.h >>conftest.$ac_ext
                   19652: cat >>conftest.$ac_ext <<_ACEOF
                   19653: /* end confdefs.h.  */
                   19654: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19655:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19656: #define $ac_func innocuous_$ac_func
                   19657:
                   19658: /* System header to define __stub macros and hopefully few prototypes,
                   19659:     which can conflict with char $ac_func (); below.
                   19660:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19661:     <limits.h> exists even on freestanding compilers.  */
                   19662:
                   19663: #ifdef __STDC__
                   19664: # include <limits.h>
                   19665: #else
                   19666: # include <assert.h>
                   19667: #endif
                   19668:
                   19669: #undef $ac_func
                   19670:
                   19671: /* Override any GCC internal prototype to avoid an error.
                   19672:    Use char because int might match the return type of a GCC
                   19673:    builtin and then its argument prototype would still apply.  */
                   19674: #ifdef __cplusplus
                   19675: extern "C"
                   19676: #endif
                   19677: char $ac_func ();
                   19678: /* The GNU C library defines this for functions which it implements
                   19679:     to always fail with ENOSYS.  Some functions are actually named
                   19680:     something starting with __ and the normal name is an alias.  */
                   19681: #if defined __stub_$ac_func || defined __stub___$ac_func
                   19682: choke me
                   19683: #endif
                   19684:
                   19685: int
                   19686: main ()
                   19687: {
                   19688: return $ac_func ();
                   19689:   ;
                   19690:   return 0;
                   19691: }
                   19692: _ACEOF
                   19693: rm -f conftest.$ac_objext conftest$ac_exeext
                   19694: if { (ac_try="$ac_link"
                   19695: case "(($ac_try" in
                   19696:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19697:   *) ac_try_echo=$ac_try;;
                   19698: esac
                   19699: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19700:   (eval "$ac_link") 2>conftest.er1
                   19701:   ac_status=$?
                   19702:   grep -v '^ *+' conftest.er1 >conftest.err
                   19703:   rm -f conftest.er1
                   19704:   cat conftest.err >&5
                   19705:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19706:   (exit $ac_status); } && {
                   19707:         test -z "$ac_c_werror_flag" ||
                   19708:         test ! -s conftest.err
                   19709:        } && test -s conftest$ac_exeext &&
                   19710:        $as_test_x conftest$ac_exeext; then
                   19711:   eval "$as_ac_var=yes"
                   19712: else
                   19713:   echo "$as_me: failed program was:" >&5
                   19714: sed 's/^/| /' conftest.$ac_ext >&5
                   19715:
                   19716:        eval "$as_ac_var=no"
                   19717: fi
                   19718:
                   19719: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19720:       conftest$ac_exeext conftest.$ac_ext
                   19721: fi
                   19722: ac_res=`eval echo '${'$as_ac_var'}'`
                   19723:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19724: echo "${ECHO_T}$ac_res" >&6; }
                   19725: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   19726:   cat >>confdefs.h <<_ACEOF
                   19727: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   19728: _ACEOF
                   19729:
                   19730: else
                   19731:   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
                   19732: echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
                   19733: if test "${ac_cv_lib_intl_dgettext+set}" = set; then
                   19734:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19735: else
                   19736:   ac_check_lib_save_LIBS=$LIBS
                   19737: LIBS="-lintl  $LIBS"
                   19738: cat >conftest.$ac_ext <<_ACEOF
                   19739: /* confdefs.h.  */
                   19740: _ACEOF
                   19741: cat confdefs.h >>conftest.$ac_ext
                   19742: cat >>conftest.$ac_ext <<_ACEOF
                   19743: /* end confdefs.h.  */
                   19744:
                   19745: /* Override any GCC internal prototype to avoid an error.
                   19746:    Use char because int might match the return type of a GCC
                   19747:    builtin and then its argument prototype would still apply.  */
                   19748: #ifdef __cplusplus
                   19749: extern "C"
                   19750: #endif
                   19751: char dgettext ();
                   19752: int
                   19753: main ()
                   19754: {
                   19755: return dgettext ();
                   19756:   ;
                   19757:   return 0;
                   19758: }
                   19759: _ACEOF
                   19760: rm -f conftest.$ac_objext conftest$ac_exeext
                   19761: if { (ac_try="$ac_link"
                   19762: case "(($ac_try" in
                   19763:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19764:   *) ac_try_echo=$ac_try;;
                   19765: esac
                   19766: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19767:   (eval "$ac_link") 2>conftest.er1
                   19768:   ac_status=$?
                   19769:   grep -v '^ *+' conftest.er1 >conftest.err
                   19770:   rm -f conftest.er1
                   19771:   cat conftest.err >&5
                   19772:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19773:   (exit $ac_status); } && {
                   19774:         test -z "$ac_c_werror_flag" ||
                   19775:         test ! -s conftest.err
                   19776:        } && test -s conftest$ac_exeext &&
                   19777:        $as_test_x conftest$ac_exeext; then
                   19778:   ac_cv_lib_intl_dgettext=yes
                   19779: else
                   19780:   echo "$as_me: failed program was:" >&5
                   19781: sed 's/^/| /' conftest.$ac_ext >&5
                   19782:
                   19783:        ac_cv_lib_intl_dgettext=no
                   19784: fi
                   19785:
                   19786: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19787:       conftest$ac_exeext conftest.$ac_ext
                   19788: LIBS=$ac_check_lib_save_LIBS
                   19789: fi
                   19790: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
                   19791: echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
                   19792: if test $ac_cv_lib_intl_dgettext = yes; then
                   19793:   LIBS="${LIBS} -lintl"
                   19794:                        cat >>confdefs.h <<\_ACEOF
                   19795: #define HAVE_DGETTEXT 1
                   19796: _ACEOF
                   19797:
                   19798: fi
                   19799:
                   19800: fi
                   19801: done
                   19802:
                   19803:                    ;;
                   19804:        esac
1.25      millert  19805:     fi
1.27      millert  19806: fi
                   19807:
                   19808: if test ${with_aixauth-'no'} != "no"; then
                   19809:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   19810:        { echo "$as_me:$LINENO: using AIX general authentication" >&5
                   19811: echo "$as_me: using AIX general authentication" >&6;}
                   19812:        cat >>confdefs.h <<\_ACEOF
                   19813: #define HAVE_AIXAUTH 1
                   19814: _ACEOF
1.25      millert  19815:
1.27      millert  19816:        AUTH_OBJS="$AUTH_OBJS aix_auth.o";
                   19817:        SUDO_LIBS="${SUDO_LIBS} -ls"
                   19818:        AUTH_EXCL=AIX_AUTH
1.25      millert  19819:     fi
1.27      millert  19820: fi
1.25      millert  19821:
1.27      millert  19822: if test ${with_bsdauth-'no'} != "no"; then
                   19823:     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   19824:   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   19825: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   19826: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   19827:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19828: fi
                   19829: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   19830: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
                   19831: else
                   19832:   # Is the header compilable?
                   19833: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
                   19834: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
                   19835: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19836: /* confdefs.h.  */
                   19837: _ACEOF
                   19838: cat confdefs.h >>conftest.$ac_ext
                   19839: cat >>conftest.$ac_ext <<_ACEOF
                   19840: /* end confdefs.h.  */
1.27      millert  19841: $ac_includes_default
                   19842: #include <bsd_auth.h>
1.9       millert  19843: _ACEOF
1.25      millert  19844: rm -f conftest.$ac_objext
1.27      millert  19845: if { (ac_try="$ac_compile"
                   19846: case "(($ac_try" in
                   19847:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19848:   *) ac_try_echo=$ac_try;;
                   19849: esac
                   19850: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19851:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  19852:   ac_status=$?
1.25      millert  19853:   grep -v '^ *+' conftest.er1 >conftest.err
                   19854:   rm -f conftest.er1
                   19855:   cat conftest.err >&5
1.16      millert  19856:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19857:   (exit $ac_status); } && {
                   19858:         test -z "$ac_c_werror_flag" ||
                   19859:         test ! -s conftest.err
                   19860:        } && test -s conftest.$ac_objext; then
                   19861:   ac_header_compiler=yes
                   19862: else
                   19863:   echo "$as_me: failed program was:" >&5
                   19864: sed 's/^/| /' conftest.$ac_ext >&5
                   19865:
                   19866:        ac_header_compiler=no
                   19867: fi
1.16      millert  19868:
1.27      millert  19869: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19870: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   19871: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  19872:
1.27      millert  19873: # Is the header present?
                   19874: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
                   19875: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.9       millert  19876: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19877: /* confdefs.h.  */
                   19878: _ACEOF
                   19879: cat confdefs.h >>conftest.$ac_ext
                   19880: cat >>conftest.$ac_ext <<_ACEOF
                   19881: /* end confdefs.h.  */
1.27      millert  19882: #include <bsd_auth.h>
1.9       millert  19883: _ACEOF
1.27      millert  19884: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   19885: case "(($ac_try" in
                   19886:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19887:   *) ac_try_echo=$ac_try;;
                   19888: esac
                   19889: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19890:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  19891:   ac_status=$?
1.25      millert  19892:   grep -v '^ *+' conftest.er1 >conftest.err
                   19893:   rm -f conftest.er1
                   19894:   cat conftest.err >&5
1.16      millert  19895:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19896:   (exit $ac_status); } >/dev/null && {
                   19897:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   19898:         test ! -s conftest.err
                   19899:        }; then
                   19900:   ac_header_preproc=yes
1.9       millert  19901: else
                   19902:   echo "$as_me: failed program was:" >&5
1.16      millert  19903: sed 's/^/| /' conftest.$ac_ext >&5
                   19904:
1.27      millert  19905:   ac_header_preproc=no
1.25      millert  19906: fi
                   19907:
1.27      millert  19908: rm -f conftest.err conftest.$ac_ext
                   19909: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   19910: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   19911:
                   19912: # So?  What about this header?
                   19913: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   19914:   yes:no: )
                   19915:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   19916: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   19917:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
                   19918: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
                   19919:     ac_header_preproc=yes
                   19920:     ;;
                   19921:   no:yes:* )
                   19922:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
                   19923: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
                   19924:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
                   19925: echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
                   19926:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
                   19927: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
                   19928:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
                   19929: echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   19930:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
                   19931: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
                   19932:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
                   19933: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.25      millert  19934:
1.27      millert  19935:     ;;
                   19936: esac
                   19937: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   19938: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   19939: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   19940:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  19941: else
1.27      millert  19942:   ac_cv_header_bsd_auth_h=$ac_header_preproc
                   19943: fi
                   19944: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   19945: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25      millert  19946:
1.1       millert  19947: fi
1.27      millert  19948: if test $ac_cv_header_bsd_auth_h = yes; then
                   19949:   cat >>confdefs.h <<\_ACEOF
                   19950: #define HAVE_BSD_AUTH_H 1
                   19951: _ACEOF
1.1       millert  19952:
1.27      millert  19953:        AUTH_OBJS="$AUTH_OBJS bsdauth.o"
                   19954:        BSDAUTH_USAGE='[-a auth_type] '
                   19955:        AUTH_EXCL=BSD_AUTH
1.25      millert  19956: else
1.27      millert  19957:   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
                   19958: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
                   19959:    { (exit 1); exit 1; }; }
1.1       millert  19960: fi
                   19961:
                   19962:
1.27      millert  19963: fi
                   19964:
                   19965: if test ${CHECKSIA-'false'} = "true"; then
1.1       millert  19966:
1.27      millert  19967: for ac_func in sia_ses_init
1.25      millert  19968: do
                   19969: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  19970: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19971: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19972: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  19973:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19974: else
1.9       millert  19975:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19976: /* confdefs.h.  */
                   19977: _ACEOF
                   19978: cat confdefs.h >>conftest.$ac_ext
                   19979: cat >>conftest.$ac_ext <<_ACEOF
                   19980: /* end confdefs.h.  */
1.25      millert  19981: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19982:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19983: #define $ac_func innocuous_$ac_func
                   19984:
1.1       millert  19985: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  19986:     which can conflict with char $ac_func (); below.
1.16      millert  19987:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19988:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  19989:
1.16      millert  19990: #ifdef __STDC__
                   19991: # include <limits.h>
                   19992: #else
                   19993: # include <assert.h>
                   19994: #endif
1.25      millert  19995:
                   19996: #undef $ac_func
                   19997:
1.27      millert  19998: /* Override any GCC internal prototype to avoid an error.
                   19999:    Use char because int might match the return type of a GCC
                   20000:    builtin and then its argument prototype would still apply.  */
1.9       millert  20001: #ifdef __cplusplus
                   20002: extern "C"
                   20003: #endif
1.25      millert  20004: char $ac_func ();
1.1       millert  20005: /* The GNU C library defines this for functions which it implements
                   20006:     to always fail with ENOSYS.  Some functions are actually named
                   20007:     something starting with __ and the normal name is an alias.  */
1.27      millert  20008: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1       millert  20009: choke me
                   20010: #endif
                   20011:
1.16      millert  20012: int
                   20013: main ()
                   20014: {
1.27      millert  20015: return $ac_func ();
1.9       millert  20016:   ;
                   20017:   return 0;
                   20018: }
                   20019: _ACEOF
                   20020: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20021: if { (ac_try="$ac_link"
                   20022: case "(($ac_try" in
                   20023:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20024:   *) ac_try_echo=$ac_try;;
                   20025: esac
                   20026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20027:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20028:   ac_status=$?
1.25      millert  20029:   grep -v '^ *+' conftest.er1 >conftest.err
                   20030:   rm -f conftest.er1
                   20031:   cat conftest.err >&5
1.16      millert  20032:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20033:   (exit $ac_status); } && {
                   20034:         test -z "$ac_c_werror_flag" ||
                   20035:         test ! -s conftest.err
                   20036:        } && test -s conftest$ac_exeext &&
                   20037:        $as_test_x conftest$ac_exeext; then
1.25      millert  20038:   eval "$as_ac_var=yes"
1.9       millert  20039: else
                   20040:   echo "$as_me: failed program was:" >&5
1.16      millert  20041: sed 's/^/| /' conftest.$ac_ext >&5
                   20042:
1.27      millert  20043:        eval "$as_ac_var=no"
1.25      millert  20044: fi
1.27      millert  20045:
                   20046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20047:       conftest$ac_exeext conftest.$ac_ext
                   20048: fi
1.27      millert  20049: ac_res=`eval echo '${'$as_ac_var'}'`
                   20050:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20051: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  20052: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20053:   cat >>confdefs.h <<_ACEOF
                   20054: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20055: _ACEOF
1.27      millert  20056:  found=true
                   20057: else
                   20058:   found=false
1.25      millert  20059: fi
                   20060: done
                   20061:
1.27      millert  20062:     if test "$found" = "true"; then
                   20063:        AUTH_EXCL=SIA
                   20064:        AUTH_OBJS="$AUTH_OBJS sia.o"
                   20065:     fi
1.9       millert  20066: fi
1.25      millert  20067:
1.27      millert  20068: if test ${with_fwtk-'no'} != "no"; then
                   20069:     if test "$with_fwtk" != "yes"; then
                   20070:
                   20071:     if test X"$with_rpath" = X"yes"; then
                   20072:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
                   20073:     else
                   20074:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   20075:     fi
                   20076:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20077:        blibpath_add="${blibpath_add}:${with_fwtk}"
                   20078:     fi
                   20079:
                   20080:        CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   20081:        with_fwtk=yes
                   20082:     fi
                   20083:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   20084:     AUTH_OBJS="$AUTH_OBJS fwtk.o"
1.9       millert  20085: fi
1.25      millert  20086:
1.27      millert  20087: if test ${with_SecurID-'no'} != "no"; then
                   20088:     if test "$with_SecurID" != "yes"; then
                   20089:        :
                   20090:     elif test -d /usr/ace/examples; then
                   20091:        with_SecurID=/usr/ace/examples
                   20092:     else
                   20093:        with_SecurID=/usr/ace
                   20094:     fi
                   20095:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   20096:     _LDFLAGS="${LDFLAGS}"
                   20097:
                   20098:     if test X"$with_rpath" = X"yes"; then
                   20099:        LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
                   20100:     else
                   20101:        LDFLAGS="${LDFLAGS} -L${with_SecurID}"
                   20102:     fi
                   20103:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20104:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20105:     fi
                   20106:
                   20107:     #
                   20108:     # Determine whether to use the new or old SecurID API
                   20109:     #
                   20110:     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
                   20111: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
                   20112: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.9       millert  20113:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20114: else
1.9       millert  20115:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  20116: LIBS="-laceclnt
                   20117:            -lpthread
                   20118:
                   20119:      $LIBS"
1.9       millert  20120: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20121: /* confdefs.h.  */
                   20122: _ACEOF
                   20123: cat confdefs.h >>conftest.$ac_ext
                   20124: cat >>conftest.$ac_ext <<_ACEOF
                   20125: /* end confdefs.h.  */
1.9       millert  20126:
1.27      millert  20127: /* Override any GCC internal prototype to avoid an error.
                   20128:    Use char because int might match the return type of a GCC
                   20129:    builtin and then its argument prototype would still apply.  */
                   20130: #ifdef __cplusplus
                   20131: extern "C"
                   20132: #endif
                   20133: char SD_Init ();
1.9       millert  20134: int
                   20135: main ()
                   20136: {
1.27      millert  20137: return SD_Init ();
1.9       millert  20138:   ;
                   20139:   return 0;
                   20140: }
                   20141: _ACEOF
                   20142: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20143: if { (ac_try="$ac_link"
                   20144: case "(($ac_try" in
                   20145:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20146:   *) ac_try_echo=$ac_try;;
                   20147: esac
                   20148: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20149:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20150:   ac_status=$?
1.25      millert  20151:   grep -v '^ *+' conftest.er1 >conftest.err
                   20152:   rm -f conftest.er1
                   20153:   cat conftest.err >&5
1.16      millert  20154:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20155:   (exit $ac_status); } && {
                   20156:         test -z "$ac_c_werror_flag" ||
                   20157:         test ! -s conftest.err
                   20158:        } && test -s conftest$ac_exeext &&
                   20159:        $as_test_x conftest$ac_exeext; then
                   20160:   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.9       millert  20161: else
                   20162:   echo "$as_me: failed program was:" >&5
1.16      millert  20163: sed 's/^/| /' conftest.$ac_ext >&5
                   20164:
1.27      millert  20165:        ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.9       millert  20166: fi
1.27      millert  20167:
                   20168: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20169:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20170: LIBS=$ac_check_lib_save_LIBS
                   20171: fi
1.27      millert  20172: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
                   20173: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
                   20174: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
                   20175:
                   20176:            AUTH_OBJS="$AUTH_OBJS securid5.o";
                   20177:            SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
                   20178:
                   20179:
                   20180:
                   20181:     if test X"$with_rpath" = X"yes"; then
                   20182:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
                   20183:     else
                   20184:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
                   20185:     fi
                   20186:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20187:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20188:     fi
                   20189:
                   20190:
                   20191: else
                   20192:
                   20193:            AUTH_OBJS="$AUTH_OBJS securid.o";
                   20194:            SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   20195:
                   20196: fi
                   20197:
                   20198:     LDFLAGS="${_LDFLAGS}"
                   20199: fi
                   20200:
                   20201:
                   20202: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
                   20203:     for auth in $AUTH_DEF; do
                   20204:        case $auth in
                   20205:            passwd)     : ${with_passwd='maybe'};;
                   20206:        esac
                   20207:     done
                   20208: fi
                   20209:
                   20210: if test ${with_kerb4-'no'} != "no"; then
                   20211:     cat >>confdefs.h <<\_ACEOF
                   20212: #define HAVE_KERB4 1
                   20213: _ACEOF
                   20214:
                   20215:                 O_LDFLAGS="$LDFLAGS"
                   20216:     if test "$with_kerb4" = "yes"; then
                   20217:        found=no
                   20218:        O_CPPFLAGS="$CPPFLAGS"
                   20219:        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
                   20220:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   20221:            cat >conftest.$ac_ext <<_ACEOF
                   20222: #include <krb.h>
                   20223: _ACEOF
                   20224: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20225: case "(($ac_try" in
                   20226:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20227:   *) ac_try_echo=$ac_try;;
                   20228: esac
                   20229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20230:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   20231:   ac_status=$?
                   20232:   grep -v '^ *+' conftest.er1 >conftest.err
                   20233:   rm -f conftest.er1
                   20234:   cat conftest.err >&5
                   20235:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20236:   (exit $ac_status); } >/dev/null && {
                   20237:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20238:         test ! -s conftest.err
                   20239:        }; then
                   20240:   found=yes; break
1.1       millert  20241: else
1.27      millert  20242:   echo "$as_me: failed program was:" >&5
                   20243: sed 's/^/| /' conftest.$ac_ext >&5
                   20244:
                   20245:
1.25      millert  20246: fi
                   20247:
1.27      millert  20248: rm -f conftest.err conftest.$ac_ext
                   20249:        done
                   20250:        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
                   20251:     else
                   20252:
                   20253:     if test X"$with_rpath" = X"yes"; then
                   20254:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   20255:     else
                   20256:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
                   20257:     fi
                   20258:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20259:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   20260:     fi
1.25      millert  20261:
                   20262:
1.27      millert  20263:     if test X"$with_rpath" = X"yes"; then
                   20264:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   20265:     else
                   20266:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
                   20267:     fi
                   20268:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20269:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   20270:     fi
1.25      millert  20271:
1.27      millert  20272:        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
                   20273:        if test "${ac_cv_header_krb_h+set}" = set; then
                   20274:   { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20275: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20276: if test "${ac_cv_header_krb_h+set}" = set; then
1.9       millert  20277:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20278: fi
1.27      millert  20279: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20280: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.1       millert  20281: else
1.25      millert  20282:   # Is the header compilable?
1.27      millert  20283: { echo "$as_me:$LINENO: checking krb.h usability" >&5
                   20284: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.9       millert  20285: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20286: /* confdefs.h.  */
                   20287: _ACEOF
                   20288: cat confdefs.h >>conftest.$ac_ext
                   20289: cat >>conftest.$ac_ext <<_ACEOF
                   20290: /* end confdefs.h.  */
1.25      millert  20291: $ac_includes_default
1.27      millert  20292: #include <krb.h>
1.9       millert  20293: _ACEOF
1.25      millert  20294: rm -f conftest.$ac_objext
1.27      millert  20295: if { (ac_try="$ac_compile"
                   20296: case "(($ac_try" in
                   20297:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20298:   *) ac_try_echo=$ac_try;;
                   20299: esac
                   20300: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20301:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20302:   ac_status=$?
1.25      millert  20303:   grep -v '^ *+' conftest.er1 >conftest.err
                   20304:   rm -f conftest.er1
                   20305:   cat conftest.err >&5
1.16      millert  20306:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20307:   (exit $ac_status); } && {
                   20308:         test -z "$ac_c_werror_flag" ||
                   20309:         test ! -s conftest.err
                   20310:        } && test -s conftest.$ac_objext; then
1.25      millert  20311:   ac_header_compiler=yes
1.9       millert  20312: else
                   20313:   echo "$as_me: failed program was:" >&5
1.16      millert  20314: sed 's/^/| /' conftest.$ac_ext >&5
                   20315:
1.27      millert  20316:        ac_header_compiler=no
1.9       millert  20317: fi
1.27      millert  20318:
                   20319: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20320: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20321: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20322:
                   20323: # Is the header present?
1.27      millert  20324: { echo "$as_me:$LINENO: checking krb.h presence" >&5
                   20325: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9       millert  20326: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20327: /* confdefs.h.  */
                   20328: _ACEOF
                   20329: cat confdefs.h >>conftest.$ac_ext
                   20330: cat >>conftest.$ac_ext <<_ACEOF
                   20331: /* end confdefs.h.  */
1.27      millert  20332: #include <krb.h>
1.9       millert  20333: _ACEOF
1.27      millert  20334: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20335: case "(($ac_try" in
                   20336:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20337:   *) ac_try_echo=$ac_try;;
                   20338: esac
                   20339: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20340:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  20341:   ac_status=$?
1.25      millert  20342:   grep -v '^ *+' conftest.er1 >conftest.err
                   20343:   rm -f conftest.er1
                   20344:   cat conftest.err >&5
1.16      millert  20345:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20346:   (exit $ac_status); } >/dev/null && {
                   20347:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20348:         test ! -s conftest.err
                   20349:        }; then
1.25      millert  20350:   ac_header_preproc=yes
1.9       millert  20351: else
                   20352:   echo "$as_me: failed program was:" >&5
1.25      millert  20353: sed 's/^/| /' conftest.$ac_ext >&5
                   20354:
                   20355:   ac_header_preproc=no
                   20356: fi
1.27      millert  20357:
1.25      millert  20358: rm -f conftest.err conftest.$ac_ext
1.27      millert  20359: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20360: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  20361:
                   20362: # So?  What about this header?
                   20363: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20364:   yes:no: )
1.27      millert  20365:     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   20366: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20367:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
                   20368: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.25      millert  20369:     ac_header_preproc=yes
                   20370:     ;;
                   20371:   no:yes:* )
1.27      millert  20372:     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
                   20373: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
                   20374:     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
                   20375: echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
                   20376:     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
                   20377: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
                   20378:     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
                   20379: echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20380:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
                   20381: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
                   20382:     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
                   20383: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.25      millert  20384:
1.27      millert  20385:     ;;
                   20386: esac
                   20387: { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20388: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20389: if test "${ac_cv_header_krb_h+set}" = set; then
                   20390:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20391: else
                   20392:   ac_cv_header_krb_h=$ac_header_preproc
                   20393: fi
                   20394: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20395: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25      millert  20396:
1.27      millert  20397: fi
                   20398: if test $ac_cv_header_krb_h = yes; then
                   20399:   found=yes
1.25      millert  20400: else
1.27      millert  20401:   found=no
1.1       millert  20402: fi
                   20403:
1.27      millert  20404:
                   20405:     fi
                   20406:     if test X"$found" = X"no"; then
                   20407:        { 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
                   20408: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
1.25      millert  20409:     fi
1.1       millert  20410:
1.27      millert  20411:                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
                   20412: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
                   20413: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9       millert  20414:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20415: else
1.27      millert  20416:   ac_check_lib_save_LIBS=$LIBS
                   20417: LIBS="-ldes  $LIBS"
                   20418: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20419: /* confdefs.h.  */
                   20420: _ACEOF
                   20421: cat confdefs.h >>conftest.$ac_ext
                   20422: cat >>conftest.$ac_ext <<_ACEOF
                   20423: /* end confdefs.h.  */
1.25      millert  20424:
1.27      millert  20425: /* Override any GCC internal prototype to avoid an error.
                   20426:    Use char because int might match the return type of a GCC
                   20427:    builtin and then its argument prototype would still apply.  */
1.9       millert  20428: #ifdef __cplusplus
                   20429: extern "C"
                   20430: #endif
1.27      millert  20431: char des_cbc_encrypt ();
1.16      millert  20432: int
                   20433: main ()
                   20434: {
1.27      millert  20435: return des_cbc_encrypt ();
1.9       millert  20436:   ;
                   20437:   return 0;
                   20438: }
                   20439: _ACEOF
                   20440: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20441: if { (ac_try="$ac_link"
                   20442: case "(($ac_try" in
                   20443:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20444:   *) ac_try_echo=$ac_try;;
                   20445: esac
                   20446: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20447:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20448:   ac_status=$?
1.25      millert  20449:   grep -v '^ *+' conftest.er1 >conftest.err
                   20450:   rm -f conftest.er1
                   20451:   cat conftest.err >&5
1.16      millert  20452:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20453:   (exit $ac_status); } && {
                   20454:         test -z "$ac_c_werror_flag" ||
                   20455:         test ! -s conftest.err
                   20456:        } && test -s conftest$ac_exeext &&
                   20457:        $as_test_x conftest$ac_exeext; then
                   20458:   ac_cv_lib_des_des_cbc_encrypt=yes
1.9       millert  20459: else
                   20460:   echo "$as_me: failed program was:" >&5
1.16      millert  20461: sed 's/^/| /' conftest.$ac_ext >&5
                   20462:
1.27      millert  20463:        ac_cv_lib_des_des_cbc_encrypt=no
1.25      millert  20464: fi
1.27      millert  20465:
                   20466: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20467:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  20468: LIBS=$ac_check_lib_save_LIBS
1.9       millert  20469: fi
1.27      millert  20470: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
                   20471: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
                   20472: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
                   20473:   K4LIBS="-ldes"
                   20474: else
1.25      millert  20475:
1.27      millert  20476:        { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
                   20477: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
                   20478: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9       millert  20479:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  20480: else
1.27      millert  20481:   ac_check_lib_save_LIBS=$LIBS
                   20482: LIBS="-ldes425  $LIBS"
                   20483: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20484: /* confdefs.h.  */
                   20485: _ACEOF
                   20486: cat confdefs.h >>conftest.$ac_ext
                   20487: cat >>conftest.$ac_ext <<_ACEOF
                   20488: /* end confdefs.h.  */
1.25      millert  20489:
1.27      millert  20490: /* Override any GCC internal prototype to avoid an error.
                   20491:    Use char because int might match the return type of a GCC
                   20492:    builtin and then its argument prototype would still apply.  */
1.9       millert  20493: #ifdef __cplusplus
                   20494: extern "C"
                   20495: #endif
1.27      millert  20496: char des_cbc_encrypt ();
1.16      millert  20497: int
                   20498: main ()
                   20499: {
1.27      millert  20500: return des_cbc_encrypt ();
1.9       millert  20501:   ;
                   20502:   return 0;
                   20503: }
                   20504: _ACEOF
                   20505: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20506: if { (ac_try="$ac_link"
                   20507: case "(($ac_try" in
                   20508:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20509:   *) ac_try_echo=$ac_try;;
                   20510: esac
                   20511: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20512:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20513:   ac_status=$?
1.25      millert  20514:   grep -v '^ *+' conftest.er1 >conftest.err
                   20515:   rm -f conftest.er1
                   20516:   cat conftest.err >&5
1.16      millert  20517:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20518:   (exit $ac_status); } && {
                   20519:         test -z "$ac_c_werror_flag" ||
                   20520:         test ! -s conftest.err
                   20521:        } && test -s conftest$ac_exeext &&
                   20522:        $as_test_x conftest$ac_exeext; then
                   20523:   ac_cv_lib_des425_des_cbc_encrypt=yes
1.9       millert  20524: else
                   20525:   echo "$as_me: failed program was:" >&5
1.16      millert  20526: sed 's/^/| /' conftest.$ac_ext >&5
                   20527:
1.27      millert  20528:        ac_cv_lib_des425_des_cbc_encrypt=no
1.25      millert  20529: fi
1.27      millert  20530:
                   20531: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20532:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  20533: LIBS=$ac_check_lib_save_LIBS
1.25      millert  20534: fi
1.27      millert  20535: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
                   20536: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
                   20537: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
                   20538:   K4LIBS="-ldes425"
                   20539: else
                   20540:   K4LIBS=""
1.9       millert  20541: fi
1.25      millert  20542:
1.27      millert  20543:
1.9       millert  20544: fi
1.25      millert  20545:
1.27      millert  20546:                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
                   20547: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
                   20548:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20549: /* confdefs.h.  */
                   20550: _ACEOF
                   20551: cat confdefs.h >>conftest.$ac_ext
                   20552: cat >>conftest.$ac_ext <<_ACEOF
                   20553: /* end confdefs.h.  */
1.27      millert  20554: #include <krb.h>
1.9       millert  20555: int
                   20556: main ()
                   20557: {
1.27      millert  20558: const char *tmp = krb4_version;
1.9       millert  20559:   ;
                   20560:   return 0;
                   20561: }
                   20562: _ACEOF
1.27      millert  20563: rm -f conftest.$ac_objext
                   20564: if { (ac_try="$ac_compile"
                   20565: case "(($ac_try" in
                   20566:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20567:   *) ac_try_echo=$ac_try;;
                   20568: esac
                   20569: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20570:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20571:   ac_status=$?
1.25      millert  20572:   grep -v '^ *+' conftest.er1 >conftest.err
                   20573:   rm -f conftest.er1
                   20574:   cat conftest.err >&5
1.16      millert  20575:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20576:   (exit $ac_status); } && {
                   20577:         test -z "$ac_c_werror_flag" ||
                   20578:         test ! -s conftest.err
                   20579:        } && test -s conftest.$ac_objext; then
1.16      millert  20580:
1.27      millert  20581:            { echo "$as_me:$LINENO: result: yes" >&5
                   20582: echo "${ECHO_T}yes" >&6; }
                   20583:            K4LIBS="${K4LIBS} -lcom_err"
                   20584:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   20585: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   20586: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  20587:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20588: else
1.9       millert  20589:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  20590: LIBS="-lroken  $LIBS"
1.9       millert  20591: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20592: /* confdefs.h.  */
                   20593: _ACEOF
                   20594: cat confdefs.h >>conftest.$ac_ext
                   20595: cat >>conftest.$ac_ext <<_ACEOF
                   20596: /* end confdefs.h.  */
1.9       millert  20597:
1.27      millert  20598:
1.9       millert  20599: int
                   20600: main ()
                   20601: {
1.27      millert  20602: return main ();
1.9       millert  20603:   ;
                   20604:   return 0;
                   20605: }
                   20606: _ACEOF
                   20607: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20608: if { (ac_try="$ac_link"
                   20609: case "(($ac_try" in
                   20610:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20611:   *) ac_try_echo=$ac_try;;
                   20612: esac
                   20613: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20614:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20615:   ac_status=$?
1.25      millert  20616:   grep -v '^ *+' conftest.er1 >conftest.err
                   20617:   rm -f conftest.er1
                   20618:   cat conftest.err >&5
1.16      millert  20619:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20620:   (exit $ac_status); } && {
                   20621:         test -z "$ac_c_werror_flag" ||
                   20622:         test ! -s conftest.err
                   20623:        } && test -s conftest$ac_exeext &&
                   20624:        $as_test_x conftest$ac_exeext; then
                   20625:   ac_cv_lib_roken_main=yes
1.9       millert  20626: else
                   20627:   echo "$as_me: failed program was:" >&5
1.16      millert  20628: sed 's/^/| /' conftest.$ac_ext >&5
                   20629:
1.27      millert  20630:        ac_cv_lib_roken_main=no
1.9       millert  20631: fi
1.27      millert  20632:
                   20633: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20634:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20635: LIBS=$ac_check_lib_save_LIBS
                   20636: fi
1.27      millert  20637: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   20638: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   20639: if test $ac_cv_lib_roken_main = yes; then
                   20640:   K4LIBS="${K4LIBS} -lroken"
1.1       millert  20641: fi
                   20642:
1.27      millert  20643:
                   20644: else
                   20645:   echo "$as_me: failed program was:" >&5
                   20646: sed 's/^/| /' conftest.$ac_ext >&5
                   20647:
                   20648:
                   20649:            { echo "$as_me:$LINENO: result: no" >&5
                   20650: echo "${ECHO_T}no" >&6; }
                   20651:
                   20652:
1.1       millert  20653: fi
                   20654:
1.27      millert  20655: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20656:                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
                   20657: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
                   20658: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
                   20659: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  20660:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20661: else
1.27      millert  20662:   ac_check_lib_save_LIBS=$LIBS
                   20663: LIBS="-lkrb $K4LIBS $LIBS"
                   20664: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20665: /* confdefs.h.  */
                   20666: _ACEOF
                   20667: cat confdefs.h >>conftest.$ac_ext
                   20668: cat >>conftest.$ac_ext <<_ACEOF
                   20669: /* end confdefs.h.  */
1.25      millert  20670:
1.1       millert  20671:
1.16      millert  20672: int
                   20673: main ()
                   20674: {
1.27      millert  20675: return main ();
1.9       millert  20676:   ;
                   20677:   return 0;
                   20678: }
                   20679: _ACEOF
                   20680: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20681: if { (ac_try="$ac_link"
                   20682: case "(($ac_try" in
                   20683:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20684:   *) ac_try_echo=$ac_try;;
                   20685: esac
                   20686: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20687:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20688:   ac_status=$?
1.25      millert  20689:   grep -v '^ *+' conftest.er1 >conftest.err
                   20690:   rm -f conftest.er1
                   20691:   cat conftest.err >&5
1.16      millert  20692:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20693:   (exit $ac_status); } && {
                   20694:         test -z "$ac_c_werror_flag" ||
                   20695:         test ! -s conftest.err
                   20696:        } && test -s conftest$ac_exeext &&
                   20697:        $as_test_x conftest$ac_exeext; then
                   20698:   eval "$as_ac_Lib=yes"
1.9       millert  20699: else
                   20700:   echo "$as_me: failed program was:" >&5
1.16      millert  20701: sed 's/^/| /' conftest.$ac_ext >&5
                   20702:
1.27      millert  20703:        eval "$as_ac_Lib=no"
1.9       millert  20704: fi
1.27      millert  20705:
                   20706: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20707:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  20708: LIBS=$ac_check_lib_save_LIBS
1.9       millert  20709: fi
1.27      millert  20710: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   20711:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20712: echo "${ECHO_T}$ac_res" >&6; }
                   20713: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   20714:   K4LIBS="-lkrb $K4LIBS"
                   20715: else
                   20716:
                   20717:        as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
                   20718: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
                   20719: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
                   20720: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  20721:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20722: else
1.9       millert  20723:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  20724: LIBS="-lkrb4 $K4LIBS $LIBS"
1.9       millert  20725: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20726: /* confdefs.h.  */
                   20727: _ACEOF
                   20728: cat confdefs.h >>conftest.$ac_ext
                   20729: cat >>conftest.$ac_ext <<_ACEOF
                   20730: /* end confdefs.h.  */
1.9       millert  20731:
1.27      millert  20732:
1.9       millert  20733: int
                   20734: main ()
                   20735: {
1.27      millert  20736: return main ();
1.9       millert  20737:   ;
                   20738:   return 0;
                   20739: }
                   20740: _ACEOF
                   20741: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20742: if { (ac_try="$ac_link"
                   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_link") 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); } && {
                   20755:         test -z "$ac_c_werror_flag" ||
                   20756:         test ! -s conftest.err
                   20757:        } && test -s conftest$ac_exeext &&
                   20758:        $as_test_x conftest$ac_exeext; then
                   20759:   eval "$as_ac_Lib=yes"
1.9       millert  20760: else
                   20761:   echo "$as_me: failed program was:" >&5
1.16      millert  20762: sed 's/^/| /' conftest.$ac_ext >&5
                   20763:
1.27      millert  20764:        eval "$as_ac_Lib=no"
1.9       millert  20765: fi
1.27      millert  20766:
                   20767: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20768:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20769: LIBS=$ac_check_lib_save_LIBS
                   20770: fi
1.27      millert  20771: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   20772:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20773: echo "${ECHO_T}$ac_res" >&6; }
                   20774: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   20775:   K4LIBS="-lkrb4 $K4LIBS"
1.1       millert  20776: else
1.27      millert  20777:   K4LIBS="-lkrb $K4LIBS"
                   20778:            { 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
                   20779: 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;}
                   20780:
                   20781: fi
                   20782:
                   20783:
                   20784: fi
                   20785:
                   20786:     LDFLAGS="$O_LDFLAGS"
                   20787:     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
                   20788:     AUTH_OBJS="$AUTH_OBJS kerb4.o"
                   20789: fi
                   20790:
                   20791: if test ${with_kerb5-'no'} != "no"; then
                   20792:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   20793: set dummy krb5-config; ac_word=$2
                   20794: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   20795: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   20796: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9       millert  20797:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20798: else
1.27      millert  20799:   if test -n "$KRB5CONFIG"; then
                   20800:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
                   20801: else
                   20802: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   20803: for as_dir in $PATH
                   20804: do
                   20805:   IFS=$as_save_IFS
                   20806:   test -z "$as_dir" && as_dir=.
                   20807:   for ac_exec_ext in '' $ac_executable_extensions; do
                   20808:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   20809:     ac_cv_prog_KRB5CONFIG="yes"
                   20810:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   20811:     break 2
                   20812:   fi
                   20813: done
                   20814: done
                   20815: IFS=$as_save_IFS
                   20816:
                   20817:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
                   20818: fi
                   20819: fi
                   20820: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
                   20821: if test -n "$KRB5CONFIG"; then
                   20822:   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
                   20823: echo "${ECHO_T}$KRB5CONFIG" >&6; }
                   20824: else
                   20825:   { echo "$as_me:$LINENO: result: no" >&5
                   20826: echo "${ECHO_T}no" >&6; }
                   20827: fi
                   20828:
                   20829:
                   20830:     if test -n "$KRB5CONFIG"; then
                   20831:        cat >>confdefs.h <<\_ACEOF
                   20832: #define HAVE_KERB5 1
                   20833: _ACEOF
                   20834:
                   20835:        AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   20836:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
                   20837:        SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
                   20838:                                { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   20839: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
                   20840:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20841: /* confdefs.h.  */
                   20842: _ACEOF
                   20843: cat confdefs.h >>conftest.$ac_ext
                   20844: cat >>conftest.$ac_ext <<_ACEOF
                   20845: /* end confdefs.h.  */
1.27      millert  20846: #include <krb5.h>
1.9       millert  20847: int
                   20848: main ()
                   20849: {
1.27      millert  20850: const char *tmp = heimdal_version;
1.9       millert  20851:   ;
                   20852:   return 0;
                   20853: }
                   20854: _ACEOF
1.27      millert  20855: rm -f conftest.$ac_objext
                   20856: if { (ac_try="$ac_compile"
                   20857: case "(($ac_try" in
                   20858:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20859:   *) ac_try_echo=$ac_try;;
                   20860: esac
                   20861: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20862:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20863:   ac_status=$?
1.25      millert  20864:   grep -v '^ *+' conftest.er1 >conftest.err
                   20865:   rm -f conftest.er1
                   20866:   cat conftest.err >&5
1.16      millert  20867:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20868:   (exit $ac_status); } && {
                   20869:         test -z "$ac_c_werror_flag" ||
                   20870:         test ! -s conftest.err
                   20871:        } && test -s conftest.$ac_objext; then
                   20872:
                   20873:                { echo "$as_me:$LINENO: result: yes" >&5
                   20874: echo "${ECHO_T}yes" >&6; }
                   20875:                cat >>confdefs.h <<\_ACEOF
                   20876: #define HAVE_HEIMDAL 1
                   20877: _ACEOF
                   20878:
                   20879:
                   20880: else
                   20881:   echo "$as_me: failed program was:" >&5
                   20882: sed 's/^/| /' conftest.$ac_ext >&5
                   20883:
                   20884:
                   20885:                { echo "$as_me:$LINENO: result: no" >&5
                   20886: echo "${ECHO_T}no" >&6; }
                   20887:
                   20888:
                   20889: fi
                   20890:
                   20891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20892:     fi
                   20893: fi
                   20894: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
                   20895:     cat >>confdefs.h <<\_ACEOF
                   20896: #define HAVE_KERB5 1
                   20897: _ACEOF
                   20898:
                   20899:                 if test "$with_kerb5" = "yes"; then
                   20900:        found=no
                   20901:        O_CPPFLAGS="$CPPFLAGS"
                   20902:        for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
                   20903:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   20904:            cat >conftest.$ac_ext <<_ACEOF
                   20905: #include <krb5.h>
                   20906: _ACEOF
                   20907: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20908: case "(($ac_try" in
                   20909:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20910:   *) ac_try_echo=$ac_try;;
                   20911: esac
                   20912: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20913:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  20914:   ac_status=$?
1.27      millert  20915:   grep -v '^ *+' conftest.er1 >conftest.err
                   20916:   rm -f conftest.er1
                   20917:   cat conftest.err >&5
1.25      millert  20918:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20919:   (exit $ac_status); } >/dev/null && {
                   20920:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20921:         test ! -s conftest.err
                   20922:        }; then
                   20923:   found=yes; break
1.9       millert  20924: else
                   20925:   echo "$as_me: failed program was:" >&5
1.16      millert  20926: sed 's/^/| /' conftest.$ac_ext >&5
                   20927:
1.27      millert  20928:
1.9       millert  20929: fi
1.27      millert  20930:
                   20931: rm -f conftest.err conftest.$ac_ext
                   20932:        done
                   20933:        if test X"$found" = X"no"; then
                   20934:            CPPFLAGS="$O_CPPFLAGS"
                   20935:            { 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
                   20936: 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;}
                   20937:        fi
                   20938:     else
                   20939:
                   20940:     if test X"$with_rpath" = X"yes"; then
                   20941:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
                   20942:     else
                   20943:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
                   20944:     fi
                   20945:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20946:        blibpath_add="${blibpath_add}:${with_kerb5}/lib"
                   20947:     fi
                   20948:
                   20949:        CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
                   20950:     fi
                   20951:
                   20952:                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   20953: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
                   20954:     cat >conftest.$ac_ext <<_ACEOF
                   20955: /* confdefs.h.  */
                   20956: _ACEOF
                   20957: cat confdefs.h >>conftest.$ac_ext
                   20958: cat >>conftest.$ac_ext <<_ACEOF
                   20959: /* end confdefs.h.  */
                   20960: #include <krb5.h>
                   20961: int
                   20962: main ()
                   20963: {
                   20964: const char *tmp = heimdal_version;
                   20965:   ;
                   20966:   return 0;
                   20967: }
                   20968: _ACEOF
                   20969: rm -f conftest.$ac_objext
                   20970: if { (ac_try="$ac_compile"
                   20971: case "(($ac_try" in
                   20972:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20973:   *) ac_try_echo=$ac_try;;
                   20974: esac
                   20975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20976:   (eval "$ac_compile") 2>conftest.er1
                   20977:   ac_status=$?
                   20978:   grep -v '^ *+' conftest.er1 >conftest.err
                   20979:   rm -f conftest.er1
                   20980:   cat conftest.err >&5
                   20981:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20982:   (exit $ac_status); } && {
                   20983:         test -z "$ac_c_werror_flag" ||
                   20984:         test ! -s conftest.err
                   20985:        } && test -s conftest.$ac_objext; then
                   20986:
                   20987:            { echo "$as_me:$LINENO: result: yes" >&5
                   20988: echo "${ECHO_T}yes" >&6; }
                   20989:            cat >>confdefs.h <<\_ACEOF
                   20990: #define HAVE_HEIMDAL 1
1.25      millert  20991: _ACEOF
1.27      millert  20992:
                   20993:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
                   20994:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   20995: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   20996: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  20997:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20998: else
1.9       millert  20999:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  21000: LIBS="-lroken  $LIBS"
1.9       millert  21001: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21002: /* confdefs.h.  */
                   21003: _ACEOF
                   21004: cat confdefs.h >>conftest.$ac_ext
                   21005: cat >>conftest.$ac_ext <<_ACEOF
                   21006: /* end confdefs.h.  */
1.9       millert  21007:
1.27      millert  21008:
1.25      millert  21009: int
                   21010: main ()
                   21011: {
1.27      millert  21012: return main ();
1.25      millert  21013:   ;
                   21014:   return 0;
                   21015: }
                   21016: _ACEOF
                   21017: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21018: if { (ac_try="$ac_link"
                   21019: case "(($ac_try" in
                   21020:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21021:   *) ac_try_echo=$ac_try;;
                   21022: esac
                   21023: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21024:   (eval "$ac_link") 2>conftest.er1
1.25      millert  21025:   ac_status=$?
                   21026:   grep -v '^ *+' conftest.er1 >conftest.err
                   21027:   rm -f conftest.er1
                   21028:   cat conftest.err >&5
                   21029:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21030:   (exit $ac_status); } && {
                   21031:         test -z "$ac_c_werror_flag" ||
                   21032:         test ! -s conftest.err
                   21033:        } && test -s conftest$ac_exeext &&
                   21034:        $as_test_x conftest$ac_exeext; then
                   21035:   ac_cv_lib_roken_main=yes
1.25      millert  21036: else
                   21037:   echo "$as_me: failed program was:" >&5
                   21038: sed 's/^/| /' conftest.$ac_ext >&5
                   21039:
1.27      millert  21040:        ac_cv_lib_roken_main=no
1.25      millert  21041: fi
1.27      millert  21042:
                   21043: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21044:       conftest$ac_exeext conftest.$ac_ext
                   21045: LIBS=$ac_check_lib_save_LIBS
                   21046: fi
1.27      millert  21047: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21048: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21049: if test $ac_cv_lib_roken_main = yes; then
                   21050:   SUDO_LIBS="${SUDO_LIBS} -lroken"
1.25      millert  21051: fi
                   21052:
                   21053:
1.27      millert  21054: else
                   21055:   echo "$as_me: failed program was:" >&5
                   21056: sed 's/^/| /' conftest.$ac_ext >&5
                   21057:
                   21058:
                   21059:            { echo "$as_me:$LINENO: result: no" >&5
                   21060: echo "${ECHO_T}no" >&6; }
                   21061:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
1.33    ! millert  21062:            { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
        !          21063: echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
        !          21064: if test "${ac_cv_lib_krb5support_main+set}" = set; then
        !          21065:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          21066: else
        !          21067:   ac_check_lib_save_LIBS=$LIBS
        !          21068: LIBS="-lkrb5support  $LIBS"
        !          21069: cat >conftest.$ac_ext <<_ACEOF
        !          21070: /* confdefs.h.  */
        !          21071: _ACEOF
        !          21072: cat confdefs.h >>conftest.$ac_ext
        !          21073: cat >>conftest.$ac_ext <<_ACEOF
        !          21074: /* end confdefs.h.  */
        !          21075:
        !          21076:
        !          21077: int
        !          21078: main ()
        !          21079: {
        !          21080: return main ();
        !          21081:   ;
        !          21082:   return 0;
        !          21083: }
        !          21084: _ACEOF
        !          21085: rm -f conftest.$ac_objext conftest$ac_exeext
        !          21086: if { (ac_try="$ac_link"
        !          21087: case "(($ac_try" in
        !          21088:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          21089:   *) ac_try_echo=$ac_try;;
        !          21090: esac
        !          21091: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          21092:   (eval "$ac_link") 2>conftest.er1
        !          21093:   ac_status=$?
        !          21094:   grep -v '^ *+' conftest.er1 >conftest.err
        !          21095:   rm -f conftest.er1
        !          21096:   cat conftest.err >&5
        !          21097:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          21098:   (exit $ac_status); } && {
        !          21099:         test -z "$ac_c_werror_flag" ||
        !          21100:         test ! -s conftest.err
        !          21101:        } && test -s conftest$ac_exeext &&
        !          21102:        $as_test_x conftest$ac_exeext; then
        !          21103:   ac_cv_lib_krb5support_main=yes
        !          21104: else
        !          21105:   echo "$as_me: failed program was:" >&5
        !          21106: sed 's/^/| /' conftest.$ac_ext >&5
        !          21107:
        !          21108:        ac_cv_lib_krb5support_main=no
        !          21109: fi
        !          21110:
        !          21111: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          21112:       conftest$ac_exeext conftest.$ac_ext
        !          21113: LIBS=$ac_check_lib_save_LIBS
        !          21114: fi
        !          21115: { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
        !          21116: echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
        !          21117: if test $ac_cv_lib_krb5support_main = yes; then
        !          21118:   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
        !          21119: fi
1.25      millert  21120:
                   21121:
                   21122: fi
                   21123:
1.27      millert  21124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21125:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   21126:     _LIBS="$LIBS"
                   21127:     LIBS="${LIBS} ${SUDO_LIBS}"
1.25      millert  21128:
                   21129:
1.27      millert  21130: for ac_func in krb5_verify_user krb5_init_secure_context
1.25      millert  21131: do
                   21132: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  21133: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21134: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21135: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  21136:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21137: else
                   21138:   cat >conftest.$ac_ext <<_ACEOF
                   21139: /* confdefs.h.  */
                   21140: _ACEOF
                   21141: cat confdefs.h >>conftest.$ac_ext
                   21142: cat >>conftest.$ac_ext <<_ACEOF
                   21143: /* end confdefs.h.  */
                   21144: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21145:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21146: #define $ac_func innocuous_$ac_func
                   21147:
                   21148: /* System header to define __stub macros and hopefully few prototypes,
                   21149:     which can conflict with char $ac_func (); below.
                   21150:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21151:     <limits.h> exists even on freestanding compilers.  */
                   21152:
                   21153: #ifdef __STDC__
                   21154: # include <limits.h>
                   21155: #else
                   21156: # include <assert.h>
                   21157: #endif
                   21158:
                   21159: #undef $ac_func
                   21160:
1.27      millert  21161: /* Override any GCC internal prototype to avoid an error.
                   21162:    Use char because int might match the return type of a GCC
                   21163:    builtin and then its argument prototype would still apply.  */
1.25      millert  21164: #ifdef __cplusplus
                   21165: extern "C"
                   21166: #endif
                   21167: char $ac_func ();
                   21168: /* The GNU C library defines this for functions which it implements
                   21169:     to always fail with ENOSYS.  Some functions are actually named
                   21170:     something starting with __ and the normal name is an alias.  */
1.27      millert  21171: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  21172: choke me
                   21173: #endif
                   21174:
1.9       millert  21175: int
                   21176: main ()
                   21177: {
1.27      millert  21178: return $ac_func ();
1.9       millert  21179:   ;
                   21180:   return 0;
                   21181: }
                   21182: _ACEOF
                   21183: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21184: if { (ac_try="$ac_link"
                   21185: case "(($ac_try" in
                   21186:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21187:   *) ac_try_echo=$ac_try;;
                   21188: esac
                   21189: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21190:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21191:   ac_status=$?
1.25      millert  21192:   grep -v '^ *+' conftest.er1 >conftest.err
                   21193:   rm -f conftest.er1
                   21194:   cat conftest.err >&5
1.16      millert  21195:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21196:   (exit $ac_status); } && {
                   21197:         test -z "$ac_c_werror_flag" ||
                   21198:         test ! -s conftest.err
                   21199:        } && test -s conftest$ac_exeext &&
                   21200:        $as_test_x conftest$ac_exeext; then
1.25      millert  21201:   eval "$as_ac_var=yes"
1.9       millert  21202: else
                   21203:   echo "$as_me: failed program was:" >&5
1.16      millert  21204: sed 's/^/| /' conftest.$ac_ext >&5
                   21205:
1.27      millert  21206:        eval "$as_ac_var=no"
1.25      millert  21207: fi
1.27      millert  21208:
                   21209: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21210:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21211: fi
1.27      millert  21212: ac_res=`eval echo '${'$as_ac_var'}'`
                   21213:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21214: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  21215: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21216:   cat >>confdefs.h <<_ACEOF
                   21217: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21218: _ACEOF
                   21219:
1.9       millert  21220: fi
1.25      millert  21221: done
                   21222:
1.27      millert  21223:     LIBS="$_LIBS"
1.1       millert  21224: fi
                   21225:
1.27      millert  21226: if test ${with_AFS-'no'} = "yes"; then
1.25      millert  21227:
                   21228:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   21229:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   21230:     for i in $AFSLIBDIRS; do
                   21231:        if test -d ${i}; then
                   21232:
                   21233:     if test X"$with_rpath" = X"yes"; then
                   21234:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
                   21235:     else
                   21236:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
                   21237:     fi
                   21238:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21239:        blibpath_add="${blibpath_add}:$i"
                   21240:     fi
                   21241:
                   21242:            FOUND_AFSLIBDIR=true
                   21243:        fi
                   21244:     done
                   21245:     if test -z "$FOUND_AFSLIBDIR"; then
                   21246:        { 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
                   21247: 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;}
                   21248:     fi
                   21249:
                   21250:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   21251:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   21252:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   21253:     for i in $AFSLIBDIRS; do
                   21254:        if test -f ${i}/util.a; then
                   21255:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   21256:            FOUND_UTIL_A=true
                   21257:            break;
                   21258:        fi
                   21259:     done
                   21260:     if test -z "$FOUND_UTIL_A"; then
                   21261:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   21262:     fi
                   21263:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   21264:
                   21265:     # AFS includes may live in /usr/include on some machines...
                   21266:     for i in /usr/afsws/include; do
                   21267:        if test -d ${i}; then
                   21268:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   21269:            FOUND_AFSINCDIR=true
                   21270:        fi
                   21271:     done
                   21272:
                   21273:     if test -z "$FOUND_AFSLIBDIR"; then
                   21274:        { 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
                   21275: 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;}
                   21276:     fi
1.27      millert  21277:
                   21278:     AUTH_OBJS="$AUTH_OBJS afs.o"
1.1       millert  21279: fi
                   21280:
1.27      millert  21281: if test ${with_DCE-'no'} = "yes"; then
1.25      millert  21282:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   21283:     SUDO_LIBS="${SUDO_LIBS} -ldce"
1.27      millert  21284:     AUTH_OBJS="$AUTH_OBJS dce.o"
1.1       millert  21285: fi
                   21286:
1.27      millert  21287: if test ${with_skey-'no'} = "yes"; then
1.25      millert  21288:     O_LDFLAGS="$LDFLAGS"
                   21289:     if test "$with_skey" != "yes"; then
                   21290:        CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
                   21291:
                   21292:     if test X"$with_rpath" = X"yes"; then
                   21293:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
                   21294:     else
                   21295:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
                   21296:     fi
                   21297:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21298:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21299:     fi
                   21300:
                   21301:
                   21302:     if test X"$with_rpath" = X"yes"; then
                   21303:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
                   21304:     else
                   21305:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
                   21306:     fi
                   21307:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21308:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21309:     fi
                   21310:
                   21311:        cat >conftest.$ac_ext <<_ACEOF
                   21312: #include <skey.h>
1.16      millert  21313: _ACEOF
1.27      millert  21314: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21315: case "(($ac_try" in
                   21316:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21317:   *) ac_try_echo=$ac_try;;
                   21318: esac
                   21319: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21320:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  21321:   ac_status=$?
1.25      millert  21322:   grep -v '^ *+' conftest.er1 >conftest.err
                   21323:   rm -f conftest.er1
                   21324:   cat conftest.err >&5
1.16      millert  21325:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21326:   (exit $ac_status); } >/dev/null && {
                   21327:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21328:         test ! -s conftest.err
                   21329:        }; then
1.25      millert  21330:   found=yes
                   21331: else
                   21332:   echo "$as_me: failed program was:" >&5
                   21333: sed 's/^/| /' conftest.$ac_ext >&5
                   21334:
                   21335:   found=no
                   21336: fi
1.27      millert  21337:
1.25      millert  21338: rm -f conftest.err conftest.$ac_ext
                   21339:     else
                   21340:        found=no
                   21341:        O_CPPFLAGS="$CPPFLAGS"
                   21342:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21343:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21344:            cat >conftest.$ac_ext <<_ACEOF
                   21345: #include <skey.h>
                   21346: _ACEOF
1.27      millert  21347: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21348: case "(($ac_try" in
                   21349:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21350:   *) ac_try_echo=$ac_try;;
                   21351: esac
                   21352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21353:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  21354:   ac_status=$?
1.25      millert  21355:   grep -v '^ *+' conftest.er1 >conftest.err
                   21356:   rm -f conftest.er1
                   21357:   cat conftest.err >&5
1.16      millert  21358:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21359:   (exit $ac_status); } >/dev/null && {
                   21360:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21361:         test ! -s conftest.err
                   21362:        }; then
1.25      millert  21363:   found=yes; break
1.9       millert  21364: else
                   21365:   echo "$as_me: failed program was:" >&5
1.16      millert  21366: sed 's/^/| /' conftest.$ac_ext >&5
                   21367:
1.25      millert  21368:
1.9       millert  21369: fi
1.27      millert  21370:
1.25      millert  21371: rm -f conftest.err conftest.$ac_ext
                   21372:        done
                   21373:        if test "$found" = "no" -o -z "$dir"; then
                   21374:            CPPFLAGS="$O_CPPFLAGS"
                   21375:        else
                   21376:
                   21377:     if test X"$with_rpath" = X"yes"; then
                   21378:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21379:     else
                   21380:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   21381:     fi
                   21382:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21383:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21384:     fi
1.1       millert  21385:
                   21386:
1.25      millert  21387:     if test X"$with_rpath" = X"yes"; then
                   21388:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21389:     else
                   21390:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   21391:     fi
                   21392:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21393:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21394:     fi
1.1       millert  21395:
1.25      millert  21396:        fi
                   21397:     fi
                   21398:     if test "$found" = "no"; then
                   21399:        { 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
                   21400: 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;}
                   21401:     fi
1.27      millert  21402:     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
                   21403: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
1.25      millert  21404: if test "${ac_cv_lib_skey_main+set}" = set; then
1.9       millert  21405:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21406: else
1.25      millert  21407:   ac_check_lib_save_LIBS=$LIBS
                   21408: LIBS="-lskey  $LIBS"
                   21409: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21410: /* confdefs.h.  */
                   21411: _ACEOF
                   21412: cat confdefs.h >>conftest.$ac_ext
                   21413: cat >>conftest.$ac_ext <<_ACEOF
                   21414: /* end confdefs.h.  */
1.25      millert  21415:
1.1       millert  21416:
1.9       millert  21417: int
                   21418: main ()
                   21419: {
1.27      millert  21420: return main ();
1.9       millert  21421:   ;
                   21422:   return 0;
                   21423: }
                   21424: _ACEOF
                   21425: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21426: if { (ac_try="$ac_link"
                   21427: case "(($ac_try" in
                   21428:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21429:   *) ac_try_echo=$ac_try;;
                   21430: esac
                   21431: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21432:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21433:   ac_status=$?
1.25      millert  21434:   grep -v '^ *+' conftest.er1 >conftest.err
                   21435:   rm -f conftest.er1
                   21436:   cat conftest.err >&5
1.16      millert  21437:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21438:   (exit $ac_status); } && {
                   21439:         test -z "$ac_c_werror_flag" ||
                   21440:         test ! -s conftest.err
                   21441:        } && test -s conftest$ac_exeext &&
                   21442:        $as_test_x conftest$ac_exeext; then
1.25      millert  21443:   ac_cv_lib_skey_main=yes
1.1       millert  21444: else
1.9       millert  21445:   echo "$as_me: failed program was:" >&5
1.16      millert  21446: sed 's/^/| /' conftest.$ac_ext >&5
                   21447:
1.27      millert  21448:        ac_cv_lib_skey_main=no
1.18      millert  21449: fi
                   21450:
1.27      millert  21451: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21452:       conftest$ac_exeext conftest.$ac_ext
                   21453: LIBS=$ac_check_lib_save_LIBS
                   21454: fi
                   21455: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
                   21456: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
                   21457: if test $ac_cv_lib_skey_main = yes; then
                   21458:   found=yes
                   21459: else
                   21460:   { 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
                   21461: 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;}
                   21462: fi
1.18      millert  21463:
1.27      millert  21464:     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
                   21465: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
                   21466: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.18      millert  21467:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21468: else
1.25      millert  21469:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  21470: LIBS="-lskey  $LIBS"
1.25      millert  21471: cat >conftest.$ac_ext <<_ACEOF
1.18      millert  21472: /* confdefs.h.  */
                   21473: _ACEOF
                   21474: cat confdefs.h >>conftest.$ac_ext
                   21475: cat >>conftest.$ac_ext <<_ACEOF
                   21476: /* end confdefs.h.  */
                   21477:
1.27      millert  21478: /* Override any GCC internal prototype to avoid an error.
                   21479:    Use char because int might match the return type of a GCC
                   21480:    builtin and then its argument prototype would still apply.  */
1.25      millert  21481: #ifdef __cplusplus
                   21482: extern "C"
                   21483: #endif
1.27      millert  21484: char skeyaccess ();
1.18      millert  21485: int
                   21486: main ()
                   21487: {
1.27      millert  21488: return skeyaccess ();
1.18      millert  21489:   ;
                   21490:   return 0;
                   21491: }
                   21492: _ACEOF
                   21493: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21494: if { (ac_try="$ac_link"
                   21495: case "(($ac_try" in
                   21496:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21497:   *) ac_try_echo=$ac_try;;
                   21498: esac
                   21499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21500:   (eval "$ac_link") 2>conftest.er1
1.18      millert  21501:   ac_status=$?
1.25      millert  21502:   grep -v '^ *+' conftest.er1 >conftest.err
                   21503:   rm -f conftest.er1
                   21504:   cat conftest.err >&5
1.18      millert  21505:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21506:   (exit $ac_status); } && {
                   21507:         test -z "$ac_c_werror_flag" ||
                   21508:         test ! -s conftest.err
                   21509:        } && test -s conftest$ac_exeext &&
                   21510:        $as_test_x conftest$ac_exeext; then
                   21511:   ac_cv_lib_skey_skeyaccess=yes
1.18      millert  21512: else
                   21513:   echo "$as_me: failed program was:" >&5
                   21514: sed 's/^/| /' conftest.$ac_ext >&5
                   21515:
1.27      millert  21516:        ac_cv_lib_skey_skeyaccess=no
1.25      millert  21517: fi
1.27      millert  21518:
                   21519: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21520:       conftest$ac_exeext conftest.$ac_ext
                   21521: LIBS=$ac_check_lib_save_LIBS
1.18      millert  21522: fi
1.27      millert  21523: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
                   21524: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
                   21525: if test $ac_cv_lib_skey_skeyaccess = yes; then
                   21526:   cat >>confdefs.h <<\_ACEOF
                   21527: #define HAVE_SKEYACCESS 1
                   21528: _ACEOF
1.25      millert  21529:
1.27      millert  21530: fi
1.25      millert  21531:
1.27      millert  21532:     LDFLAGS="$O_LDFLAGS"
                   21533:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   21534:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.18      millert  21535: fi
                   21536:
1.27      millert  21537: if test ${with_opie-'no'} = "yes"; then
                   21538:     O_LDFLAGS="$LDFLAGS"
                   21539:     if test "$with_opie" != "yes"; then
                   21540:        CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.18      millert  21541:
1.25      millert  21542:     if test X"$with_rpath" = X"yes"; then
1.27      millert  21543:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.18      millert  21544:     else
1.27      millert  21545:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25      millert  21546:     fi
1.27      millert  21547:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21548:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.18      millert  21549:     fi
                   21550:
                   21551:
1.17      millert  21552:     if test X"$with_rpath" = X"yes"; then
1.27      millert  21553:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.1       millert  21554:     else
1.27      millert  21555:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25      millert  21556:     fi
                   21557:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.27      millert  21558:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  21559:     fi
                   21560:
1.27      millert  21561:        cat >conftest.$ac_ext <<_ACEOF
                   21562: #include <opie.h>
1.25      millert  21563: _ACEOF
1.27      millert  21564: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21565: case "(($ac_try" in
                   21566:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21567:   *) ac_try_echo=$ac_try;;
                   21568: esac
                   21569: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21570:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  21571:   ac_status=$?
1.25      millert  21572:   grep -v '^ *+' conftest.er1 >conftest.err
                   21573:   rm -f conftest.er1
                   21574:   cat conftest.err >&5
1.16      millert  21575:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21576:   (exit $ac_status); } >/dev/null && {
                   21577:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21578:         test ! -s conftest.err
                   21579:        }; then
                   21580:   found=yes
1.9       millert  21581: else
                   21582:   echo "$as_me: failed program was:" >&5
1.16      millert  21583: sed 's/^/| /' conftest.$ac_ext >&5
                   21584:
1.27      millert  21585:   found=no
1.9       millert  21586: fi
1.17      millert  21587:
1.27      millert  21588: rm -f conftest.err conftest.$ac_ext
                   21589:     else
                   21590:        found=no
                   21591:        O_CPPFLAGS="$CPPFLAGS"
                   21592:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21593:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21594:            cat >conftest.$ac_ext <<_ACEOF
                   21595: #include <opie.h>
1.17      millert  21596: _ACEOF
1.27      millert  21597: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21598: case "(($ac_try" in
                   21599:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21600:   *) ac_try_echo=$ac_try;;
                   21601: esac
                   21602: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21603:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.17      millert  21604:   ac_status=$?
                   21605:   grep -v '^ *+' conftest.er1 >conftest.err
                   21606:   rm -f conftest.er1
                   21607:   cat conftest.err >&5
                   21608:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21609:   (exit $ac_status); } >/dev/null && {
                   21610:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21611:         test ! -s conftest.err
                   21612:        }; then
                   21613:   found=yes; break
1.5       millert  21614: else
1.17      millert  21615:   echo "$as_me: failed program was:" >&5
                   21616: sed 's/^/| /' conftest.$ac_ext >&5
                   21617:
1.5       millert  21618:
                   21619: fi
                   21620:
1.27      millert  21621: rm -f conftest.err conftest.$ac_ext
                   21622:        done
                   21623:        if test "$found" = "no" -o -z "$dir"; then
                   21624:            CPPFLAGS="$O_CPPFLAGS"
                   21625:        else
1.17      millert  21626:
1.25      millert  21627:     if test X"$with_rpath" = X"yes"; then
1.27      millert  21628:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.25      millert  21629:     else
1.27      millert  21630:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
1.25      millert  21631:     fi
1.27      millert  21632:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21633:        blibpath_add="${blibpath_add}:${dir}/lib"
1.25      millert  21634:     fi
1.17      millert  21635:
                   21636:
1.25      millert  21637:     if test X"$with_rpath" = X"yes"; then
1.27      millert  21638:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.25      millert  21639:     else
1.27      millert  21640:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
1.25      millert  21641:     fi
1.27      millert  21642:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21643:        blibpath_add="${blibpath_add}:${dir}/lib"
1.25      millert  21644:     fi
1.17      millert  21645:
1.27      millert  21646:        fi
                   21647:     fi
                   21648:     if test "$found" = "no"; then
                   21649:        { 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
                   21650: 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  21651:     fi
1.27      millert  21652:     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
                   21653: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
                   21654: if test "${ac_cv_lib_opie_main+set}" = set; then
                   21655:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21656: else
                   21657:   ac_check_lib_save_LIBS=$LIBS
                   21658: LIBS="-lopie  $LIBS"
                   21659: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  21660: /* confdefs.h.  */
                   21661: _ACEOF
                   21662: cat confdefs.h >>conftest.$ac_ext
                   21663: cat >>conftest.$ac_ext <<_ACEOF
                   21664: /* end confdefs.h.  */
1.27      millert  21665:
                   21666:
1.17      millert  21667: int
                   21668: main ()
                   21669: {
1.27      millert  21670: return main ();
1.17      millert  21671:   ;
                   21672:   return 0;
                   21673: }
                   21674: _ACEOF
                   21675: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21676: if { (ac_try="$ac_link"
                   21677: case "(($ac_try" in
                   21678:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21679:   *) ac_try_echo=$ac_try;;
                   21680: esac
                   21681: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21682:   (eval "$ac_link") 2>conftest.er1
1.17      millert  21683:   ac_status=$?
1.25      millert  21684:   grep -v '^ *+' conftest.er1 >conftest.err
                   21685:   rm -f conftest.er1
                   21686:   cat conftest.err >&5
1.17      millert  21687:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21688:   (exit $ac_status); } && {
                   21689:         test -z "$ac_c_werror_flag" ||
                   21690:         test ! -s conftest.err
                   21691:        } && test -s conftest$ac_exeext &&
                   21692:        $as_test_x conftest$ac_exeext; then
                   21693:   ac_cv_lib_opie_main=yes
1.17      millert  21694: else
                   21695:   echo "$as_me: failed program was:" >&5
                   21696: sed 's/^/| /' conftest.$ac_ext >&5
                   21697:
1.27      millert  21698:        ac_cv_lib_opie_main=no
1.17      millert  21699: fi
1.27      millert  21700:
                   21701: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21702:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21703: LIBS=$ac_check_lib_save_LIBS
                   21704: fi
                   21705: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
                   21706: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
                   21707: if test $ac_cv_lib_opie_main = yes; then
                   21708:   found=yes
                   21709: else
                   21710:   { 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
                   21711: 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;}
                   21712: fi
                   21713:
                   21714:     LDFLAGS="$O_LDFLAGS"
                   21715:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   21716:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
                   21717: fi
                   21718:
                   21719: if test ${with_passwd-'no'} != "no"; then
                   21720:                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
                   21721:        { echo "$as_me:$LINENO: checking for library containing crypt" >&5
                   21722: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
                   21723: if test "${ac_cv_search_crypt+set}" = set; then
                   21724:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21725: else
                   21726:   ac_func_search_save_LIBS=$LIBS
                   21727: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  21728: /* confdefs.h.  */
                   21729: _ACEOF
                   21730: cat confdefs.h >>conftest.$ac_ext
                   21731: cat >>conftest.$ac_ext <<_ACEOF
                   21732: /* end confdefs.h.  */
1.27      millert  21733:
                   21734: /* Override any GCC internal prototype to avoid an error.
                   21735:    Use char because int might match the return type of a GCC
                   21736:    builtin and then its argument prototype would still apply.  */
                   21737: #ifdef __cplusplus
                   21738: extern "C"
                   21739: #endif
                   21740: char crypt ();
1.17      millert  21741: int
                   21742: main ()
                   21743: {
1.27      millert  21744: return crypt ();
1.17      millert  21745:   ;
                   21746:   return 0;
                   21747: }
                   21748: _ACEOF
1.27      millert  21749: for ac_lib in '' crypt crypt_d ufc; do
                   21750:   if test -z "$ac_lib"; then
                   21751:     ac_res="none required"
                   21752:   else
                   21753:     ac_res=-l$ac_lib
                   21754:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   21755:   fi
                   21756:   rm -f conftest.$ac_objext conftest$ac_exeext
                   21757: if { (ac_try="$ac_link"
                   21758: case "(($ac_try" in
                   21759:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21760:   *) ac_try_echo=$ac_try;;
                   21761: esac
                   21762: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21763:   (eval "$ac_link") 2>conftest.er1
1.17      millert  21764:   ac_status=$?
1.25      millert  21765:   grep -v '^ *+' conftest.er1 >conftest.err
                   21766:   rm -f conftest.er1
                   21767:   cat conftest.err >&5
1.17      millert  21768:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21769:   (exit $ac_status); } && {
                   21770:         test -z "$ac_c_werror_flag" ||
                   21771:         test ! -s conftest.err
                   21772:        } && test -s conftest$ac_exeext &&
                   21773:        $as_test_x conftest$ac_exeext; then
                   21774:   ac_cv_search_crypt=$ac_res
1.17      millert  21775: else
                   21776:   echo "$as_me: failed program was:" >&5
                   21777: sed 's/^/| /' conftest.$ac_ext >&5
                   21778:
1.25      millert  21779:
1.27      millert  21780: fi
1.25      millert  21781:
1.27      millert  21782: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21783:       conftest$ac_exeext
                   21784:   if test "${ac_cv_search_crypt+set}" = set; then
                   21785:   break
                   21786: fi
                   21787: done
                   21788: if test "${ac_cv_search_crypt+set}" = set; then
                   21789:   :
                   21790: else
                   21791:   ac_cv_search_crypt=no
                   21792: fi
                   21793: rm conftest.$ac_ext
                   21794: LIBS=$ac_func_search_save_LIBS
                   21795: fi
                   21796: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
                   21797: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
                   21798: ac_res=$ac_cv_search_crypt
                   21799: if test "$ac_res" != no; then
                   21800:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   21801:   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17      millert  21802: fi
1.25      millert  21803:
1.27      millert  21804:     fi
1.25      millert  21805:
1.27      millert  21806:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
                   21807:        _LIBS="$LIBS"
                   21808:        LIBS="$LIBS $shadow_libs"
                   21809:        found=no
1.17      millert  21810:
1.27      millert  21811: for ac_func in $shadow_funcs
1.25      millert  21812: do
                   21813: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  21814: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21815: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21816: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17      millert  21817:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21818: else
1.25      millert  21819:   cat >conftest.$ac_ext <<_ACEOF
1.17      millert  21820: /* confdefs.h.  */
                   21821: _ACEOF
                   21822: cat confdefs.h >>conftest.$ac_ext
                   21823: cat >>conftest.$ac_ext <<_ACEOF
                   21824: /* end confdefs.h.  */
1.25      millert  21825: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21826:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21827: #define $ac_func innocuous_$ac_func
                   21828:
                   21829: /* System header to define __stub macros and hopefully few prototypes,
                   21830:     which can conflict with char $ac_func (); below.
                   21831:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21832:     <limits.h> exists even on freestanding compilers.  */
                   21833:
                   21834: #ifdef __STDC__
                   21835: # include <limits.h>
                   21836: #else
                   21837: # include <assert.h>
                   21838: #endif
1.17      millert  21839:
1.25      millert  21840: #undef $ac_func
                   21841:
1.27      millert  21842: /* Override any GCC internal prototype to avoid an error.
                   21843:    Use char because int might match the return type of a GCC
                   21844:    builtin and then its argument prototype would still apply.  */
1.25      millert  21845: #ifdef __cplusplus
                   21846: extern "C"
                   21847: #endif
                   21848: char $ac_func ();
                   21849: /* The GNU C library defines this for functions which it implements
                   21850:     to always fail with ENOSYS.  Some functions are actually named
                   21851:     something starting with __ and the normal name is an alias.  */
1.27      millert  21852: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  21853: choke me
                   21854: #endif
1.17      millert  21855:
                   21856: int
                   21857: main ()
                   21858: {
1.27      millert  21859: return $ac_func ();
1.17      millert  21860:   ;
                   21861:   return 0;
                   21862: }
                   21863: _ACEOF
                   21864: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21865: if { (ac_try="$ac_link"
                   21866: case "(($ac_try" in
                   21867:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21868:   *) ac_try_echo=$ac_try;;
                   21869: esac
                   21870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21871:   (eval "$ac_link") 2>conftest.er1
1.17      millert  21872:   ac_status=$?
1.25      millert  21873:   grep -v '^ *+' conftest.er1 >conftest.err
                   21874:   rm -f conftest.er1
                   21875:   cat conftest.err >&5
1.17      millert  21876:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21877:   (exit $ac_status); } && {
                   21878:         test -z "$ac_c_werror_flag" ||
                   21879:         test ! -s conftest.err
                   21880:        } && test -s conftest$ac_exeext &&
                   21881:        $as_test_x conftest$ac_exeext; then
1.25      millert  21882:   eval "$as_ac_var=yes"
1.17      millert  21883: else
                   21884:   echo "$as_me: failed program was:" >&5
                   21885: sed 's/^/| /' conftest.$ac_ext >&5
                   21886:
1.27      millert  21887:        eval "$as_ac_var=no"
1.17      millert  21888: fi
1.27      millert  21889:
                   21890: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21891:       conftest$ac_exeext conftest.$ac_ext
1.17      millert  21892: fi
1.27      millert  21893: ac_res=`eval echo '${'$as_ac_var'}'`
                   21894:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21895: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  21896: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21897:   cat >>confdefs.h <<_ACEOF
                   21898: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21899: _ACEOF
1.27      millert  21900:  found=yes
1.17      millert  21901: fi
1.27      millert  21902: done
1.17      millert  21903:
1.27      millert  21904:        if test "$found" = "yes"; then
                   21905:            SUDO_LIBS="$SUDO_LIBS $shadow_libs"
                   21906:        elif test -n "$shadow_libs_optional"; then
                   21907:            LIBS="$LIBS $shadow_libs_optional"
1.17      millert  21908:
1.27      millert  21909: for ac_func in $shadow_funcs
                   21910: do
                   21911: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21912: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21913: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21914: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   21915:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21916: else
                   21917:   cat >conftest.$ac_ext <<_ACEOF
                   21918: /* confdefs.h.  */
                   21919: _ACEOF
                   21920: cat confdefs.h >>conftest.$ac_ext
                   21921: cat >>conftest.$ac_ext <<_ACEOF
                   21922: /* end confdefs.h.  */
                   21923: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21924:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21925: #define $ac_func innocuous_$ac_func
1.17      millert  21926:
1.27      millert  21927: /* System header to define __stub macros and hopefully few prototypes,
                   21928:     which can conflict with char $ac_func (); below.
                   21929:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21930:     <limits.h> exists even on freestanding compilers.  */
1.17      millert  21931:
1.27      millert  21932: #ifdef __STDC__
                   21933: # include <limits.h>
                   21934: #else
                   21935: # include <assert.h>
                   21936: #endif
1.19      millert  21937:
1.27      millert  21938: #undef $ac_func
1.17      millert  21939:
1.27      millert  21940: /* Override any GCC internal prototype to avoid an error.
                   21941:    Use char because int might match the return type of a GCC
                   21942:    builtin and then its argument prototype would still apply.  */
                   21943: #ifdef __cplusplus
                   21944: extern "C"
                   21945: #endif
                   21946: char $ac_func ();
                   21947: /* The GNU C library defines this for functions which it implements
                   21948:     to always fail with ENOSYS.  Some functions are actually named
                   21949:     something starting with __ and the normal name is an alias.  */
                   21950: #if defined __stub_$ac_func || defined __stub___$ac_func
                   21951: choke me
                   21952: #endif
1.17      millert  21953:
1.27      millert  21954: int
                   21955: main ()
                   21956: {
                   21957: return $ac_func ();
                   21958:   ;
                   21959:   return 0;
                   21960: }
1.17      millert  21961: _ACEOF
1.27      millert  21962: rm -f conftest.$ac_objext conftest$ac_exeext
                   21963: if { (ac_try="$ac_link"
                   21964: case "(($ac_try" in
                   21965:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21966:   *) ac_try_echo=$ac_try;;
                   21967: esac
                   21968: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21969:   (eval "$ac_link") 2>conftest.er1
                   21970:   ac_status=$?
                   21971:   grep -v '^ *+' conftest.er1 >conftest.err
                   21972:   rm -f conftest.er1
                   21973:   cat conftest.err >&5
                   21974:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21975:   (exit $ac_status); } && {
                   21976:         test -z "$ac_c_werror_flag" ||
                   21977:         test ! -s conftest.err
                   21978:        } && test -s conftest$ac_exeext &&
                   21979:        $as_test_x conftest$ac_exeext; then
                   21980:   eval "$as_ac_var=yes"
                   21981: else
                   21982:   echo "$as_me: failed program was:" >&5
                   21983: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  21984:
1.27      millert  21985:        eval "$as_ac_var=no"
                   21986: fi
1.25      millert  21987:
1.27      millert  21988: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21989:       conftest$ac_exeext conftest.$ac_ext
                   21990: fi
                   21991: ac_res=`eval echo '${'$as_ac_var'}'`
                   21992:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21993: echo "${ECHO_T}$ac_res" >&6; }
                   21994: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21995:   cat >>confdefs.h <<_ACEOF
                   21996: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21997: _ACEOF
                   21998:  found=yes
1.17      millert  21999: fi
1.27      millert  22000: done
1.25      millert  22001:
1.27      millert  22002:            if test "$found" = "yes"; then
                   22003:                SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
                   22004:            fi
                   22005:        fi
                   22006:        if test "$found" = "yes"; then
                   22007:            case "$shadow_funcs" in
                   22008:                *getprpwnam*) SECUREWARE=1;;
                   22009:            esac
                   22010:            test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
                   22011:        else
                   22012:            LIBS="$_LIBS"
                   22013:        fi
                   22014:        CHECKSHADOW=false
                   22015:     fi
                   22016:     if test "$CHECKSHADOW" = "true"; then
                   22017:        { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
                   22018: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
                   22019: if test "${ac_cv_search_getspnam+set}" = set; then
                   22020:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  22021: else
1.27      millert  22022:   ac_func_search_save_LIBS=$LIBS
                   22023: cat >conftest.$ac_ext <<_ACEOF
                   22024: /* confdefs.h.  */
                   22025: _ACEOF
                   22026: cat confdefs.h >>conftest.$ac_ext
                   22027: cat >>conftest.$ac_ext <<_ACEOF
                   22028: /* end confdefs.h.  */
1.25      millert  22029:
1.27      millert  22030: /* Override any GCC internal prototype to avoid an error.
                   22031:    Use char because int might match the return type of a GCC
                   22032:    builtin and then its argument prototype would still apply.  */
                   22033: #ifdef __cplusplus
                   22034: extern "C"
                   22035: #endif
                   22036: char getspnam ();
                   22037: int
                   22038: main ()
                   22039: {
                   22040: return getspnam ();
                   22041:   ;
                   22042:   return 0;
                   22043: }
                   22044: _ACEOF
                   22045: for ac_lib in '' gen; do
                   22046:   if test -z "$ac_lib"; then
                   22047:     ac_res="none required"
1.25      millert  22048:   else
1.27      millert  22049:     ac_res=-l$ac_lib
                   22050:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1.25      millert  22051:   fi
1.27      millert  22052:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22053: if { (ac_try="$ac_link"
                   22054: case "(($ac_try" in
                   22055:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22056:   *) ac_try_echo=$ac_try;;
                   22057: esac
                   22058: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22059:   (eval "$ac_link") 2>conftest.er1
                   22060:   ac_status=$?
                   22061:   grep -v '^ *+' conftest.er1 >conftest.err
                   22062:   rm -f conftest.er1
                   22063:   cat conftest.err >&5
                   22064:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22065:   (exit $ac_status); } && {
                   22066:         test -z "$ac_c_werror_flag" ||
                   22067:         test ! -s conftest.err
                   22068:        } && test -s conftest$ac_exeext &&
                   22069:        $as_test_x conftest$ac_exeext; then
                   22070:   ac_cv_search_getspnam=$ac_res
                   22071: else
                   22072:   echo "$as_me: failed program was:" >&5
                   22073: sed 's/^/| /' conftest.$ac_ext >&5
                   22074:
1.25      millert  22075:
1.17      millert  22076: fi
                   22077:
1.27      millert  22078: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22079:       conftest$ac_exeext
                   22080:   if test "${ac_cv_search_getspnam+set}" = set; then
                   22081:   break
                   22082: fi
                   22083: done
                   22084: if test "${ac_cv_search_getspnam+set}" = set; then
                   22085:   :
1.25      millert  22086: else
1.27      millert  22087:   ac_cv_search_getspnam=no
                   22088: fi
                   22089: rm conftest.$ac_ext
                   22090: LIBS=$ac_func_search_save_LIBS
1.25      millert  22091: fi
1.27      millert  22092: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
                   22093: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
                   22094: ac_res=$ac_cv_search_getspnam
                   22095: if test "$ac_res" != no; then
                   22096:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22097:   cat >>confdefs.h <<\_ACEOF
                   22098: #define HAVE_GETSPNAM 1
                   22099: _ACEOF
                   22100:  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17      millert  22101: fi
                   22102:
1.27      millert  22103:     fi
                   22104:     if test "$CHECKSHADOW" = "true"; then
                   22105:        { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
                   22106: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
                   22107: if test "${ac_cv_search_getprpwnam+set}" = set; then
                   22108:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22109: else
                   22110:   ac_func_search_save_LIBS=$LIBS
                   22111: cat >conftest.$ac_ext <<_ACEOF
                   22112: /* confdefs.h.  */
                   22113: _ACEOF
                   22114: cat confdefs.h >>conftest.$ac_ext
                   22115: cat >>conftest.$ac_ext <<_ACEOF
                   22116: /* end confdefs.h.  */
1.17      millert  22117:
1.27      millert  22118: /* Override any GCC internal prototype to avoid an error.
                   22119:    Use char because int might match the return type of a GCC
                   22120:    builtin and then its argument prototype would still apply.  */
                   22121: #ifdef __cplusplus
                   22122: extern "C"
                   22123: #endif
                   22124: char getprpwnam ();
                   22125: int
                   22126: main ()
                   22127: {
                   22128: return getprpwnam ();
                   22129:   ;
                   22130:   return 0;
1.23      millert  22131: }
1.27      millert  22132: _ACEOF
                   22133: for ac_lib in '' sec security prot; do
                   22134:   if test -z "$ac_lib"; then
                   22135:     ac_res="none required"
                   22136:   else
                   22137:     ac_res=-l$ac_lib
                   22138:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22139:   fi
                   22140:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22141: if { (ac_try="$ac_link"
                   22142: case "(($ac_try" in
                   22143:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22144:   *) ac_try_echo=$ac_try;;
                   22145: esac
                   22146: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22147:   (eval "$ac_link") 2>conftest.er1
                   22148:   ac_status=$?
                   22149:   grep -v '^ *+' conftest.er1 >conftest.err
                   22150:   rm -f conftest.er1
                   22151:   cat conftest.err >&5
                   22152:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22153:   (exit $ac_status); } && {
                   22154:         test -z "$ac_c_werror_flag" ||
                   22155:         test ! -s conftest.err
                   22156:        } && test -s conftest$ac_exeext &&
                   22157:        $as_test_x conftest$ac_exeext; then
                   22158:   ac_cv_search_getprpwnam=$ac_res
                   22159: else
                   22160:   echo "$as_me: failed program was:" >&5
                   22161: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  22162:
                   22163:
1.27      millert  22164: fi
1.23      millert  22165:
1.27      millert  22166: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22167:       conftest$ac_exeext
                   22168:   if test "${ac_cv_search_getprpwnam+set}" = set; then
                   22169:   break
                   22170: fi
                   22171: done
                   22172: if test "${ac_cv_search_getprpwnam+set}" = set; then
                   22173:   :
1.23      millert  22174: else
1.27      millert  22175:   ac_cv_search_getprpwnam=no
                   22176: fi
                   22177: rm conftest.$ac_ext
                   22178: LIBS=$ac_func_search_save_LIBS
1.23      millert  22179: fi
1.27      millert  22180: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
                   22181: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
                   22182: ac_res=$ac_cv_search_getprpwnam
                   22183: if test "$ac_res" != no; then
                   22184:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22185:   cat >>confdefs.h <<\_ACEOF
                   22186: #define HAVE_GETPRPWNAM 1
                   22187: _ACEOF
                   22188:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.23      millert  22189: fi
1.25      millert  22190:
1.27      millert  22191:     fi
                   22192:     if test -n "$SECUREWARE"; then
1.25      millert  22193:
                   22194:
                   22195:
1.27      millert  22196: for ac_func in bigcrypt set_auth_parameters initprivs
                   22197: do
                   22198: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22199: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22200: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22201: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   22202:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22203: else
                   22204:   cat >conftest.$ac_ext <<_ACEOF
                   22205: /* confdefs.h.  */
                   22206: _ACEOF
                   22207: cat confdefs.h >>conftest.$ac_ext
                   22208: cat >>conftest.$ac_ext <<_ACEOF
                   22209: /* end confdefs.h.  */
                   22210: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22211:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22212: #define $ac_func innocuous_$ac_func
1.25      millert  22213:
1.27      millert  22214: /* System header to define __stub macros and hopefully few prototypes,
                   22215:     which can conflict with char $ac_func (); below.
                   22216:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22217:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  22218:
1.27      millert  22219: #ifdef __STDC__
                   22220: # include <limits.h>
                   22221: #else
                   22222: # include <assert.h>
                   22223: #endif
1.25      millert  22224:
1.27      millert  22225: #undef $ac_func
1.23      millert  22226:
1.27      millert  22227: /* Override any GCC internal prototype to avoid an error.
                   22228:    Use char because int might match the return type of a GCC
                   22229:    builtin and then its argument prototype would still apply.  */
                   22230: #ifdef __cplusplus
                   22231: extern "C"
                   22232: #endif
                   22233: char $ac_func ();
                   22234: /* The GNU C library defines this for functions which it implements
                   22235:     to always fail with ENOSYS.  Some functions are actually named
                   22236:     something starting with __ and the normal name is an alias.  */
                   22237: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22238: choke me
                   22239: #endif
1.23      millert  22240:
1.27      millert  22241: int
                   22242: main ()
1.25      millert  22243: {
1.27      millert  22244: return $ac_func ();
                   22245:   ;
                   22246:   return 0;
                   22247: }
1.23      millert  22248: _ACEOF
1.27      millert  22249: rm -f conftest.$ac_objext conftest$ac_exeext
                   22250: if { (ac_try="$ac_link"
                   22251: case "(($ac_try" in
                   22252:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22253:   *) ac_try_echo=$ac_try;;
                   22254: esac
                   22255: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22256:   (eval "$ac_link") 2>conftest.er1
                   22257:   ac_status=$?
                   22258:   grep -v '^ *+' conftest.er1 >conftest.err
                   22259:   rm -f conftest.er1
                   22260:   cat conftest.err >&5
                   22261:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22262:   (exit $ac_status); } && {
                   22263:         test -z "$ac_c_werror_flag" ||
                   22264:         test ! -s conftest.err
                   22265:        } && test -s conftest$ac_exeext &&
                   22266:        $as_test_x conftest$ac_exeext; then
                   22267:   eval "$as_ac_var=yes"
                   22268: else
                   22269:   echo "$as_me: failed program was:" >&5
                   22270: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  22271:
1.27      millert  22272:        eval "$as_ac_var=no"
1.17      millert  22273: fi
1.23      millert  22274:
1.27      millert  22275: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22276:       conftest$ac_exeext conftest.$ac_ext
1.25      millert  22277: fi
1.27      millert  22278: ac_res=`eval echo '${'$as_ac_var'}'`
                   22279:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22280: echo "${ECHO_T}$ac_res" >&6; }
                   22281: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22282:   cat >>confdefs.h <<_ACEOF
                   22283: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22284: _ACEOF
1.17      millert  22285:
                   22286: fi
1.27      millert  22287: done
1.17      millert  22288:
1.27      millert  22289:        AUTH_OBJS="$AUTH_OBJS secureware.o"
                   22290:     fi
1.25      millert  22291: fi
1.17      millert  22292:
1.27      millert  22293: if test ${with_ldap-'no'} != "no"; then
                   22294:     _LDFLAGS="$LDFLAGS"
                   22295:     if test "$with_ldap" != "yes"; then
1.17      millert  22296:
1.27      millert  22297:     if test X"$with_rpath" = X"yes"; then
                   22298:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22299:     else
                   22300:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
                   22301:     fi
                   22302:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22303:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22304:     fi
1.17      millert  22305:
                   22306:
1.27      millert  22307:     if test X"$with_rpath" = X"yes"; then
                   22308:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22309:     else
                   22310:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
                   22311:     fi
                   22312:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22313:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22314:     fi
1.17      millert  22315:
1.27      millert  22316:        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
                   22317:        with_ldap=yes
                   22318:     fi
                   22319:     SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17      millert  22320:
1.27      millert  22321:     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
                   22322: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
                   22323:     LDAP_LIBS=""
                   22324:     _LIBS="$LIBS"
                   22325:     found=no
                   22326:     for l in -lldap -llber '-lssl -lcrypto'; do
                   22327:        LIBS="${LIBS} $l"
                   22328:        LDAP_LIBS="${LDAP_LIBS} $l"
                   22329:        cat >conftest.$ac_ext <<_ACEOF
                   22330: /* confdefs.h.  */
1.25      millert  22331: _ACEOF
1.27      millert  22332: cat confdefs.h >>conftest.$ac_ext
                   22333: cat >>conftest.$ac_ext <<_ACEOF
                   22334: /* end confdefs.h.  */
                   22335: #include <sys/types.h>
                   22336:        #include <lber.h>
                   22337:        #include <ldap.h>
                   22338: int
                   22339: main ()
                   22340: {
                   22341: (void)ldap_init(0, 0)
                   22342:   ;
                   22343:   return 0;
                   22344: }
1.25      millert  22345: _ACEOF
1.27      millert  22346: rm -f conftest.$ac_objext conftest$ac_exeext
                   22347: if { (ac_try="$ac_link"
                   22348: case "(($ac_try" in
                   22349:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22350:   *) ac_try_echo=$ac_try;;
                   22351: esac
                   22352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22353:   (eval "$ac_link") 2>conftest.er1
                   22354:   ac_status=$?
                   22355:   grep -v '^ *+' conftest.er1 >conftest.err
                   22356:   rm -f conftest.er1
                   22357:   cat conftest.err >&5
                   22358:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22359:   (exit $ac_status); } && {
                   22360:         test -z "$ac_c_werror_flag" ||
                   22361:         test ! -s conftest.err
                   22362:        } && test -s conftest$ac_exeext &&
                   22363:        $as_test_x conftest$ac_exeext; then
                   22364:   found=yes; break
                   22365: else
                   22366:   echo "$as_me: failed program was:" >&5
                   22367: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  22368:
1.25      millert  22369:
1.17      millert  22370: fi
                   22371:
1.27      millert  22372: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22373:       conftest$ac_exeext conftest.$ac_ext
                   22374:     done
                   22375:         if test "$found" = "no"; then
                   22376:        LDAP_LIBS=" -lldap"
                   22377:        { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
                   22378: echo "${ECHO_T}not found, using -lldap" >&6; }
                   22379:     else
                   22380:        { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
                   22381: echo "${ECHO_T}$LDAP_LIBS" >&6; }
                   22382:     fi
                   22383:         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
                   22384: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
                   22385:     cat >conftest.$ac_ext <<_ACEOF
                   22386: /* confdefs.h.  */
1.17      millert  22387: _ACEOF
1.27      millert  22388: cat confdefs.h >>conftest.$ac_ext
                   22389: cat >>conftest.$ac_ext <<_ACEOF
                   22390: /* end confdefs.h.  */
                   22391: #include <sys/types.h>
                   22392:     #include <ldap.h>
                   22393: int
                   22394: main ()
                   22395: {
                   22396: (void)ldap_init(0, 0)
                   22397:   ;
                   22398:   return 0;
                   22399: }
1.25      millert  22400: _ACEOF
1.27      millert  22401: rm -f conftest.$ac_objext conftest$ac_exeext
                   22402: if { (ac_try="$ac_link"
                   22403: case "(($ac_try" in
                   22404:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22405:   *) ac_try_echo=$ac_try;;
                   22406: esac
                   22407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22408:   (eval "$ac_link") 2>conftest.er1
                   22409:   ac_status=$?
                   22410:   grep -v '^ *+' conftest.er1 >conftest.err
                   22411:   rm -f conftest.er1
                   22412:   cat conftest.err >&5
                   22413:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22414:   (exit $ac_status); } && {
                   22415:         test -z "$ac_c_werror_flag" ||
                   22416:         test ! -s conftest.err
                   22417:        } && test -s conftest$ac_exeext &&
                   22418:        $as_test_x conftest$ac_exeext; then
                   22419:   { echo "$as_me:$LINENO: result: no" >&5
                   22420: echo "${ECHO_T}no" >&6; }
                   22421: else
                   22422:   echo "$as_me: failed program was:" >&5
                   22423: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  22424:
1.1       millert  22425:
1.27      millert  22426:     { echo "$as_me:$LINENO: result: yes" >&5
                   22427: echo "${ECHO_T}yes" >&6; }
                   22428:     cat >>confdefs.h <<\_ACEOF
                   22429: #define HAVE_LBER_H 1
                   22430: _ACEOF
1.1       millert  22431:
1.25      millert  22432: fi
                   22433:
1.27      millert  22434: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22435:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  22436:
                   22437:
                   22438:
1.33    ! millert  22439:
        !          22440: for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init
1.27      millert  22441: do
                   22442: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22443: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22444: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22445: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   22446:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22447: else
                   22448:   cat >conftest.$ac_ext <<_ACEOF
                   22449: /* confdefs.h.  */
1.16      millert  22450: _ACEOF
1.27      millert  22451: cat confdefs.h >>conftest.$ac_ext
                   22452: cat >>conftest.$ac_ext <<_ACEOF
                   22453: /* end confdefs.h.  */
                   22454: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22455:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22456: #define $ac_func innocuous_$ac_func
1.16      millert  22457:
1.27      millert  22458: /* System header to define __stub macros and hopefully few prototypes,
                   22459:     which can conflict with char $ac_func (); below.
                   22460:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22461:     <limits.h> exists even on freestanding compilers.  */
1.16      millert  22462:
1.27      millert  22463: #ifdef __STDC__
                   22464: # include <limits.h>
                   22465: #else
                   22466: # include <assert.h>
                   22467: #endif
1.25      millert  22468:
1.27      millert  22469: #undef $ac_func
1.25      millert  22470:
1.27      millert  22471: /* Override any GCC internal prototype to avoid an error.
                   22472:    Use char because int might match the return type of a GCC
                   22473:    builtin and then its argument prototype would still apply.  */
                   22474: #ifdef __cplusplus
                   22475: extern "C"
                   22476: #endif
                   22477: char $ac_func ();
                   22478: /* The GNU C library defines this for functions which it implements
                   22479:     to always fail with ENOSYS.  Some functions are actually named
                   22480:     something starting with __ and the normal name is an alias.  */
                   22481: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22482: choke me
                   22483: #endif
1.16      millert  22484:
1.27      millert  22485: int
                   22486: main ()
1.25      millert  22487: {
1.27      millert  22488: return $ac_func ();
                   22489:   ;
                   22490:   return 0;
1.25      millert  22491: }
1.27      millert  22492: _ACEOF
                   22493: rm -f conftest.$ac_objext conftest$ac_exeext
                   22494: if { (ac_try="$ac_link"
                   22495: case "(($ac_try" in
                   22496:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22497:   *) ac_try_echo=$ac_try;;
                   22498: esac
                   22499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22500:   (eval "$ac_link") 2>conftest.er1
                   22501:   ac_status=$?
                   22502:   grep -v '^ *+' conftest.er1 >conftest.err
                   22503:   rm -f conftest.er1
                   22504:   cat conftest.err >&5
                   22505:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22506:   (exit $ac_status); } && {
                   22507:         test -z "$ac_c_werror_flag" ||
                   22508:         test ! -s conftest.err
                   22509:        } && test -s conftest$ac_exeext &&
                   22510:        $as_test_x conftest$ac_exeext; then
                   22511:   eval "$as_ac_var=yes"
                   22512: else
                   22513:   echo "$as_me: failed program was:" >&5
                   22514: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  22515:
1.27      millert  22516:        eval "$as_ac_var=no"
                   22517: fi
1.17      millert  22518:
1.27      millert  22519: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22520:       conftest$ac_exeext conftest.$ac_ext
                   22521: fi
                   22522: ac_res=`eval echo '${'$as_ac_var'}'`
                   22523:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22524: echo "${ECHO_T}$ac_res" >&6; }
                   22525: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22526:   cat >>confdefs.h <<_ACEOF
                   22527: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22528: _ACEOF
1.17      millert  22529:
1.27      millert  22530: fi
                   22531: done
1.17      millert  22532:
                   22533:
1.27      millert  22534:     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
                   22535:     LIBS="$_LIBS"
                   22536:     LDFLAGS="$_LDFLAGS"
                   22537:     # XXX - OpenLDAP has deprecated ldap_get_values()
                   22538:     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
                   22539: fi
1.17      millert  22540:
1.27      millert  22541: if test -n "$blibpath"; then
                   22542:     if test -n "$blibpath_add"; then
                   22543:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
                   22544:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   22545:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17      millert  22546:     fi
1.27      millert  22547: fi
                   22548:
                   22549: { echo "$as_me:$LINENO: checking for log file location" >&5
                   22550: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
                   22551: if test -n "$with_logpath"; then
                   22552:     { echo "$as_me:$LINENO: result: $with_logpath" >&5
                   22553: echo "${ECHO_T}$with_logpath" >&6; }
                   22554:     cat >>confdefs.h <<EOF
                   22555: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   22556: EOF
1.17      millert  22557:
1.27      millert  22558: elif test -d "/var/log"; then
                   22559:     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
                   22560: echo "${ECHO_T}/var/log/sudo.log" >&6; }
                   22561:     cat >>confdefs.h <<\EOF
                   22562: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   22563: EOF
1.17      millert  22564:
1.27      millert  22565: elif test -d "/var/adm"; then
                   22566:     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
                   22567: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
                   22568:     cat >>confdefs.h <<\EOF
                   22569: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   22570: EOF
1.17      millert  22571:
1.27      millert  22572: elif test -d "/usr/adm"; then
                   22573:     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
                   22574: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
                   22575:     cat >>confdefs.h <<\EOF
                   22576: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   22577: EOF
1.23      millert  22578:
                   22579: else
1.27      millert  22580:     { echo "$as_me:$LINENO: result: unknown" >&5
                   22581: echo "${ECHO_T}unknown" >&6; }
1.23      millert  22582: fi
                   22583:
1.27      millert  22584: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
                   22585: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
                   22586: if test -n "$with_timedir"; then
                   22587:     { echo "$as_me:$LINENO: result: $with_timedir" >&5
                   22588: echo "${ECHO_T}$with_timedir" >&6; }
                   22589:     cat >>confdefs.h <<EOF
                   22590: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   22591: EOF
1.23      millert  22592:
1.27      millert  22593:     timedir="$with_timedir"
                   22594: elif test -d "/var/run"; then
                   22595:     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
                   22596: echo "${ECHO_T}/var/run/sudo" >&6; }
                   22597:     cat >>confdefs.h <<\EOF
                   22598: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   22599: EOF
1.23      millert  22600:
1.27      millert  22601:     timedir="/var/run/sudo"
                   22602: elif test -d "/var/adm"; then
                   22603:     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
                   22604: echo "${ECHO_T}/var/adm/sudo" >&6; }
                   22605:     cat >>confdefs.h <<\EOF
                   22606: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
                   22607: EOF
1.23      millert  22608:
1.27      millert  22609:     timedir="/var/adm/sudo"
                   22610: else
                   22611:     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
                   22612: echo "${ECHO_T}/usr/adm/sudo" >&6; }
                   22613:     cat >>confdefs.h <<\EOF
                   22614: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
                   22615: EOF
1.23      millert  22616:
1.27      millert  22617:     timedir="/usr/adm/sudo"
                   22618: fi
1.23      millert  22619:
                   22620:
1.27      millert  22621: case "$with_passwd" in
                   22622: yes|maybe)
                   22623:     AUTH_OBJS="$AUTH_OBJS passwd.o"
                   22624:     ;;
                   22625: *)
                   22626:     cat >>confdefs.h <<\_ACEOF
                   22627: #define WITHOUT_PASSWD 1
1.23      millert  22628: _ACEOF
1.25      millert  22629:
1.27      millert  22630:     if test -z "$AUTH_OBJS"; then
                   22631:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
                   22632: echo "$as_me: error: no authentication methods defined." >&2;}
                   22633:    { (exit 1); exit 1; }; }
                   22634:     fi
                   22635:     ;;
                   22636: esac
                   22637: AUTH_OBJS=${AUTH_OBJS# }
                   22638: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   22639: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
                   22640: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25      millert  22641:
1.27      millert  22642: if test -n "$LIBS"; then
                   22643:     L="$LIBS"
                   22644:     LIBS=
                   22645:     for l in ${L}; do
                   22646:        dupe=0
                   22647:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   22648:            test $l = $sl && dupe=1
                   22649:        done
                   22650:        test $dupe = 0 && LIBS="${LIBS} $l"
                   22651:     done
                   22652: fi
1.23      millert  22653:
1.27      millert  22654: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23      millert  22655:
1.27      millert  22656: if test "$with_noexec" != "no"; then
                   22657:     PROGS="${PROGS} sudo_noexec.la"
                   22658:     INSTALL_NOEXEC="install-noexec"
1.23      millert  22659:
1.27      millert  22660:     oexec_prefix="$exec_prefix"
                   22661:     if test "$exec_prefix" = '$(prefix)'; then
                   22662:        if test "$prefix" = "NONE"; then
                   22663:            exec_prefix="$ac_default_prefix"
                   22664:        else
                   22665:            exec_prefix="$prefix"
                   22666:        fi
                   22667:     fi
                   22668:     eval noexec_file="$with_noexec"
1.23      millert  22669:
1.27      millert  22670: cat >>confdefs.h <<_ACEOF
                   22671: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16      millert  22672: _ACEOF
1.23      millert  22673:
1.27      millert  22674:     exec_prefix="$oexec_prefix"
                   22675: fi
                   22676:
                   22677: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
                   22678:
                   22679: cat >confcache <<\_ACEOF
                   22680: # This file is a shell script that caches the results of configure
                   22681: # tests run on this system so they can be shared between configure
                   22682: # scripts and configure runs, see configure's option --config-cache.
                   22683: # It is not useful on other systems.  If it contains results you don't
                   22684: # want to keep, you may remove or edit it.
                   22685: #
                   22686: # config.status only pays attention to the cache file if you give it
                   22687: # the --recheck option to rerun configure.
1.25      millert  22688: #
1.27      millert  22689: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   22690: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   22691: # following values.
1.16      millert  22692:
1.23      millert  22693: _ACEOF
1.17      millert  22694:
1.27      millert  22695: # The following way of writing the cache mishandles newlines in values,
                   22696: # but we know of no workaround that is simple, portable, and efficient.
                   22697: # So, we kill variables containing newlines.
                   22698: # Ultrix sh set writes to stderr and can't be redirected directly,
                   22699: # and sets the high bit in the cache file unless we assign to the vars.
                   22700: (
                   22701:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   22702:     eval ac_val=\$$ac_var
                   22703:     case $ac_val in #(
                   22704:     *${as_nl}*)
                   22705:       case $ac_var in #(
                   22706:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   22707: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   22708:       esac
                   22709:       case $ac_var in #(
                   22710:       _ | IFS | as_nl) ;; #(
                   22711:       *) $as_unset $ac_var ;;
                   22712:       esac ;;
                   22713:     esac
                   22714:   done
1.1       millert  22715:
1.27      millert  22716:   (set) 2>&1 |
                   22717:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   22718:     *${as_nl}ac_space=\ *)
                   22719:       # `set' does not quote correctly, so add quotes (double-quote
                   22720:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   22721:       sed -n \
                   22722:        "s/'/'\\\\''/g;
                   22723:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   22724:       ;; #(
                   22725:     *)
                   22726:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   22727:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   22728:       ;;
                   22729:     esac |
                   22730:     sort
                   22731: ) |
                   22732:   sed '
                   22733:      /^ac_cv_env_/b end
                   22734:      t clear
                   22735:      :clear
                   22736:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   22737:      t end
                   22738:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   22739:      :end' >>confcache
                   22740: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   22741:   if test -w "$cache_file"; then
                   22742:     test "x$cache_file" != "x/dev/null" &&
                   22743:       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
                   22744: echo "$as_me: updating cache $cache_file" >&6;}
                   22745:     cat confcache >$cache_file
1.25      millert  22746:   else
1.27      millert  22747:     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
                   22748: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25      millert  22749:   fi
1.27      millert  22750: fi
                   22751: rm -f confcache
1.1       millert  22752:
1.27      millert  22753: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   22754: # Let make expand exec_prefix.
                   22755: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       millert  22756:
1.27      millert  22757: DEFS=-DHAVE_CONFIG_H
1.1       millert  22758:
1.27      millert  22759: ac_libobjs=
                   22760: ac_ltlibobjs=
                   22761: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   22762:   # 1. Remove the extension, and $U if already installed.
                   22763:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   22764:   ac_i=`echo "$ac_i" | sed "$ac_script"`
                   22765:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   22766:   #    will be set to the directory where LIBOBJS objects are built.
                   22767:   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   22768:   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
                   22769: done
                   22770: LIBOBJS=$ac_libobjs
1.1       millert  22771:
1.27      millert  22772: LTLIBOBJS=$ac_ltlibobjs
1.1       millert  22773:
                   22774:
                   22775:
1.27      millert  22776: : ${CONFIG_STATUS=./config.status}
                   22777: ac_clean_files_save=$ac_clean_files
                   22778: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   22779: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   22780: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   22781: cat >$CONFIG_STATUS <<_ACEOF
                   22782: #! $SHELL
                   22783: # Generated by $as_me.
                   22784: # Run this file to recreate the current configuration.
                   22785: # Compiler output produced by configure, useful for debugging
                   22786: # configure, is in config.log if it exists.
1.1       millert  22787:
1.27      millert  22788: debug=false
                   22789: ac_cs_recheck=false
                   22790: ac_cs_silent=false
                   22791: SHELL=\${CONFIG_SHELL-$SHELL}
                   22792: _ACEOF
1.23      millert  22793:
1.27      millert  22794: cat >>$CONFIG_STATUS <<\_ACEOF
                   22795: ## --------------------- ##
                   22796: ## M4sh Initialization.  ##
                   22797: ## --------------------- ##
1.23      millert  22798:
1.27      millert  22799: # Be more Bourne compatible
                   22800: DUALCASE=1; export DUALCASE # for MKS sh
                   22801: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   22802:   emulate sh
                   22803:   NULLCMD=:
                   22804:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   22805:   # is contrary to our usage.  Disable this feature.
                   22806:   alias -g '${1+"$@"}'='"$@"'
                   22807:   setopt NO_GLOB_SUBST
                   22808: else
                   22809:   case `(set -o) 2>/dev/null` in
                   22810:   *posix*) set -o posix ;;
                   22811: esac
1.25      millert  22812:
1.27      millert  22813: fi
1.25      millert  22814:
1.9       millert  22815:
                   22816:
1.1       millert  22817:
1.27      millert  22818: # PATH needs CR
                   22819: # Avoid depending upon Character Ranges.
                   22820: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   22821: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   22822: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   22823: as_cr_digits='0123456789'
                   22824: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       millert  22825:
1.27      millert  22826: # The user is always right.
                   22827: if test "${PATH_SEPARATOR+set}" != set; then
                   22828:   echo "#! /bin/sh" >conf$$.sh
                   22829:   echo  "exit 0"   >>conf$$.sh
                   22830:   chmod +x conf$$.sh
                   22831:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   22832:     PATH_SEPARATOR=';'
                   22833:   else
                   22834:     PATH_SEPARATOR=:
                   22835:   fi
                   22836:   rm -f conf$$.sh
                   22837: fi
1.1       millert  22838:
1.27      millert  22839: # Support unset when possible.
                   22840: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   22841:   as_unset=unset
                   22842: else
                   22843:   as_unset=false
                   22844: fi
1.1       millert  22845:
1.16      millert  22846:
1.27      millert  22847: # IFS
                   22848: # We need space, tab and new line, in precisely that order.  Quoting is
                   22849: # there to prevent editors from complaining about space-tab.
                   22850: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   22851: # splitting by setting IFS to empty value.)
                   22852: as_nl='
                   22853: '
                   22854: IFS=" ""       $as_nl"
1.16      millert  22855:
1.27      millert  22856: # Find who we are.  Look in the path if we contain no directory separator.
                   22857: case $0 in
                   22858:   *[\\/]* ) as_myself=$0 ;;
                   22859:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22860: for as_dir in $PATH
                   22861: do
                   22862:   IFS=$as_save_IFS
                   22863:   test -z "$as_dir" && as_dir=.
                   22864:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   22865: done
                   22866: IFS=$as_save_IFS
1.16      millert  22867:
1.27      millert  22868:      ;;
                   22869: esac
                   22870: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   22871: # in which case we are not to be found in the path.
                   22872: if test "x$as_myself" = x; then
                   22873:   as_myself=$0
                   22874: fi
                   22875: if test ! -f "$as_myself"; then
                   22876:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   22877:   { (exit 1); exit 1; }
                   22878: fi
1.16      millert  22879:
1.27      millert  22880: # Work around bugs in pre-3.0 UWIN ksh.
                   22881: for as_var in ENV MAIL MAILPATH
                   22882: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   22883: done
                   22884: PS1='$ '
                   22885: PS2='> '
                   22886: PS4='+ '
1.9       millert  22887:
1.27      millert  22888: # NLS nuisances.
                   22889: for as_var in \
                   22890:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   22891:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   22892:   LC_TELEPHONE LC_TIME
                   22893: do
                   22894:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   22895:     eval $as_var=C; export $as_var
                   22896:   else
                   22897:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   22898:   fi
                   22899: done
1.9       millert  22900:
1.27      millert  22901: # Required to use basename.
                   22902: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   22903:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   22904:   as_expr=expr
                   22905: else
                   22906:   as_expr=false
                   22907: fi
1.16      millert  22908:
1.27      millert  22909: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   22910:   as_basename=basename
                   22911: else
                   22912:   as_basename=false
                   22913: fi
1.9       millert  22914:
1.16      millert  22915:
1.27      millert  22916: # Name of the executable.
                   22917: as_me=`$as_basename -- "$0" ||
                   22918: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   22919:         X"$0" : 'X\(//\)$' \| \
                   22920:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   22921: echo X/"$0" |
                   22922:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   22923:            s//\1/
                   22924:            q
                   22925:          }
                   22926:          /^X\/\(\/\/\)$/{
                   22927:            s//\1/
                   22928:            q
                   22929:          }
                   22930:          /^X\/\(\/\).*/{
                   22931:            s//\1/
                   22932:            q
                   22933:          }
                   22934:          s/.*/./; q'`
1.16      millert  22935:
1.27      millert  22936: # CDPATH.
                   22937: $as_unset CDPATH
1.16      millert  22938:
                   22939:
                   22940:
1.27      millert  22941:   as_lineno_1=$LINENO
                   22942:   as_lineno_2=$LINENO
                   22943:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   22944:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16      millert  22945:
1.27      millert  22946:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   22947:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   22948:   # line-number line after each line using $LINENO; the second 'sed'
                   22949:   # does the real work.  The second script uses 'N' to pair each
                   22950:   # line-number line with the line containing $LINENO, and appends
                   22951:   # trailing '-' during substitution so that $LINENO is not a special
                   22952:   # case at line end.
                   22953:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   22954:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                   22955:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                   22956:   sed -n '
                   22957:     p
                   22958:     /[$]LINENO/=
                   22959:   ' <$as_myself |
                   22960:     sed '
                   22961:       s/[$]LINENO.*/&-/
                   22962:       t lineno
                   22963:       b
                   22964:       :lineno
                   22965:       N
                   22966:       :loop
                   22967:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                   22968:       t loop
                   22969:       s/-\n.*//
                   22970:     ' >$as_me.lineno &&
                   22971:   chmod +x "$as_me.lineno" ||
                   22972:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                   22973:    { (exit 1); exit 1; }; }
1.16      millert  22974:
1.27      millert  22975:   # Don't try to exec as it changes $[0], causing all sort of problems
                   22976:   # (the dirname of $[0] is not the place where we might find the
                   22977:   # original and so on.  Autoconf is especially sensitive to this).
                   22978:   . "./$as_me.lineno"
                   22979:   # Exit status is that of the last command.
                   22980:   exit
                   22981: }
1.16      millert  22982:
                   22983:
1.27      millert  22984: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   22985:   as_dirname=dirname
                   22986: else
                   22987:   as_dirname=false
                   22988: fi
1.16      millert  22989:
1.27      millert  22990: ECHO_C= ECHO_N= ECHO_T=
                   22991: case `echo -n x` in
                   22992: -n*)
                   22993:   case `echo 'x\c'` in
                   22994:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   22995:   *)   ECHO_C='\c';;
                   22996:   esac;;
                   22997: *)
                   22998:   ECHO_N='-n';;
                   22999: esac
1.16      millert  23000:
1.27      millert  23001: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   23002:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   23003:   as_expr=expr
                   23004: else
                   23005:   as_expr=false
                   23006: fi
1.16      millert  23007:
1.27      millert  23008: rm -f conf$$ conf$$.exe conf$$.file
                   23009: if test -d conf$$.dir; then
                   23010:   rm -f conf$$.dir/conf$$.file
                   23011: else
                   23012:   rm -f conf$$.dir
                   23013:   mkdir conf$$.dir
                   23014: fi
                   23015: echo >conf$$.file
                   23016: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   23017:   as_ln_s='ln -s'
                   23018:   # ... but there are two gotchas:
                   23019:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   23020:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   23021:   # In both cases, we have to default to `cp -p'.
                   23022:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   23023:     as_ln_s='cp -p'
                   23024: elif ln conf$$.file conf$$ 2>/dev/null; then
                   23025:   as_ln_s=ln
                   23026: else
                   23027:   as_ln_s='cp -p'
                   23028: fi
                   23029: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   23030: rmdir conf$$.dir 2>/dev/null
1.16      millert  23031:
1.27      millert  23032: if mkdir -p . 2>/dev/null; then
                   23033:   as_mkdir_p=:
                   23034: else
                   23035:   test -d ./-p && rmdir ./-p
                   23036:   as_mkdir_p=false
                   23037: fi
1.16      millert  23038:
1.27      millert  23039: if test -x / >/dev/null 2>&1; then
                   23040:   as_test_x='test -x'
                   23041: else
                   23042:   if ls -dL / >/dev/null 2>&1; then
                   23043:     as_ls_L_option=L
                   23044:   else
                   23045:     as_ls_L_option=
                   23046:   fi
                   23047:   as_test_x='
                   23048:     eval sh -c '\''
                   23049:       if test -d "$1"; then
                   23050:         test -d "$1/.";
                   23051:       else
                   23052:        case $1 in
                   23053:         -*)set "./$1";;
                   23054:        esac;
                   23055:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                   23056:        ???[sx]*):;;*)false;;esac;fi
                   23057:     '\'' sh
                   23058:   '
                   23059: fi
                   23060: as_executable_p=$as_test_x
1.16      millert  23061:
1.27      millert  23062: # Sed expression to map a string onto a valid CPP name.
                   23063: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  23064:
1.27      millert  23065: # Sed expression to map a string onto a valid variable name.
                   23066: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  23067:
1.9       millert  23068:
1.27      millert  23069: exec 6>&1
1.9       millert  23070:
1.27      millert  23071: # Save the log message, to keep $[0] and so on meaningful, and to
                   23072: # report actual input values of CONFIG_FILES etc. instead of their
                   23073: # values after options handling.
                   23074: ac_log="
                   23075: This file was extended by sudo $as_me 1.6.9, which was
                   23076: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  23077:
1.27      millert  23078:   CONFIG_FILES    = $CONFIG_FILES
                   23079:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   23080:   CONFIG_LINKS    = $CONFIG_LINKS
                   23081:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   23082:   $ $0 $@
1.16      millert  23083:
1.27      millert  23084: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   23085: "
1.9       millert  23086:
1.27      millert  23087: _ACEOF
1.16      millert  23088:
1.27      millert  23089: cat >>$CONFIG_STATUS <<_ACEOF
                   23090: # Files that config.status was made for.
                   23091: config_files="$ac_config_files"
                   23092: config_headers="$ac_config_headers"
1.9       millert  23093:
1.27      millert  23094: _ACEOF
1.9       millert  23095:
1.27      millert  23096: cat >>$CONFIG_STATUS <<\_ACEOF
                   23097: ac_cs_usage="\
                   23098: \`$as_me' instantiates files from templates according to the
                   23099: current configuration.
1.9       millert  23100:
1.27      millert  23101: Usage: $0 [OPTIONS] [FILE]...
1.9       millert  23102:
1.27      millert  23103:   -h, --help       print this help, then exit
                   23104:   -V, --version    print version number and configuration settings, then exit
                   23105:   -q, --quiet      do not print progress messages
                   23106:   -d, --debug      don't remove temporary files
                   23107:       --recheck    update $as_me by reconfiguring in the same conditions
                   23108:   --file=FILE[:TEMPLATE]
                   23109:                   instantiate the configuration file FILE
                   23110:   --header=FILE[:TEMPLATE]
                   23111:                   instantiate the configuration header FILE
1.9       millert  23112:
1.27      millert  23113: Configuration files:
                   23114: $config_files
1.16      millert  23115:
1.27      millert  23116: Configuration headers:
                   23117: $config_headers
1.16      millert  23118:
1.27      millert  23119: Report bugs to <bug-autoconf@gnu.org>."
1.16      millert  23120:
1.27      millert  23121: _ACEOF
                   23122: cat >>$CONFIG_STATUS <<_ACEOF
                   23123: ac_cs_version="\\
                   23124: sudo config.status 1.6.9
                   23125: configured by $0, generated by GNU Autoconf 2.61,
                   23126:   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9       millert  23127:
1.27      millert  23128: Copyright (C) 2006 Free Software Foundation, Inc.
                   23129: This config.status script is free software; the Free Software Foundation
                   23130: gives unlimited permission to copy, distribute and modify it."
1.9       millert  23131:
1.27      millert  23132: ac_pwd='$ac_pwd'
                   23133: srcdir='$srcdir'
                   23134: _ACEOF
1.9       millert  23135:
1.27      millert  23136: cat >>$CONFIG_STATUS <<\_ACEOF
                   23137: # If no file are specified by the user, then we need to provide default
                   23138: # value.  By we need to know if files were specified by the user.
                   23139: ac_need_defaults=:
                   23140: while test $# != 0
                   23141: do
                   23142:   case $1 in
                   23143:   --*=*)
                   23144:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   23145:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   23146:     ac_shift=:
                   23147:     ;;
                   23148:   *)
                   23149:     ac_option=$1
                   23150:     ac_optarg=$2
                   23151:     ac_shift=shift
                   23152:     ;;
                   23153:   esac
1.9       millert  23154:
1.27      millert  23155:   case $ac_option in
                   23156:   # Handling of the options.
                   23157:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   23158:     ac_cs_recheck=: ;;
                   23159:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   23160:     echo "$ac_cs_version"; exit ;;
                   23161:   --debug | --debu | --deb | --de | --d | -d )
                   23162:     debug=: ;;
                   23163:   --file | --fil | --fi | --f )
                   23164:     $ac_shift
                   23165:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   23166:     ac_need_defaults=false;;
                   23167:   --header | --heade | --head | --hea )
                   23168:     $ac_shift
                   23169:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   23170:     ac_need_defaults=false;;
                   23171:   --he | --h)
                   23172:     # Conflict between --help and --header
                   23173:     { echo "$as_me: error: ambiguous option: $1
                   23174: Try \`$0 --help' for more information." >&2
                   23175:    { (exit 1); exit 1; }; };;
                   23176:   --help | --hel | -h )
                   23177:     echo "$ac_cs_usage"; exit ;;
                   23178:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   23179:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   23180:     ac_cs_silent=: ;;
1.9       millert  23181:
1.27      millert  23182:   # This is an error.
                   23183:   -*) { echo "$as_me: error: unrecognized option: $1
                   23184: Try \`$0 --help' for more information." >&2
                   23185:    { (exit 1); exit 1; }; } ;;
1.9       millert  23186:
1.27      millert  23187:   *) ac_config_targets="$ac_config_targets $1"
                   23188:      ac_need_defaults=false ;;
1.9       millert  23189:
1.27      millert  23190:   esac
                   23191:   shift
                   23192: done
1.9       millert  23193:
1.27      millert  23194: ac_configure_extra_args=
1.9       millert  23195:
1.27      millert  23196: if $ac_cs_silent; then
                   23197:   exec 6>/dev/null
                   23198:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   23199: fi
1.9       millert  23200:
1.27      millert  23201: _ACEOF
                   23202: cat >>$CONFIG_STATUS <<_ACEOF
                   23203: if \$ac_cs_recheck; then
                   23204:   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   23205:   CONFIG_SHELL=$SHELL
                   23206:   export CONFIG_SHELL
                   23207:   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   23208: fi
1.9       millert  23209:
1.27      millert  23210: _ACEOF
                   23211: cat >>$CONFIG_STATUS <<\_ACEOF
                   23212: exec 5>>config.log
                   23213: {
                   23214:   echo
                   23215:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   23216: ## Running $as_me. ##
                   23217: _ASBOX
                   23218:   echo "$ac_log"
                   23219: } >&5
1.9       millert  23220:
1.27      millert  23221: _ACEOF
                   23222: cat >>$CONFIG_STATUS <<_ACEOF
                   23223: _ACEOF
1.9       millert  23224:
1.27      millert  23225: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  23226:
1.27      millert  23227: # Handling of arguments.
                   23228: for ac_config_target in $ac_config_targets
                   23229: do
                   23230:   case $ac_config_target in
                   23231:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   23232:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   23233:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   23234:     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   23235:     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   23236:     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.9       millert  23237:
1.27      millert  23238:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   23239: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   23240:    { (exit 1); exit 1; }; };;
                   23241:   esac
                   23242: done
1.9       millert  23243:
                   23244:
1.27      millert  23245: # If the user did not use the arguments to specify the items to instantiate,
                   23246: # then the envvar interface is used.  Set only those that are not.
                   23247: # We use the long form for the default assignment because of an extremely
                   23248: # bizarre bug on SunOS 4.1.3.
                   23249: if $ac_need_defaults; then
                   23250:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   23251:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   23252: fi
1.9       millert  23253:
1.27      millert  23254: # Have a temporary directory for convenience.  Make it in the build tree
                   23255: # simply because there is no reason against having it here, and in addition,
                   23256: # creating and moving files from /tmp can sometimes cause problems.
                   23257: # Hook for its removal unless debugging.
                   23258: # Note that there is a small window in which the directory will not be cleaned:
                   23259: # after its creation but before its name has been assigned to `$tmp'.
                   23260: $debug ||
                   23261: {
                   23262:   tmp=
                   23263:   trap 'exit_status=$?
                   23264:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   23265: ' 0
                   23266:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   23267: }
                   23268: # Create a (secure) tmp directory for tmp files.
1.9       millert  23269:
1.27      millert  23270: {
                   23271:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   23272:   test -n "$tmp" && test -d "$tmp"
                   23273: }  ||
                   23274: {
                   23275:   tmp=./conf$$-$RANDOM
                   23276:   (umask 077 && mkdir "$tmp")
                   23277: } ||
                   23278: {
                   23279:    echo "$me: cannot create a temporary directory in ." >&2
                   23280:    { (exit 1); exit 1; }
                   23281: }
1.9       millert  23282:
1.27      millert  23283: #
                   23284: # Set up the sed scripts for CONFIG_FILES section.
                   23285: #
1.16      millert  23286:
1.27      millert  23287: # No need to generate the scripts if there are no CONFIG_FILES.
                   23288: # This happens for instance when ./config.status config.h
                   23289: if test -n "$CONFIG_FILES"; then
1.16      millert  23290:
1.27      millert  23291: _ACEOF
1.16      millert  23292:
                   23293:
1.1       millert  23294:
1.27      millert  23295: ac_delim='%!_!# '
                   23296: for ac_last_try in false false false false false :; do
                   23297:   cat >conf$$subs.sed <<_ACEOF
                   23298: SHELL!$SHELL$ac_delim
                   23299: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
                   23300: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
                   23301: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
                   23302: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
                   23303: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
                   23304: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
                   23305: exec_prefix!$exec_prefix$ac_delim
                   23306: prefix!$prefix$ac_delim
                   23307: program_transform_name!$program_transform_name$ac_delim
                   23308: bindir!$bindir$ac_delim
                   23309: sbindir!$sbindir$ac_delim
                   23310: libexecdir!$libexecdir$ac_delim
                   23311: datarootdir!$datarootdir$ac_delim
                   23312: datadir!$datadir$ac_delim
                   23313: sysconfdir!$sysconfdir$ac_delim
                   23314: sharedstatedir!$sharedstatedir$ac_delim
                   23315: localstatedir!$localstatedir$ac_delim
                   23316: includedir!$includedir$ac_delim
                   23317: oldincludedir!$oldincludedir$ac_delim
                   23318: docdir!$docdir$ac_delim
                   23319: infodir!$infodir$ac_delim
                   23320: htmldir!$htmldir$ac_delim
                   23321: dvidir!$dvidir$ac_delim
                   23322: pdfdir!$pdfdir$ac_delim
                   23323: psdir!$psdir$ac_delim
                   23324: libdir!$libdir$ac_delim
                   23325: localedir!$localedir$ac_delim
                   23326: mandir!$mandir$ac_delim
                   23327: DEFS!$DEFS$ac_delim
                   23328: ECHO_C!$ECHO_C$ac_delim
                   23329: ECHO_N!$ECHO_N$ac_delim
                   23330: ECHO_T!$ECHO_T$ac_delim
                   23331: LIBS!$LIBS$ac_delim
                   23332: build_alias!$build_alias$ac_delim
                   23333: host_alias!$host_alias$ac_delim
                   23334: target_alias!$target_alias$ac_delim
                   23335: LIBTOOL!$LIBTOOL$ac_delim
                   23336: CFLAGS!$CFLAGS$ac_delim
                   23337: PROGS!$PROGS$ac_delim
                   23338: CPPFLAGS!$CPPFLAGS$ac_delim
                   23339: LDFLAGS!$LDFLAGS$ac_delim
                   23340: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
                   23341: SUDO_OBJS!$SUDO_OBJS$ac_delim
                   23342: SUDO_LIBS!$SUDO_LIBS$ac_delim
                   23343: NET_LIBS!$NET_LIBS$ac_delim
                   23344: AFS_LIBS!$AFS_LIBS$ac_delim
1.32      millert  23345: GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
1.27      millert  23346: OSDEFS!$OSDEFS$ac_delim
                   23347: AUTH_OBJS!$AUTH_OBJS$ac_delim
                   23348: MANTYPE!$MANTYPE$ac_delim
                   23349: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
                   23350: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
                   23351: SUDOERS_UID!$SUDOERS_UID$ac_delim
                   23352: SUDOERS_GID!$SUDOERS_GID$ac_delim
                   23353: DEV!$DEV$ac_delim
                   23354: mansectsu!$mansectsu$ac_delim
                   23355: mansectform!$mansectform$ac_delim
                   23356: mansrcdir!$mansrcdir$ac_delim
                   23357: NOEXECDIR!$NOEXECDIR$ac_delim
                   23358: noexec_file!$noexec_file$ac_delim
                   23359: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
                   23360: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
                   23361: timedir!$timedir$ac_delim
                   23362: timeout!$timeout$ac_delim
                   23363: password_timeout!$password_timeout$ac_delim
                   23364: sudo_umask!$sudo_umask$ac_delim
                   23365: passprompt!$passprompt$ac_delim
                   23366: long_otp_prompt!$long_otp_prompt$ac_delim
                   23367: lecture!$lecture$ac_delim
                   23368: logfac!$logfac$ac_delim
                   23369: goodpri!$goodpri$ac_delim
                   23370: badpri!$badpri$ac_delim
                   23371: loglen!$loglen$ac_delim
                   23372: ignore_dot!$ignore_dot$ac_delim
                   23373: mail_no_user!$mail_no_user$ac_delim
                   23374: mail_no_host!$mail_no_host$ac_delim
                   23375: mail_no_perms!$mail_no_perms$ac_delim
                   23376: mailto!$mailto$ac_delim
                   23377: mailsub!$mailsub$ac_delim
                   23378: badpass_message!$badpass_message$ac_delim
                   23379: fqdn!$fqdn$ac_delim
                   23380: runas_default!$runas_default$ac_delim
                   23381: env_editor!$env_editor$ac_delim
                   23382: passwd_tries!$passwd_tries$ac_delim
                   23383: tty_tickets!$tty_tickets$ac_delim
                   23384: insults!$insults$ac_delim
                   23385: root_sudo!$root_sudo$ac_delim
                   23386: path_info!$path_info$ac_delim
                   23387: EGREPPROG!$EGREPPROG$ac_delim
                   23388: CC!$CC$ac_delim
                   23389: ac_ct_CC!$ac_ct_CC$ac_delim
                   23390: EXEEXT!$EXEEXT$ac_delim
                   23391: OBJEXT!$OBJEXT$ac_delim
                   23392: CPP!$CPP$ac_delim
                   23393: build!$build$ac_delim
                   23394: build_cpu!$build_cpu$ac_delim
                   23395: _ACEOF
1.9       millert  23396:
1.27      millert  23397:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
                   23398:     break
                   23399:   elif $ac_last_try; then
                   23400:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   23401: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   23402:    { (exit 1); exit 1; }; }
                   23403:   else
                   23404:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   23405:   fi
                   23406: done
1.9       millert  23407:
1.27      millert  23408: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   23409: if test -n "$ac_eof"; then
                   23410:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   23411:   ac_eof=`expr $ac_eof + 1`
                   23412: fi
1.16      millert  23413:
1.27      millert  23414: cat >>$CONFIG_STATUS <<_ACEOF
                   23415: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
                   23416: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   23417: _ACEOF
                   23418: sed '
                   23419: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   23420: s/^/s,@/; s/!/@,|#_!!_#|/
                   23421: :n
                   23422: t n
                   23423: s/'"$ac_delim"'$/,g/; t
                   23424: s/$/\\/; p
                   23425: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   23426: ' >>$CONFIG_STATUS <conf$$subs.sed
                   23427: rm -f conf$$subs.sed
                   23428: cat >>$CONFIG_STATUS <<_ACEOF
                   23429: CEOF$ac_eof
                   23430: _ACEOF
1.1       millert  23431:
                   23432:
1.27      millert  23433: ac_delim='%!_!# '
                   23434: for ac_last_try in false false false false false :; do
                   23435:   cat >conf$$subs.sed <<_ACEOF
1.32      millert  23436: build_vendor!$build_vendor$ac_delim
1.27      millert  23437: build_os!$build_os$ac_delim
                   23438: host!$host$ac_delim
                   23439: host_cpu!$host_cpu$ac_delim
                   23440: host_vendor!$host_vendor$ac_delim
                   23441: host_os!$host_os$ac_delim
                   23442: target!$target$ac_delim
                   23443: target_cpu!$target_cpu$ac_delim
                   23444: target_vendor!$target_vendor$ac_delim
                   23445: target_os!$target_os$ac_delim
                   23446: SED!$SED$ac_delim
                   23447: GREP!$GREP$ac_delim
                   23448: EGREP!$EGREP$ac_delim
                   23449: LN_S!$LN_S$ac_delim
                   23450: ECHO!$ECHO$ac_delim
                   23451: AR!$AR$ac_delim
                   23452: RANLIB!$RANLIB$ac_delim
                   23453: STRIP!$STRIP$ac_delim
                   23454: UNAMEPROG!$UNAMEPROG$ac_delim
                   23455: TRPROG!$TRPROG$ac_delim
                   23456: NROFFPROG!$NROFFPROG$ac_delim
                   23457: YACC!$YACC$ac_delim
                   23458: YFLAGS!$YFLAGS$ac_delim
                   23459: LIBOBJS!$LIBOBJS$ac_delim
                   23460: ALLOCA!$ALLOCA$ac_delim
                   23461: KRB5CONFIG!$KRB5CONFIG$ac_delim
                   23462: LTLIBOBJS!$LTLIBOBJS$ac_delim
                   23463: _ACEOF
1.9       millert  23464:
1.32      millert  23465:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
1.27      millert  23466:     break
                   23467:   elif $ac_last_try; then
                   23468:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   23469: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   23470:    { (exit 1); exit 1; }; }
                   23471:   else
                   23472:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   23473:   fi
                   23474: done
1.1       millert  23475:
1.27      millert  23476: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   23477: if test -n "$ac_eof"; then
                   23478:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   23479:   ac_eof=`expr $ac_eof + 1`
                   23480: fi
1.9       millert  23481:
1.27      millert  23482: cat >>$CONFIG_STATUS <<_ACEOF
                   23483: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
                   23484: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
                   23485: _ACEOF
                   23486: sed '
                   23487: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   23488: s/^/s,@/; s/!/@,|#_!!_#|/
                   23489: :n
                   23490: t n
                   23491: s/'"$ac_delim"'$/,g/; t
                   23492: s/$/\\/; p
                   23493: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   23494: ' >>$CONFIG_STATUS <conf$$subs.sed
                   23495: rm -f conf$$subs.sed
                   23496: cat >>$CONFIG_STATUS <<_ACEOF
                   23497: :end
                   23498: s/|#_!!_#|//g
                   23499: CEOF$ac_eof
                   23500: _ACEOF
1.1       millert  23501:
                   23502:
1.27      millert  23503: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   23504: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   23505: # trailing colons and then remove the whole line if VPATH becomes empty
                   23506: # (actually we leave an empty line to preserve line numbers).
                   23507: if test "x$srcdir" = x.; then
                   23508:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   23509: s/:*\$(srcdir):*/:/
                   23510: s/:*\${srcdir}:*/:/
                   23511: s/:*@srcdir@:*/:/
                   23512: s/^\([^=]*=[    ]*\):*/\1/
                   23513: s/:*$//
                   23514: s/^[^=]*=[      ]*$//
                   23515: }'
                   23516: fi
1.1       millert  23517:
1.27      millert  23518: cat >>$CONFIG_STATUS <<\_ACEOF
                   23519: fi # test -n "$CONFIG_FILES"
1.16      millert  23520:
                   23521:
1.27      millert  23522: for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
                   23523: do
                   23524:   case $ac_tag in
                   23525:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   23526:   esac
                   23527:   case $ac_mode$ac_tag in
                   23528:   :[FHL]*:*);;
                   23529:   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
                   23530: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
                   23531:    { (exit 1); exit 1; }; };;
                   23532:   :[FH]-) ac_tag=-:-;;
                   23533:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   23534:   esac
                   23535:   ac_save_IFS=$IFS
                   23536:   IFS=:
                   23537:   set x $ac_tag
                   23538:   IFS=$ac_save_IFS
                   23539:   shift
                   23540:   ac_file=$1
                   23541:   shift
1.16      millert  23542:
1.27      millert  23543:   case $ac_mode in
                   23544:   :L) ac_source=$1;;
                   23545:   :[FH])
                   23546:     ac_file_inputs=
                   23547:     for ac_f
                   23548:     do
                   23549:       case $ac_f in
                   23550:       -) ac_f="$tmp/stdin";;
                   23551:       *) # Look for the file first in the build tree, then in the source tree
                   23552:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   23553:         # because $ac_f cannot contain `:'.
                   23554:         test -f "$ac_f" ||
                   23555:           case $ac_f in
                   23556:           [\\/$]*) false;;
                   23557:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   23558:           esac ||
                   23559:           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
                   23560: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
                   23561:    { (exit 1); exit 1; }; };;
                   23562:       esac
                   23563:       ac_file_inputs="$ac_file_inputs $ac_f"
                   23564:     done
1.1       millert  23565:
1.27      millert  23566:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   23567:     # use $as_me), people would be surprised to read:
                   23568:     #    /* config.h.  Generated by config.status.  */
                   23569:     configure_input="Generated from "`IFS=:
                   23570:          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
                   23571:     if test x"$ac_file" != x-; then
                   23572:       configure_input="$ac_file.  $configure_input"
                   23573:       { echo "$as_me:$LINENO: creating $ac_file" >&5
                   23574: echo "$as_me: creating $ac_file" >&6;}
                   23575:     fi
1.1       millert  23576:
1.27      millert  23577:     case $ac_tag in
                   23578:     *:-:* | *:-) cat >"$tmp/stdin";;
                   23579:     esac
                   23580:     ;;
                   23581:   esac
1.1       millert  23582:
1.27      millert  23583:   ac_dir=`$as_dirname -- "$ac_file" ||
                   23584: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23585:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   23586:         X"$ac_file" : 'X\(//\)$' \| \
                   23587:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   23588: echo X"$ac_file" |
                   23589:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23590:            s//\1/
                   23591:            q
                   23592:          }
                   23593:          /^X\(\/\/\)[^/].*/{
                   23594:            s//\1/
                   23595:            q
                   23596:          }
                   23597:          /^X\(\/\/\)$/{
                   23598:            s//\1/
                   23599:            q
                   23600:          }
                   23601:          /^X\(\/\).*/{
                   23602:            s//\1/
                   23603:            q
                   23604:          }
                   23605:          s/.*/./; q'`
                   23606:   { as_dir="$ac_dir"
                   23607:   case $as_dir in #(
                   23608:   -*) as_dir=./$as_dir;;
                   23609:   esac
                   23610:   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
                   23611:     as_dirs=
                   23612:     while :; do
                   23613:       case $as_dir in #(
                   23614:       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
                   23615:       *) as_qdir=$as_dir;;
                   23616:       esac
                   23617:       as_dirs="'$as_qdir' $as_dirs"
                   23618:       as_dir=`$as_dirname -- "$as_dir" ||
                   23619: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23620:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   23621:         X"$as_dir" : 'X\(//\)$' \| \
                   23622:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   23623: echo X"$as_dir" |
                   23624:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23625:            s//\1/
                   23626:            q
                   23627:          }
                   23628:          /^X\(\/\/\)[^/].*/{
                   23629:            s//\1/
                   23630:            q
                   23631:          }
                   23632:          /^X\(\/\/\)$/{
                   23633:            s//\1/
                   23634:            q
                   23635:          }
                   23636:          /^X\(\/\).*/{
                   23637:            s//\1/
                   23638:            q
                   23639:          }
                   23640:          s/.*/./; q'`
                   23641:       test -d "$as_dir" && break
                   23642:     done
                   23643:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   23644:   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
                   23645: echo "$as_me: error: cannot create directory $as_dir" >&2;}
                   23646:    { (exit 1); exit 1; }; }; }
                   23647:   ac_builddir=.
1.9       millert  23648:
1.27      millert  23649: case "$ac_dir" in
                   23650: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23651: *)
                   23652:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   23653:   # A ".." for each directory in $ac_dir_suffix.
                   23654:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   23655:   case $ac_top_builddir_sub in
                   23656:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23657:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   23658:   esac ;;
                   23659: esac
                   23660: ac_abs_top_builddir=$ac_pwd
                   23661: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   23662: # for backward compatibility:
                   23663: ac_top_builddir=$ac_top_build_prefix
1.1       millert  23664:
1.27      millert  23665: case $srcdir in
                   23666:   .)  # We are building in place.
                   23667:     ac_srcdir=.
                   23668:     ac_top_srcdir=$ac_top_builddir_sub
                   23669:     ac_abs_top_srcdir=$ac_pwd ;;
                   23670:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   23671:     ac_srcdir=$srcdir$ac_dir_suffix;
                   23672:     ac_top_srcdir=$srcdir
                   23673:     ac_abs_top_srcdir=$srcdir ;;
                   23674:   *) # Relative name.
                   23675:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   23676:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   23677:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   23678: esac
                   23679: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1       millert  23680:
                   23681:
1.27      millert  23682:   case $ac_mode in
                   23683:   :F)
                   23684:   #
                   23685:   # CONFIG_FILE
                   23686:   #
1.1       millert  23687:
1.27      millert  23688: _ACEOF
1.1       millert  23689:
1.27      millert  23690: cat >>$CONFIG_STATUS <<\_ACEOF
                   23691: # If the template does not know about datarootdir, expand it.
                   23692: # FIXME: This hack should be removed a few years after 2.60.
                   23693: ac_datarootdir_hack=; ac_datarootdir_seen=
                   23694:
                   23695: case `sed -n '/datarootdir/ {
                   23696:   p
                   23697:   q
                   23698: }
                   23699: /@datadir@/p
                   23700: /@docdir@/p
                   23701: /@infodir@/p
                   23702: /@localedir@/p
                   23703: /@mandir@/p
                   23704: ' $ac_file_inputs` in
                   23705: *datarootdir*) ac_datarootdir_seen=yes;;
                   23706: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   23707:   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   23708: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   23709: _ACEOF
                   23710: cat >>$CONFIG_STATUS <<_ACEOF
                   23711:   ac_datarootdir_hack='
                   23712:   s&@datadir@&$datadir&g
                   23713:   s&@docdir@&$docdir&g
                   23714:   s&@infodir@&$infodir&g
                   23715:   s&@localedir@&$localedir&g
                   23716:   s&@mandir@&$mandir&g
                   23717:     s&\\\${datarootdir}&$datarootdir&g' ;;
                   23718: esac
                   23719: _ACEOF
1.1       millert  23720:
1.27      millert  23721: # Neutralize VPATH when `$srcdir' = `.'.
                   23722: # Shell code in configure.ac might set extrasub.
                   23723: # FIXME: do we really want to maintain this feature?
                   23724: cat >>$CONFIG_STATUS <<_ACEOF
                   23725:   sed "$ac_vpsub
                   23726: $extrasub
                   23727: _ACEOF
                   23728: cat >>$CONFIG_STATUS <<\_ACEOF
                   23729: :t
                   23730: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   23731: s&@configure_input@&$configure_input&;t t
                   23732: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   23733: s&@srcdir@&$ac_srcdir&;t t
                   23734: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   23735: s&@top_srcdir@&$ac_top_srcdir&;t t
                   23736: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   23737: s&@builddir@&$ac_builddir&;t t
                   23738: s&@abs_builddir@&$ac_abs_builddir&;t t
                   23739: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   23740: $ac_datarootdir_hack
                   23741: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
                   23742:
                   23743: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   23744:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   23745:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
                   23746:   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23747: which seems to be undefined.  Please make sure it is defined." >&5
                   23748: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23749: which seems to be undefined.  Please make sure it is defined." >&2;}
1.1       millert  23750:
1.27      millert  23751:   rm -f "$tmp/stdin"
                   23752:   case $ac_file in
                   23753:   -) cat "$tmp/out"; rm -f "$tmp/out";;
                   23754:   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25      millert  23755:   esac
1.27      millert  23756:  ;;
                   23757:   :H)
                   23758:   #
                   23759:   # CONFIG_HEADER
                   23760:   #
                   23761: _ACEOF
                   23762:
                   23763: # Transform confdefs.h into a sed script `conftest.defines', that
                   23764: # substitutes the proper values into config.h.in to produce config.h.
                   23765: rm -f conftest.defines conftest.tail
                   23766: # First, append a space to every undef/define line, to ease matching.
                   23767: echo 's/$/ /' >conftest.defines
                   23768: # Then, protect against being on the right side of a sed subst, or in
                   23769: # an unquoted here document, in config.status.  If some macros were
                   23770: # called several times there might be several #defines for the same
                   23771: # symbol, which is useless.  But do not sort them, since the last
                   23772: # AC_DEFINE must be honored.
                   23773: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   23774: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
                   23775: # NAME is the cpp macro being defined, VALUE is the value it is being given.
                   23776: # PARAMS is the parameter list in the macro definition--in most cases, it's
                   23777: # just an empty string.
                   23778: ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
                   23779: ac_dB='\\)[     (].*,\\1define\\2'
                   23780: ac_dC=' '
                   23781: ac_dD=' ,'
1.1       millert  23782:
1.27      millert  23783: uniq confdefs.h |
                   23784:   sed -n '
                   23785:        t rset
                   23786:        :rset
                   23787:        s/^[     ]*#[    ]*define[       ][      ]*//
                   23788:        t ok
                   23789:        d
                   23790:        :ok
                   23791:        s/[\\&,]/\\&/g
                   23792:        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
                   23793:        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
                   23794:   ' >>conftest.defines
1.1       millert  23795:
1.27      millert  23796: # Remove the space that was appended to ease matching.
                   23797: # Then replace #undef with comments.  This is necessary, for
                   23798: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   23799: # on some systems where configure will not decide to define it.
                   23800: # (The regexp can be short, since the line contains either #define or #undef.)
                   23801: echo 's/ $//
                   23802: s,^[    #]*u.*,/* & */,' >>conftest.defines
                   23803:
                   23804: # Break up conftest.defines:
                   23805: ac_max_sed_lines=50
                   23806:
                   23807: # First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
                   23808: # Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
                   23809: # Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
                   23810: # et cetera.
                   23811: ac_in='$ac_file_inputs'
                   23812: ac_out='"$tmp/out1"'
                   23813: ac_nxt='"$tmp/out2"'
1.1       millert  23814:
1.27      millert  23815: while :
                   23816: do
                   23817:   # Write a here document:
                   23818:     cat >>$CONFIG_STATUS <<_ACEOF
                   23819:     # First, check the format of the line:
                   23820:     cat >"\$tmp/defines.sed" <<\\CEOF
                   23821: /^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
                   23822: /^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
                   23823: b
                   23824: :def
                   23825: _ACEOF
                   23826:   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
                   23827:   echo 'CEOF
                   23828:     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
                   23829:   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
                   23830:   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
                   23831:   grep . conftest.tail >/dev/null || break
                   23832:   rm -f conftest.defines
                   23833:   mv conftest.tail conftest.defines
                   23834: done
                   23835: rm -f conftest.defines conftest.tail
1.9       millert  23836:
1.27      millert  23837: echo "ac_result=$ac_in" >>$CONFIG_STATUS
                   23838: cat >>$CONFIG_STATUS <<\_ACEOF
                   23839:   if test x"$ac_file" != x-; then
                   23840:     echo "/* $configure_input  */" >"$tmp/config.h"
                   23841:     cat "$ac_result" >>"$tmp/config.h"
                   23842:     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
                   23843:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   23844: echo "$as_me: $ac_file is unchanged" >&6;}
                   23845:     else
                   23846:       rm -f $ac_file
                   23847:       mv "$tmp/config.h" $ac_file
                   23848:     fi
                   23849:   else
                   23850:     echo "/* $configure_input  */"
                   23851:     cat "$ac_result"
                   23852:   fi
                   23853:   rm -f "$tmp/out12"
                   23854: # Compute $ac_file's index in $config_headers.
                   23855: _am_stamp_count=1
                   23856: for _am_header in $config_headers :; do
                   23857:   case $_am_header in
                   23858:     $ac_file | $ac_file:* )
                   23859:       break ;;
                   23860:     * )
                   23861:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   23862:   esac
                   23863: done
                   23864: echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
                   23865: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23866:         X$ac_file : 'X\(//\)[^/]' \| \
                   23867:         X$ac_file : 'X\(//\)$' \| \
                   23868:         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
                   23869: echo X$ac_file |
                   23870:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23871:            s//\1/
                   23872:            q
                   23873:          }
                   23874:          /^X\(\/\/\)[^/].*/{
                   23875:            s//\1/
                   23876:            q
                   23877:          }
                   23878:          /^X\(\/\/\)$/{
                   23879:            s//\1/
                   23880:            q
                   23881:          }
                   23882:          /^X\(\/\).*/{
                   23883:            s//\1/
                   23884:            q
                   23885:          }
                   23886:          s/.*/./; q'`/stamp-h$_am_stamp_count
                   23887:  ;;
1.9       millert  23888:
                   23889:
1.25      millert  23890:   esac
1.1       millert  23891:
1.27      millert  23892: done # for ac_tag
                   23893:
1.1       millert  23894:
1.9       millert  23895: { (exit 0); exit 0; }
1.16      millert  23896: _ACEOF
1.1       millert  23897: chmod +x $CONFIG_STATUS
1.9       millert  23898: ac_clean_files=$ac_clean_files_save
1.1       millert  23899: