Annotation of src/usr.bin/sudo/configure, Revision 1.27
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
! 812: OSDEFS
! 813: AUTH_OBJS
! 814: MANTYPE
! 815: MAN_POSTINSTALL
! 816: SUDOERS_MODE
! 817: SUDOERS_UID
! 818: SUDOERS_GID
! 819: DEV
! 820: mansectsu
! 821: mansectform
! 822: mansrcdir
! 823: NOEXECDIR
! 824: noexec_file
! 825: INSTALL_NOEXEC
! 826: DONT_LEAK_PATH_INFO
! 827: timedir
! 828: timeout
! 829: password_timeout
! 830: sudo_umask
! 831: passprompt
! 832: long_otp_prompt
! 833: lecture
! 834: logfac
! 835: goodpri
! 836: badpri
! 837: loglen
! 838: ignore_dot
! 839: mail_no_user
! 840: mail_no_host
! 841: mail_no_perms
! 842: mailto
! 843: mailsub
! 844: badpass_message
! 845: fqdn
! 846: runas_default
! 847: env_editor
! 848: passwd_tries
! 849: tty_tickets
! 850: insults
! 851: root_sudo
! 852: path_info
! 853: EGREPPROG
! 854: CC
! 855: ac_ct_CC
! 856: EXEEXT
! 857: OBJEXT
! 858: CPP
! 859: build
! 860: build_cpu
! 861: build_vendor
! 862: build_os
! 863: host
! 864: host_cpu
! 865: host_vendor
! 866: host_os
! 867: target
! 868: target_cpu
! 869: target_vendor
! 870: target_os
! 871: SED
! 872: GREP
! 873: EGREP
! 874: LN_S
! 875: ECHO
! 876: AR
! 877: RANLIB
! 878: STRIP
! 879: UNAMEPROG
! 880: TRPROG
! 881: NROFFPROG
! 882: YACC
! 883: YFLAGS
! 884: LIBOBJS
! 885: ALLOCA
! 886: KRB5CONFIG
! 887: LTLIBOBJS'
1.16 millert 888: ac_subst_files=''
1.27 ! millert 889: ac_precious_vars='build_alias
! 890: host_alias
! 891: target_alias
! 892: CC
! 893: CFLAGS
! 894: LDFLAGS
! 895: LIBS
! 896: CPPFLAGS
! 897: CPP
! 898: YACC
! 899: YFLAGS'
! 900:
1.16 millert 901:
1.1 millert 902: # Initialize some variables set by options.
1.9 millert 903: ac_init_help=
904: ac_init_version=false
1.1 millert 905: # The variables have the same names as the options, with
906: # dashes changed to underlines.
1.9 millert 907: cache_file=/dev/null
1.1 millert 908: exec_prefix=NONE
909: no_create=
910: no_recursion=
911: prefix=NONE
912: program_prefix=NONE
913: program_suffix=NONE
914: program_transform_name=s,x,x,
915: silent=
916: site=
917: srcdir=
918: verbose=
919: x_includes=NONE
920: x_libraries=NONE
1.9 millert 921:
922: # Installation directory options.
923: # These are left unexpanded so users can "make install exec_prefix=/foo"
924: # and all the variables that are supposed to be based on exec_prefix
925: # by default will actually change.
926: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27 ! millert 927: # (The list follows the same order as the GNU Coding Standards.)
1.1 millert 928: bindir='${exec_prefix}/bin'
929: sbindir='${exec_prefix}/sbin'
930: libexecdir='${exec_prefix}/libexec'
1.27 ! millert 931: datarootdir='${prefix}/share'
! 932: datadir='${datarootdir}'
1.1 millert 933: sysconfdir='${prefix}/etc'
934: sharedstatedir='${prefix}/com'
935: localstatedir='${prefix}/var'
936: includedir='${prefix}/include'
937: oldincludedir='/usr/include'
1.27 ! millert 938: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
! 939: infodir='${datarootdir}/info'
! 940: htmldir='${docdir}'
! 941: dvidir='${docdir}'
! 942: pdfdir='${docdir}'
! 943: psdir='${docdir}'
! 944: libdir='${exec_prefix}/lib'
! 945: localedir='${datarootdir}/locale'
! 946: mandir='${datarootdir}/man'
1.1 millert 947:
948: ac_prev=
1.27 ! millert 949: ac_dashdash=
1.1 millert 950: for ac_option
951: do
952: # If the previous option needs an argument, assign it.
953: if test -n "$ac_prev"; then
1.27 ! millert 954: eval $ac_prev=\$ac_option
1.1 millert 955: ac_prev=
956: continue
957: fi
958:
1.27 ! millert 959: case $ac_option in
! 960: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 961: *) ac_optarg=yes ;;
! 962: esac
1.1 millert 963:
964: # Accept the important Cygnus configure options, so we can diagnose typos.
965:
1.27 ! millert 966: case $ac_dashdash$ac_option in
! 967: --)
! 968: ac_dashdash=yes ;;
1.1 millert 969:
970: -bindir | --bindir | --bindi | --bind | --bin | --bi)
971: ac_prev=bindir ;;
972: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 973: bindir=$ac_optarg ;;
1.1 millert 974:
975: -build | --build | --buil | --bui | --bu)
1.9 millert 976: ac_prev=build_alias ;;
1.1 millert 977: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 978: build_alias=$ac_optarg ;;
1.1 millert 979:
980: -cache-file | --cache-file | --cache-fil | --cache-fi \
981: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982: ac_prev=cache_file ;;
983: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 985: cache_file=$ac_optarg ;;
986:
987: --config-cache | -C)
988: cache_file=config.cache ;;
1.1 millert 989:
1.27 ! millert 990: -datadir | --datadir | --datadi | --datad)
1.1 millert 991: ac_prev=datadir ;;
1.27 ! millert 992: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9 millert 993: datadir=$ac_optarg ;;
1.1 millert 994:
1.27 ! millert 995: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 996: | --dataroo | --dataro | --datar)
! 997: ac_prev=datarootdir ;;
! 998: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 999: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 1000: datarootdir=$ac_optarg ;;
! 1001:
1.1 millert 1002: -disable-* | --disable-*)
1.9 millert 1003: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 1004: # Reject names that are not valid shell variable names.
1.27 ! millert 1005: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1006: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007: { (exit 1); exit 1; }; }
1.27 ! millert 1008: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1009: eval enable_$ac_feature=no ;;
! 1010:
! 1011: -docdir | --docdir | --docdi | --doc | --do)
! 1012: ac_prev=docdir ;;
! 1013: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 1014: docdir=$ac_optarg ;;
! 1015:
! 1016: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 1017: ac_prev=dvidir ;;
! 1018: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 1019: dvidir=$ac_optarg ;;
1.1 millert 1020:
1021: -enable-* | --enable-*)
1.9 millert 1022: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 1023: # Reject names that are not valid shell variable names.
1.27 ! millert 1024: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1025: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026: { (exit 1); exit 1; }; }
1.27 ! millert 1027: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1028: eval enable_$ac_feature=\$ac_optarg ;;
1.1 millert 1029:
1030: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032: | --exec | --exe | --ex)
1033: ac_prev=exec_prefix ;;
1034: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036: | --exec=* | --exe=* | --ex=*)
1.9 millert 1037: exec_prefix=$ac_optarg ;;
1.1 millert 1038:
1039: -gas | --gas | --ga | --g)
1040: # Obsolete; use --with-gas.
1041: with_gas=yes ;;
1042:
1.9 millert 1043: -help | --help | --hel | --he | -h)
1044: ac_init_help=long ;;
1045: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046: ac_init_help=recursive ;;
1047: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048: ac_init_help=short ;;
1.1 millert 1049:
1050: -host | --host | --hos | --ho)
1.9 millert 1051: ac_prev=host_alias ;;
1.1 millert 1052: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 1053: host_alias=$ac_optarg ;;
1.1 millert 1054:
1.27 ! millert 1055: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 1056: ac_prev=htmldir ;;
! 1057: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 1058: | --ht=*)
! 1059: htmldir=$ac_optarg ;;
! 1060:
1.1 millert 1061: -includedir | --includedir | --includedi | --included | --include \
1062: | --includ | --inclu | --incl | --inc)
1063: ac_prev=includedir ;;
1064: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 1066: includedir=$ac_optarg ;;
1.1 millert 1067:
1068: -infodir | --infodir | --infodi | --infod | --info | --inf)
1069: ac_prev=infodir ;;
1070: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 1071: infodir=$ac_optarg ;;
1.1 millert 1072:
1073: -libdir | --libdir | --libdi | --libd)
1074: ac_prev=libdir ;;
1075: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 1076: libdir=$ac_optarg ;;
1.1 millert 1077:
1078: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079: | --libexe | --libex | --libe)
1080: ac_prev=libexecdir ;;
1081: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082: | --libexe=* | --libex=* | --libe=*)
1.9 millert 1083: libexecdir=$ac_optarg ;;
1.1 millert 1084:
1.27 ! millert 1085: -localedir | --localedir | --localedi | --localed | --locale)
! 1086: ac_prev=localedir ;;
! 1087: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 1088: localedir=$ac_optarg ;;
! 1089:
1.1 millert 1090: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27 ! millert 1091: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 millert 1092: ac_prev=localstatedir ;;
1093: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27 ! millert 1094: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9 millert 1095: localstatedir=$ac_optarg ;;
1.1 millert 1096:
1097: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098: ac_prev=mandir ;;
1099: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 1100: mandir=$ac_optarg ;;
1.1 millert 1101:
1102: -nfp | --nfp | --nf)
1103: # Obsolete; use --without-fp.
1104: with_fp=no ;;
1105:
1106: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16 millert 1107: | --no-cr | --no-c | -n)
1.1 millert 1108: no_create=yes ;;
1109:
1110: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112: no_recursion=yes ;;
1113:
1114: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116: | --oldin | --oldi | --old | --ol | --o)
1117: ac_prev=oldincludedir ;;
1118: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 1121: oldincludedir=$ac_optarg ;;
1.1 millert 1122:
1123: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124: ac_prev=prefix ;;
1125: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 1126: prefix=$ac_optarg ;;
1.1 millert 1127:
1128: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129: | --program-pre | --program-pr | --program-p)
1130: ac_prev=program_prefix ;;
1131: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 1133: program_prefix=$ac_optarg ;;
1.1 millert 1134:
1135: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136: | --program-suf | --program-su | --program-s)
1137: ac_prev=program_suffix ;;
1138: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 1140: program_suffix=$ac_optarg ;;
1.1 millert 1141:
1142: -program-transform-name | --program-transform-name \
1143: | --program-transform-nam | --program-transform-na \
1144: | --program-transform-n | --program-transform- \
1145: | --program-transform | --program-transfor \
1146: | --program-transfo | --program-transf \
1147: | --program-trans | --program-tran \
1148: | --progr-tra | --program-tr | --program-t)
1149: ac_prev=program_transform_name ;;
1150: -program-transform-name=* | --program-transform-name=* \
1151: | --program-transform-nam=* | --program-transform-na=* \
1152: | --program-transform-n=* | --program-transform-=* \
1153: | --program-transform=* | --program-transfor=* \
1154: | --program-transfo=* | --program-transf=* \
1155: | --program-trans=* | --program-tran=* \
1156: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 1157: program_transform_name=$ac_optarg ;;
1.1 millert 1158:
1.27 ! millert 1159: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1160: ac_prev=pdfdir ;;
! 1161: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1162: pdfdir=$ac_optarg ;;
! 1163:
! 1164: -psdir | --psdir | --psdi | --psd | --ps)
! 1165: ac_prev=psdir ;;
! 1166: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1167: psdir=$ac_optarg ;;
! 1168:
1.1 millert 1169: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170: | -silent | --silent | --silen | --sile | --sil)
1171: silent=yes ;;
1172:
1173: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174: ac_prev=sbindir ;;
1175: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176: | --sbi=* | --sb=*)
1.9 millert 1177: sbindir=$ac_optarg ;;
1.1 millert 1178:
1179: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181: | --sharedst | --shareds | --shared | --share | --shar \
1182: | --sha | --sh)
1183: ac_prev=sharedstatedir ;;
1184: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187: | --sha=* | --sh=*)
1.9 millert 1188: sharedstatedir=$ac_optarg ;;
1.1 millert 1189:
1190: -site | --site | --sit)
1191: ac_prev=site ;;
1192: -site=* | --site=* | --sit=*)
1.9 millert 1193: site=$ac_optarg ;;
1.1 millert 1194:
1195: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196: ac_prev=srcdir ;;
1197: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 1198: srcdir=$ac_optarg ;;
1.1 millert 1199:
1200: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201: | --syscon | --sysco | --sysc | --sys | --sy)
1202: ac_prev=sysconfdir ;;
1203: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 1205: sysconfdir=$ac_optarg ;;
1.1 millert 1206:
1207: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 1208: ac_prev=target_alias ;;
1.1 millert 1209: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 1210: target_alias=$ac_optarg ;;
1.1 millert 1211:
1212: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213: verbose=yes ;;
1214:
1.9 millert 1215: -version | --version | --versio | --versi | --vers | -V)
1216: ac_init_version=: ;;
1.1 millert 1217:
1218: -with-* | --with-*)
1.9 millert 1219: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 1220: # Reject names that are not valid shell variable names.
1.27 ! millert 1221: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1222: { echo "$as_me: error: invalid package name: $ac_package" >&2
1223: { (exit 1); exit 1; }; }
1.27 ! millert 1224: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1225: eval with_$ac_package=\$ac_optarg ;;
1.1 millert 1226:
1227: -without-* | --without-*)
1.9 millert 1228: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 1229: # Reject names that are not valid shell variable names.
1.27 ! millert 1230: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1231: { echo "$as_me: error: invalid package name: $ac_package" >&2
1232: { (exit 1); exit 1; }; }
1.27 ! millert 1233: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1234: eval with_$ac_package=no ;;
1.1 millert 1235:
1236: --x)
1237: # Obsolete; use --with-x.
1238: with_x=yes ;;
1239:
1240: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241: | --x-incl | --x-inc | --x-in | --x-i)
1242: ac_prev=x_includes ;;
1243: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 1245: x_includes=$ac_optarg ;;
1.1 millert 1246:
1247: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249: ac_prev=x_libraries ;;
1250: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 1252: x_libraries=$ac_optarg ;;
1.1 millert 1253:
1.9 millert 1254: -*) { echo "$as_me: error: unrecognized option: $ac_option
1255: Try \`$0 --help' for more information." >&2
1256: { (exit 1); exit 1; }; }
1.1 millert 1257: ;;
1258:
1.9 millert 1259: *=*)
1260: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261: # Reject names that are not valid shell variable names.
1262: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264: { (exit 1); exit 1; }; }
1.27 ! millert 1265: eval $ac_envvar=\$ac_optarg
1.9 millert 1266: export $ac_envvar ;;
1267:
1.1 millert 1268: *)
1.9 millert 1269: # FIXME: should be removed in autoconf 3.0.
1270: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 1274: ;;
1275:
1276: esac
1277: done
1278:
1279: if test -n "$ac_prev"; then
1.9 millert 1280: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281: { echo "$as_me: error: missing argument to $ac_option" >&2
1282: { (exit 1); exit 1; }; }
1.1 millert 1283: fi
1284:
1.27 ! millert 1285: # Be sure to have absolute directory names.
! 1286: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1287: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1288: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1289: libdir localedir mandir
1.9 millert 1290: do
1.27 ! millert 1291: eval ac_val=\$$ac_var
1.9 millert 1292: case $ac_val in
1.27 ! millert 1293: [\\/$]* | ?:[\\/]* ) continue;;
! 1294: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 millert 1295: esac
1.27 ! millert 1296: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1297: { (exit 1); exit 1; }; }
1.1 millert 1298: done
1299:
1.9 millert 1300: # There might be people who depend on the old broken behavior: `$host'
1301: # used to hold the argument of --host etc.
1.16 millert 1302: # FIXME: To remove some day.
1.9 millert 1303: build=$build_alias
1304: host=$host_alias
1305: target=$target_alias
1306:
1.16 millert 1307: # FIXME: To remove some day.
1.9 millert 1308: if test "x$host_alias" != x; then
1309: if test "x$build_alias" = x; then
1310: cross_compiling=maybe
1311: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312: If a cross compiler is detected then cross compile mode will be used." >&2
1313: elif test "x$build_alias" != "x$host_alias"; then
1314: cross_compiling=yes
1315: fi
1316: fi
1.1 millert 1317:
1.9 millert 1318: ac_tool_prefix=
1319: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 1320:
1.9 millert 1321: test "$silent" = yes && exec 6>/dev/null
1.1 millert 1322:
1.16 millert 1323:
1.27 ! millert 1324: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1325: ac_ls_di=`ls -di .` &&
! 1326: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1327: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1328: { (exit 1); exit 1; }; }
! 1329: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1330: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1331: { (exit 1); exit 1; }; }
! 1332:
! 1333:
1.1 millert 1334: # Find the source files, if location was not specified.
1335: if test -z "$srcdir"; then
1336: ac_srcdir_defaulted=yes
1.27 ! millert 1337: # Try the directory containing this script, then the parent directory.
! 1338: ac_confdir=`$as_dirname -- "$0" ||
1.16 millert 1339: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 millert 1340: X"$0" : 'X\(//\)[^/]' \| \
1341: X"$0" : 'X\(//\)$' \| \
1.27 ! millert 1342: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16 millert 1343: echo X"$0" |
1.27 ! millert 1344: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1345: s//\1/
! 1346: q
! 1347: }
! 1348: /^X\(\/\/\)[^/].*/{
! 1349: s//\1/
! 1350: q
! 1351: }
! 1352: /^X\(\/\/\)$/{
! 1353: s//\1/
! 1354: q
! 1355: }
! 1356: /^X\(\/\).*/{
! 1357: s//\1/
! 1358: q
! 1359: }
! 1360: s/.*/./; q'`
1.1 millert 1361: srcdir=$ac_confdir
1.27 ! millert 1362: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 millert 1363: srcdir=..
1364: fi
1365: else
1366: ac_srcdir_defaulted=no
1367: fi
1.27 ! millert 1368: if test ! -r "$srcdir/$ac_unique_file"; then
! 1369: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1370: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 1371: { (exit 1); exit 1; }; }
! 1372: fi
! 1373: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1374: ac_abs_confdir=`(
! 1375: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
! 1376: { (exit 1); exit 1; }; }
! 1377: pwd)`
! 1378: # When building in place, set srcdir=.
! 1379: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1380: srcdir=.
! 1381: fi
! 1382: # Remove unnecessary trailing slashes from srcdir.
! 1383: # Double slashes in file names in object file debugging info
! 1384: # mess up M-x gdb in Emacs.
! 1385: case $srcdir in
! 1386: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1387: esac
! 1388: for ac_var in $ac_precious_vars; do
! 1389: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1390: eval ac_env_${ac_var}_value=\$${ac_var}
! 1391: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1392: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1393: done
1.9 millert 1394:
1395: #
1396: # Report the --help message.
1397: #
1398: if test "$ac_init_help" = "long"; then
1399: # Omit some internal or obsolete options to make the list less imposing.
1400: # This message is too long to be a string in the A/UX 3.1 sh.
1.16 millert 1401: cat <<_ACEOF
1.25 millert 1402: \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1.9 millert 1403:
1404: Usage: $0 [OPTION]... [VAR=VALUE]...
1405:
1406: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407: VAR=VALUE. See below for descriptions of some of the useful variables.
1408:
1409: Defaults for the options are specified in brackets.
1410:
1411: Configuration:
1412: -h, --help display this help and exit
1413: --help=short display options specific to this package
1414: --help=recursive display the short help of all the included packages
1415: -V, --version display version information and exit
1416: -q, --quiet, --silent do not print \`checking...' messages
1417: --cache-file=FILE cache test results in FILE [disabled]
1418: -C, --config-cache alias for \`--cache-file=config.cache'
1419: -n, --no-create do not create output files
1420: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421:
1422: Installation directories:
1423: --prefix=PREFIX install architecture-independent files in PREFIX
1.25 millert 1424: [$ac_default_prefix]
1.9 millert 1425: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 millert 1426: [PREFIX]
1.9 millert 1427:
1428: By default, \`make install' will install all the files in
1429: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431: for instance \`--prefix=\$HOME'.
1432:
1433: For better control, use the options below.
1434:
1435: Fine tuning of the installation directories:
1436: --bindir=DIR user executables [EPREFIX/bin]
1437: --sbindir=DIR system admin executables [EPREFIX/sbin]
1438: --libexecdir=DIR program executables [EPREFIX/libexec]
1.27 ! millert 1439: --sysconfdir=DIR read-only single-machine data [etc]
1.9 millert 1440: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442: --libdir=DIR object code libraries [EPREFIX/lib]
1443: --includedir=DIR C header files [PREFIX/include]
1444: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.27 ! millert 1445: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1446: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1447: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1448: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1449: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1450: --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
! 1451: --htmldir=DIR html documentation [DOCDIR]
! 1452: --dvidir=DIR dvi documentation [DOCDIR]
! 1453: --pdfdir=DIR pdf documentation [DOCDIR]
! 1454: --psdir=DIR ps documentation [DOCDIR]
1.16 millert 1455: _ACEOF
1.9 millert 1456:
1.16 millert 1457: cat <<\_ACEOF
1.9 millert 1458:
1459: System types:
1460: --build=BUILD configure for building on BUILD [guessed]
1.16 millert 1461: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.23 millert 1462: --target=TARGET configure for building compilers for TARGET [HOST]
1.16 millert 1463: _ACEOF
1.9 millert 1464: fi
1465:
1466: if test -n "$ac_init_help"; then
1467: case $ac_init_help in
1.25 millert 1468: short | recursive ) echo "Configuration of sudo 1.6.9:";;
1.9 millert 1469: esac
1.16 millert 1470: cat <<\_ACEOF
1.9 millert 1471:
1472: Optional Features:
1473: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475: --disable-authentication
1476: Do not require authentication by default
1.12 millert 1477: --disable-root-mailer Don't run the mailer as root, run as the user
1.13 millert 1478: --disable-setreuid Don't try to use the setreuid() function
1.25 millert 1479: --disable-setresuid Don't try to use the setresuid() function
1.9 millert 1480: --disable-shadow Never use shadow passwords
1.12 millert 1481: --disable-root-sudo Don't allow root to run sudo
1.9 millert 1482: --enable-log-host Log the hostname in the log file
1483: --enable-noargs-shell If sudo is given no arguments run a shell
1484: --enable-shell-sets-home
1485: set $HOME to target user in shell mode
1486: --disable-path-info Print 'command not allowed' not 'command not found'
1.27 ! millert 1487: --enable-static[=PKGS] build static libraries [default=no]
! 1488: --enable-shared[=PKGS] build shared libraries [default=yes]
1.23 millert 1489: --enable-fast-install[=PKGS]
1490: optimize for fast installation [default=yes]
1491: --disable-libtool-lock avoid locking (might break parallel builds)
1.27 ! millert 1492: --disable-sia Disable SIA on Digital UNIX
1.9 millert 1493:
1494: Optional Packages:
1495: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497: --with-otp-only deprecated
1498: --with-alertmail deprecated
1499: --with-CC C compiler to use
1.17 millert 1500: --with-rpath pass -R flag in addition to -L for lib paths
1.25 millert 1501: --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1.9 millert 1502: --with-incpath additional places to look for include files
1503: --with-libpath additional places to look for libraries
1504: --with-libraries additional libraries to link with
1.15 david 1505: --with-devel add development options
1.11 millert 1506: --with-efence link with -lefence for malloc() debugging
1.9 millert 1507: --with-csops add CSOps standard options
1508: --without-passwd don't use passwd/shadow file for authentication
1.25 millert 1509: --with-skey=DIR enable S/Key support
1510: --with-opie=DIR enable OPIE support
1.9 millert 1511: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1.17 millert 1512: --with-SecurID[=DIR] enable SecurID support
1513: --with-fwtk[=DIR] enable FWTK AuthSRV support
1514: --with-kerb4[=DIR] enable Kerberos IV support
1515: --with-kerb5[=DIR] enable Kerberos V support
1.25 millert 1516: --with-aixauth enable AIX general authentication support
1.9 millert 1517: --with-pam enable PAM support
1518: --with-AFS enable AFS support
1519: --with-DCE enable DCE support
1520: --with-logincap enable BSD login class support
1521: --with-bsdauth enable BSD authentication support
1.25 millert 1522: --with-project enable Solaris project support
1.9 millert 1523: --without-lecture don't print lecture for first-time sudoer
1524: --with-logging log via syslog, file, or both
1525: --with-logfac syslog facility to log with (default is "local2")
1526: --with-goodpri syslog priority for commands (def is "notice")
1527: --with-badpri syslog priority for failures (def is "alert")
1528: --with-logpath path to the sudo log file
1529: --with-loglen maximum length of a log file line (default is 80)
1530: --with-ignore-dot ignore '.' in the PATH
1531: --without-mail-if-no-user do not send mail if user not in sudoers
1532: --with-mail-if-no-host send mail if user in sudoers but not for this host
1533: --with-mail-if-noperms send mail if user not allowed to run command
1534: --with-mailto who should get sudo mail (default is "root")
1535: --with-mailsubject subject of sudo mail
1536: --with-passprompt default password prompt
1537: --with-badpass-message message the user sees when the password is wrong
1538: --with-fqdn expect fully qualified hosts in sudoers
1539: --with-timedir path to the sudo timestamp dir
1540: --with-sendmail=path set path to sendmail
1541: --without-sendmail do not send mail at all
1542: --with-sudoers-mode mode of sudoers file (defaults to 0440)
1543: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1544: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1545: --with-umask umask with which the prog should run (default is 022)
1546: --without-umask Preserves the umask of the user invoking sudo.
1547: --with-runas-default User to run commands as (default is "root")
1548: --with-exempt=group no passwd needed for users in this group
1549: --with-editor=path Default editor for visudo (defaults to vi)
1550: --with-env-editor Use the environment variable EDITOR for visudo
1551: --with-passwd-tries number of tries to enter password (default is 3)
1552: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1553: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1554: --with-tty-tickets use a different ticket file for each tty
1555: --with-insults insult the user for entering an incorrect password
1556: --with-all-insults include all the sudo insult sets
1557: --with-classic-insults include the insults from the "classic" sudo
1558: --with-csops-insults include CSOps insults
1559: --with-hal-insults include 2001-like insults
1560: --with-goons-insults include the insults from the "Goon Show"
1.25 millert 1561: --with-ldap[=DIR] enable LDAP support
1.23 millert 1562: --with-ldap-conf-file path to LDAP configuration file
1.25 millert 1563: --with-ldap-secret-file path to LDAP secret pasdword file
1.23 millert 1564: --with-pc-insults replace politically incorrect insults with less offensive ones
1.20 millert 1565: --with-secure-path override the user's path with a built-in one
1.9 millert 1566: --without-interfaces don't try to read the ip addr of ether interfaces
1.16 millert 1567: --with-stow properly handle GNU stow packaging
1.27 ! millert 1568: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.23 millert 1569: --with-pic try to use only PIC/non-PIC objects [default=use
1570: both]
1.25 millert 1571: --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1.9 millert 1572:
1573: Some influential environment variables:
1574: CC C compiler command
1575: CFLAGS C compiler flags
1576: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577: nonstandard directory <lib dir>
1.27 ! millert 1578: LIBS libraries to pass to the linker, e.g. -l<library>
! 1579: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1580: you have headers in a nonstandard directory <include dir>
1.9 millert 1581: CPP C preprocessor
1.27 ! millert 1582: YACC The `Yet Another C Compiler' implementation to use. Defaults to
! 1583: the first program found out of: `bison -y', `byacc', `yacc'.
! 1584: YFLAGS The list of arguments that will be passed by default to $YACC.
! 1585: This script will default YFLAGS to the empty string to avoid a
! 1586: default value of `-d' given by some make applications.
1.9 millert 1587:
1588: Use these variables to override the choices made by `configure' or to help
1589: it to find libraries and programs with nonstandard names/locations.
1590:
1.16 millert 1591: _ACEOF
1.27 ! millert 1592: ac_status=$?
1.9 millert 1593: fi
1594:
1595: if test "$ac_init_help" = "recursive"; then
1596: # If there are subdirs, report their specific --help.
1.16 millert 1597: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27 ! millert 1598: test -d "$ac_dir" || continue
1.16 millert 1599: ac_builddir=.
1600:
1.27 ! millert 1601: case "$ac_dir" in
! 1602: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1603: *)
1.16 millert 1604: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27 ! millert 1605: # A ".." for each directory in $ac_dir_suffix.
! 1606: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1607: case $ac_top_builddir_sub in
! 1608: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1609: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1610: esac ;;
! 1611: esac
! 1612: ac_abs_top_builddir=$ac_pwd
! 1613: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1614: # for backward compatibility:
! 1615: ac_top_builddir=$ac_top_build_prefix
1.16 millert 1616:
1617: case $srcdir in
1.27 ! millert 1618: .) # We are building in place.
1.16 millert 1619: ac_srcdir=.
1.27 ! millert 1620: ac_top_srcdir=$ac_top_builddir_sub
! 1621: ac_abs_top_srcdir=$ac_pwd ;;
! 1622: [\\/]* | ?:[\\/]* ) # Absolute name.
1.16 millert 1623: ac_srcdir=$srcdir$ac_dir_suffix;
1.27 ! millert 1624: ac_top_srcdir=$srcdir
! 1625: ac_abs_top_srcdir=$srcdir ;;
! 1626: *) # Relative name.
! 1627: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1628: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1629: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 1630: esac
! 1631: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
! 1632:
! 1633: cd "$ac_dir" || { ac_status=$?; continue; }
! 1634: # Check for guested configure.
! 1635: if test -f "$ac_srcdir/configure.gnu"; then
! 1636: echo &&
! 1637: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1638: elif test -f "$ac_srcdir/configure"; then
! 1639: echo &&
! 1640: $SHELL "$ac_srcdir/configure" --help=recursive
1.9 millert 1641: else
1.16 millert 1642: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27 ! millert 1643: fi || ac_status=$?
! 1644: cd "$ac_pwd" || { ac_status=$?; break; }
1.9 millert 1645: done
1646: fi
1647:
1.27 ! millert 1648: test -n "$ac_init_help" && exit $ac_status
1.9 millert 1649: if $ac_init_version; then
1.16 millert 1650: cat <<\_ACEOF
1.25 millert 1651: sudo configure 1.6.9
1.27 ! millert 1652: generated by GNU Autoconf 2.61
1.9 millert 1653:
1.27 ! millert 1654: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1655: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9 millert 1656: This configure script is free software; the Free Software Foundation
1657: gives unlimited permission to copy, distribute and modify it.
1.16 millert 1658: _ACEOF
1.27 ! millert 1659: exit
1.9 millert 1660: fi
1.27 ! millert 1661: cat >config.log <<_ACEOF
1.9 millert 1662: This file contains any messages produced by compilers while
1663: running configure, to aid debugging if configure makes a mistake.
1664:
1.25 millert 1665: It was created by sudo $as_me 1.6.9, which was
1.27 ! millert 1666: generated by GNU Autoconf 2.61. Invocation command line was
1.9 millert 1667:
1668: $ $0 $@
1669:
1.16 millert 1670: _ACEOF
1.27 ! millert 1671: exec 5>>config.log
1.9 millert 1672: {
1673: cat <<_ASUNAME
1.16 millert 1674: ## --------- ##
1675: ## Platform. ##
1676: ## --------- ##
1.9 millert 1677:
1678: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683:
1684: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686:
1687: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27 ! millert 1690: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.9 millert 1691: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694:
1.16 millert 1695: _ASUNAME
1696:
1697: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698: for as_dir in $PATH
1699: do
1700: IFS=$as_save_IFS
1701: test -z "$as_dir" && as_dir=.
1702: echo "PATH: $as_dir"
1703: done
1.27 ! millert 1704: IFS=$as_save_IFS
1.9 millert 1705:
1706: } >&5
1707:
1.16 millert 1708: cat >&5 <<_ACEOF
1709:
1710:
1711: ## ----------- ##
1712: ## Core tests. ##
1713: ## ----------- ##
1714:
1715: _ACEOF
1.9 millert 1716:
1717:
1718: # Keep a trace of the command line.
1719: # Strip out --no-create and --no-recursion so they do not pile up.
1.16 millert 1720: # Strip out --silent because we don't want to record it for future runs.
1.9 millert 1721: # Also quote any args containing shell meta-characters.
1.16 millert 1722: # Make two passes to allow for proper duplicate-argument suppression.
1.9 millert 1723: ac_configure_args=
1.16 millert 1724: ac_configure_args0=
1725: ac_configure_args1=
1726: ac_must_keep_next=false
1727: for ac_pass in 1 2
1.9 millert 1728: do
1.16 millert 1729: for ac_arg
1730: do
1731: case $ac_arg in
1732: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734: | -silent | --silent | --silen | --sile | --sil)
1735: continue ;;
1.27 ! millert 1736: *\'*)
1.16 millert 1737: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738: esac
1739: case $ac_pass in
1740: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741: 2)
1742: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743: if test $ac_must_keep_next = true; then
1.25 millert 1744: ac_must_keep_next=false # Got value, back to normal.
1.16 millert 1745: else
1.25 millert 1746: case $ac_arg in
1747: *=* | --config-cache | -C | -disable-* | --disable-* \
1748: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750: | -with-* | --with-* | -without-* | --without-* | --x)
1751: case "$ac_configure_args0 " in
1752: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753: esac
1754: ;;
1755: -* ) ac_must_keep_next=true ;;
1756: esac
1.16 millert 1757: fi
1.27 ! millert 1758: ac_configure_args="$ac_configure_args '$ac_arg'"
1.16 millert 1759: ;;
1760: esac
1761: done
1.9 millert 1762: done
1.16 millert 1763: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9 millert 1765:
1766: # When interrupted or exit'd, cleanup temporary files, and complete
1767: # config.log. We remove comments because anyway the quotes in there
1768: # would cause problems or look ugly.
1.27 ! millert 1769: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1770: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9 millert 1771: trap 'exit_status=$?
1772: # Save into config.log some information that might help in debugging.
1.16 millert 1773: {
1774: echo
1775:
1776: cat <<\_ASBOX
1777: ## ---------------- ##
1778: ## Cache variables. ##
1779: ## ---------------- ##
1780: _ASBOX
1781: echo
1782: # The following way of writing the cache mishandles newlines in values,
1.27 ! millert 1783: (
! 1784: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1785: eval ac_val=\$$ac_var
! 1786: case $ac_val in #(
! 1787: *${as_nl}*)
! 1788: case $ac_var in #(
! 1789: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1790: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1791: esac
! 1792: case $ac_var in #(
! 1793: _ | IFS | as_nl) ;; #(
! 1794: *) $as_unset $ac_var ;;
! 1795: esac ;;
! 1796: esac
! 1797: done
1.9 millert 1798: (set) 2>&1 |
1.27 ! millert 1799: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1800: *${as_nl}ac_space=\ *)
1.9 millert 1801: sed -n \
1.27 ! millert 1802: "s/'\''/'\''\\\\'\'''\''/g;
! 1803: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1804: ;; #(
1.9 millert 1805: *)
1.27 ! millert 1806: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9 millert 1807: ;;
1.27 ! millert 1808: esac |
! 1809: sort
! 1810: )
1.16 millert 1811: echo
1812:
1813: cat <<\_ASBOX
1814: ## ----------------- ##
1815: ## Output variables. ##
1816: ## ----------------- ##
1817: _ASBOX
1818: echo
1819: for ac_var in $ac_subst_vars
1820: do
1.27 ! millert 1821: eval ac_val=\$$ac_var
! 1822: case $ac_val in
! 1823: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1824: esac
! 1825: echo "$ac_var='\''$ac_val'\''"
1.16 millert 1826: done | sort
1827: echo
1828:
1829: if test -n "$ac_subst_files"; then
1830: cat <<\_ASBOX
1.27 ! millert 1831: ## ------------------- ##
! 1832: ## File substitutions. ##
! 1833: ## ------------------- ##
1.16 millert 1834: _ASBOX
1835: echo
1836: for ac_var in $ac_subst_files
1837: do
1.27 ! millert 1838: eval ac_val=\$$ac_var
! 1839: case $ac_val in
! 1840: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1841: esac
! 1842: echo "$ac_var='\''$ac_val'\''"
1.16 millert 1843: done | sort
1844: echo
1845: fi
1846:
1847: if test -s confdefs.h; then
1848: cat <<\_ASBOX
1849: ## ----------- ##
1850: ## confdefs.h. ##
1851: ## ----------- ##
1852: _ASBOX
1853: echo
1.27 ! millert 1854: cat confdefs.h
1.16 millert 1855: echo
1856: fi
1857: test "$ac_signal" != 0 &&
1858: echo "$as_me: caught signal $ac_signal"
1859: echo "$as_me: exit $exit_status"
1860: } >&5
1.27 ! millert 1861: rm -f core *.core core.conftest.* &&
! 1862: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9 millert 1863: exit $exit_status
1.27 ! millert 1864: ' 0
1.9 millert 1865: for ac_signal in 1 2 13 15; do
1866: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867: done
1868: ac_signal=0
1.1 millert 1869:
1.9 millert 1870: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27 ! millert 1871: rm -f -r conftest* confdefs.h
1.9 millert 1872:
1.16 millert 1873: # Predefined preprocessor variables.
1874:
1875: cat >>confdefs.h <<_ACEOF
1876: #define PACKAGE_NAME "$PACKAGE_NAME"
1877: _ACEOF
1878:
1879:
1880: cat >>confdefs.h <<_ACEOF
1881: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882: _ACEOF
1883:
1884:
1885: cat >>confdefs.h <<_ACEOF
1886: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1887: _ACEOF
1888:
1889:
1890: cat >>confdefs.h <<_ACEOF
1891: #define PACKAGE_STRING "$PACKAGE_STRING"
1892: _ACEOF
1893:
1894:
1895: cat >>confdefs.h <<_ACEOF
1896: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897: _ACEOF
1898:
1899:
1.9 millert 1900: # Let the site file select an alternate cache file if it wants to.
1.1 millert 1901: # Prefer explicitly selected file to automatically selected ones.
1.27 ! millert 1902: if test -n "$CONFIG_SITE"; then
! 1903: set x "$CONFIG_SITE"
! 1904: elif test "x$prefix" != xNONE; then
! 1905: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1906: else
! 1907: set x "$ac_default_prefix/share/config.site" \
! 1908: "$ac_default_prefix/etc/config.site"
1.1 millert 1909: fi
1.27 ! millert 1910: shift
! 1911: for ac_site_file
! 1912: do
1.1 millert 1913: if test -r "$ac_site_file"; then
1.16 millert 1914: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9 millert 1915: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16 millert 1916: sed 's/^/| /' "$ac_site_file" >&5
1.1 millert 1917: . "$ac_site_file"
1918: fi
1919: done
1920:
1921: if test -r "$cache_file"; then
1.9 millert 1922: # Some versions of bash will fail to source /dev/null (special
1923: # files actually), so we avoid doing that.
1924: if test -f "$cache_file"; then
1.16 millert 1925: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9 millert 1926: echo "$as_me: loading cache $cache_file" >&6;}
1927: case $cache_file in
1.27 ! millert 1928: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1929: *) . "./$cache_file";;
1.9 millert 1930: esac
1931: fi
1.1 millert 1932: else
1.16 millert 1933: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9 millert 1934: echo "$as_me: creating cache $cache_file" >&6;}
1935: >$cache_file
1936: fi
1937:
1938: # Check that the precious variables saved in the cache have kept the same
1939: # value.
1940: ac_cache_corrupted=false
1.27 ! millert 1941: for ac_var in $ac_precious_vars; do
1.9 millert 1942: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943: eval ac_new_set=\$ac_env_${ac_var}_set
1.27 ! millert 1944: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1945: eval ac_new_val=\$ac_env_${ac_var}_value
1.9 millert 1946: case $ac_old_set,$ac_new_set in
1947: set,)
1.16 millert 1948: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 1949: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950: ac_cache_corrupted=: ;;
1951: ,set)
1.16 millert 1952: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 1953: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954: ac_cache_corrupted=: ;;
1955: ,);;
1956: *)
1957: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 millert 1958: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 1959: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 millert 1960: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.9 millert 1961: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 millert 1962: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.9 millert 1963: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 millert 1964: ac_cache_corrupted=:
1.9 millert 1965: fi;;
1966: esac
1.16 millert 1967: # Pass precious variables to config.status.
1.9 millert 1968: if test "$ac_new_set" = set; then
1969: case $ac_new_val in
1.27 ! millert 1970: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16 millert 1971: *) ac_arg=$ac_var=$ac_new_val ;;
1972: esac
1973: case " $ac_configure_args " in
1974: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1975: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9 millert 1976: esac
1977: fi
1978: done
1979: if $ac_cache_corrupted; then
1.16 millert 1980: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9 millert 1981: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16 millert 1982: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 1983: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984: { (exit 1); exit 1; }; }
1.1 millert 1985: fi
1986:
1.9 millert 1987:
1988:
1.16 millert 1989:
1990:
1991:
1992:
1993:
1994:
1995:
1996:
1997:
1998:
1999:
2000:
2001:
2002:
2003:
2004:
2005:
2006:
2007:
2008:
2009:
2010:
1.27 ! millert 2011: ac_ext=c
! 2012: ac_cpp='$CPP $CPPFLAGS'
! 2013: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2014: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2015: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 millert 2016:
2017:
1.27 ! millert 2018: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16 millert 2019:
1.25 millert 2020: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2021: echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2022:
2023:
2024:
2025:
2026:
2027:
2028:
2029:
2030:
2031:
2032:
2033:
2034:
2035:
2036:
2037:
2038:
2039:
2040:
1.23 millert 2041:
2042:
2043:
2044:
2045:
1.16 millert 2046:
2047:
2048:
2049:
2050:
2051:
2052:
2053:
2054:
2055:
2056:
2057:
2058:
2059:
2060:
2061:
2062:
2063:
2064:
2065:
2066:
2067:
2068:
2069:
2070:
2071:
1.9 millert 2072:
2073: timeout=5
2074: password_timeout=5
2075: sudo_umask=0022
2076: passprompt="Password:"
2077: long_otp_prompt=off
1.23 millert 2078: lecture=once
1.9 millert 2079: logfac=local2
2080: goodpri=notice
2081: badpri=alert
2082: loglen=80
2083: ignore_dot=off
2084: mail_no_user=on
2085: mail_no_host=off
2086: mail_no_perms=off
2087: mailto=root
2088: mailsub='*** SECURITY information for %h ***'
2089: badpass_message='Sorry, try again.'
2090: fqdn=off
2091: runas_default=root
2092: env_editor=off
2093: passwd_tries=3
2094: tty_tickets=off
2095: insults=off
1.23 millert 2096: root_sudo=on
1.25 millert 2097: path_info=on
1.23 millert 2098: INSTALL_NOEXEC=
1.1 millert 2099: PROGS="sudo visudo"
1.25 millert 2100: : ${MANTYPE='man'}
2101: : ${mansrcdir='.'}
2102: : ${SUDOERS_MODE='0440'}
2103: : ${SUDOERS_UID='0'}
2104: : ${SUDOERS_GID='0'}
1.1 millert 2105: DEV="#"
1.27 ! millert 2106: AUTH_OBJS=
! 2107: AUTH_REG=
! 2108: AUTH_EXCL=
! 2109: AUTH_EXCL_DEF=
! 2110: AUTH_DEF=passwd
1.1 millert 2111:
2112: CHECKSHADOW=true
2113: CHECKSIA=true
1.25 millert 2114: shadow_defs=
2115: shadow_funcs=
2116: shadow_libs=
2117: shadow_libs_optional=
1.1 millert 2118:
2119: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
2120: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2121: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16 millert 2122: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2123:
2124:
1.1 millert 2125:
1.27 ! millert 2126: # Check whether --with-otp-only was given.
1.1 millert 2127: if test "${with_otp_only+set}" = set; then
1.27 ! millert 2128: withval=$with_otp_only; case $with_otp_only in
! 2129: yes) with_passwd="no"
1.17 millert 2130: { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2131: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1 millert 2132: ;;
2133: esac
1.27 ! millert 2134: fi
! 2135:
1.1 millert 2136:
1.16 millert 2137:
1.27 ! millert 2138: # Check whether --with-alertmail was given.
1.1 millert 2139: if test "${with_alertmail+set}" = set; then
1.27 ! millert 2140: withval=$with_alertmail; case $with_alertmail in
1.1 millert 2141: *) with_mailto="$with_alertmail"
1.17 millert 2142: { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2143: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1 millert 2144: ;;
2145: esac
1.27 ! millert 2146: fi
! 2147:
1.1 millert 2148:
1.16 millert 2149:
2150:
1.27 ! millert 2151: # Check whether --with-CC was given.
1.1 millert 2152: if test "${with_CC+set}" = set; then
1.27 ! millert 2153: withval=$with_CC; case $with_CC in
1.16 millert 2154: yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 2155: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2156: { (exit 1); exit 1; }; }
2157: ;;
1.16 millert 2158: no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 2159: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2160: { (exit 1); exit 1; }; }
1.1 millert 2161: ;;
2162: *) CC=$with_CC
2163: ;;
2164: esac
1.27 ! millert 2165: fi
! 2166:
1.1 millert 2167:
1.16 millert 2168:
1.27 ! millert 2169: # Check whether --with-rpath was given.
1.17 millert 2170: if test "${with_rpath+set}" = set; then
1.27 ! millert 2171: withval=$with_rpath; case $with_rpath in
1.25 millert 2172: yes|no) ;;
1.17 millert 2173: *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2174: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2175: { (exit 1); exit 1; }; }
2176: ;;
2177: esac
1.27 ! millert 2178: fi
! 2179:
1.17 millert 2180:
2181:
1.27 ! millert 2182: # Check whether --with-blibpath was given.
1.17 millert 2183: if test "${with_blibpath+set}" = set; then
1.27 ! millert 2184: withval=$with_blibpath; case $with_blibpath in
1.25 millert 2185: yes|no) ;;
1.17 millert 2186: *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2187: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2188: ;;
2189: esac
1.27 ! millert 2190: fi
! 2191:
1.17 millert 2192:
2193:
1.27 ! millert 2194: # Check whether --with-incpath was given.
1.1 millert 2195: if test "${with_incpath+set}" = set; then
1.27 ! millert 2196: withval=$with_incpath; case $with_incpath in
1.16 millert 2197: yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 2198: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2199: { (exit 1); exit 1; }; }
2200: ;;
1.16 millert 2201: no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9 millert 2202: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2203: { (exit 1); exit 1; }; }
1.1 millert 2204: ;;
1.17 millert 2205: *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2206: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1 millert 2207: for i in ${with_incpath}; do
2208: CPPFLAGS="${CPPFLAGS} -I${i}"
2209: done
2210: ;;
2211: esac
1.27 ! millert 2212: fi
! 2213:
1.1 millert 2214:
1.16 millert 2215:
1.27 ! millert 2216: # Check whether --with-libpath was given.
1.1 millert 2217: if test "${with_libpath+set}" = set; then
1.27 ! millert 2218: withval=$with_libpath; case $with_libpath in
1.16 millert 2219: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 2220: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2221: { (exit 1); exit 1; }; }
2222: ;;
1.16 millert 2223: no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9 millert 2224: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2225: { (exit 1); exit 1; }; }
1.1 millert 2226: ;;
1.17 millert 2227: *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2228: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1 millert 2229: ;;
2230: esac
1.27 ! millert 2231: fi
! 2232:
1.1 millert 2233:
1.16 millert 2234:
1.27 ! millert 2235: # Check whether --with-libraries was given.
1.1 millert 2236: if test "${with_libraries+set}" = set; then
1.27 ! millert 2237: withval=$with_libraries; case $with_libraries in
1.16 millert 2238: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 2239: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2240: { (exit 1); exit 1; }; }
2241: ;;
1.16 millert 2242: no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9 millert 2243: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2244: { (exit 1); exit 1; }; }
1.1 millert 2245: ;;
1.17 millert 2246: *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2247: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1 millert 2248: ;;
2249: esac
1.27 ! millert 2250: fi
! 2251:
1.1 millert 2252:
1.16 millert 2253:
1.27 ! millert 2254: # Check whether --with-devel was given.
1.1 millert 2255: if test "${with_devel+set}" = set; then
1.27 ! millert 2256: withval=$with_devel; case $with_devel in
1.17 millert 2257: yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2258: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1 millert 2259: PROGS="${PROGS} testsudoers"
2260: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2261: DEV=""
2262: ;;
2263: no) ;;
1.17 millert 2264: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2265: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1 millert 2266: ;;
2267: esac
1.27 ! millert 2268: fi
! 2269:
1.1 millert 2270:
1.16 millert 2271:
1.27 ! millert 2272: # Check whether --with-efence was given.
1.11 millert 2273: if test "${with_efence+set}" = set; then
1.27 ! millert 2274: withval=$with_efence; case $with_efence in
1.17 millert 2275: yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2276: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11 millert 2277: LIBS="${LIBS} -lefence"
2278: if test -f /usr/local/lib/libefence.a; then
1.17 millert 2279: with_libpath="${with_libpath} /usr/local/lib"
1.11 millert 2280: fi
2281: ;;
2282: no) ;;
1.17 millert 2283: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2284: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11 millert 2285: ;;
2286: esac
1.27 ! millert 2287: fi
! 2288:
1.11 millert 2289:
1.16 millert 2290:
1.27 ! millert 2291: # Check whether --with-csops was given.
1.1 millert 2292: if test "${with_csops+set}" = set; then
1.27 ! millert 2293: withval=$with_csops; case $with_csops in
1.17 millert 2294: yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2295: echo "$as_me: Adding CSOps standard options" >&6;}
1.1 millert 2296: CHECKSIA=false
2297: with_ignore_dot=yes
1.9 millert 2298: insults=on
1.1 millert 2299: with_classic_insults=yes
2300: with_csops_insults=yes
2301: with_env_editor=yes
1.25 millert 2302: : ${mansectsu='8'}
2303: : ${mansectform='5'}
1.1 millert 2304: ;;
2305: no) ;;
1.17 millert 2306: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2307: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1 millert 2308: ;;
2309: esac
1.27 ! millert 2310: fi
! 2311:
1.1 millert 2312:
1.16 millert 2313:
1.27 ! millert 2314: # Check whether --with-passwd was given.
1.1 millert 2315: if test "${with_passwd+set}" = set; then
1.27 ! millert 2316: withval=$with_passwd; case $with_passwd in
! 2317: yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
! 2318: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
! 2319: { echo "$as_me:$LINENO: result: $with_passwd" >&5
! 2320: echo "${ECHO_T}$with_passwd" >&6; }
! 2321: AUTH_DEF=""
! 2322: test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1 millert 2323: ;;
1.16 millert 2324: *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 2325: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2326: { (exit 1); exit 1; }; }
1.1 millert 2327: ;;
2328: esac
1.27 ! millert 2329: fi
1.1 millert 2330:
1.16 millert 2331:
1.27 ! millert 2332:
! 2333: # Check whether --with-skey was given.
1.1 millert 2334: if test "${with_skey+set}" = set; then
1.27 ! millert 2335: withval=$with_skey; case $with_skey in
1.25 millert 2336: no) with_skey=""
2337: ;;
1.27 ! millert 2338: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2339: #define HAVE_SKEY 1
1.16 millert 2340: _ACEOF
1.1 millert 2341:
1.27 ! millert 2342: { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
! 2343: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
! 2344: { echo "$as_me:$LINENO: result: yes" >&5
! 2345: echo "${ECHO_T}yes" >&6; }
! 2346: AUTH_REG="$AUTH_REG S/Key"
! 2347: ;;
! 2348: esac
1.25 millert 2349: fi
2350:
1.1 millert 2351:
1.16 millert 2352:
1.27 ! millert 2353: # Check whether --with-opie was given.
1.1 millert 2354: if test "${with_opie+set}" = set; then
1.27 ! millert 2355: withval=$with_opie; case $with_opie in
1.25 millert 2356: no) with_opie=""
2357: ;;
1.27 ! millert 2358: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2359: #define HAVE_OPIE 1
1.16 millert 2360: _ACEOF
1.1 millert 2361:
1.27 ! millert 2362: { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
! 2363: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
! 2364: { echo "$as_me:$LINENO: result: yes" >&5
! 2365: echo "${ECHO_T}yes" >&6; }
! 2366: AUTH_REG="$AUTH_REG NRL_OPIE"
! 2367: ;;
! 2368: esac
1.25 millert 2369: fi
2370:
1.1 millert 2371:
1.16 millert 2372:
1.27 ! millert 2373: # Check whether --with-long-otp-prompt was given.
1.1 millert 2374: if test "${with_long_otp_prompt+set}" = set; then
1.27 ! millert 2375: withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23 millert 2376: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2377: #define LONG_OTP_PROMPT 1
1.16 millert 2378: _ACEOF
1.1 millert 2379:
1.27 ! millert 2380: { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
! 2381: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
! 2382: { echo "$as_me:$LINENO: result: yes" >&5
! 2383: echo "${ECHO_T}yes" >&6; }
1.9 millert 2384: long_otp_prompt=on
1.1 millert 2385: ;;
1.9 millert 2386: no) long_otp_prompt=off
2387: ;;
1.16 millert 2388: *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 2389: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2390: { (exit 1); exit 1; }; }
1.1 millert 2391: ;;
2392: esac
1.27 ! millert 2393: fi
! 2394:
1.1 millert 2395:
1.16 millert 2396:
1.27 ! millert 2397: # Check whether --with-SecurID was given.
1.1 millert 2398: if test "${with_SecurID+set}" = set; then
1.27 ! millert 2399: withval=$with_SecurID; case $with_SecurID in
1.17 millert 2400: no) with_SecurID="";;
1.23 millert 2401: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2402: #define HAVE_SECURID 1
1.16 millert 2403: _ACEOF
1.1 millert 2404:
1.27 ! millert 2405: { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
! 2406: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
! 2407: { echo "$as_me:$LINENO: result: yes" >&5
! 2408: echo "${ECHO_T}yes" >&6; }
! 2409: AUTH_EXCL="$AUTH_EXCL SecurID"
1.1 millert 2410: ;;
2411: esac
1.27 ! millert 2412: fi
! 2413:
1.1 millert 2414:
1.16 millert 2415:
1.27 ! millert 2416: # Check whether --with-fwtk was given.
1.1 millert 2417: if test "${with_fwtk+set}" = set; then
1.27 ! millert 2418: withval=$with_fwtk; case $with_fwtk in
1.17 millert 2419: no) with_fwtk="";;
1.23 millert 2420: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2421: #define HAVE_FWTK 1
1.16 millert 2422: _ACEOF
1.1 millert 2423:
1.27 ! millert 2424: { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
! 2425: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
! 2426: { echo "$as_me:$LINENO: result: yes" >&5
! 2427: echo "${ECHO_T}yes" >&6; }
! 2428: AUTH_EXCL="$AUTH_EXCL FWTK"
! 2429: ;;
! 2430: esac
1.25 millert 2431: fi
2432:
1.1 millert 2433:
1.16 millert 2434:
1.27 ! millert 2435: # Check whether --with-kerb4 was given.
1.1 millert 2436: if test "${with_kerb4+set}" = set; then
1.27 ! millert 2437: withval=$with_kerb4; case $with_kerb4 in
1.17 millert 2438: no) with_kerb4="";;
1.27 ! millert 2439: *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
! 2440: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
! 2441: { echo "$as_me:$LINENO: result: yes" >&5
! 2442: echo "${ECHO_T}yes" >&6; }
! 2443: AUTH_REG="$AUTH_REG kerb4"
1.1 millert 2444: ;;
2445: esac
1.27 ! millert 2446: fi
! 2447:
1.1 millert 2448:
1.16 millert 2449:
1.27 ! millert 2450: # Check whether --with-kerb5 was given.
1.1 millert 2451: if test "${with_kerb5+set}" = set; then
1.27 ! millert 2452: withval=$with_kerb5; case $with_kerb5 in
1.17 millert 2453: no) with_kerb5="";;
1.27 ! millert 2454: *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
! 2455: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
! 2456: { echo "$as_me:$LINENO: result: yes" >&5
! 2457: echo "${ECHO_T}yes" >&6; }
! 2458: AUTH_REG="$AUTH_REG kerb5"
1.1 millert 2459: ;;
2460: esac
1.27 ! millert 2461: fi
! 2462:
1.1 millert 2463:
1.16 millert 2464:
1.27 ! millert 2465: # Check whether --with-aixauth was given.
1.25 millert 2466: if test "${with_aixauth+set}" = set; then
1.27 ! millert 2467: withval=$with_aixauth; case $with_aixauth in
! 2468: yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
! 2469: no) ;;
1.25 millert 2470: *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2471: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9 millert 2472: { (exit 1); exit 1; }; }
1.1 millert 2473: ;;
2474: esac
1.27 ! millert 2475: fi
! 2476:
1.1 millert 2477:
1.16 millert 2478:
1.27 ! millert 2479: # Check whether --with-pam was given.
1.1 millert 2480: if test "${with_pam+set}" = set; then
1.27 ! millert 2481: withval=$with_pam; case $with_pam in
! 2482: yes) AUTH_EXCL="$AUTH_EXCL PAM";;
! 2483: no) ;;
1.16 millert 2484: *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 2485: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2486: { (exit 1); exit 1; }; }
1.1 millert 2487: ;;
2488: esac
1.27 ! millert 2489: fi
! 2490:
1.1 millert 2491:
1.16 millert 2492:
1.27 ! millert 2493: # Check whether --with-AFS was given.
1.1 millert 2494: if test "${with_AFS+set}" = set; then
1.27 ! millert 2495: withval=$with_AFS; case $with_AFS in
1.23 millert 2496: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2497: #define HAVE_AFS 1
1.16 millert 2498: _ACEOF
1.1 millert 2499:
1.27 ! millert 2500: { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
! 2501: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
! 2502: { echo "$as_me:$LINENO: result: yes" >&5
! 2503: echo "${ECHO_T}yes" >&6; }
! 2504: AUTH_REG="$AUTH_REG AFS"
1.1 millert 2505: ;;
2506: no) ;;
1.16 millert 2507: *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 2508: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2509: { (exit 1); exit 1; }; }
1.1 millert 2510: ;;
2511: esac
1.27 ! millert 2512: fi
! 2513:
1.1 millert 2514:
1.16 millert 2515:
1.27 ! millert 2516: # Check whether --with-DCE was given.
1.1 millert 2517: if test "${with_DCE+set}" = set; then
1.27 ! millert 2518: withval=$with_DCE; case $with_DCE in
1.23 millert 2519: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2520: #define HAVE_DCE 1
1.16 millert 2521: _ACEOF
1.1 millert 2522:
1.27 ! millert 2523: { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
! 2524: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
! 2525: { echo "$as_me:$LINENO: result: yes" >&5
! 2526: echo "${ECHO_T}yes" >&6; }
! 2527: AUTH_REG="$AUTH_REG DCE"
1.1 millert 2528: ;;
2529: no) ;;
1.16 millert 2530: *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 2531: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2532: { (exit 1); exit 1; }; }
1.1 millert 2533: ;;
2534: esac
1.27 ! millert 2535: fi
! 2536:
1.1 millert 2537:
1.16 millert 2538:
1.27 ! millert 2539: # Check whether --with-logincap was given.
1.6 millert 2540: if test "${with_logincap+set}" = set; then
1.27 ! millert 2541: withval=$with_logincap; case $with_logincap in
1.7 millert 2542: yes|no) ;;
1.16 millert 2543: *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 2544: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2545: { (exit 1); exit 1; }; }
1.7 millert 2546: ;;
2547: esac
1.27 ! millert 2548: fi
! 2549:
1.6 millert 2550:
1.16 millert 2551:
1.27 ! millert 2552: # Check whether --with-bsdauth was given.
1.7 millert 2553: if test "${with_bsdauth+set}" = set; then
1.27 ! millert 2554: withval=$with_bsdauth; case $with_bsdauth in
! 2555: yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
! 2556: no) ;;
1.16 millert 2557: *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 2558: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2559: { (exit 1); exit 1; }; }
1.6 millert 2560: ;;
2561: esac
1.27 ! millert 2562: fi
! 2563:
1.6 millert 2564:
1.25 millert 2565:
1.27 ! millert 2566: # Check whether --with-project was given.
1.25 millert 2567: if test "${with_project+set}" = set; then
1.27 ! millert 2568: withval=$with_project; case $with_project in
1.25 millert 2569: yes|no) ;;
2570: no) ;;
2571: *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2572: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2573: { (exit 1); exit 1; }; }
2574: ;;
2575: esac
1.27 ! millert 2576: fi
! 2577:
1.25 millert 2578:
1.27 ! millert 2579: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
! 2580: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6 millert 2581:
1.27 ! millert 2582: # Check whether --with-lecture was given.
1.1 millert 2583: if test "${with_lecture+set}" = set; then
1.27 ! millert 2584: withval=$with_lecture; case $with_lecture in
1.23 millert 2585: yes|short|always) lecture=once
1.1 millert 2586: ;;
1.23 millert 2587: no|none|never) lecture=never
1.1 millert 2588: ;;
1.16 millert 2589: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 2590: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2591: { (exit 1); exit 1; }; }
1.1 millert 2592: ;;
2593: esac
1.27 ! millert 2594: fi
! 2595:
1.23 millert 2596: if test "$lecture" = "once"; then
1.27 ! millert 2597: { echo "$as_me:$LINENO: result: yes" >&5
! 2598: echo "${ECHO_T}yes" >&6; }
1.1 millert 2599: else
1.23 millert 2600: cat >>confdefs.h <<\_ACEOF
1.9 millert 2601: #define NO_LECTURE 1
1.16 millert 2602: _ACEOF
1.9 millert 2603:
1.27 ! millert 2604: { echo "$as_me:$LINENO: result: no" >&5
! 2605: echo "${ECHO_T}no" >&6; }
1.1 millert 2606: fi
2607:
1.27 ! millert 2608: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
! 2609: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1 millert 2610:
1.27 ! millert 2611: # Check whether --with-logging was given.
1.1 millert 2612: if test "${with_logging+set}" = set; then
1.27 ! millert 2613: withval=$with_logging; case $with_logging in
1.16 millert 2614: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 2615: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2616: { (exit 1); exit 1; }; }
2617: ;;
1.16 millert 2618: no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9 millert 2619: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2620: { (exit 1); exit 1; }; }
1.1 millert 2621: ;;
1.23 millert 2622: syslog) cat >>confdefs.h <<\_ACEOF
1.1 millert 2623: #define LOGGING SLOG_SYSLOG
1.16 millert 2624: _ACEOF
1.1 millert 2625:
1.27 ! millert 2626: { echo "$as_me:$LINENO: result: syslog" >&5
! 2627: echo "${ECHO_T}syslog" >&6; }
1.1 millert 2628: ;;
1.16 millert 2629: file) cat >>confdefs.h <<\_ACEOF
1.1 millert 2630: #define LOGGING SLOG_FILE
1.16 millert 2631: _ACEOF
1.1 millert 2632:
1.27 ! millert 2633: { echo "$as_me:$LINENO: result: file" >&5
! 2634: echo "${ECHO_T}file" >&6; }
1.1 millert 2635: ;;
1.16 millert 2636: both) cat >>confdefs.h <<\_ACEOF
1.1 millert 2637: #define LOGGING SLOG_BOTH
1.16 millert 2638: _ACEOF
1.1 millert 2639:
1.27 ! millert 2640: { echo "$as_me:$LINENO: result: both" >&5
! 2641: echo "${ECHO_T}both" >&6; }
1.1 millert 2642: ;;
1.16 millert 2643: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 2644: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2645: { (exit 1); exit 1; }; }
1.1 millert 2646: ;;
2647: esac
2648: else
1.16 millert 2649: cat >>confdefs.h <<\_ACEOF
1.1 millert 2650: #define LOGGING SLOG_SYSLOG
1.16 millert 2651: _ACEOF
1.27 ! millert 2652: { echo "$as_me:$LINENO: result: syslog" >&5
! 2653: echo "${ECHO_T}syslog" >&6; }
! 2654: fi
! 2655:
1.1 millert 2656:
1.27 ! millert 2657: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
! 2658: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1 millert 2659:
1.27 ! millert 2660: # Check whether --with-logfac was given.
1.1 millert 2661: if test "${with_logfac+set}" = set; then
1.27 ! millert 2662: withval=$with_logfac; case $with_logfac in
1.16 millert 2663: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 2664: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2665: { (exit 1); exit 1; }; }
2666: ;;
1.16 millert 2667: no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9 millert 2668: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2669: { (exit 1); exit 1; }; }
1.1 millert 2670: ;;
1.9 millert 2671: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 2672: ;;
1.16 millert 2673: *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 2674: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2675: { (exit 1); exit 1; }; }
1.1 millert 2676: ;;
2677: esac
1.27 ! millert 2678: fi
! 2679:
1.9 millert 2680:
1.16 millert 2681: cat >>confdefs.h <<_ACEOF
1.9 millert 2682: #define LOGFAC "$logfac"
1.16 millert 2683: _ACEOF
1.1 millert 2684:
1.27 ! millert 2685: { echo "$as_me:$LINENO: result: $logfac" >&5
! 2686: echo "${ECHO_T}$logfac" >&6; }
1.9 millert 2687:
1.27 ! millert 2688: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
! 2689: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1 millert 2690:
1.27 ! millert 2691: # Check whether --with-goodpri was given.
1.1 millert 2692: if test "${with_goodpri+set}" = set; then
1.27 ! millert 2693: withval=$with_goodpri; case $with_goodpri in
1.16 millert 2694: yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 2695: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2696: { (exit 1); exit 1; }; }
1.1 millert 2697: ;;
1.16 millert 2698: no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 2699: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2700: { (exit 1); exit 1; }; }
1.1 millert 2701: ;;
1.9 millert 2702: alert|crit|debug|emerg|err|info|notice|warning)
2703: goodpri=$with_goodpri
1.1 millert 2704: ;;
1.16 millert 2705: *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 2706: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2707: { (exit 1); exit 1; }; }
1.1 millert 2708: ;;
2709: esac
1.27 ! millert 2710: fi
! 2711:
1.9 millert 2712:
1.16 millert 2713: cat >>confdefs.h <<_ACEOF
1.9 millert 2714: #define PRI_SUCCESS "$goodpri"
1.16 millert 2715: _ACEOF
1.1 millert 2716:
1.27 ! millert 2717: { echo "$as_me:$LINENO: result: $goodpri" >&5
! 2718: echo "${ECHO_T}$goodpri" >&6; }
1.9 millert 2719:
1.27 ! millert 2720: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
! 2721: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1 millert 2722:
1.27 ! millert 2723: # Check whether --with-badpri was given.
1.1 millert 2724: if test "${with_badpri+set}" = set; then
1.27 ! millert 2725: withval=$with_badpri; case $with_badpri in
1.16 millert 2726: yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 2727: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2728: { (exit 1); exit 1; }; }
1.1 millert 2729: ;;
1.16 millert 2730: no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9 millert 2731: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2732: { (exit 1); exit 1; }; }
1.1 millert 2733: ;;
1.9 millert 2734: alert|crit|debug|emerg|err|info|notice|warning)
2735: badpri=$with_badpri
1.1 millert 2736: ;;
1.16 millert 2737: *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 2738: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2739: { (exit 1); exit 1; }; }
1.1 millert 2740: ;;
2741: esac
1.27 ! millert 2742: fi
! 2743:
1.9 millert 2744:
1.16 millert 2745: cat >>confdefs.h <<_ACEOF
1.9 millert 2746: #define PRI_FAILURE "$badpri"
1.16 millert 2747: _ACEOF
2748:
1.27 ! millert 2749: { echo "$as_me:$LINENO: result: $badpri" >&5
! 2750: echo "${ECHO_T}$badpri" >&6; }
1.1 millert 2751:
2752:
1.27 ! millert 2753: # Check whether --with-logpath was given.
1.1 millert 2754: if test "${with_logpath+set}" = set; then
1.27 ! millert 2755: withval=$with_logpath; case $with_logpath in
1.16 millert 2756: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 2757: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2758: { (exit 1); exit 1; }; }
1.1 millert 2759: ;;
1.16 millert 2760: no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9 millert 2761: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2762: { (exit 1); exit 1; }; }
1.1 millert 2763: ;;
2764: esac
1.27 ! millert 2765: fi
! 2766:
1.1 millert 2767:
1.27 ! millert 2768: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
! 2769: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1 millert 2770:
1.27 ! millert 2771: # Check whether --with-loglen was given.
1.1 millert 2772: if test "${with_loglen+set}" = set; then
1.27 ! millert 2773: withval=$with_loglen; case $with_loglen in
1.16 millert 2774: yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 2775: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2776: { (exit 1); exit 1; }; }
1.1 millert 2777: ;;
1.16 millert 2778: no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9 millert 2779: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2780: { (exit 1); exit 1; }; }
1.1 millert 2781: ;;
1.9 millert 2782: [0-9]*) loglen=$with_loglen
1.1 millert 2783: ;;
1.16 millert 2784: *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 2785: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2786: { (exit 1); exit 1; }; }
1.1 millert 2787: ;;
2788: esac
1.27 ! millert 2789: fi
! 2790:
1.9 millert 2791:
1.16 millert 2792: cat >>confdefs.h <<_ACEOF
1.9 millert 2793: #define MAXLOGFILELEN $loglen
1.16 millert 2794: _ACEOF
1.1 millert 2795:
1.27 ! millert 2796: { echo "$as_me:$LINENO: result: $loglen" >&5
! 2797: echo "${ECHO_T}$loglen" >&6; }
1.9 millert 2798:
1.27 ! millert 2799: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
! 2800: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1 millert 2801:
1.27 ! millert 2802: # Check whether --with-ignore-dot was given.
1.1 millert 2803: if test "${with_ignore_dot+set}" = set; then
1.27 ! millert 2804: withval=$with_ignore_dot; case $with_ignore_dot in
1.9 millert 2805: yes) ignore_dot=on
1.1 millert 2806: ;;
1.9 millert 2807: no) ignore_dot=off
1.1 millert 2808: ;;
1.16 millert 2809: *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 2810: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2811: { (exit 1); exit 1; }; }
1.1 millert 2812: ;;
2813: esac
1.27 ! millert 2814: fi
! 2815:
1.9 millert 2816: if test "$ignore_dot" = "on"; then
1.23 millert 2817: cat >>confdefs.h <<\_ACEOF
1.9 millert 2818: #define IGNORE_DOT_PATH 1
1.16 millert 2819: _ACEOF
1.9 millert 2820:
1.27 ! millert 2821: { echo "$as_me:$LINENO: result: yes" >&5
! 2822: echo "${ECHO_T}yes" >&6; }
1.1 millert 2823: else
1.27 ! millert 2824: { echo "$as_me:$LINENO: result: no" >&5
! 2825: echo "${ECHO_T}no" >&6; }
1.1 millert 2826: fi
2827:
1.27 ! millert 2828: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
! 2829: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1 millert 2830:
1.27 ! millert 2831: # Check whether --with-mail-if-no-user was given.
1.9 millert 2832: if test "${with_mail_if_no_user+set}" = set; then
1.27 ! millert 2833: withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9 millert 2834: yes) mail_no_user=on
2835: ;;
2836: no) mail_no_user=off
1.1 millert 2837: ;;
1.16 millert 2838: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 2839: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2840: { (exit 1); exit 1; }; }
1.1 millert 2841: ;;
1.9 millert 2842: esac
1.27 ! millert 2843: fi
! 2844:
1.9 millert 2845: if test "$mail_no_user" = "on"; then
1.23 millert 2846: cat >>confdefs.h <<\_ACEOF
1.9 millert 2847: #define SEND_MAIL_WHEN_NO_USER 1
1.16 millert 2848: _ACEOF
1.1 millert 2849:
1.27 ! millert 2850: { echo "$as_me:$LINENO: result: yes" >&5
! 2851: echo "${ECHO_T}yes" >&6; }
1.1 millert 2852: else
1.27 ! millert 2853: { echo "$as_me:$LINENO: result: no" >&5
! 2854: echo "${ECHO_T}no" >&6; }
1.1 millert 2855: fi
2856:
1.27 ! millert 2857: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
! 2858: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1 millert 2859:
1.27 ! millert 2860: # Check whether --with-mail-if-no-host was given.
1.9 millert 2861: if test "${with_mail_if_no_host+set}" = set; then
1.27 ! millert 2862: withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9 millert 2863: yes) mail_no_host=on
1.1 millert 2864: ;;
1.9 millert 2865: no) mail_no_host=off
1.1 millert 2866: ;;
1.16 millert 2867: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 2868: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2869: { (exit 1); exit 1; }; }
1.1 millert 2870: ;;
2871: esac
1.27 ! millert 2872: fi
! 2873:
1.9 millert 2874: if test "$mail_no_host" = "on"; then
1.23 millert 2875: cat >>confdefs.h <<\_ACEOF
1.9 millert 2876: #define SEND_MAIL_WHEN_NO_HOST 1
1.16 millert 2877: _ACEOF
1.1 millert 2878:
1.27 ! millert 2879: { echo "$as_me:$LINENO: result: yes" >&5
! 2880: echo "${ECHO_T}yes" >&6; }
1.9 millert 2881: else
1.27 ! millert 2882: { echo "$as_me:$LINENO: result: no" >&5
! 2883: echo "${ECHO_T}no" >&6; }
1.1 millert 2884: fi
2885:
1.27 ! millert 2886: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
! 2887: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1 millert 2888:
1.27 ! millert 2889: # Check whether --with-mail-if-noperms was given.
1.9 millert 2890: if test "${with_mail_if_noperms+set}" = set; then
1.27 ! millert 2891: withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9 millert 2892: yes) mail_noperms=on
1.1 millert 2893: ;;
1.9 millert 2894: no) mail_noperms=off
1.1 millert 2895: ;;
1.16 millert 2896: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 2897: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2898: { (exit 1); exit 1; }; }
1.1 millert 2899: ;;
2900: esac
1.27 ! millert 2901: fi
! 2902:
1.9 millert 2903: if test "$mail_noperms" = "on"; then
1.23 millert 2904: cat >>confdefs.h <<\_ACEOF
1.9 millert 2905: #define SEND_MAIL_WHEN_NOT_OK 1
1.16 millert 2906: _ACEOF
1.9 millert 2907:
1.27 ! millert 2908: { echo "$as_me:$LINENO: result: yes" >&5
! 2909: echo "${ECHO_T}yes" >&6; }
1.1 millert 2910: else
1.27 ! millert 2911: { echo "$as_me:$LINENO: result: no" >&5
! 2912: echo "${ECHO_T}no" >&6; }
1.1 millert 2913: fi
2914:
1.27 ! millert 2915: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
! 2916: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1 millert 2917:
1.27 ! millert 2918: # Check whether --with-mailto was given.
1.9 millert 2919: if test "${with_mailto+set}" = set; then
1.27 ! millert 2920: withval=$with_mailto; case $with_mailto in
1.16 millert 2921: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 2922: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2923: { (exit 1); exit 1; }; }
1.1 millert 2924: ;;
1.16 millert 2925: no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9 millert 2926: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2927: { (exit 1); exit 1; }; }
1.1 millert 2928: ;;
1.9 millert 2929: *) mailto=$with_mailto
1.1 millert 2930: ;;
2931: esac
1.27 ! millert 2932: fi
! 2933:
1.1 millert 2934:
1.16 millert 2935: cat >>confdefs.h <<_ACEOF
1.9 millert 2936: #define MAILTO "$mailto"
1.16 millert 2937: _ACEOF
1.1 millert 2938:
1.27 ! millert 2939: { echo "$as_me:$LINENO: result: $mailto" >&5
! 2940: echo "${ECHO_T}$mailto" >&6; }
1.1 millert 2941:
1.16 millert 2942:
1.27 ! millert 2943: # Check whether --with-mailsubject was given.
1.9 millert 2944: if test "${with_mailsubject+set}" = set; then
1.27 ! millert 2945: withval=$with_mailsubject; case $with_mailsubject in
1.16 millert 2946: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 2947: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2948: { (exit 1); exit 1; }; }
1.1 millert 2949: ;;
1.17 millert 2950: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2951: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1 millert 2952: ;;
1.9 millert 2953: *) mailsub="$with_mailsubject"
1.27 ! millert 2954: { echo "$as_me:$LINENO: checking sudo mail subject" >&5
! 2955: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
! 2956: { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
! 2957: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1 millert 2958: ;;
2959: esac
1.27 ! millert 2960: fi
! 2961:
1.9 millert 2962:
1.16 millert 2963: cat >>confdefs.h <<_ACEOF
1.9 millert 2964: #define MAILSUBJECT "$mailsub"
1.16 millert 2965: _ACEOF
2966:
1.1 millert 2967:
1.27 ! millert 2968: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
! 2969: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1 millert 2970:
1.27 ! millert 2971: # Check whether --with-passprompt was given.
1.1 millert 2972: if test "${with_passprompt+set}" = set; then
1.27 ! millert 2973: withval=$with_passprompt; case $with_passprompt in
1.16 millert 2974: yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 2975: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2976: { (exit 1); exit 1; }; }
1.1 millert 2977: ;;
1.17 millert 2978: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2979: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1 millert 2980: ;;
1.9 millert 2981: *) passprompt="$with_passprompt"
2982: esac
1.27 ! millert 2983: fi
! 2984:
! 2985: { echo "$as_me:$LINENO: result: $passprompt" >&5
! 2986: echo "${ECHO_T}$passprompt" >&6; }
1.1 millert 2987:
1.16 millert 2988: cat >>confdefs.h <<_ACEOF
1.9 millert 2989: #define PASSPROMPT "$passprompt"
1.16 millert 2990: _ACEOF
2991:
1.1 millert 2992:
1.27 ! millert 2993: { echo "$as_me:$LINENO: checking for bad password message" >&5
! 2994: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1 millert 2995:
1.27 ! millert 2996: # Check whether --with-badpass-message was given.
1.1 millert 2997: if test "${with_badpass_message+set}" = set; then
1.27 ! millert 2998: withval=$with_badpass_message; case $with_badpass_message in
1.16 millert 2999: yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 3000: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3001: { (exit 1); exit 1; }; }
1.1 millert 3002: ;;
1.17 millert 3003: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3004: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1 millert 3005: ;;
1.9 millert 3006: *) badpass_message="$with_badpass_message"
1.1 millert 3007: ;;
3008: esac
1.27 ! millert 3009: fi
! 3010:
1.9 millert 3011:
1.16 millert 3012: cat >>confdefs.h <<_ACEOF
1.9 millert 3013: #define INCORRECT_PASSWORD "$badpass_message"
1.16 millert 3014: _ACEOF
1.1 millert 3015:
1.27 ! millert 3016: { echo "$as_me:$LINENO: result: $badpass_message" >&5
! 3017: echo "${ECHO_T}$badpass_message" >&6; }
1.9 millert 3018:
1.27 ! millert 3019: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
! 3020: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1 millert 3021:
1.27 ! millert 3022: # Check whether --with-fqdn was given.
1.1 millert 3023: if test "${with_fqdn+set}" = set; then
1.27 ! millert 3024: withval=$with_fqdn; case $with_fqdn in
1.9 millert 3025: yes) fqdn=on
1.1 millert 3026: ;;
1.9 millert 3027: no) fqdn=off
1.1 millert 3028: ;;
1.16 millert 3029: *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 3030: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3031: { (exit 1); exit 1; }; }
1.1 millert 3032: ;;
3033: esac
1.27 ! millert 3034: fi
! 3035:
1.9 millert 3036: if test "$fqdn" = "on"; then
1.23 millert 3037: cat >>confdefs.h <<\_ACEOF
1.9 millert 3038: #define FQDN 1
1.16 millert 3039: _ACEOF
1.9 millert 3040:
1.27 ! millert 3041: { echo "$as_me:$LINENO: result: yes" >&5
! 3042: echo "${ECHO_T}yes" >&6; }
1.1 millert 3043: else
1.27 ! millert 3044: { echo "$as_me:$LINENO: result: no" >&5
! 3045: echo "${ECHO_T}no" >&6; }
1.1 millert 3046: fi
3047:
1.16 millert 3048:
1.27 ! millert 3049: # Check whether --with-timedir was given.
1.1 millert 3050: if test "${with_timedir+set}" = set; then
1.27 ! millert 3051: withval=$with_timedir; case $with_timedir in
1.16 millert 3052: yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 3053: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3054: { (exit 1); exit 1; }; }
1.1 millert 3055: ;;
1.16 millert 3056: no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9 millert 3057: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3058: { (exit 1); exit 1; }; }
1.1 millert 3059: ;;
3060: esac
1.27 ! millert 3061: fi
! 3062:
1.1 millert 3063:
1.16 millert 3064:
1.27 ! millert 3065: # Check whether --with-sendmail was given.
1.1 millert 3066: if test "${with_sendmail+set}" = set; then
1.27 ! millert 3067: withval=$with_sendmail; case $with_sendmail in
1.1 millert 3068: yes) with_sendmail=""
3069: ;;
3070: no) ;;
1.9 millert 3071: *) cat >>confdefs.h <<EOF
3072: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 3073: EOF
3074:
3075: ;;
3076: esac
1.27 ! millert 3077: fi
! 3078:
1.1 millert 3079:
1.16 millert 3080:
1.27 ! millert 3081: # Check whether --with-sudoers-mode was given.
1.1 millert 3082: if test "${with_sudoers_mode+set}" = set; then
1.27 ! millert 3083: withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16 millert 3084: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 3085: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3086: { (exit 1); exit 1; }; }
3087: ;;
1.16 millert 3088: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 3089: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3090: { (exit 1); exit 1; }; }
1.1 millert 3091: ;;
3092: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3093: ;;
3094: 0*) SUDOERS_MODE=$with_sudoers_mode
3095: ;;
1.16 millert 3096: *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3097: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9 millert 3098: { (exit 1); exit 1; }; }
1.1 millert 3099: ;;
3100: esac
1.27 ! millert 3101: fi
! 3102:
1.1 millert 3103:
1.16 millert 3104:
1.27 ! millert 3105: # Check whether --with-sudoers-uid was given.
1.1 millert 3106: if test "${with_sudoers_uid+set}" = set; then
1.27 ! millert 3107: withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16 millert 3108: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 3109: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3110: { (exit 1); exit 1; }; }
3111: ;;
1.16 millert 3112: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 3113: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3114: { (exit 1); exit 1; }; }
1.1 millert 3115: ;;
3116: [0-9]*) SUDOERS_UID=$with_sudoers_uid
3117: ;;
1.16 millert 3118: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3119: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9 millert 3120: { (exit 1); exit 1; }; }
1.1 millert 3121: ;;
3122: esac
1.27 ! millert 3123: fi
! 3124:
1.1 millert 3125:
1.16 millert 3126:
1.27 ! millert 3127: # Check whether --with-sudoers-gid was given.
1.1 millert 3128: if test "${with_sudoers_gid+set}" = set; then
1.27 ! millert 3129: withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16 millert 3130: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 3131: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3132: { (exit 1); exit 1; }; }
3133: ;;
1.16 millert 3134: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 3135: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3136: { (exit 1); exit 1; }; }
1.1 millert 3137: ;;
3138: [0-9]*) SUDOERS_GID=$with_sudoers_gid
3139: ;;
1.16 millert 3140: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3141: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9 millert 3142: { (exit 1); exit 1; }; }
1.1 millert 3143: ;;
3144: esac
1.27 ! millert 3145: fi
! 3146:
1.1 millert 3147:
1.27 ! millert 3148: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
! 3149: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1 millert 3150:
1.27 ! millert 3151: # Check whether --with-umask was given.
1.1 millert 3152: if test "${with_umask+set}" = set; then
1.27 ! millert 3153: withval=$with_umask; case $with_umask in
1.16 millert 3154: yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 3155: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3156: { (exit 1); exit 1; }; }
1.1 millert 3157: ;;
1.9 millert 3158: no) sudo_umask=0777
1.1 millert 3159: ;;
1.9 millert 3160: [0-9]*) sudo_umask=$with_umask
1.1 millert 3161: ;;
1.16 millert 3162: *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 3163: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3164: { (exit 1); exit 1; }; }
1.1 millert 3165: ;;
3166: esac
1.27 ! millert 3167: fi
! 3168:
1.9 millert 3169:
1.16 millert 3170: cat >>confdefs.h <<_ACEOF
1.9 millert 3171: #define SUDO_UMASK $sudo_umask
1.16 millert 3172: _ACEOF
1.9 millert 3173:
3174: if test "$sudo_umask" = "0777"; then
1.27 ! millert 3175: { echo "$as_me:$LINENO: result: user" >&5
! 3176: echo "${ECHO_T}user" >&6; }
1.1 millert 3177: else
1.27 ! millert 3178: { echo "$as_me:$LINENO: result: $sudo_umask" >&5
! 3179: echo "${ECHO_T}$sudo_umask" >&6; }
1.1 millert 3180: fi
3181:
1.27 ! millert 3182: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
! 3183: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1 millert 3184:
1.27 ! millert 3185: # Check whether --with-runas-default was given.
1.1 millert 3186: if test "${with_runas_default+set}" = set; then
1.27 ! millert 3187: withval=$with_runas_default; case $with_runas_default in
1.16 millert 3188: yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 3189: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3190: { (exit 1); exit 1; }; }
1.1 millert 3191: ;;
1.16 millert 3192: no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 3193: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3194: { (exit 1); exit 1; }; }
1.1 millert 3195: ;;
1.9 millert 3196: *) runas_default="$with_runas_default"
1.1 millert 3197: ;;
3198: esac
1.27 ! millert 3199: fi
! 3200:
1.9 millert 3201:
1.16 millert 3202: cat >>confdefs.h <<_ACEOF
1.9 millert 3203: #define RUNAS_DEFAULT "$runas_default"
1.16 millert 3204: _ACEOF
1.1 millert 3205:
1.27 ! millert 3206: { echo "$as_me:$LINENO: result: $runas_default" >&5
! 3207: echo "${ECHO_T}$runas_default" >&6; }
1.1 millert 3208:
1.16 millert 3209:
1.27 ! millert 3210: # Check whether --with-exempt was given.
1.1 millert 3211: if test "${with_exempt+set}" = set; then
1.27 ! millert 3212: withval=$with_exempt; case $with_exempt in
1.16 millert 3213: yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 3214: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3215: { (exit 1); exit 1; }; }
3216: ;;
1.16 millert 3217: no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9 millert 3218: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3219: { (exit 1); exit 1; }; }
1.1 millert 3220: ;;
1.9 millert 3221: *)
1.16 millert 3222: cat >>confdefs.h <<_ACEOF
1.1 millert 3223: #define EXEMPTGROUP "$with_exempt"
1.16 millert 3224: _ACEOF
1.1 millert 3225:
1.27 ! millert 3226: { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
! 3227: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
! 3228: { echo "$as_me:$LINENO: result: $with_exempt" >&5
! 3229: echo "${ECHO_T}$with_exempt" >&6; }
1.1 millert 3230: ;;
3231: esac
1.27 ! millert 3232: fi
! 3233:
1.1 millert 3234:
1.27 ! millert 3235: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
! 3236: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1 millert 3237:
1.27 ! millert 3238: # Check whether --with-editor was given.
1.1 millert 3239: if test "${with_editor+set}" = set; then
1.27 ! millert 3240: withval=$with_editor; case $with_editor in
1.16 millert 3241: yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 3242: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3243: { (exit 1); exit 1; }; }
3244: ;;
1.16 millert 3245: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 3246: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3247: { (exit 1); exit 1; }; }
1.1 millert 3248: ;;
1.9 millert 3249: *)
1.16 millert 3250: cat >>confdefs.h <<_ACEOF
1.1 millert 3251: #define EDITOR "$with_editor"
1.16 millert 3252: _ACEOF
1.1 millert 3253:
1.27 ! millert 3254: { echo "$as_me:$LINENO: result: $with_editor" >&5
! 3255: echo "${ECHO_T}$with_editor" >&6; }
1.1 millert 3256: ;;
3257: esac
3258: else
1.16 millert 3259: cat >>confdefs.h <<\_ACEOF
1.1 millert 3260: #define EDITOR _PATH_VI
1.16 millert 3261: _ACEOF
1.27 ! millert 3262: { echo "$as_me:$LINENO: result: vi" >&5
! 3263: echo "${ECHO_T}vi" >&6; }
! 3264: fi
! 3265:
1.1 millert 3266:
1.27 ! millert 3267: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
! 3268: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1 millert 3269:
1.27 ! millert 3270: # Check whether --with-env-editor was given.
1.1 millert 3271: if test "${with_env_editor+set}" = set; then
1.27 ! millert 3272: withval=$with_env_editor; case $with_env_editor in
1.9 millert 3273: yes) env_editor=on
1.1 millert 3274: ;;
1.9 millert 3275: no) env_editor=off
1.1 millert 3276: ;;
1.16 millert 3277: *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 3278: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3279: { (exit 1); exit 1; }; }
1.1 millert 3280: ;;
3281: esac
1.27 ! millert 3282: fi
! 3283:
1.9 millert 3284: if test "$env_editor" = "on"; then
1.23 millert 3285: cat >>confdefs.h <<\_ACEOF
1.9 millert 3286: #define ENV_EDITOR 1
1.16 millert 3287: _ACEOF
1.9 millert 3288:
1.27 ! millert 3289: { echo "$as_me:$LINENO: result: yes" >&5
! 3290: echo "${ECHO_T}yes" >&6; }
1.1 millert 3291: else
1.27 ! millert 3292: { echo "$as_me:$LINENO: result: no" >&5
! 3293: echo "${ECHO_T}no" >&6; }
1.1 millert 3294: fi
3295:
1.27 ! millert 3296: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
! 3297: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1 millert 3298:
1.27 ! millert 3299: # Check whether --with-passwd-tries was given.
1.1 millert 3300: if test "${with_passwd_tries+set}" = set; then
1.27 ! millert 3301: withval=$with_passwd_tries; case $with_passwd_tries in
1.9 millert 3302: yes) ;;
1.16 millert 3303: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 3304: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3305: { (exit 1); exit 1; }; }
1.1 millert 3306: ;;
1.9 millert 3307: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 3308: ;;
1.16 millert 3309: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 3310: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3311: { (exit 1); exit 1; }; }
1.1 millert 3312: ;;
3313: esac
1.27 ! millert 3314: fi
! 3315:
1.9 millert 3316:
1.16 millert 3317: cat >>confdefs.h <<_ACEOF
1.9 millert 3318: #define TRIES_FOR_PASSWORD $passwd_tries
1.16 millert 3319: _ACEOF
1.1 millert 3320:
1.27 ! millert 3321: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
! 3322: echo "${ECHO_T}$passwd_tries" >&6; }
1.9 millert 3323:
1.27 ! millert 3324: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
! 3325: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1 millert 3326:
1.27 ! millert 3327: # Check whether --with-timeout was given.
1.1 millert 3328: if test "${with_timeout+set}" = set; then
1.27 ! millert 3329: withval=$with_timeout; case $with_timeout in
1.9 millert 3330: yes) ;;
3331: no) timeout=0
1.1 millert 3332: ;;
1.9 millert 3333: [0-9]*) timeout=$with_timeout
1.1 millert 3334: ;;
1.16 millert 3335: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 3336: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3337: { (exit 1); exit 1; }; }
1.1 millert 3338: ;;
3339: esac
1.27 ! millert 3340: fi
! 3341:
1.9 millert 3342:
1.16 millert 3343: cat >>confdefs.h <<_ACEOF
1.9 millert 3344: #define TIMEOUT $timeout
1.16 millert 3345: _ACEOF
1.1 millert 3346:
1.27 ! millert 3347: { echo "$as_me:$LINENO: result: $timeout" >&5
! 3348: echo "${ECHO_T}$timeout" >&6; }
1.9 millert 3349:
1.27 ! millert 3350: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
! 3351: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1 millert 3352:
1.27 ! millert 3353: # Check whether --with-password-timeout was given.
1.1 millert 3354: if test "${with_password_timeout+set}" = set; then
1.27 ! millert 3355: withval=$with_password_timeout; case $with_password_timeout in
1.9 millert 3356: yes) ;;
3357: no) password_timeout=0
1.1 millert 3358: ;;
1.9 millert 3359: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 3360: ;;
1.16 millert 3361: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 3362: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3363: { (exit 1); exit 1; }; }
1.1 millert 3364: ;;
3365: esac
1.27 ! millert 3366: fi
! 3367:
1.9 millert 3368:
1.16 millert 3369: cat >>confdefs.h <<_ACEOF
1.9 millert 3370: #define PASSWORD_TIMEOUT $password_timeout
1.16 millert 3371: _ACEOF
1.1 millert 3372:
1.27 ! millert 3373: { echo "$as_me:$LINENO: result: $password_timeout" >&5
! 3374: echo "${ECHO_T}$password_timeout" >&6; }
1.1 millert 3375:
1.27 ! millert 3376: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
! 3377: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1 millert 3378:
1.27 ! millert 3379: # Check whether --with-tty-tickets was given.
1.1 millert 3380: if test "${with_tty_tickets+set}" = set; then
1.27 ! millert 3381: withval=$with_tty_tickets; case $with_tty_tickets in
1.9 millert 3382: yes) tty_tickets=on
1.1 millert 3383: ;;
1.9 millert 3384: no) tty_tickets=off
1.1 millert 3385: ;;
1.16 millert 3386: *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 3387: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3388: { (exit 1); exit 1; }; }
1.1 millert 3389: ;;
3390: esac
1.27 ! millert 3391: fi
! 3392:
1.9 millert 3393: if test "$tty_tickets" = "on"; then
1.23 millert 3394: cat >>confdefs.h <<\_ACEOF
1.9 millert 3395: #define USE_TTY_TICKETS 1
1.16 millert 3396: _ACEOF
1.9 millert 3397:
1.27 ! millert 3398: { echo "$as_me:$LINENO: result: yes" >&5
! 3399: echo "${ECHO_T}yes" >&6; }
1.1 millert 3400: else
1.27 ! millert 3401: { echo "$as_me:$LINENO: result: no" >&5
! 3402: echo "${ECHO_T}no" >&6; }
1.1 millert 3403: fi
3404:
1.27 ! millert 3405: { echo "$as_me:$LINENO: checking whether to include insults" >&5
! 3406: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1 millert 3407:
1.27 ! millert 3408: # Check whether --with-insults was given.
1.1 millert 3409: if test "${with_insults+set}" = set; then
1.27 ! millert 3410: withval=$with_insults; case $with_insults in
1.9 millert 3411: yes) insults=on
1.1 millert 3412: with_classic_insults=yes
3413: with_csops_insults=yes
3414: ;;
1.9 millert 3415: no) insults=off
1.1 millert 3416: ;;
1.16 millert 3417: *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 3418: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3419: { (exit 1); exit 1; }; }
1.1 millert 3420: ;;
3421: esac
1.27 ! millert 3422: fi
! 3423:
1.9 millert 3424: if test "$insults" = "on"; then
1.23 millert 3425: cat >>confdefs.h <<\_ACEOF
1.9 millert 3426: #define USE_INSULTS 1
1.16 millert 3427: _ACEOF
1.9 millert 3428:
1.27 ! millert 3429: { echo "$as_me:$LINENO: result: yes" >&5
! 3430: echo "${ECHO_T}yes" >&6; }
1.1 millert 3431: else
1.27 ! millert 3432: { echo "$as_me:$LINENO: result: no" >&5
! 3433: echo "${ECHO_T}no" >&6; }
1.1 millert 3434: fi
3435:
1.16 millert 3436:
1.27 ! millert 3437: # Check whether --with-all-insults was given.
1.1 millert 3438: if test "${with_all_insults+set}" = set; then
1.27 ! millert 3439: withval=$with_all_insults; case $with_all_insults in
1.1 millert 3440: yes) with_classic_insults=yes
3441: with_csops_insults=yes
3442: with_hal_insults=yes
3443: with_goons_insults=yes
3444: ;;
3445: no) ;;
1.16 millert 3446: *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 3447: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3448: { (exit 1); exit 1; }; }
1.1 millert 3449: ;;
3450: esac
1.27 ! millert 3451: fi
! 3452:
1.1 millert 3453:
1.16 millert 3454:
1.27 ! millert 3455: # Check whether --with-classic-insults was given.
1.1 millert 3456: if test "${with_classic_insults+set}" = set; then
1.27 ! millert 3457: withval=$with_classic_insults; case $with_classic_insults in
1.23 millert 3458: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3459: #define CLASSIC_INSULTS 1
1.16 millert 3460: _ACEOF
1.1 millert 3461:
3462: ;;
3463: no) ;;
1.16 millert 3464: *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 3465: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3466: { (exit 1); exit 1; }; }
1.1 millert 3467: ;;
3468: esac
1.27 ! millert 3469: fi
! 3470:
1.1 millert 3471:
1.16 millert 3472:
1.27 ! millert 3473: # Check whether --with-csops-insults was given.
1.1 millert 3474: if test "${with_csops_insults+set}" = set; then
1.27 ! millert 3475: withval=$with_csops_insults; case $with_csops_insults in
1.23 millert 3476: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3477: #define CSOPS_INSULTS 1
1.16 millert 3478: _ACEOF
1.1 millert 3479:
3480: ;;
3481: no) ;;
1.16 millert 3482: *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 3483: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3484: { (exit 1); exit 1; }; }
1.1 millert 3485: ;;
3486: esac
1.27 ! millert 3487: fi
! 3488:
1.1 millert 3489:
1.16 millert 3490:
1.27 ! millert 3491: # Check whether --with-hal-insults was given.
1.1 millert 3492: if test "${with_hal_insults+set}" = set; then
1.27 ! millert 3493: withval=$with_hal_insults; case $with_hal_insults in
1.23 millert 3494: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3495: #define HAL_INSULTS 1
1.16 millert 3496: _ACEOF
1.1 millert 3497:
3498: ;;
3499: no) ;;
1.16 millert 3500: *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 3501: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3502: { (exit 1); exit 1; }; }
1.1 millert 3503: ;;
3504: esac
1.27 ! millert 3505: fi
! 3506:
1.1 millert 3507:
1.16 millert 3508:
1.27 ! millert 3509: # Check whether --with-goons-insults was given.
1.1 millert 3510: if test "${with_goons_insults+set}" = set; then
1.27 ! millert 3511: withval=$with_goons_insults; case $with_goons_insults in
1.23 millert 3512: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3513: #define GOONS_INSULTS 1
1.16 millert 3514: _ACEOF
1.1 millert 3515:
3516: ;;
3517: no) ;;
1.16 millert 3518: *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 3519: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3520: { (exit 1); exit 1; }; }
1.1 millert 3521: ;;
3522: esac
1.27 ! millert 3523: fi
! 3524:
1.1 millert 3525:
1.23 millert 3526:
1.27 ! millert 3527: # Check whether --with-ldap was given.
1.23 millert 3528: if test "${with_ldap+set}" = set; then
1.27 ! millert 3529: withval=$with_ldap; case $with_ldap in
1.23 millert 3530: no) with_ldap="";;
3531: *) cat >>confdefs.h <<\_ACEOF
3532: #define HAVE_LDAP 1
3533: _ACEOF
3534:
1.27 ! millert 3535: { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
! 3536: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
! 3537: { echo "$as_me:$LINENO: result: yes" >&5
! 3538: echo "${ECHO_T}yes" >&6; }
1.23 millert 3539: ;;
3540: esac
1.27 ! millert 3541: fi
! 3542:
1.23 millert 3543:
1.27 ! millert 3544: # Check whether --with-ldap-conf-file was given.
1.23 millert 3545: if test "${with_ldap_conf_file+set}" = set; then
1.27 ! millert 3546: withval=$with_ldap_conf_file;
1.23 millert 3547: cat >>confdefs.h <<_ACEOF
3548: #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3549: _ACEOF
3550:
1.27 ! millert 3551: fi
! 3552:
1.23 millert 3553:
1.27 ! millert 3554: # Check whether --with-ldap-secret-file was given.
1.25 millert 3555: if test "${with_ldap_secret_file+set}" = set; then
1.27 ! millert 3556: withval=$with_ldap_secret_file;
1.25 millert 3557: cat >>confdefs.h <<_ACEOF
3558: #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3559: _ACEOF
3560:
1.27 ! millert 3561: fi
! 3562:
1.25 millert 3563:
1.23 millert 3564:
1.27 ! millert 3565: # Check whether --with-pc-insults was given.
1.23 millert 3566: if test "${with_pc_insults+set}" = set; then
1.27 ! millert 3567: withval=$with_pc_insults; case $with_pc_insults in
1.23 millert 3568: yes) cat >>confdefs.h <<\_ACEOF
3569: #define PC_INSULTS 1
3570: _ACEOF
3571:
3572: ;;
3573: no) ;;
3574: *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3575: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3576: { (exit 1); exit 1; }; }
3577: ;;
3578: esac
1.27 ! millert 3579: fi
! 3580:
1.23 millert 3581:
1.9 millert 3582: if test "$insults" = "on"; then
1.27 ! millert 3583: { echo "$as_me:$LINENO: checking which insult sets to include" >&5
! 3584: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1 millert 3585: i=""
3586: test "$with_goons_insults" = "yes" && i="goons ${i}"
3587: test "$with_hal_insults" = "yes" && i="hal ${i}"
3588: test "$with_csops_insults" = "yes" && i="csops ${i}"
3589: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27 ! millert 3590: { echo "$as_me:$LINENO: result: $i" >&5
! 3591: echo "${ECHO_T}$i" >&6; }
1.1 millert 3592: fi
3593:
1.27 ! millert 3594: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
! 3595: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9 millert 3596:
1.27 ! millert 3597: # Check whether --with-secure-path was given.
1.1 millert 3598: if test "${with_secure_path+set}" = set; then
1.27 ! millert 3599: withval=$with_secure_path; case $with_secure_path in
1.23 millert 3600: yes) cat >>confdefs.h <<_ACEOF
1.1 millert 3601: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16 millert 3602: _ACEOF
1.1 millert 3603:
1.27 ! millert 3604: { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
! 3605: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
1.1 millert 3606: ;;
1.27 ! millert 3607: no) { echo "$as_me:$LINENO: result: no" >&5
! 3608: echo "${ECHO_T}no" >&6; }
1.1 millert 3609: ;;
1.16 millert 3610: *) cat >>confdefs.h <<_ACEOF
1.1 millert 3611: #define SECURE_PATH "$with_secure_path"
1.16 millert 3612: _ACEOF
1.1 millert 3613:
1.27 ! millert 3614: { echo "$as_me:$LINENO: result: $with_secure_path" >&5
! 3615: echo "${ECHO_T}$with_secure_path" >&6; }
1.1 millert 3616: ;;
3617: esac
3618: else
1.27 ! millert 3619: { echo "$as_me:$LINENO: result: no" >&5
! 3620: echo "${ECHO_T}no" >&6; }
! 3621: fi
! 3622:
1.1 millert 3623:
1.27 ! millert 3624: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
! 3625: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1 millert 3626:
1.27 ! millert 3627: # Check whether --with-interfaces was given.
1.1 millert 3628: if test "${with_interfaces+set}" = set; then
1.27 ! millert 3629: withval=$with_interfaces; case $with_interfaces in
! 3630: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3631: echo "${ECHO_T}yes" >&6; }
1.1 millert 3632: ;;
1.23 millert 3633: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3634: #define STUB_LOAD_INTERFACES 1
1.16 millert 3635: _ACEOF
1.1 millert 3636:
1.27 ! millert 3637: { echo "$as_me:$LINENO: result: no" >&5
! 3638: echo "${ECHO_T}no" >&6; }
1.1 millert 3639: ;;
1.16 millert 3640: *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 3641: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3642: { (exit 1); exit 1; }; }
1.1 millert 3643: ;;
3644: esac
3645: else
1.27 ! millert 3646: { echo "$as_me:$LINENO: result: yes" >&5
! 3647: echo "${ECHO_T}yes" >&6; }
! 3648: fi
! 3649:
1.16 millert 3650:
1.27 ! millert 3651: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
! 3652: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16 millert 3653:
1.27 ! millert 3654: # Check whether --with-stow was given.
1.16 millert 3655: if test "${with_stow+set}" = set; then
1.27 ! millert 3656: withval=$with_stow; case $with_stow in
! 3657: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3658: echo "${ECHO_T}yes" >&6; }
1.23 millert 3659: cat >>confdefs.h <<\_ACEOF
1.16 millert 3660: #define USE_STOW 1
3661: _ACEOF
3662:
3663: ;;
1.27 ! millert 3664: no) { echo "$as_me:$LINENO: result: no" >&5
! 3665: echo "${ECHO_T}no" >&6; }
1.16 millert 3666: ;;
3667: *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3668: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3669: { (exit 1); exit 1; }; }
3670: ;;
3671: esac
3672: else
1.27 ! millert 3673: { echo "$as_me:$LINENO: result: no" >&5
! 3674: echo "${ECHO_T}no" >&6; }
! 3675: fi
! 3676:
1.1 millert 3677:
1.16 millert 3678:
1.27 ! millert 3679: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
! 3680: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
! 3681: # Check whether --enable-authentication was given.
1.1 millert 3682: if test "${enable_authentication+set}" = set; then
1.27 ! millert 3683: enableval=$enable_authentication; case "$enableval" in
! 3684: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3685: echo "${ECHO_T}yes" >&6; }
1.1 millert 3686: ;;
1.27 ! millert 3687: no) { echo "$as_me:$LINENO: result: no" >&5
! 3688: echo "${ECHO_T}no" >&6; }
1.23 millert 3689: cat >>confdefs.h <<\_ACEOF
1.1 millert 3690: #define NO_AUTHENTICATION 1
1.16 millert 3691: _ACEOF
1.1 millert 3692:
3693: ;;
1.27 ! millert 3694: *) { echo "$as_me:$LINENO: result: no" >&5
! 3695: echo "${ECHO_T}no" >&6; }
1.17 millert 3696: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3697: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1 millert 3698: ;;
3699: esac
3700:
3701: else
1.27 ! millert 3702: { echo "$as_me:$LINENO: result: yes" >&5
! 3703: echo "${ECHO_T}yes" >&6; }
! 3704: fi
! 3705:
! 3706:
! 3707: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
! 3708: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
! 3709: # Check whether --enable-root-mailer was given.
1.12 millert 3710: if test "${enable_root_mailer+set}" = set; then
1.27 ! millert 3711: enableval=$enable_root_mailer; case "$enableval" in
! 3712: yes) { echo "$as_me:$LINENO: result: no" >&5
! 3713: echo "${ECHO_T}no" >&6; }
1.12 millert 3714: ;;
1.27 ! millert 3715: no) { echo "$as_me:$LINENO: result: yes" >&5
! 3716: echo "${ECHO_T}yes" >&6; }
1.23 millert 3717: cat >>confdefs.h <<\_ACEOF
1.12 millert 3718: #define NO_ROOT_MAILER 1
1.16 millert 3719: _ACEOF
1.12 millert 3720:
3721: ;;
1.27 ! millert 3722: *) { echo "$as_me:$LINENO: result: no" >&5
! 3723: echo "${ECHO_T}no" >&6; }
1.17 millert 3724: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3725: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12 millert 3726: ;;
3727: esac
3728:
3729: else
1.27 ! millert 3730: { echo "$as_me:$LINENO: result: no" >&5
! 3731: echo "${ECHO_T}no" >&6; }
! 3732: fi
1.12 millert 3733:
1.27 ! millert 3734:
! 3735: # Check whether --enable-setreuid was given.
1.13 millert 3736: if test "${enable_setreuid+set}" = set; then
1.27 ! millert 3737: enableval=$enable_setreuid; case "$enableval" in
1.16 millert 3738: no) SKIP_SETREUID=yes
3739: ;;
3740: *) ;;
3741: esac
3742:
1.27 ! millert 3743: fi
! 3744:
1.16 millert 3745:
1.27 ! millert 3746: # Check whether --enable-setresuid was given.
1.16 millert 3747: if test "${enable_setresuid+set}" = set; then
1.27 ! millert 3748: enableval=$enable_setresuid; case "$enableval" in
1.16 millert 3749: no) SKIP_SETRESUID=yes
1.13 millert 3750: ;;
3751: *) ;;
3752: esac
3753:
1.27 ! millert 3754: fi
! 3755:
1.13 millert 3756:
1.27 ! millert 3757: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
! 3758: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
! 3759: # Check whether --enable-shadow was given.
1.1 millert 3760: if test "${enable_shadow+set}" = set; then
1.27 ! millert 3761: enableval=$enable_shadow; case "$enableval" in
! 3762: yes) { echo "$as_me:$LINENO: result: no" >&5
! 3763: echo "${ECHO_T}no" >&6; }
1.1 millert 3764: ;;
1.27 ! millert 3765: no) { echo "$as_me:$LINENO: result: yes" >&5
! 3766: echo "${ECHO_T}yes" >&6; }
1.1 millert 3767: CHECKSHADOW="false"
3768: ;;
1.27 ! millert 3769: *) { echo "$as_me:$LINENO: result: no" >&5
! 3770: echo "${ECHO_T}no" >&6; }
1.17 millert 3771: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3772: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1 millert 3773: ;;
3774: esac
3775:
3776: else
1.27 ! millert 3777: { echo "$as_me:$LINENO: result: no" >&5
! 3778: echo "${ECHO_T}no" >&6; }
! 3779: fi
! 3780:
! 3781:
! 3782: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
! 3783: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
! 3784: # Check whether --enable-root-sudo was given.
1.1 millert 3785: if test "${enable_root_sudo+set}" = set; then
1.27 ! millert 3786: enableval=$enable_root_sudo; case "$enableval" in
! 3787: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3788: echo "${ECHO_T}yes" >&6; }
1.1 millert 3789: ;;
1.23 millert 3790: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3791: #define NO_ROOT_SUDO 1
1.16 millert 3792: _ACEOF
1.1 millert 3793:
1.27 ! millert 3794: { echo "$as_me:$LINENO: result: no" >&5
! 3795: echo "${ECHO_T}no" >&6; }
1.23 millert 3796: root_sudo=off
1.1 millert 3797: ;;
1.16 millert 3798: *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 3799: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3800: { (exit 1); exit 1; }; }
1.1 millert 3801: ;;
3802: esac
3803:
3804: else
1.27 ! millert 3805: { echo "$as_me:$LINENO: result: yes" >&5
! 3806: echo "${ECHO_T}yes" >&6; }
! 3807: fi
! 3808:
! 3809:
! 3810: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
! 3811: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
! 3812: # Check whether --enable-log-host was given.
1.1 millert 3813: if test "${enable_log_host+set}" = set; then
1.27 ! millert 3814: enableval=$enable_log_host; case "$enableval" in
! 3815: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3816: echo "${ECHO_T}yes" >&6; }
1.23 millert 3817: cat >>confdefs.h <<\_ACEOF
1.1 millert 3818: #define HOST_IN_LOG 1
1.16 millert 3819: _ACEOF
1.1 millert 3820:
3821: ;;
1.27 ! millert 3822: no) { echo "$as_me:$LINENO: result: no" >&5
! 3823: echo "${ECHO_T}no" >&6; }
1.1 millert 3824: ;;
1.27 ! millert 3825: *) { echo "$as_me:$LINENO: result: no" >&5
! 3826: echo "${ECHO_T}no" >&6; }
1.17 millert 3827: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3828: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1 millert 3829: ;;
3830: esac
3831:
3832: else
1.27 ! millert 3833: { echo "$as_me:$LINENO: result: no" >&5
! 3834: echo "${ECHO_T}no" >&6; }
! 3835: fi
! 3836:
! 3837:
! 3838: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
! 3839: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
! 3840: # Check whether --enable-noargs-shell was given.
1.1 millert 3841: if test "${enable_noargs_shell+set}" = set; then
1.27 ! millert 3842: enableval=$enable_noargs_shell; case "$enableval" in
! 3843: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3844: echo "${ECHO_T}yes" >&6; }
1.23 millert 3845: cat >>confdefs.h <<\_ACEOF
1.1 millert 3846: #define SHELL_IF_NO_ARGS 1
1.16 millert 3847: _ACEOF
1.1 millert 3848:
3849: ;;
1.27 ! millert 3850: no) { echo "$as_me:$LINENO: result: no" >&5
! 3851: echo "${ECHO_T}no" >&6; }
1.1 millert 3852: ;;
1.27 ! millert 3853: *) { echo "$as_me:$LINENO: result: no" >&5
! 3854: echo "${ECHO_T}no" >&6; }
1.17 millert 3855: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3856: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1 millert 3857: ;;
3858: esac
3859:
3860: else
1.27 ! millert 3861: { echo "$as_me:$LINENO: result: no" >&5
! 3862: echo "${ECHO_T}no" >&6; }
! 3863: fi
! 3864:
! 3865:
! 3866: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
! 3867: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
! 3868: # Check whether --enable-shell-sets-home was given.
1.1 millert 3869: if test "${enable_shell_sets_home+set}" = set; then
1.27 ! millert 3870: enableval=$enable_shell_sets_home; case "$enableval" in
! 3871: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 3872: echo "${ECHO_T}yes" >&6; }
1.23 millert 3873: cat >>confdefs.h <<\_ACEOF
1.1 millert 3874: #define SHELL_SETS_HOME 1
1.16 millert 3875: _ACEOF
1.1 millert 3876:
3877: ;;
1.27 ! millert 3878: no) { echo "$as_me:$LINENO: result: no" >&5
! 3879: echo "${ECHO_T}no" >&6; }
1.1 millert 3880: ;;
1.27 ! millert 3881: *) { echo "$as_me:$LINENO: result: no" >&5
! 3882: echo "${ECHO_T}no" >&6; }
1.17 millert 3883: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3884: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1 millert 3885: ;;
3886: esac
3887:
3888: else
1.27 ! millert 3889: { echo "$as_me:$LINENO: result: no" >&5
! 3890: echo "${ECHO_T}no" >&6; }
! 3891: fi
! 3892:
! 3893:
! 3894: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
! 3895: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
! 3896: # Check whether --enable-path_info was given.
1.1 millert 3897: if test "${enable_path_info+set}" = set; then
1.27 ! millert 3898: enableval=$enable_path_info; case "$enableval" in
! 3899: yes) { echo "$as_me:$LINENO: result: no" >&5
! 3900: echo "${ECHO_T}no" >&6; }
1.1 millert 3901: ;;
1.27 ! millert 3902: no) { echo "$as_me:$LINENO: result: yes" >&5
! 3903: echo "${ECHO_T}yes" >&6; }
1.23 millert 3904: cat >>confdefs.h <<\_ACEOF
1.1 millert 3905: #define DONT_LEAK_PATH_INFO 1
1.16 millert 3906: _ACEOF
1.1 millert 3907:
1.25 millert 3908: path_info=off
1.1 millert 3909: ;;
1.27 ! millert 3910: *) { echo "$as_me:$LINENO: result: no" >&5
! 3911: echo "${ECHO_T}no" >&6; }
1.17 millert 3912: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3913: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1 millert 3914: ;;
3915: esac
3916:
3917: else
1.27 ! millert 3918: { echo "$as_me:$LINENO: result: no" >&5
! 3919: echo "${ECHO_T}no" >&6; }
! 3920: fi
! 3921:
1.1 millert 3922:
3923: # Extract the first word of "egrep", so it can be a program name with args.
3924: set dummy egrep; ac_word=$2
1.27 ! millert 3925: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3926: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 3927: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3929: else
3930: if test -n "$EGREPPROG"; then
3931: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3932: else
1.16 millert 3933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934: for as_dir in $PATH
3935: do
3936: IFS=$as_save_IFS
3937: test -z "$as_dir" && as_dir=.
3938: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 3939: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 3940: ac_cv_prog_EGREPPROG="egrep"
3941: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942: break 2
3943: fi
3944: done
1.9 millert 3945: done
1.27 ! millert 3946: IFS=$as_save_IFS
1.9 millert 3947:
1.1 millert 3948: fi
3949: fi
1.9 millert 3950: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 3951: if test -n "$EGREPPROG"; then
1.27 ! millert 3952: { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
! 3953: echo "${ECHO_T}$EGREPPROG" >&6; }
1.1 millert 3954: else
1.27 ! millert 3955: { echo "$as_me:$LINENO: result: no" >&5
! 3956: echo "${ECHO_T}no" >&6; }
1.1 millert 3957: fi
3958:
1.27 ! millert 3959:
1.1 millert 3960: if test -z "$EGREPPROG"; then
1.17 millert 3961: { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3962: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3963: { (exit 1); exit 1; }; }
1.1 millert 3964: fi
3965:
1.9 millert 3966: if test "$with_devel" != "yes"; then
3967: ac_cv_prog_cc_g=no
3968: fi
3969:
3970: ac_ext=c
3971: ac_cpp='$CPP $CPPFLAGS'
3972: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975: if test -n "$ac_tool_prefix"; then
3976: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3977: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.27 ! millert 3978: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3979: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 3980: if test "${ac_cv_prog_CC+set}" = set; then
3981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3982: else
3983: if test -n "$CC"; then
3984: ac_cv_prog_CC="$CC" # Let the user override the test.
3985: else
1.16 millert 3986: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987: for as_dir in $PATH
3988: do
3989: IFS=$as_save_IFS
3990: test -z "$as_dir" && as_dir=.
3991: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 3992: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 3993: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3994: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995: break 2
3996: fi
3997: done
1.9 millert 3998: done
1.27 ! millert 3999: IFS=$as_save_IFS
1.9 millert 4000:
1.1 millert 4001: fi
4002: fi
1.9 millert 4003: CC=$ac_cv_prog_CC
1.1 millert 4004: if test -n "$CC"; then
1.27 ! millert 4005: { echo "$as_me:$LINENO: result: $CC" >&5
! 4006: echo "${ECHO_T}$CC" >&6; }
1.1 millert 4007: else
1.27 ! millert 4008: { echo "$as_me:$LINENO: result: no" >&5
! 4009: echo "${ECHO_T}no" >&6; }
1.9 millert 4010: fi
4011:
1.27 ! millert 4012:
1.9 millert 4013: fi
4014: if test -z "$ac_cv_prog_CC"; then
4015: ac_ct_CC=$CC
4016: # Extract the first word of "gcc", so it can be a program name with args.
4017: set dummy gcc; ac_word=$2
1.27 ! millert 4018: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4019: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4020: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4021: echo $ECHO_N "(cached) $ECHO_C" >&6
4022: else
4023: if test -n "$ac_ct_CC"; then
4024: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025: else
1.16 millert 4026: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027: for as_dir in $PATH
4028: do
4029: IFS=$as_save_IFS
4030: test -z "$as_dir" && as_dir=.
4031: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 4032: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4033: ac_cv_prog_ac_ct_CC="gcc"
4034: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035: break 2
4036: fi
4037: done
1.9 millert 4038: done
1.27 ! millert 4039: IFS=$as_save_IFS
1.9 millert 4040:
4041: fi
4042: fi
4043: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044: if test -n "$ac_ct_CC"; then
1.27 ! millert 4045: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 4046: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.9 millert 4047: else
1.27 ! millert 4048: { echo "$as_me:$LINENO: result: no" >&5
! 4049: echo "${ECHO_T}no" >&6; }
1.9 millert 4050: fi
4051:
1.27 ! millert 4052: if test "x$ac_ct_CC" = x; then
! 4053: CC=""
! 4054: else
! 4055: case $cross_compiling:$ac_tool_warned in
! 4056: yes:)
! 4057: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4058: whose name does not start with the host triplet. If you think this
! 4059: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 4060: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4061: whose name does not start with the host triplet. If you think this
! 4062: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 4063: ac_tool_warned=yes ;;
! 4064: esac
! 4065: CC=$ac_ct_CC
! 4066: fi
1.9 millert 4067: else
4068: CC="$ac_cv_prog_CC"
1.1 millert 4069: fi
4070:
4071: if test -z "$CC"; then
1.27 ! millert 4072: if test -n "$ac_tool_prefix"; then
! 4073: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9 millert 4074: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.27 ! millert 4075: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4076: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4077: if test "${ac_cv_prog_CC+set}" = set; then
4078: echo $ECHO_N "(cached) $ECHO_C" >&6
4079: else
4080: if test -n "$CC"; then
4081: ac_cv_prog_CC="$CC" # Let the user override the test.
4082: else
1.16 millert 4083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084: for as_dir in $PATH
4085: do
4086: IFS=$as_save_IFS
4087: test -z "$as_dir" && as_dir=.
4088: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 4089: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4090: ac_cv_prog_CC="${ac_tool_prefix}cc"
4091: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092: break 2
4093: fi
4094: done
1.9 millert 4095: done
1.27 ! millert 4096: IFS=$as_save_IFS
1.9 millert 4097:
4098: fi
4099: fi
4100: CC=$ac_cv_prog_CC
4101: if test -n "$CC"; then
1.27 ! millert 4102: { echo "$as_me:$LINENO: result: $CC" >&5
! 4103: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4104: else
1.27 ! millert 4105: { echo "$as_me:$LINENO: result: no" >&5
! 4106: echo "${ECHO_T}no" >&6; }
1.9 millert 4107: fi
4108:
1.27 ! millert 4109:
1.16 millert 4110: fi
1.9 millert 4111: fi
4112: if test -z "$CC"; then
4113: # Extract the first word of "cc", so it can be a program name with args.
4114: set dummy cc; ac_word=$2
1.27 ! millert 4115: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4116: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4117: if test "${ac_cv_prog_CC+set}" = set; then
4118: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4119: else
4120: if test -n "$CC"; then
4121: ac_cv_prog_CC="$CC" # Let the user override the test.
4122: else
4123: ac_prog_rejected=no
1.16 millert 4124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125: for as_dir in $PATH
4126: do
4127: IFS=$as_save_IFS
4128: test -z "$as_dir" && as_dir=.
4129: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 4130: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4131: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4132: ac_prog_rejected=yes
4133: continue
4134: fi
4135: ac_cv_prog_CC="cc"
4136: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137: break 2
4138: fi
4139: done
1.9 millert 4140: done
1.27 ! millert 4141: IFS=$as_save_IFS
1.9 millert 4142:
1.1 millert 4143: if test $ac_prog_rejected = yes; then
4144: # We found a bogon in the path, so make sure we never use it.
4145: set dummy $ac_cv_prog_CC
4146: shift
1.9 millert 4147: if test $# != 0; then
1.1 millert 4148: # We chose a different compiler from the bogus one.
4149: # However, it has the same basename, so the bogon will be chosen
4150: # first if we set CC to just the basename; use the full file name.
4151: shift
1.16 millert 4152: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 millert 4153: fi
4154: fi
4155: fi
4156: fi
1.9 millert 4157: CC=$ac_cv_prog_CC
1.1 millert 4158: if test -n "$CC"; then
1.27 ! millert 4159: { echo "$as_me:$LINENO: result: $CC" >&5
! 4160: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4161: else
1.27 ! millert 4162: { echo "$as_me:$LINENO: result: no" >&5
! 4163: echo "${ECHO_T}no" >&6; }
1.9 millert 4164: fi
4165:
1.27 ! millert 4166:
1.9 millert 4167: fi
4168: if test -z "$CC"; then
4169: if test -n "$ac_tool_prefix"; then
1.27 ! millert 4170: for ac_prog in cl.exe
1.9 millert 4171: do
4172: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4173: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27 ! millert 4174: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4175: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4176: if test "${ac_cv_prog_CC+set}" = set; then
4177: echo $ECHO_N "(cached) $ECHO_C" >&6
4178: else
4179: if test -n "$CC"; then
4180: ac_cv_prog_CC="$CC" # Let the user override the test.
4181: else
1.16 millert 4182: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183: for as_dir in $PATH
4184: do
4185: IFS=$as_save_IFS
4186: test -z "$as_dir" && as_dir=.
4187: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 4188: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4189: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4190: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191: break 2
4192: fi
4193: done
1.9 millert 4194: done
1.27 ! millert 4195: IFS=$as_save_IFS
1.9 millert 4196:
4197: fi
4198: fi
4199: CC=$ac_cv_prog_CC
4200: if test -n "$CC"; then
1.27 ! millert 4201: { echo "$as_me:$LINENO: result: $CC" >&5
! 4202: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4203: else
1.27 ! millert 4204: { echo "$as_me:$LINENO: result: no" >&5
! 4205: echo "${ECHO_T}no" >&6; }
1.9 millert 4206: fi
4207:
1.27 ! millert 4208:
1.9 millert 4209: test -n "$CC" && break
4210: done
4211: fi
4212: if test -z "$CC"; then
4213: ac_ct_CC=$CC
1.27 ! millert 4214: for ac_prog in cl.exe
1.9 millert 4215: do
4216: # Extract the first word of "$ac_prog", so it can be a program name with args.
4217: set dummy $ac_prog; ac_word=$2
1.27 ! millert 4218: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4219: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4220: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4221: echo $ECHO_N "(cached) $ECHO_C" >&6
4222: else
4223: if test -n "$ac_ct_CC"; then
4224: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4225: else
1.16 millert 4226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227: for as_dir in $PATH
4228: do
4229: IFS=$as_save_IFS
4230: test -z "$as_dir" && as_dir=.
4231: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 4232: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4233: ac_cv_prog_ac_ct_CC="$ac_prog"
4234: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235: break 2
4236: fi
4237: done
1.9 millert 4238: done
1.27 ! millert 4239: IFS=$as_save_IFS
1.9 millert 4240:
4241: fi
4242: fi
4243: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4244: if test -n "$ac_ct_CC"; then
1.27 ! millert 4245: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 4246: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 millert 4247: else
1.27 ! millert 4248: { echo "$as_me:$LINENO: result: no" >&5
! 4249: echo "${ECHO_T}no" >&6; }
1.9 millert 4250: fi
4251:
1.27 ! millert 4252:
1.9 millert 4253: test -n "$ac_ct_CC" && break
4254: done
4255:
1.27 ! millert 4256: if test "x$ac_ct_CC" = x; then
! 4257: CC=""
! 4258: else
! 4259: case $cross_compiling:$ac_tool_warned in
! 4260: yes:)
! 4261: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4262: whose name does not start with the host triplet. If you think this
! 4263: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 4264: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4265: whose name does not start with the host triplet. If you think this
! 4266: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 4267: ac_tool_warned=yes ;;
! 4268: esac
! 4269: CC=$ac_ct_CC
! 4270: fi
1.1 millert 4271: fi
4272:
4273: fi
4274:
1.16 millert 4275:
4276: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4277: See \`config.log' for more details." >&5
4278: echo "$as_me: error: no acceptable C compiler found in \$PATH
4279: See \`config.log' for more details." >&2;}
1.9 millert 4280: { (exit 1); exit 1; }; }
4281:
4282: # Provide some information about the compiler.
1.27 ! millert 4283: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9 millert 4284: ac_compiler=`set X $ac_compile; echo $2`
1.27 ! millert 4285: { (ac_try="$ac_compiler --version >&5"
! 4286: case "(($ac_try" in
! 4287: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4288: *) ac_try_echo=$ac_try;;
! 4289: esac
! 4290: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4291: (eval "$ac_compiler --version >&5") 2>&5
1.9 millert 4292: ac_status=$?
1.16 millert 4293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4294: (exit $ac_status); }
1.27 ! millert 4295: { (ac_try="$ac_compiler -v >&5"
! 4296: case "(($ac_try" in
! 4297: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4298: *) ac_try_echo=$ac_try;;
! 4299: esac
! 4300: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4301: (eval "$ac_compiler -v >&5") 2>&5
1.9 millert 4302: ac_status=$?
1.16 millert 4303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4304: (exit $ac_status); }
1.27 ! millert 4305: { (ac_try="$ac_compiler -V >&5"
! 4306: case "(($ac_try" in
! 4307: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4308: *) ac_try_echo=$ac_try;;
! 4309: esac
! 4310: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4311: (eval "$ac_compiler -V >&5") 2>&5
1.9 millert 4312: ac_status=$?
1.16 millert 4313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4314: (exit $ac_status); }
4315:
4316: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4317: /* confdefs.h. */
4318: _ACEOF
4319: cat confdefs.h >>conftest.$ac_ext
4320: cat >>conftest.$ac_ext <<_ACEOF
4321: /* end confdefs.h. */
1.9 millert 4322:
4323: int
4324: main ()
4325: {
1.1 millert 4326:
1.9 millert 4327: ;
4328: return 0;
4329: }
4330: _ACEOF
4331: ac_clean_files_save=$ac_clean_files
1.16 millert 4332: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9 millert 4333: # Try to create an executable without -o first, disregard a.out.
4334: # It will help us diagnose broken compilers, and finding out an intuition
4335: # of exeext.
1.27 ! millert 4336: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 4337: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9 millert 4338: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27 ! millert 4339: #
! 4340: # List of possible output files, starting from the most likely.
! 4341: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 4342: # only as a last resort. b.out is created by i960 compilers.
! 4343: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 4344: #
! 4345: # The IRIX 6 linker writes into existing files which may not be
! 4346: # executable, retaining their permissions. Remove them first so a
! 4347: # subsequent execution test works.
! 4348: ac_rmfiles=
! 4349: for ac_file in $ac_files
! 4350: do
! 4351: case $ac_file in
! 4352: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 4353: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 4354: esac
! 4355: done
! 4356: rm -f $ac_rmfiles
! 4357:
! 4358: if { (ac_try="$ac_link_default"
! 4359: case "(($ac_try" in
! 4360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4361: *) ac_try_echo=$ac_try;;
! 4362: esac
! 4363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4364: (eval "$ac_link_default") 2>&5
1.9 millert 4365: ac_status=$?
1.16 millert 4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4367: (exit $ac_status); }; then
1.27 ! millert 4368: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 4369: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 4370: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 4371: # so that the user can short-circuit this test for compilers unknown to
! 4372: # Autoconf.
! 4373: for ac_file in $ac_files ''
1.16 millert 4374: do
4375: test -f "$ac_file" || continue
1.9 millert 4376: case $ac_file in
1.27 ! millert 4377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25 millert 4378: ;;
1.16 millert 4379: [ab].out )
1.25 millert 4380: # We found the default executable, but exeext='' is most
4381: # certainly right.
4382: break;;
1.16 millert 4383: *.* )
1.27 ! millert 4384: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 4385: then :; else
! 4386: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 4387: fi
! 4388: # We set ac_cv_exeext here because the later test for it is not
! 4389: # safe: cross compilers may not add the suffix if given an `-o'
! 4390: # argument, so we may need to know it at that point already.
! 4391: # Even if this section looks crufty: it has the advantage of
! 4392: # actually working.
1.25 millert 4393: break;;
1.16 millert 4394: * )
1.25 millert 4395: break;;
1.9 millert 4396: esac
4397: done
1.27 ! millert 4398: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 4399:
1.9 millert 4400: else
1.27 ! millert 4401: ac_file=''
! 4402: fi
! 4403:
! 4404: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 4405: echo "${ECHO_T}$ac_file" >&6; }
! 4406: if test -z "$ac_file"; then
1.9 millert 4407: echo "$as_me: failed program was:" >&5
1.16 millert 4408: sed 's/^/| /' conftest.$ac_ext >&5
4409:
4410: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4411: See \`config.log' for more details." >&5
4412: echo "$as_me: error: C compiler cannot create executables
4413: See \`config.log' for more details." >&2;}
1.9 millert 4414: { (exit 77); exit 77; }; }
4415: fi
4416:
4417: ac_exeext=$ac_cv_exeext
4418:
1.27 ! millert 4419: # Check that the compiler produces executables we can run. If not, either
1.9 millert 4420: # the compiler is broken, or we cross compile.
1.27 ! millert 4421: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 4422: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9 millert 4423: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4424: # If not cross compiling, check that we can run a simple program.
4425: if test "$cross_compiling" != yes; then
4426: if { ac_try='./$ac_file'
1.27 ! millert 4427: { (case "(($ac_try" in
! 4428: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4429: *) ac_try_echo=$ac_try;;
! 4430: esac
! 4431: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4432: (eval "$ac_try") 2>&5
1.9 millert 4433: ac_status=$?
1.16 millert 4434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4435: (exit $ac_status); }; }; then
4436: cross_compiling=no
1.1 millert 4437: else
1.9 millert 4438: if test "$cross_compiling" = maybe; then
4439: cross_compiling=yes
4440: else
1.16 millert 4441: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4442: If you meant to cross compile, use \`--host'.
4443: See \`config.log' for more details." >&5
1.9 millert 4444: echo "$as_me: error: cannot run C compiled programs.
1.16 millert 4445: If you meant to cross compile, use \`--host'.
4446: See \`config.log' for more details." >&2;}
1.9 millert 4447: { (exit 1); exit 1; }; }
4448: fi
1.1 millert 4449: fi
1.9 millert 4450: fi
1.27 ! millert 4451: { echo "$as_me:$LINENO: result: yes" >&5
! 4452: echo "${ECHO_T}yes" >&6; }
1.9 millert 4453:
1.16 millert 4454: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9 millert 4455: ac_clean_files=$ac_clean_files_save
1.27 ! millert 4456: # Check that the compiler produces executables we can run. If not, either
1.9 millert 4457: # the compiler is broken, or we cross compile.
1.27 ! millert 4458: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 4459: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 4460: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 4461: echo "${ECHO_T}$cross_compiling" >&6; }
! 4462:
! 4463: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 4464: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 4465: if { (ac_try="$ac_link"
! 4466: case "(($ac_try" in
! 4467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4468: *) ac_try_echo=$ac_try;;
! 4469: esac
! 4470: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4471: (eval "$ac_link") 2>&5
1.9 millert 4472: ac_status=$?
1.16 millert 4473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4474: (exit $ac_status); }; then
4475: # If both `conftest.exe' and `conftest' are `present' (well, observable)
4476: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4477: # work properly (i.e., refer to `conftest.exe'), while it won't with
4478: # `rm'.
1.16 millert 4479: for ac_file in conftest.exe conftest conftest.*; do
4480: test -f "$ac_file" || continue
1.9 millert 4481: case $ac_file in
1.27 ! millert 4482: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9 millert 4483: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 millert 4484: break;;
1.9 millert 4485: * ) break;;
4486: esac
4487: done
1.1 millert 4488: else
1.16 millert 4489: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4490: See \`config.log' for more details." >&5
4491: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4492: See \`config.log' for more details." >&2;}
1.9 millert 4493: { (exit 1); exit 1; }; }
1.1 millert 4494: fi
4495:
1.9 millert 4496: rm -f conftest$ac_cv_exeext
1.27 ! millert 4497: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 4498: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 millert 4499:
1.9 millert 4500: rm -f conftest.$ac_ext
4501: EXEEXT=$ac_cv_exeext
4502: ac_exeext=$EXEEXT
1.27 ! millert 4503: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 4504: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9 millert 4505: if test "${ac_cv_objext+set}" = set; then
4506: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4507: else
1.9 millert 4508: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4509: /* confdefs.h. */
4510: _ACEOF
4511: cat confdefs.h >>conftest.$ac_ext
4512: cat >>conftest.$ac_ext <<_ACEOF
4513: /* end confdefs.h. */
1.9 millert 4514:
4515: int
4516: main ()
4517: {
4518:
4519: ;
4520: return 0;
4521: }
4522: _ACEOF
4523: rm -f conftest.o conftest.obj
1.27 ! millert 4524: if { (ac_try="$ac_compile"
! 4525: case "(($ac_try" in
! 4526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4527: *) ac_try_echo=$ac_try;;
! 4528: esac
! 4529: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4530: (eval "$ac_compile") 2>&5
1.9 millert 4531: ac_status=$?
1.16 millert 4532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4533: (exit $ac_status); }; then
1.27 ! millert 4534: for ac_file in conftest.o conftest.obj conftest.*; do
! 4535: test -f "$ac_file" || continue;
1.9 millert 4536: case $ac_file in
1.27 ! millert 4537: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9 millert 4538: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4539: break;;
4540: esac
4541: done
1.1 millert 4542: else
1.9 millert 4543: echo "$as_me: failed program was:" >&5
1.16 millert 4544: sed 's/^/| /' conftest.$ac_ext >&5
4545:
4546: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4547: See \`config.log' for more details." >&5
4548: echo "$as_me: error: cannot compute suffix of object files: cannot compile
4549: See \`config.log' for more details." >&2;}
1.9 millert 4550: { (exit 1); exit 1; }; }
1.1 millert 4551: fi
1.9 millert 4552:
4553: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 4554: fi
1.27 ! millert 4555: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 4556: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9 millert 4557: OBJEXT=$ac_cv_objext
4558: ac_objext=$OBJEXT
1.27 ! millert 4559: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 4560: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9 millert 4561: if test "${ac_cv_c_compiler_gnu+set}" = set; then
4562: echo $ECHO_N "(cached) $ECHO_C" >&6
4563: else
4564: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4565: /* confdefs.h. */
4566: _ACEOF
4567: cat confdefs.h >>conftest.$ac_ext
4568: cat >>conftest.$ac_ext <<_ACEOF
4569: /* end confdefs.h. */
1.1 millert 4570:
1.9 millert 4571: int
4572: main ()
4573: {
4574: #ifndef __GNUC__
4575: choke me
4576: #endif
1.1 millert 4577:
1.9 millert 4578: ;
4579: return 0;
4580: }
4581: _ACEOF
4582: rm -f conftest.$ac_objext
1.27 ! millert 4583: if { (ac_try="$ac_compile"
! 4584: case "(($ac_try" in
! 4585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4586: *) ac_try_echo=$ac_try;;
! 4587: esac
! 4588: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4589: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4590: ac_status=$?
1.25 millert 4591: grep -v '^ *+' conftest.er1 >conftest.err
4592: rm -f conftest.er1
4593: cat conftest.err >&5
1.16 millert 4594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4595: (exit $ac_status); } && {
! 4596: test -z "$ac_c_werror_flag" ||
! 4597: test ! -s conftest.err
! 4598: } && test -s conftest.$ac_objext; then
1.9 millert 4599: ac_compiler_gnu=yes
4600: else
4601: echo "$as_me: failed program was:" >&5
1.16 millert 4602: sed 's/^/| /' conftest.$ac_ext >&5
4603:
1.27 ! millert 4604: ac_compiler_gnu=no
1.9 millert 4605: fi
1.27 ! millert 4606:
! 4607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4608: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609:
4610: fi
1.27 ! millert 4611: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 4612: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9 millert 4613: GCC=`test $ac_compiler_gnu = yes && echo yes`
4614: ac_test_CFLAGS=${CFLAGS+set}
4615: ac_save_CFLAGS=$CFLAGS
1.27 ! millert 4616: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 4617: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9 millert 4618: if test "${ac_cv_prog_cc_g+set}" = set; then
4619: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4620: else
1.27 ! millert 4621: ac_save_c_werror_flag=$ac_c_werror_flag
! 4622: ac_c_werror_flag=yes
! 4623: ac_cv_prog_cc_g=no
! 4624: CFLAGS="-g"
! 4625: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4626: /* confdefs.h. */
4627: _ACEOF
4628: cat confdefs.h >>conftest.$ac_ext
4629: cat >>conftest.$ac_ext <<_ACEOF
4630: /* end confdefs.h. */
1.9 millert 4631:
4632: int
4633: main ()
4634: {
4635:
4636: ;
4637: return 0;
4638: }
4639: _ACEOF
4640: rm -f conftest.$ac_objext
1.27 ! millert 4641: if { (ac_try="$ac_compile"
! 4642: case "(($ac_try" in
! 4643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4644: *) ac_try_echo=$ac_try;;
! 4645: esac
! 4646: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4647: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4648: ac_status=$?
1.25 millert 4649: grep -v '^ *+' conftest.er1 >conftest.err
4650: rm -f conftest.er1
4651: cat conftest.err >&5
1.16 millert 4652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4653: (exit $ac_status); } && {
! 4654: test -z "$ac_c_werror_flag" ||
! 4655: test ! -s conftest.err
! 4656: } && test -s conftest.$ac_objext; then
! 4657: ac_cv_prog_cc_g=yes
! 4658: else
! 4659: echo "$as_me: failed program was:" >&5
! 4660: sed 's/^/| /' conftest.$ac_ext >&5
! 4661:
! 4662: CFLAGS=""
! 4663: cat >conftest.$ac_ext <<_ACEOF
! 4664: /* confdefs.h. */
! 4665: _ACEOF
! 4666: cat confdefs.h >>conftest.$ac_ext
! 4667: cat >>conftest.$ac_ext <<_ACEOF
! 4668: /* end confdefs.h. */
! 4669:
! 4670: int
! 4671: main ()
! 4672: {
! 4673:
! 4674: ;
! 4675: return 0;
! 4676: }
! 4677: _ACEOF
! 4678: rm -f conftest.$ac_objext
! 4679: if { (ac_try="$ac_compile"
! 4680: case "(($ac_try" in
! 4681: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4682: *) ac_try_echo=$ac_try;;
! 4683: esac
! 4684: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4685: (eval "$ac_compile") 2>conftest.er1
1.25 millert 4686: ac_status=$?
1.27 ! millert 4687: grep -v '^ *+' conftest.er1 >conftest.err
! 4688: rm -f conftest.er1
! 4689: cat conftest.err >&5
1.25 millert 4690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4691: (exit $ac_status); } && {
! 4692: test -z "$ac_c_werror_flag" ||
! 4693: test ! -s conftest.err
! 4694: } && test -s conftest.$ac_objext; then
! 4695: :
! 4696: else
! 4697: echo "$as_me: failed program was:" >&5
! 4698: sed 's/^/| /' conftest.$ac_ext >&5
! 4699:
! 4700: ac_c_werror_flag=$ac_save_c_werror_flag
! 4701: CFLAGS="-g"
! 4702: cat >conftest.$ac_ext <<_ACEOF
! 4703: /* confdefs.h. */
! 4704: _ACEOF
! 4705: cat confdefs.h >>conftest.$ac_ext
! 4706: cat >>conftest.$ac_ext <<_ACEOF
! 4707: /* end confdefs.h. */
! 4708:
! 4709: int
! 4710: main ()
! 4711: {
! 4712:
! 4713: ;
! 4714: return 0;
! 4715: }
! 4716: _ACEOF
! 4717: rm -f conftest.$ac_objext
! 4718: if { (ac_try="$ac_compile"
! 4719: case "(($ac_try" in
! 4720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4721: *) ac_try_echo=$ac_try;;
! 4722: esac
! 4723: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4724: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4725: ac_status=$?
1.27 ! millert 4726: grep -v '^ *+' conftest.er1 >conftest.err
! 4727: rm -f conftest.er1
! 4728: cat conftest.err >&5
1.16 millert 4729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4730: (exit $ac_status); } && {
! 4731: test -z "$ac_c_werror_flag" ||
! 4732: test ! -s conftest.err
! 4733: } && test -s conftest.$ac_objext; then
1.1 millert 4734: ac_cv_prog_cc_g=yes
4735: else
1.9 millert 4736: echo "$as_me: failed program was:" >&5
1.16 millert 4737: sed 's/^/| /' conftest.$ac_ext >&5
4738:
1.27 ! millert 4739:
! 4740: fi
! 4741:
! 4742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4743: fi
! 4744:
! 4745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4746: fi
1.27 ! millert 4747:
! 4748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4749: ac_c_werror_flag=$ac_save_c_werror_flag
1.9 millert 4750: fi
1.27 ! millert 4751: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 4752: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.9 millert 4753: if test "$ac_test_CFLAGS" = set; then
4754: CFLAGS=$ac_save_CFLAGS
4755: elif test $ac_cv_prog_cc_g = yes; then
4756: if test "$GCC" = yes; then
4757: CFLAGS="-g -O2"
4758: else
4759: CFLAGS="-g"
4760: fi
4761: else
4762: if test "$GCC" = yes; then
4763: CFLAGS="-O2"
4764: else
4765: CFLAGS=
4766: fi
4767: fi
1.27 ! millert 4768: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 4769: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 4770: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.16 millert 4771: echo $ECHO_N "(cached) $ECHO_C" >&6
4772: else
1.27 ! millert 4773: ac_cv_prog_cc_c89=no
1.16 millert 4774: ac_save_CC=$CC
1.9 millert 4775: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4776: /* confdefs.h. */
1.9 millert 4777: _ACEOF
1.16 millert 4778: cat confdefs.h >>conftest.$ac_ext
4779: cat >>conftest.$ac_ext <<_ACEOF
4780: /* end confdefs.h. */
4781: #include <stdarg.h>
4782: #include <stdio.h>
4783: #include <sys/types.h>
4784: #include <sys/stat.h>
4785: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4786: struct buf { int x; };
4787: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788: static char *e (p, i)
4789: char **p;
4790: int i;
1.9 millert 4791: {
1.16 millert 4792: return p[i];
1.9 millert 4793: }
1.16 millert 4794: static char *f (char * (*g) (char **, int), char **p, ...)
4795: {
4796: char *s;
4797: va_list v;
4798: va_start (v,p);
4799: s = g (p, va_arg (v,int));
4800: va_end (v);
4801: return s;
4802: }
1.25 millert 4803:
4804: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4805: function prototypes and stuff, but not '\xHH' hex character constants.
4806: These don't provoke an error unfortunately, instead are silently treated
1.27 ! millert 4807: as 'x'. The following induces an error, until -std is added to get
1.25 millert 4808: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4809: array size at least. It's necessary to write '\x00'==0 to get something
1.27 ! millert 4810: that's true only with -std. */
1.25 millert 4811: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812:
1.27 ! millert 4813: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 4814: inside strings and character constants. */
! 4815: #define FOO(x) 'x'
! 4816: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 4817:
1.16 millert 4818: int test (int i, double x);
4819: struct s1 {int (*f) (int a);};
4820: struct s2 {int (*f) (double a);};
4821: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822: int argc;
4823: char **argv;
4824: int
4825: main ()
4826: {
4827: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828: ;
4829: return 0;
4830: }
4831: _ACEOF
1.27 ! millert 4832: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 4833: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.16 millert 4834: do
4835: CC="$ac_save_CC $ac_arg"
4836: rm -f conftest.$ac_objext
1.27 ! millert 4837: if { (ac_try="$ac_compile"
! 4838: case "(($ac_try" in
! 4839: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4840: *) ac_try_echo=$ac_try;;
! 4841: esac
! 4842: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4843: (eval "$ac_compile") 2>conftest.er1
1.16 millert 4844: ac_status=$?
1.25 millert 4845: grep -v '^ *+' conftest.er1 >conftest.err
4846: rm -f conftest.er1
4847: cat conftest.err >&5
1.16 millert 4848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4849: (exit $ac_status); } && {
! 4850: test -z "$ac_c_werror_flag" ||
! 4851: test ! -s conftest.err
! 4852: } && test -s conftest.$ac_objext; then
! 4853: ac_cv_prog_cc_c89=$ac_arg
1.16 millert 4854: else
4855: echo "$as_me: failed program was:" >&5
4856: sed 's/^/| /' conftest.$ac_ext >&5
4857:
1.27 ! millert 4858:
1.16 millert 4859: fi
1.27 ! millert 4860:
! 4861: rm -f core conftest.err conftest.$ac_objext
! 4862: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.16 millert 4863: done
1.27 ! millert 4864: rm -f conftest.$ac_ext
1.16 millert 4865: CC=$ac_save_CC
4866:
4867: fi
1.27 ! millert 4868: # AC_CACHE_VAL
! 4869: case "x$ac_cv_prog_cc_c89" in
! 4870: x)
! 4871: { echo "$as_me:$LINENO: result: none needed" >&5
! 4872: echo "${ECHO_T}none needed" >&6; } ;;
! 4873: xno)
! 4874: { echo "$as_me:$LINENO: result: unsupported" >&5
! 4875: echo "${ECHO_T}unsupported" >&6; } ;;
1.16 millert 4876: *)
1.27 ! millert 4877: CC="$CC $ac_cv_prog_cc_c89"
! 4878: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 4879: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.16 millert 4880: esac
4881:
1.27 ! millert 4882:
! 4883: ac_ext=c
! 4884: ac_cpp='$CPP $CPPFLAGS'
! 4885: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4886: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4887: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4888:
! 4889:
! 4890: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
! 4891: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
! 4892: if test "${ac_cv_search_strerror+set}" = set; then
! 4893: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4894: else
! 4895: ac_func_search_save_LIBS=$LIBS
1.16 millert 4896: cat >conftest.$ac_ext <<_ACEOF
4897: /* confdefs.h. */
4898: _ACEOF
4899: cat confdefs.h >>conftest.$ac_ext
4900: cat >>conftest.$ac_ext <<_ACEOF
4901: /* end confdefs.h. */
1.27 ! millert 4902:
! 4903: /* Override any GCC internal prototype to avoid an error.
! 4904: Use char because int might match the return type of a GCC
! 4905: builtin and then its argument prototype would still apply. */
! 4906: #ifdef __cplusplus
! 4907: extern "C"
! 4908: #endif
! 4909: char strerror ();
1.16 millert 4910: int
4911: main ()
4912: {
1.27 ! millert 4913: return strerror ();
1.16 millert 4914: ;
4915: return 0;
4916: }
4917: _ACEOF
1.27 ! millert 4918: for ac_lib in '' cposix; do
! 4919: if test -z "$ac_lib"; then
! 4920: ac_res="none required"
! 4921: else
! 4922: ac_res=-l$ac_lib
! 4923: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 4924: fi
! 4925: rm -f conftest.$ac_objext conftest$ac_exeext
! 4926: if { (ac_try="$ac_link"
! 4927: case "(($ac_try" in
! 4928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4929: *) ac_try_echo=$ac_try;;
! 4930: esac
! 4931: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4932: (eval "$ac_link") 2>conftest.er1
1.16 millert 4933: ac_status=$?
1.25 millert 4934: grep -v '^ *+' conftest.er1 >conftest.err
4935: rm -f conftest.er1
4936: cat conftest.err >&5
1.16 millert 4937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 4938: (exit $ac_status); } && {
! 4939: test -z "$ac_c_werror_flag" ||
! 4940: test ! -s conftest.err
! 4941: } && test -s conftest$ac_exeext &&
! 4942: $as_test_x conftest$ac_exeext; then
! 4943: ac_cv_search_strerror=$ac_res
1.9 millert 4944: else
4945: echo "$as_me: failed program was:" >&5
1.16 millert 4946: sed 's/^/| /' conftest.$ac_ext >&5
4947:
1.27 ! millert 4948:
! 4949: fi
! 4950:
! 4951: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4952: conftest$ac_exeext
! 4953: if test "${ac_cv_search_strerror+set}" = set; then
! 4954: break
1.9 millert 4955: fi
1.27 ! millert 4956: done
1.16 millert 4957: if test "${ac_cv_search_strerror+set}" = set; then
1.27 ! millert 4958: :
1.9 millert 4959: else
1.27 ! millert 4960: ac_cv_search_strerror=no
1.16 millert 4961: fi
1.27 ! millert 4962: rm conftest.$ac_ext
1.16 millert 4963: LIBS=$ac_func_search_save_LIBS
1.9 millert 4964: fi
1.27 ! millert 4965: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
! 4966: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
! 4967: ac_res=$ac_cv_search_strerror
! 4968: if test "$ac_res" != no; then
! 4969: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9 millert 4970:
4971: fi
4972:
4973: ac_ext=c
4974: ac_cpp='$CPP $CPPFLAGS'
4975: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27 ! millert 4978: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 4979: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 millert 4980: # On Suns, sometimes $CPP names a directory.
4981: if test -n "$CPP" && test -d "$CPP"; then
4982: CPP=
4983: fi
4984: if test -z "$CPP"; then
1.9 millert 4985: if test "${ac_cv_prog_CPP+set}" = set; then
4986: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4987: else
1.9 millert 4988: # Double quotes because CPP needs to be expanded
4989: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4990: do
4991: ac_preproc_ok=false
4992: for ac_c_preproc_warn_flag in '' yes
4993: do
4994: # Use a header file that comes with gcc, so configuring glibc
4995: # with a fresh cross-compiler works.
1.16 millert 4996: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997: # <limits.h> exists even on freestanding compilers.
1.1 millert 4998: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 4999: # not just through cpp. "Syntax error" is here to catch this case.
5000: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5001: /* confdefs.h. */
5002: _ACEOF
5003: cat confdefs.h >>conftest.$ac_ext
5004: cat >>conftest.$ac_ext <<_ACEOF
5005: /* end confdefs.h. */
5006: #ifdef __STDC__
5007: # include <limits.h>
5008: #else
5009: # include <assert.h>
5010: #endif
1.25 millert 5011: Syntax error
1.9 millert 5012: _ACEOF
1.27 ! millert 5013: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5014: case "(($ac_try" in
! 5015: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5016: *) ac_try_echo=$ac_try;;
! 5017: esac
! 5018: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5019: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5020: ac_status=$?
1.16 millert 5021: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5022: rm -f conftest.er1
5023: cat conftest.err >&5
1.16 millert 5024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 5025: (exit $ac_status); } >/dev/null && {
! 5026: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5027: test ! -s conftest.err
! 5028: }; then
1.1 millert 5029: :
5030: else
1.9 millert 5031: echo "$as_me: failed program was:" >&5
1.16 millert 5032: sed 's/^/| /' conftest.$ac_ext >&5
5033:
1.9 millert 5034: # Broken: fails on valid input.
5035: continue
5036: fi
1.27 ! millert 5037:
1.9 millert 5038: rm -f conftest.err conftest.$ac_ext
5039:
1.27 ! millert 5040: # OK, works on sane cases. Now check whether nonexistent headers
1.9 millert 5041: # can be detected and how.
5042: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5043: /* confdefs.h. */
5044: _ACEOF
5045: cat confdefs.h >>conftest.$ac_ext
5046: cat >>conftest.$ac_ext <<_ACEOF
5047: /* end confdefs.h. */
1.9 millert 5048: #include <ac_nonexistent.h>
5049: _ACEOF
1.27 ! millert 5050: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5051: case "(($ac_try" in
! 5052: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5053: *) ac_try_echo=$ac_try;;
! 5054: esac
! 5055: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5056: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5057: ac_status=$?
1.16 millert 5058: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5059: rm -f conftest.er1
5060: cat conftest.err >&5
1.16 millert 5061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 5062: (exit $ac_status); } >/dev/null && {
! 5063: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5064: test ! -s conftest.err
! 5065: }; then
1.9 millert 5066: # Broken: success on invalid input.
5067: continue
5068: else
5069: echo "$as_me: failed program was:" >&5
1.16 millert 5070: sed 's/^/| /' conftest.$ac_ext >&5
5071:
1.9 millert 5072: # Passes both tests.
5073: ac_preproc_ok=:
5074: break
5075: fi
1.27 ! millert 5076:
1.9 millert 5077: rm -f conftest.err conftest.$ac_ext
5078:
5079: done
5080: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081: rm -f conftest.err conftest.$ac_ext
5082: if $ac_preproc_ok; then
5083: break
5084: fi
5085:
5086: done
5087: ac_cv_prog_CPP=$CPP
5088:
5089: fi
5090: CPP=$ac_cv_prog_CPP
5091: else
5092: ac_cv_prog_CPP=$CPP
5093: fi
1.27 ! millert 5094: { echo "$as_me:$LINENO: result: $CPP" >&5
! 5095: echo "${ECHO_T}$CPP" >&6; }
1.9 millert 5096: ac_preproc_ok=false
5097: for ac_c_preproc_warn_flag in '' yes
5098: do
5099: # Use a header file that comes with gcc, so configuring glibc
5100: # with a fresh cross-compiler works.
1.16 millert 5101: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102: # <limits.h> exists even on freestanding compilers.
1.9 millert 5103: # On the NeXT, cc -E runs the code through the compiler's parser,
5104: # not just through cpp. "Syntax error" is here to catch this case.
5105: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5106: /* confdefs.h. */
5107: _ACEOF
5108: cat confdefs.h >>conftest.$ac_ext
5109: cat >>conftest.$ac_ext <<_ACEOF
5110: /* end confdefs.h. */
5111: #ifdef __STDC__
5112: # include <limits.h>
5113: #else
5114: # include <assert.h>
5115: #endif
1.25 millert 5116: Syntax error
1.9 millert 5117: _ACEOF
1.27 ! millert 5118: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5119: case "(($ac_try" in
! 5120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5121: *) ac_try_echo=$ac_try;;
! 5122: esac
! 5123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5124: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5125: ac_status=$?
1.16 millert 5126: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5127: rm -f conftest.er1
5128: cat conftest.err >&5
1.16 millert 5129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 5130: (exit $ac_status); } >/dev/null && {
! 5131: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5132: test ! -s conftest.err
! 5133: }; then
1.1 millert 5134: :
5135: else
1.9 millert 5136: echo "$as_me: failed program was:" >&5
1.16 millert 5137: sed 's/^/| /' conftest.$ac_ext >&5
5138:
1.9 millert 5139: # Broken: fails on valid input.
5140: continue
1.1 millert 5141: fi
1.27 ! millert 5142:
1.9 millert 5143: rm -f conftest.err conftest.$ac_ext
5144:
1.27 ! millert 5145: # OK, works on sane cases. Now check whether nonexistent headers
1.9 millert 5146: # can be detected and how.
5147: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5148: /* confdefs.h. */
5149: _ACEOF
5150: cat confdefs.h >>conftest.$ac_ext
5151: cat >>conftest.$ac_ext <<_ACEOF
5152: /* end confdefs.h. */
1.9 millert 5153: #include <ac_nonexistent.h>
5154: _ACEOF
1.27 ! millert 5155: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5156: case "(($ac_try" in
! 5157: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5158: *) ac_try_echo=$ac_try;;
! 5159: esac
! 5160: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5161: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5162: ac_status=$?
1.16 millert 5163: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5164: rm -f conftest.er1
5165: cat conftest.err >&5
1.16 millert 5166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 5167: (exit $ac_status); } >/dev/null && {
! 5168: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5169: test ! -s conftest.err
! 5170: }; then
1.9 millert 5171: # Broken: success on invalid input.
5172: continue
1.1 millert 5173: else
1.9 millert 5174: echo "$as_me: failed program was:" >&5
1.16 millert 5175: sed 's/^/| /' conftest.$ac_ext >&5
5176:
1.9 millert 5177: # Passes both tests.
5178: ac_preproc_ok=:
5179: break
1.1 millert 5180: fi
1.27 ! millert 5181:
1.9 millert 5182: rm -f conftest.err conftest.$ac_ext
1.1 millert 5183:
1.9 millert 5184: done
5185: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186: rm -f conftest.err conftest.$ac_ext
5187: if $ac_preproc_ok; then
5188: :
1.1 millert 5189: else
1.16 millert 5190: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5191: See \`config.log' for more details." >&5
5192: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5193: See \`config.log' for more details." >&2;}
1.9 millert 5194: { (exit 1); exit 1; }; }
1.1 millert 5195: fi
5196:
1.9 millert 5197: ac_ext=c
5198: ac_cpp='$CPP $CPPFLAGS'
5199: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 5202:
1.16 millert 5203:
1.23 millert 5204: ac_aux_dir=
1.27 ! millert 5205: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 5206: if test -f "$ac_dir/install-sh"; then
1.23 millert 5207: ac_aux_dir=$ac_dir
5208: ac_install_sh="$ac_aux_dir/install-sh -c"
5209: break
1.27 ! millert 5210: elif test -f "$ac_dir/install.sh"; then
1.23 millert 5211: ac_aux_dir=$ac_dir
5212: ac_install_sh="$ac_aux_dir/install.sh -c"
5213: break
1.27 ! millert 5214: elif test -f "$ac_dir/shtool"; then
1.23 millert 5215: ac_aux_dir=$ac_dir
5216: ac_install_sh="$ac_aux_dir/shtool install -c"
5217: break
5218: fi
5219: done
5220: if test -z "$ac_aux_dir"; then
1.27 ! millert 5221: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 5222: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23 millert 5223: { (exit 1); exit 1; }; }
1.1 millert 5224: fi
1.27 ! millert 5225:
! 5226: # These three variables are undocumented and unsupported,
! 5227: # and are intended to be withdrawn in a future Autoconf release.
! 5228: # They can cause serious problems if a builder's source tree is in a directory
! 5229: # whose full name contains unusual characters.
! 5230: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 5231: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 5232: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 5233:
1.23 millert 5234:
5235: # Make sure we can run config.sub.
1.27 ! millert 5236: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 5237: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 5238: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23 millert 5239: { (exit 1); exit 1; }; }
1.1 millert 5240:
1.27 ! millert 5241: { echo "$as_me:$LINENO: checking build system type" >&5
! 5242: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23 millert 5243: if test "${ac_cv_build+set}" = set; then
1.9 millert 5244: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5245: else
1.27 ! millert 5246: ac_build_alias=$build_alias
! 5247: test "x$ac_build_alias" = x &&
! 5248: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 5249: test "x$ac_build_alias" = x &&
1.23 millert 5250: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5251: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5252: { (exit 1); exit 1; }; }
1.27 ! millert 5253: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 5254: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 5255: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23 millert 5256: { (exit 1); exit 1; }; }
1.9 millert 5257:
1.1 millert 5258: fi
1.27 ! millert 5259: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 5260: echo "${ECHO_T}$ac_cv_build" >&6; }
! 5261: case $ac_cv_build in
! 5262: *-*-*) ;;
! 5263: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 5264: echo "$as_me: error: invalid value of canonical build" >&2;}
! 5265: { (exit 1); exit 1; }; };;
! 5266: esac
1.23 millert 5267: build=$ac_cv_build
1.27 ! millert 5268: ac_save_IFS=$IFS; IFS='-'
! 5269: set x $ac_cv_build
! 5270: shift
! 5271: build_cpu=$1
! 5272: build_vendor=$2
! 5273: shift; shift
! 5274: # Remember, the first character of IFS is used to create $*,
! 5275: # except with old shells:
! 5276: build_os=$*
! 5277: IFS=$ac_save_IFS
! 5278: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23 millert 5279:
5280:
1.27 ! millert 5281: { echo "$as_me:$LINENO: checking host system type" >&5
! 5282: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23 millert 5283: if test "${ac_cv_host+set}" = set; then
5284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5285: else
1.27 ! millert 5286: if test "x$host_alias" = x; then
! 5287: ac_cv_host=$ac_cv_build
! 5288: else
! 5289: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 5290: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 5291: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23 millert 5292: { (exit 1); exit 1; }; }
1.27 ! millert 5293: fi
1.23 millert 5294:
1.1 millert 5295: fi
1.27 ! millert 5296: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 5297: echo "${ECHO_T}$ac_cv_host" >&6; }
! 5298: case $ac_cv_host in
! 5299: *-*-*) ;;
! 5300: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 5301: echo "$as_me: error: invalid value of canonical host" >&2;}
! 5302: { (exit 1); exit 1; }; };;
! 5303: esac
1.23 millert 5304: host=$ac_cv_host
1.27 ! millert 5305: ac_save_IFS=$IFS; IFS='-'
! 5306: set x $ac_cv_host
! 5307: shift
! 5308: host_cpu=$1
! 5309: host_vendor=$2
! 5310: shift; shift
! 5311: # Remember, the first character of IFS is used to create $*,
! 5312: # except with old shells:
! 5313: host_os=$*
! 5314: IFS=$ac_save_IFS
! 5315: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 millert 5316:
1.23 millert 5317:
1.27 ! millert 5318: { echo "$as_me:$LINENO: checking target system type" >&5
! 5319: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.23 millert 5320: if test "${ac_cv_target+set}" = set; then
5321: echo $ECHO_N "(cached) $ECHO_C" >&6
5322: else
1.27 ! millert 5323: if test "x$target_alias" = x; then
! 5324: ac_cv_target=$ac_cv_host
! 5325: else
! 5326: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
! 5327: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 5328: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.23 millert 5329: { (exit 1); exit 1; }; }
1.27 ! millert 5330: fi
1.23 millert 5331:
5332: fi
1.27 ! millert 5333: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 5334: echo "${ECHO_T}$ac_cv_target" >&6; }
! 5335: case $ac_cv_target in
! 5336: *-*-*) ;;
! 5337: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 5338: echo "$as_me: error: invalid value of canonical target" >&2;}
! 5339: { (exit 1); exit 1; }; };;
! 5340: esac
1.23 millert 5341: target=$ac_cv_target
1.27 ! millert 5342: ac_save_IFS=$IFS; IFS='-'
! 5343: set x $ac_cv_target
! 5344: shift
! 5345: target_cpu=$1
! 5346: target_vendor=$2
! 5347: shift; shift
! 5348: # Remember, the first character of IFS is used to create $*,
! 5349: # except with old shells:
! 5350: target_os=$*
! 5351: IFS=$ac_save_IFS
! 5352: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.23 millert 5353:
5354:
5355: # The aliases save the names the user supplied, while $host etc.
5356: # will get canonicalized.
5357: test -n "$target_alias" &&
5358: test "$program_prefix$program_suffix$program_transform_name" = \
5359: NONENONEs,x,x, &&
5360: program_prefix=${target_alias}-
1.27 ! millert 5361: # Check whether --enable-static was given.
! 5362: if test "${enable_static+set}" = set; then
! 5363: enableval=$enable_static; p=${PACKAGE-default}
! 5364: case $enableval in
! 5365: yes) enable_static=yes ;;
! 5366: no) enable_static=no ;;
! 5367: *)
! 5368: enable_static=no
! 5369: # Look at the argument we got. We use all the common list separators.
! 5370: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5371: for pkg in $enableval; do
! 5372: IFS="$lt_save_ifs"
! 5373: if test "X$pkg" = "X$p"; then
! 5374: enable_static=yes
! 5375: fi
! 5376: done
! 5377: IFS="$lt_save_ifs"
! 5378: ;;
! 5379: esac
! 5380: else
! 5381: enable_static=no
! 5382: fi
1.23 millert 5383:
5384:
5385:
1.27 ! millert 5386: # Check whether --enable-shared was given.
! 5387: if test "${enable_shared+set}" = set; then
! 5388: enableval=$enable_shared; p=${PACKAGE-default}
! 5389: case $enableval in
! 5390: yes) enable_shared=yes ;;
! 5391: no) enable_shared=no ;;
! 5392: *)
! 5393: enable_shared=no
! 5394: # Look at the argument we got. We use all the common list separators.
! 5395: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5396: for pkg in $enableval; do
! 5397: IFS="$lt_save_ifs"
! 5398: if test "X$pkg" = "X$p"; then
! 5399: enable_shared=yes
! 5400: fi
! 5401: done
! 5402: IFS="$lt_save_ifs"
! 5403: ;;
! 5404: esac
! 5405: else
! 5406: enable_shared=yes
! 5407: fi
1.25 millert 5408:
5409:
1.27 ! millert 5410: # Check whether --enable-fast-install was given.
! 5411: if test "${enable_fast_install+set}" = set; then
! 5412: enableval=$enable_fast_install; p=${PACKAGE-default}
! 5413: case $enableval in
! 5414: yes) enable_fast_install=yes ;;
! 5415: no) enable_fast_install=no ;;
! 5416: *)
! 5417: enable_fast_install=no
! 5418: # Look at the argument we got. We use all the common list separators.
! 5419: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5420: for pkg in $enableval; do
! 5421: IFS="$lt_save_ifs"
! 5422: if test "X$pkg" = "X$p"; then
! 5423: enable_fast_install=yes
! 5424: fi
! 5425: done
! 5426: IFS="$lt_save_ifs"
! 5427: ;;
! 5428: esac
! 5429: else
! 5430: enable_fast_install=yes
! 5431: fi
1.25 millert 5432:
5433:
1.27 ! millert 5434: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 5435: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23 millert 5436: if test "${lt_cv_path_SED+set}" = set; then
5437: echo $ECHO_N "(cached) $ECHO_C" >&6
5438: else
5439: # Loop through the user's path and test for sed and gsed.
5440: # Then use that list of sed's as ones to test for truncation.
5441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442: for as_dir in $PATH
5443: do
5444: IFS=$as_save_IFS
5445: test -z "$as_dir" && as_dir=.
5446: for lt_ac_prog in sed gsed; do
5447: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 5448: 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 5449: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5450: fi
5451: done
5452: done
5453: done
1.27 ! millert 5454: IFS=$as_save_IFS
1.23 millert 5455: lt_ac_max=0
5456: lt_ac_count=0
5457: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5458: # along with /bin/sed that truncates output.
5459: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27 ! millert 5460: test ! -f $lt_ac_sed && continue
1.23 millert 5461: cat /dev/null > conftest.in
5462: lt_ac_count=0
1.27 ! millert 5463: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23 millert 5464: # Check for GNU sed and select it if it is found.
5465: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5466: lt_cv_path_SED=$lt_ac_sed
5467: break
5468: fi
5469: while true; do
5470: cat conftest.in conftest.in >conftest.tmp
5471: mv conftest.tmp conftest.in
5472: cp conftest.in conftest.nl
1.27 ! millert 5473: echo >>conftest.nl
1.23 millert 5474: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5475: cmp -s conftest.out conftest.nl || break
5476: # 10000 chars as input seems more than enough
5477: test $lt_ac_count -gt 10 && break
5478: lt_ac_count=`expr $lt_ac_count + 1`
5479: if test $lt_ac_count -gt $lt_ac_max; then
5480: lt_ac_max=$lt_ac_count
5481: lt_cv_path_SED=$lt_ac_sed
5482: fi
5483: done
5484: done
5485:
5486: fi
5487:
1.25 millert 5488: SED=$lt_cv_path_SED
5489:
1.27 ! millert 5490: { echo "$as_me:$LINENO: result: $SED" >&5
! 5491: echo "${ECHO_T}$SED" >&6; }
1.23 millert 5492:
1.27 ! millert 5493: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 5494: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 5495: if test "${ac_cv_path_GREP+set}" = set; then
! 5496: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5497: else
! 5498: # Extract the first word of "grep ggrep" to use in msg output
! 5499: if test -z "$GREP"; then
! 5500: set dummy grep ggrep; ac_prog_name=$2
! 5501: if test "${ac_cv_path_GREP+set}" = set; then
! 5502: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5503: else
! 5504: ac_path_GREP_found=false
! 5505: # Loop through the user's path and test for each of PROGNAME-LIST
! 5506: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5507: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 5508: do
! 5509: IFS=$as_save_IFS
! 5510: test -z "$as_dir" && as_dir=.
! 5511: for ac_prog in grep ggrep; do
! 5512: for ac_exec_ext in '' $ac_executable_extensions; do
! 5513: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 5514: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 5515: # Check for GNU ac_path_GREP and select it if it is found.
! 5516: # Check for GNU $ac_path_GREP
! 5517: case `"$ac_path_GREP" --version 2>&1` in
! 5518: *GNU*)
! 5519: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 5520: *)
! 5521: ac_count=0
! 5522: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 5523: while :
! 5524: do
! 5525: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 5526: mv "conftest.tmp" "conftest.in"
! 5527: cp "conftest.in" "conftest.nl"
! 5528: echo 'GREP' >> "conftest.nl"
! 5529: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 5530: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 5531: ac_count=`expr $ac_count + 1`
! 5532: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 5533: # Best one so far, save it but keep looking for a better one
! 5534: ac_cv_path_GREP="$ac_path_GREP"
! 5535: ac_path_GREP_max=$ac_count
! 5536: fi
! 5537: # 10*(2^10) chars as input seems more than enough
! 5538: test $ac_count -gt 10 && break
! 5539: done
! 5540: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 5541: esac
1.25 millert 5542:
5543:
1.27 ! millert 5544: $ac_path_GREP_found && break 3
! 5545: done
! 5546: done
1.25 millert 5547:
1.27 ! millert 5548: done
! 5549: IFS=$as_save_IFS
1.25 millert 5550:
5551:
1.27 ! millert 5552: fi
1.25 millert 5553:
1.27 ! millert 5554: GREP="$ac_cv_path_GREP"
! 5555: if test -z "$GREP"; then
! 5556: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 5557: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 5558: { (exit 1); exit 1; }; }
! 5559: fi
1.25 millert 5560:
1.27 ! millert 5561: else
! 5562: ac_cv_path_GREP=$GREP
! 5563: fi
1.25 millert 5564:
5565:
1.27 ! millert 5566: fi
! 5567: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 5568: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 5569: GREP="$ac_cv_path_GREP"
1.25 millert 5570:
5571:
1.27 ! millert 5572: { echo "$as_me:$LINENO: checking for egrep" >&5
! 5573: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 5574: if test "${ac_cv_path_EGREP+set}" = set; then
! 5575: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5576: else
! 5577: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 5578: then ac_cv_path_EGREP="$GREP -E"
! 5579: else
! 5580: # Extract the first word of "egrep" to use in msg output
! 5581: if test -z "$EGREP"; then
! 5582: set dummy egrep; ac_prog_name=$2
! 5583: if test "${ac_cv_path_EGREP+set}" = set; then
1.23 millert 5584: echo $ECHO_N "(cached) $ECHO_C" >&6
5585: else
1.27 ! millert 5586: ac_path_EGREP_found=false
! 5587: # Loop through the user's path and test for each of PROGNAME-LIST
! 5588: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5589: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 5590: do
! 5591: IFS=$as_save_IFS
! 5592: test -z "$as_dir" && as_dir=.
! 5593: for ac_prog in egrep; do
! 5594: for ac_exec_ext in '' $ac_executable_extensions; do
! 5595: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 5596: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 5597: # Check for GNU ac_path_EGREP and select it if it is found.
! 5598: # Check for GNU $ac_path_EGREP
! 5599: case `"$ac_path_EGREP" --version 2>&1` in
! 5600: *GNU*)
! 5601: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 5602: *)
! 5603: ac_count=0
! 5604: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 5605: while :
! 5606: do
! 5607: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 5608: mv "conftest.tmp" "conftest.in"
! 5609: cp "conftest.in" "conftest.nl"
! 5610: echo 'EGREP' >> "conftest.nl"
! 5611: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 5612: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 5613: ac_count=`expr $ac_count + 1`
! 5614: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 5615: # Best one so far, save it but keep looking for a better one
! 5616: ac_cv_path_EGREP="$ac_path_EGREP"
! 5617: ac_path_EGREP_max=$ac_count
1.23 millert 5618: fi
1.27 ! millert 5619: # 10*(2^10) chars as input seems more than enough
! 5620: test $ac_count -gt 10 && break
! 5621: done
! 5622: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 5623: esac
1.25 millert 5624:
5625:
1.27 ! millert 5626: $ac_path_EGREP_found && break 3
! 5627: done
! 5628: done
1.25 millert 5629:
1.27 ! millert 5630: done
! 5631: IFS=$as_save_IFS
1.25 millert 5632:
5633:
1.27 ! millert 5634: fi
1.25 millert 5635:
1.27 ! millert 5636: EGREP="$ac_cv_path_EGREP"
! 5637: if test -z "$EGREP"; then
! 5638: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 5639: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 5640: { (exit 1); exit 1; }; }
! 5641: fi
1.25 millert 5642:
1.27 ! millert 5643: else
! 5644: ac_cv_path_EGREP=$EGREP
! 5645: fi
1.25 millert 5646:
5647:
1.27 ! millert 5648: fi
! 5649: fi
! 5650: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 5651: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 5652: EGREP="$ac_cv_path_EGREP"
1.25 millert 5653:
5654:
5655:
1.27 ! millert 5656: # Check whether --with-gnu-ld was given.
1.23 millert 5657: if test "${with_gnu_ld+set}" = set; then
1.27 ! millert 5658: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23 millert 5659: else
5660: with_gnu_ld=no
1.27 ! millert 5661: fi
! 5662:
1.23 millert 5663: ac_prog=ld
5664: if test "$GCC" = yes; then
5665: # Check if gcc -print-prog-name=ld gives a path.
1.27 ! millert 5666: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 5667: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23 millert 5668: case $host in
5669: *-*-mingw*)
5670: # gcc leaves a trailing carriage return which upsets mingw
5671: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5672: *)
5673: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5674: esac
5675: case $ac_prog in
5676: # Accept absolute paths.
5677: [\\/]* | ?:[\\/]*)
5678: re_direlt='/[^/][^/]*/\.\./'
1.25 millert 5679: # Canonicalize the pathname of ld
1.27 ! millert 5680: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
! 5681: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 5682: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23 millert 5683: done
5684: test -z "$LD" && LD="$ac_prog"
5685: ;;
5686: "")
5687: # If it fails, then pretend we aren't using GCC.
5688: ac_prog=ld
5689: ;;
5690: *)
5691: # If it is relative, then search for the first ld in PATH.
5692: with_gnu_ld=unknown
5693: ;;
5694: esac
5695: elif test "$with_gnu_ld" = yes; then
1.27 ! millert 5696: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 5697: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23 millert 5698: else
1.27 ! millert 5699: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 5700: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23 millert 5701: fi
5702: if test "${lt_cv_path_LD+set}" = set; then
5703: echo $ECHO_N "(cached) $ECHO_C" >&6
5704: else
5705: if test -z "$LD"; then
5706: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5707: for ac_dir in $PATH; do
5708: IFS="$lt_save_ifs"
5709: test -z "$ac_dir" && ac_dir=.
5710: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5711: lt_cv_path_LD="$ac_dir/$ac_prog"
5712: # Check to see if the program is GNU ld. I'd rather use --version,
1.27 ! millert 5713: # but apparently some variants of GNU ld only accept -v.
1.23 millert 5714: # Break only if it was the GNU/non-GNU ld that we prefer.
5715: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5716: *GNU* | *'with BFD'*)
5717: test "$with_gnu_ld" != no && break
5718: ;;
5719: *)
5720: test "$with_gnu_ld" != yes && break
5721: ;;
5722: esac
5723: fi
5724: done
5725: IFS="$lt_save_ifs"
5726: else
5727: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5728: fi
5729: fi
5730:
5731: LD="$lt_cv_path_LD"
5732: if test -n "$LD"; then
1.27 ! millert 5733: { echo "$as_me:$LINENO: result: $LD" >&5
! 5734: echo "${ECHO_T}$LD" >&6; }
1.23 millert 5735: else
1.27 ! millert 5736: { echo "$as_me:$LINENO: result: no" >&5
! 5737: echo "${ECHO_T}no" >&6; }
1.23 millert 5738: fi
5739: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5740: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5741: { (exit 1); exit 1; }; }
1.27 ! millert 5742: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 5743: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23 millert 5744: if test "${lt_cv_prog_gnu_ld+set}" = set; then
5745: echo $ECHO_N "(cached) $ECHO_C" >&6
5746: else
1.27 ! millert 5747: # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25 millert 5748: case `$LD -v 2>&1 </dev/null` in
1.23 millert 5749: *GNU* | *'with BFD'*)
5750: lt_cv_prog_gnu_ld=yes
5751: ;;
5752: *)
5753: lt_cv_prog_gnu_ld=no
5754: ;;
5755: esac
5756: fi
1.27 ! millert 5757: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 5758: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23 millert 5759: with_gnu_ld=$lt_cv_prog_gnu_ld
5760:
5761:
1.27 ! millert 5762: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 5763: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
! 5764: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 5765: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5766: else
! 5767: lt_cv_ld_reload_flag='-r'
! 5768: fi
! 5769: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 5770: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
! 5771: reload_flag=$lt_cv_ld_reload_flag
! 5772: case $reload_flag in
! 5773: "" | " "*) ;;
! 5774: *) reload_flag=" $reload_flag" ;;
! 5775: esac
! 5776: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5777: case $host_os in
! 5778: darwin*)
! 5779: if test "$GCC" = yes; then
! 5780: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
! 5781: else
! 5782: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5783: fi
! 5784: ;;
! 5785: esac
1.25 millert 5786:
1.27 ! millert 5787: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 5788: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23 millert 5789: if test "${lt_cv_path_NM+set}" = set; then
5790: echo $ECHO_N "(cached) $ECHO_C" >&6
5791: else
5792: if test -n "$NM"; then
5793: # Let the user override the test.
5794: lt_cv_path_NM="$NM"
5795: else
1.27 ! millert 5796: lt_nm_to_check="${ac_tool_prefix}nm"
! 5797: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
! 5798: lt_nm_to_check="$lt_nm_to_check nm"
! 5799: fi
! 5800: for lt_tmp_nm in $lt_nm_to_check; do
! 5801: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5802: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
! 5803: IFS="$lt_save_ifs"
! 5804: test -z "$ac_dir" && ac_dir=.
! 5805: tmp_nm="$ac_dir/$lt_tmp_nm"
! 5806: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 5807: # Check to see if the nm accepts a BSD-compat flag.
! 5808: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 5809: # nm: unknown option "B" ignored
! 5810: # Tru64's nm complains that /dev/null is an invalid object file
! 5811: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
! 5812: */dev/null* | *'Invalid file or object type'*)
! 5813: lt_cv_path_NM="$tmp_nm -B"
1.23 millert 5814: break
5815: ;;
5816: *)
1.27 ! millert 5817: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
! 5818: */dev/null*)
! 5819: lt_cv_path_NM="$tmp_nm -p"
! 5820: break
! 5821: ;;
! 5822: *)
! 5823: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 5824: continue # so that we can try to find one that supports BSD flags
! 5825: ;;
! 5826: esac
1.23 millert 5827: ;;
5828: esac
1.27 ! millert 5829: fi
! 5830: done
! 5831: IFS="$lt_save_ifs"
1.23 millert 5832: done
5833: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5834: fi
5835: fi
1.27 ! millert 5836: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 5837: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23 millert 5838: NM="$lt_cv_path_NM"
1.25 millert 5839:
1.27 ! millert 5840: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 5841: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23 millert 5842: LN_S=$as_ln_s
5843: if test "$LN_S" = "ln -s"; then
1.27 ! millert 5844: { echo "$as_me:$LINENO: result: yes" >&5
! 5845: echo "${ECHO_T}yes" >&6; }
1.25 millert 5846: else
1.27 ! millert 5847: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 5848: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25 millert 5849: fi
5850:
1.27 ! millert 5851: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
! 5852: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23 millert 5853: if test "${lt_cv_deplibs_check_method+set}" = set; then
5854: echo $ECHO_N "(cached) $ECHO_C" >&6
5855: else
5856: lt_cv_file_magic_cmd='$MAGIC_CMD'
5857: lt_cv_file_magic_test_file=
5858: lt_cv_deplibs_check_method='unknown'
5859: # Need to set the preceding variable on all platforms that support
5860: # interlibrary dependencies.
5861: # 'none' -- dependencies not supported.
5862: # `unknown' -- same as none, but documents that we really don't know.
5863: # 'pass_all' -- all dependencies passed with no checks.
5864: # 'test_compile' -- check by making test program.
5865: # 'file_magic [[regex]]' -- check by looking for files in library path
5866: # which responds to the $file_magic_cmd with a given extended regex.
5867: # If you have `file' or equivalent on your system and you're not sure
5868: # whether `pass_all' will *always* work, you probably want this one.
5869:
5870: case $host_os in
5871: aix4* | aix5*)
5872: lt_cv_deplibs_check_method=pass_all
5873: ;;
5874:
5875: beos*)
5876: lt_cv_deplibs_check_method=pass_all
5877: ;;
5878:
1.25 millert 5879: bsdi[45]*)
1.23 millert 5880: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5881: lt_cv_file_magic_cmd='/usr/bin/file -L'
5882: lt_cv_file_magic_test_file=/shlib/libc.so
5883: ;;
5884:
1.25 millert 5885: cygwin*)
5886: # func_win32_libid is a shell function defined in ltmain.sh
1.23 millert 5887: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25 millert 5888: lt_cv_file_magic_cmd='func_win32_libid'
5889: ;;
5890:
1.27 ! millert 5891: mingw* | pw32*)
1.25 millert 5892: # Base MSYS/MinGW do not provide the 'file' command needed by
1.27 ! millert 5893: # func_win32_libid shell function, so use a weaker test based on 'objdump',
! 5894: # unless we find 'file', for example because we are cross-compiling.
! 5895: if ( file / ) >/dev/null 2>&1; then
! 5896: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
! 5897: lt_cv_file_magic_cmd='func_win32_libid'
! 5898: else
! 5899: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 5900: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 5901: fi
1.23 millert 5902: ;;
5903:
5904: darwin* | rhapsody*)
1.25 millert 5905: lt_cv_deplibs_check_method=pass_all
5906: ;;
1.23 millert 5907:
1.27 ! millert 5908: freebsd* | dragonfly*)
! 5909: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23 millert 5910: case $host_cpu in
5911: i*86 )
5912: # Not sure whether the presence of OpenBSD here was a mistake.
5913: # Let's accept both of them until this is cleared up.
1.27 ! millert 5914: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23 millert 5915: lt_cv_file_magic_cmd=/usr/bin/file
1.27 ! millert 5916: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23 millert 5917: ;;
5918: esac
5919: else
5920: lt_cv_deplibs_check_method=pass_all
5921: fi
5922: ;;
5923:
5924: gnu*)
5925: lt_cv_deplibs_check_method=pass_all
5926: ;;
5927:
5928: hpux10.20* | hpux11*)
5929: lt_cv_file_magic_cmd=/usr/bin/file
1.27 ! millert 5930: case $host_cpu in
1.23 millert 5931: ia64*)
5932: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5933: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5934: ;;
5935: hppa*64*)
5936: 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]'
5937: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5938: ;;
5939: *)
5940: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5941: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5942: ;;
5943: esac
5944: ;;
5945:
1.27 ! millert 5946: interix[3-9]*)
! 5947: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
! 5948: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
! 5949: ;;
! 5950:
1.23 millert 5951: irix5* | irix6* | nonstopux*)
1.25 millert 5952: case $LD in
5953: *-32|*"-32 ") libmagic=32-bit;;
5954: *-n32|*"-n32 ") libmagic=N32;;
5955: *-64|*"-64 ") libmagic=64-bit;;
5956: *) libmagic=never-match;;
1.23 millert 5957: esac
5958: lt_cv_deplibs_check_method=pass_all
5959: ;;
5960:
5961: # This must be Linux ELF.
1.27 ! millert 5962: linux* | k*bsd*-gnu)
1.25 millert 5963: lt_cv_deplibs_check_method=pass_all
1.23 millert 5964: ;;
5965:
1.27 ! millert 5966: netbsd*)
! 5967: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23 millert 5968: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969: else
5970: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5971: fi
5972: ;;
5973:
5974: newos6*)
5975: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5976: lt_cv_file_magic_cmd=/usr/bin/file
5977: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5978: ;;
5979:
1.27 ! millert 5980: nto-qnx*)
! 5981: lt_cv_deplibs_check_method=unknown
1.23 millert 5982: ;;
5983:
5984: openbsd*)
1.27 ! millert 5985: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25 millert 5986: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23 millert 5987: else
1.25 millert 5988: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23 millert 5989: fi
5990: ;;
5991:
5992: osf3* | osf4* | osf5*)
5993: lt_cv_deplibs_check_method=pass_all
5994: ;;
5995:
1.27 ! millert 5996: rdos*)
1.23 millert 5997: lt_cv_deplibs_check_method=pass_all
5998: ;;
5999:
6000: solaris*)
6001: lt_cv_deplibs_check_method=pass_all
6002: ;;
6003:
1.27 ! millert 6004: sysv4 | sysv4.3*)
1.23 millert 6005: case $host_vendor in
6006: motorola)
6007: 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 6008: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23 millert 6009: ;;
6010: ncr)
6011: lt_cv_deplibs_check_method=pass_all
6012: ;;
6013: sequent)
6014: lt_cv_file_magic_cmd='/bin/file'
6015: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6016: ;;
6017: sni)
6018: lt_cv_file_magic_cmd='/bin/file'
6019: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6020: lt_cv_file_magic_test_file=/lib/libc.so
6021: ;;
6022: siemens)
6023: lt_cv_deplibs_check_method=pass_all
6024: ;;
1.27 ! millert 6025: pc)
! 6026: lt_cv_deplibs_check_method=pass_all
! 6027: ;;
1.23 millert 6028: esac
6029: ;;
6030:
1.27 ! millert 6031: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25 millert 6032: lt_cv_deplibs_check_method=pass_all
6033: ;;
1.23 millert 6034: esac
6035:
6036: fi
1.27 ! millert 6037: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 6038: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23 millert 6039: file_magic_cmd=$lt_cv_file_magic_cmd
6040: deplibs_check_method=$lt_cv_deplibs_check_method
6041: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6042:
6043:
6044:
6045:
1.27 ! millert 6046: # If no C compiler was specified, use CC.
! 6047: LTCC=${LTCC-"$CC"}
1.23 millert 6048:
1.27 ! millert 6049: # If no C compiler flags were specified, use CFLAGS.
! 6050: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23 millert 6051:
1.27 ! millert 6052: # Allow CC to be a program name with arguments.
! 6053: compiler=$CC
1.23 millert 6054:
1.27 ! millert 6055: # Check whether --enable-libtool-lock was given.
! 6056: if test "${enable_libtool_lock+set}" = set; then
! 6057: enableval=$enable_libtool_lock;
! 6058: fi
1.23 millert 6059:
1.27 ! millert 6060: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23 millert 6061:
1.27 ! millert 6062: # Some flags need to be propagated to the compiler or linker for good
! 6063: # libtool support.
! 6064: case $host in
! 6065: ia64-*-hpux*)
! 6066: # Find out which ABI we are using.
! 6067: echo 'int i;' > conftest.$ac_ext
! 6068: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6069: (eval $ac_compile) 2>&5
! 6070: ac_status=$?
! 6071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6072: (exit $ac_status); }; then
! 6073: case `/usr/bin/file conftest.$ac_objext` in
! 6074: *ELF-32*)
! 6075: HPUX_IA64_MODE="32"
! 6076: ;;
! 6077: *ELF-64*)
! 6078: HPUX_IA64_MODE="64"
! 6079: ;;
! 6080: esac
! 6081: fi
! 6082: rm -rf conftest*
! 6083: ;;
! 6084: *-*-irix6*)
! 6085: # Find out which ABI we are using.
! 6086: echo '#line 6086 "configure"' > conftest.$ac_ext
! 6087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6088: (eval $ac_compile) 2>&5
! 6089: ac_status=$?
! 6090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6091: (exit $ac_status); }; then
! 6092: if test "$lt_cv_prog_gnu_ld" = yes; then
! 6093: case `/usr/bin/file conftest.$ac_objext` in
! 6094: *32-bit*)
! 6095: LD="${LD-ld} -melf32bsmip"
! 6096: ;;
! 6097: *N32*)
! 6098: LD="${LD-ld} -melf32bmipn32"
! 6099: ;;
! 6100: *64-bit*)
! 6101: LD="${LD-ld} -melf64bmip"
! 6102: ;;
! 6103: esac
! 6104: else
! 6105: case `/usr/bin/file conftest.$ac_objext` in
! 6106: *32-bit*)
! 6107: LD="${LD-ld} -32"
! 6108: ;;
! 6109: *N32*)
! 6110: LD="${LD-ld} -n32"
! 6111: ;;
! 6112: *64-bit*)
! 6113: LD="${LD-ld} -64"
! 6114: ;;
! 6115: esac
! 6116: fi
! 6117: fi
! 6118: rm -rf conftest*
! 6119: ;;
1.23 millert 6120:
1.27 ! millert 6121: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
! 6122: s390*-*linux*|sparc*-*linux*)
! 6123: # Find out which ABI we are using.
! 6124: echo 'int i;' > conftest.$ac_ext
! 6125: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6126: (eval $ac_compile) 2>&5
! 6127: ac_status=$?
! 6128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6129: (exit $ac_status); }; then
! 6130: case `/usr/bin/file conftest.o` in
! 6131: *32-bit*)
! 6132: case $host in
! 6133: x86_64-*kfreebsd*-gnu)
! 6134: LD="${LD-ld} -m elf_i386_fbsd"
! 6135: ;;
! 6136: x86_64-*linux*)
! 6137: LD="${LD-ld} -m elf_i386"
! 6138: ;;
! 6139: ppc64-*linux*|powerpc64-*linux*)
! 6140: LD="${LD-ld} -m elf32ppclinux"
! 6141: ;;
! 6142: s390x-*linux*)
! 6143: LD="${LD-ld} -m elf_s390"
! 6144: ;;
! 6145: sparc64-*linux*)
! 6146: LD="${LD-ld} -m elf32_sparc"
! 6147: ;;
! 6148: esac
! 6149: ;;
! 6150: *64-bit*)
! 6151: case $host in
! 6152: x86_64-*kfreebsd*-gnu)
! 6153: LD="${LD-ld} -m elf_x86_64_fbsd"
! 6154: ;;
! 6155: x86_64-*linux*)
! 6156: LD="${LD-ld} -m elf_x86_64"
! 6157: ;;
! 6158: ppc*-*linux*|powerpc*-*linux*)
! 6159: LD="${LD-ld} -m elf64ppc"
! 6160: ;;
! 6161: s390*-*linux*)
! 6162: LD="${LD-ld} -m elf64_s390"
! 6163: ;;
! 6164: sparc*-*linux*)
! 6165: LD="${LD-ld} -m elf64_sparc"
! 6166: ;;
! 6167: esac
! 6168: ;;
! 6169: esac
! 6170: fi
! 6171: rm -rf conftest*
! 6172: ;;
1.25 millert 6173:
1.27 ! millert 6174: *-*-sco3.2v5*)
! 6175: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 6176: SAVE_CFLAGS="$CFLAGS"
! 6177: CFLAGS="$CFLAGS -belf"
! 6178: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 6179: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
! 6180: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23 millert 6181: echo $ECHO_N "(cached) $ECHO_C" >&6
6182: else
1.27 ! millert 6183: ac_ext=c
! 6184: ac_cpp='$CPP $CPPFLAGS'
! 6185: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6186: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6187: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 6188:
! 6189: cat >conftest.$ac_ext <<_ACEOF
! 6190: /* confdefs.h. */
! 6191: _ACEOF
! 6192: cat confdefs.h >>conftest.$ac_ext
! 6193: cat >>conftest.$ac_ext <<_ACEOF
! 6194: /* end confdefs.h. */
! 6195:
! 6196: int
! 6197: main ()
! 6198: {
1.23 millert 6199:
1.27 ! millert 6200: ;
! 6201: return 0;
! 6202: }
! 6203: _ACEOF
! 6204: rm -f conftest.$ac_objext conftest$ac_exeext
! 6205: if { (ac_try="$ac_link"
! 6206: case "(($ac_try" in
! 6207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6208: *) ac_try_echo=$ac_try;;
! 6209: esac
! 6210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6211: (eval "$ac_link") 2>conftest.er1
! 6212: ac_status=$?
! 6213: grep -v '^ *+' conftest.er1 >conftest.err
! 6214: rm -f conftest.er1
! 6215: cat conftest.err >&5
! 6216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6217: (exit $ac_status); } && {
! 6218: test -z "$ac_c_werror_flag" ||
! 6219: test ! -s conftest.err
! 6220: } && test -s conftest$ac_exeext &&
! 6221: $as_test_x conftest$ac_exeext; then
! 6222: lt_cv_cc_needs_belf=yes
1.25 millert 6223: else
1.27 ! millert 6224: echo "$as_me: failed program was:" >&5
! 6225: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6226:
1.27 ! millert 6227: lt_cv_cc_needs_belf=no
1.25 millert 6228: fi
1.23 millert 6229:
1.27 ! millert 6230: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 6231: conftest$ac_exeext conftest.$ac_ext
! 6232: ac_ext=c
! 6233: ac_cpp='$CPP $CPPFLAGS'
! 6234: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6235: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6236: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 6237:
6238: fi
1.27 ! millert 6239: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 6240: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
! 6241: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 6242: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 6243: CFLAGS="$SAVE_CFLAGS"
! 6244: fi
! 6245: ;;
! 6246: sparc*-*solaris*)
! 6247: # Find out which ABI we are using.
! 6248: echo 'int i;' > conftest.$ac_ext
! 6249: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6250: (eval $ac_compile) 2>&5
! 6251: ac_status=$?
! 6252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6253: (exit $ac_status); }; then
! 6254: case `/usr/bin/file conftest.o` in
! 6255: *64-bit*)
! 6256: case $lt_cv_prog_gnu_ld in
! 6257: yes*) LD="${LD-ld} -m elf64_sparc" ;;
! 6258: *) LD="${LD-ld} -64" ;;
! 6259: esac
! 6260: ;;
! 6261: esac
! 6262: fi
! 6263: rm -rf conftest*
! 6264: ;;
1.25 millert 6265:
6266:
1.27 ! millert 6267: esac
1.25 millert 6268:
1.27 ! millert 6269: need_locks="$enable_libtool_lock"
1.25 millert 6270:
6271:
6272:
1.27 ! millert 6273: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 6274: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 6275: if test "${ac_cv_header_stdc+set}" = set; then
! 6276: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6277: else
! 6278: cat >conftest.$ac_ext <<_ACEOF
! 6279: /* confdefs.h. */
! 6280: _ACEOF
! 6281: cat confdefs.h >>conftest.$ac_ext
! 6282: cat >>conftest.$ac_ext <<_ACEOF
! 6283: /* end confdefs.h. */
! 6284: #include <stdlib.h>
! 6285: #include <stdarg.h>
! 6286: #include <string.h>
! 6287: #include <float.h>
1.23 millert 6288:
1.27 ! millert 6289: int
! 6290: main ()
! 6291: {
1.23 millert 6292:
1.27 ! millert 6293: ;
! 6294: return 0;
! 6295: }
! 6296: _ACEOF
! 6297: rm -f conftest.$ac_objext
! 6298: if { (ac_try="$ac_compile"
! 6299: case "(($ac_try" in
! 6300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6301: *) ac_try_echo=$ac_try;;
! 6302: esac
! 6303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6304: (eval "$ac_compile") 2>conftest.er1
! 6305: ac_status=$?
! 6306: grep -v '^ *+' conftest.er1 >conftest.err
! 6307: rm -f conftest.er1
! 6308: cat conftest.err >&5
! 6309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6310: (exit $ac_status); } && {
! 6311: test -z "$ac_c_werror_flag" ||
! 6312: test ! -s conftest.err
! 6313: } && test -s conftest.$ac_objext; then
! 6314: ac_cv_header_stdc=yes
! 6315: else
! 6316: echo "$as_me: failed program was:" >&5
! 6317: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6318:
1.27 ! millert 6319: ac_cv_header_stdc=no
! 6320: fi
1.23 millert 6321:
1.27 ! millert 6322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 6323:
1.27 ! millert 6324: if test $ac_cv_header_stdc = yes; then
! 6325: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 6326: cat >conftest.$ac_ext <<_ACEOF
! 6327: /* confdefs.h. */
! 6328: _ACEOF
! 6329: cat confdefs.h >>conftest.$ac_ext
! 6330: cat >>conftest.$ac_ext <<_ACEOF
! 6331: /* end confdefs.h. */
! 6332: #include <string.h>
1.23 millert 6333:
1.27 ! millert 6334: _ACEOF
! 6335: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6336: $EGREP "memchr" >/dev/null 2>&1; then
! 6337: :
1.25 millert 6338: else
1.27 ! millert 6339: ac_cv_header_stdc=no
1.25 millert 6340: fi
1.27 ! millert 6341: rm -f conftest*
1.23 millert 6342:
1.25 millert 6343: fi
1.23 millert 6344:
1.27 ! millert 6345: if test $ac_cv_header_stdc = yes; then
! 6346: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 6347: cat >conftest.$ac_ext <<_ACEOF
! 6348: /* confdefs.h. */
! 6349: _ACEOF
! 6350: cat confdefs.h >>conftest.$ac_ext
! 6351: cat >>conftest.$ac_ext <<_ACEOF
! 6352: /* end confdefs.h. */
! 6353: #include <stdlib.h>
! 6354:
! 6355: _ACEOF
! 6356: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6357: $EGREP "free" >/dev/null 2>&1; then
! 6358: :
1.25 millert 6359: else
1.27 ! millert 6360: ac_cv_header_stdc=no
1.23 millert 6361: fi
1.27 ! millert 6362: rm -f conftest*
1.23 millert 6363:
6364: fi
6365:
1.27 ! millert 6366: if test $ac_cv_header_stdc = yes; then
! 6367: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 6368: if test "$cross_compiling" = yes; then
! 6369: :
! 6370: else
! 6371: cat >conftest.$ac_ext <<_ACEOF
! 6372: /* confdefs.h. */
! 6373: _ACEOF
! 6374: cat confdefs.h >>conftest.$ac_ext
! 6375: cat >>conftest.$ac_ext <<_ACEOF
! 6376: /* end confdefs.h. */
! 6377: #include <ctype.h>
! 6378: #include <stdlib.h>
! 6379: #if ((' ' & 0x0FF) == 0x020)
! 6380: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 6381: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 6382: #else
! 6383: # define ISLOWER(c) \
! 6384: (('a' <= (c) && (c) <= 'i') \
! 6385: || ('j' <= (c) && (c) <= 'r') \
! 6386: || ('s' <= (c) && (c) <= 'z'))
! 6387: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 6388: #endif
1.25 millert 6389:
1.27 ! millert 6390: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 6391: int
! 6392: main ()
! 6393: {
! 6394: int i;
! 6395: for (i = 0; i < 256; i++)
! 6396: if (XOR (islower (i), ISLOWER (i))
! 6397: || toupper (i) != TOUPPER (i))
! 6398: return 2;
! 6399: return 0;
! 6400: }
! 6401: _ACEOF
! 6402: rm -f conftest$ac_exeext
! 6403: if { (ac_try="$ac_link"
! 6404: case "(($ac_try" in
! 6405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6406: *) ac_try_echo=$ac_try;;
! 6407: esac
! 6408: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6409: (eval "$ac_link") 2>&5
! 6410: ac_status=$?
! 6411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6412: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6413: { (case "(($ac_try" in
! 6414: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6415: *) ac_try_echo=$ac_try;;
! 6416: esac
! 6417: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6418: (eval "$ac_try") 2>&5
! 6419: ac_status=$?
! 6420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6421: (exit $ac_status); }; }; then
! 6422: :
1.25 millert 6423: else
1.27 ! millert 6424: echo "$as_me: program exited with status $ac_status" >&5
! 6425: echo "$as_me: failed program was:" >&5
! 6426: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6427:
1.27 ! millert 6428: ( exit $ac_status )
! 6429: ac_cv_header_stdc=no
1.25 millert 6430: fi
1.27 ! millert 6431: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23 millert 6432: fi
6433:
6434:
6435: fi
6436: fi
1.27 ! millert 6437: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6438: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 6439: if test $ac_cv_header_stdc = yes; then
! 6440:
! 6441: cat >>confdefs.h <<\_ACEOF
! 6442: #define STDC_HEADERS 1
! 6443: _ACEOF
1.23 millert 6444:
6445: fi
6446:
1.27 ! millert 6447: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23 millert 6448:
6449:
6450:
6451:
6452:
6453:
6454:
6455:
6456:
1.27 ! millert 6457: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 6458: inttypes.h stdint.h unistd.h
! 6459: do
! 6460: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6461: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6462: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6463: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6464: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6465: else
! 6466: cat >conftest.$ac_ext <<_ACEOF
! 6467: /* confdefs.h. */
! 6468: _ACEOF
! 6469: cat confdefs.h >>conftest.$ac_ext
! 6470: cat >>conftest.$ac_ext <<_ACEOF
! 6471: /* end confdefs.h. */
! 6472: $ac_includes_default
1.23 millert 6473:
1.27 ! millert 6474: #include <$ac_header>
! 6475: _ACEOF
! 6476: rm -f conftest.$ac_objext
! 6477: if { (ac_try="$ac_compile"
! 6478: case "(($ac_try" in
! 6479: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6480: *) ac_try_echo=$ac_try;;
! 6481: esac
! 6482: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6483: (eval "$ac_compile") 2>conftest.er1
! 6484: ac_status=$?
! 6485: grep -v '^ *+' conftest.er1 >conftest.err
! 6486: rm -f conftest.er1
! 6487: cat conftest.err >&5
! 6488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6489: (exit $ac_status); } && {
! 6490: test -z "$ac_c_werror_flag" ||
! 6491: test ! -s conftest.err
! 6492: } && test -s conftest.$ac_objext; then
! 6493: eval "$as_ac_Header=yes"
! 6494: else
! 6495: echo "$as_me: failed program was:" >&5
! 6496: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6497:
1.27 ! millert 6498: eval "$as_ac_Header=no"
! 6499: fi
1.23 millert 6500:
1.27 ! millert 6501: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6502: fi
! 6503: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6504: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6505: echo "${ECHO_T}$ac_res" >&6; }
! 6506: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6507: cat >>confdefs.h <<_ACEOF
! 6508: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 6509: _ACEOF
1.23 millert 6510:
1.27 ! millert 6511: fi
1.23 millert 6512:
1.27 ! millert 6513: done
1.23 millert 6514:
6515:
6516:
1.27 ! millert 6517: for ac_header in dlfcn.h
! 6518: do
! 6519: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6520: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6521: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6522: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6523: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6524: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6525: fi
! 6526: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6527: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6528: echo "${ECHO_T}$ac_res" >&6; }
! 6529: else
! 6530: # Is the header compilable?
! 6531: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6532: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 6533: cat >conftest.$ac_ext <<_ACEOF
! 6534: /* confdefs.h. */
! 6535: _ACEOF
! 6536: cat confdefs.h >>conftest.$ac_ext
! 6537: cat >>conftest.$ac_ext <<_ACEOF
! 6538: /* end confdefs.h. */
! 6539: $ac_includes_default
! 6540: #include <$ac_header>
! 6541: _ACEOF
! 6542: rm -f conftest.$ac_objext
! 6543: if { (ac_try="$ac_compile"
! 6544: case "(($ac_try" in
! 6545: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6546: *) ac_try_echo=$ac_try;;
! 6547: esac
! 6548: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6549: (eval "$ac_compile") 2>conftest.er1
! 6550: ac_status=$?
! 6551: grep -v '^ *+' conftest.er1 >conftest.err
! 6552: rm -f conftest.er1
! 6553: cat conftest.err >&5
! 6554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6555: (exit $ac_status); } && {
! 6556: test -z "$ac_c_werror_flag" ||
! 6557: test ! -s conftest.err
! 6558: } && test -s conftest.$ac_objext; then
! 6559: ac_header_compiler=yes
! 6560: else
! 6561: echo "$as_me: failed program was:" >&5
! 6562: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6563:
1.27 ! millert 6564: ac_header_compiler=no
! 6565: fi
1.23 millert 6566:
1.27 ! millert 6567: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6568: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6569: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23 millert 6570:
1.27 ! millert 6571: # Is the header present?
! 6572: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6573: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 6574: cat >conftest.$ac_ext <<_ACEOF
! 6575: /* confdefs.h. */
! 6576: _ACEOF
! 6577: cat confdefs.h >>conftest.$ac_ext
! 6578: cat >>conftest.$ac_ext <<_ACEOF
! 6579: /* end confdefs.h. */
! 6580: #include <$ac_header>
! 6581: _ACEOF
! 6582: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6583: case "(($ac_try" in
! 6584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6585: *) ac_try_echo=$ac_try;;
! 6586: esac
! 6587: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6588: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 6589: ac_status=$?
! 6590: grep -v '^ *+' conftest.er1 >conftest.err
! 6591: rm -f conftest.er1
! 6592: cat conftest.err >&5
! 6593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6594: (exit $ac_status); } >/dev/null && {
! 6595: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6596: test ! -s conftest.err
! 6597: }; then
! 6598: ac_header_preproc=yes
! 6599: else
! 6600: echo "$as_me: failed program was:" >&5
! 6601: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6602:
1.27 ! millert 6603: ac_header_preproc=no
! 6604: fi
1.23 millert 6605:
1.27 ! millert 6606: rm -f conftest.err conftest.$ac_ext
! 6607: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6608: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23 millert 6609:
1.27 ! millert 6610: # So? What about this header?
! 6611: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 6612: yes:no: )
! 6613: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 6614: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 6615: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 6616: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 6617: ac_header_preproc=yes
! 6618: ;;
! 6619: no:yes:* )
! 6620: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 6621: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 6622: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 6623: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 6624: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 6625: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 6626: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 6627: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 6628: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 6629: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 6630: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 6631: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.23 millert 6632:
1.27 ! millert 6633: ;;
! 6634: esac
! 6635: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6636: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6637: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 6638: echo $ECHO_N "(cached) $ECHO_C" >&6
6639: else
1.27 ! millert 6640: eval "$as_ac_Header=\$ac_header_preproc"
! 6641: fi
! 6642: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6643: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6644: echo "${ECHO_T}$ac_res" >&6; }
! 6645:
! 6646: fi
! 6647: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6648: cat >>confdefs.h <<_ACEOF
! 6649: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 6650: _ACEOF
! 6651:
! 6652: fi
1.23 millert 6653:
1.27 ! millert 6654: done
1.23 millert 6655:
6656:
1.27 ! millert 6657: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1.23 millert 6658:
1.27 ! millert 6659: # find the maximum length of command line arguments
! 6660: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 6661: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
! 6662: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 6663: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6664: else
! 6665: i=0
! 6666: teststring="ABCD"
! 6667:
! 6668: case $build_os in
! 6669: msdosdjgpp*)
! 6670: # On DJGPP, this test can blow up pretty badly due to problems in libc
! 6671: # (any single argument exceeding 2000 bytes causes a buffer overrun
! 6672: # during glob expansion). Even if it were fixed, the result of this
! 6673: # check would be larger than it should be.
! 6674: lt_cv_sys_max_cmd_len=12288; # 12K is about right
! 6675: ;;
! 6676:
! 6677: gnu*)
! 6678: # Under GNU Hurd, this test is not required because there is
! 6679: # no limit to the length of command line arguments.
! 6680: # Libtool will interpret -1 as no limit whatsoever
! 6681: lt_cv_sys_max_cmd_len=-1;
! 6682: ;;
! 6683:
! 6684: cygwin* | mingw*)
! 6685: # On Win9x/ME, this test blows up -- it succeeds, but takes
! 6686: # about 5 minutes as the teststring grows exponentially.
! 6687: # Worse, since 9x/ME are not pre-emptively multitasking,
! 6688: # you end up with a "frozen" computer, even though with patience
! 6689: # the test eventually succeeds (with a max line length of 256k).
! 6690: # Instead, let's just punt: use the minimum linelength reported by
! 6691: # all of the supported platforms: 8192 (on NT/2K/XP).
! 6692: lt_cv_sys_max_cmd_len=8192;
! 6693: ;;
! 6694:
! 6695: amigaos*)
! 6696: # On AmigaOS with pdksh, this test takes hours, literally.
! 6697: # So we just punt and use a minimum line length of 8192.
! 6698: lt_cv_sys_max_cmd_len=8192;
! 6699: ;;
! 6700:
! 6701: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
! 6702: # This has been around since 386BSD, at least. Likely further.
! 6703: if test -x /sbin/sysctl; then
! 6704: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
! 6705: elif test -x /usr/sbin/sysctl; then
! 6706: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
! 6707: else
! 6708: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
! 6709: fi
! 6710: # And add a safety zone
! 6711: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6712: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 6713: ;;
! 6714:
! 6715: interix*)
! 6716: # We know the value 262144 and hardcode it with a safety zone (like BSD)
! 6717: lt_cv_sys_max_cmd_len=196608
! 6718: ;;
! 6719:
! 6720: osf*)
! 6721: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
! 6722: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
! 6723: # nice to cause kernel panics so lets avoid the loop below.
! 6724: # First set a reasonable default.
! 6725: lt_cv_sys_max_cmd_len=16384
! 6726: #
! 6727: if test -x /sbin/sysconfig; then
! 6728: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
! 6729: *1*) lt_cv_sys_max_cmd_len=-1 ;;
! 6730: esac
! 6731: fi
! 6732: ;;
! 6733: sco3.2v5*)
! 6734: lt_cv_sys_max_cmd_len=102400
! 6735: ;;
! 6736: sysv5* | sco5v6* | sysv4.2uw2*)
! 6737: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
! 6738: if test -n "$kargmax"; then
! 6739: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
! 6740: else
! 6741: lt_cv_sys_max_cmd_len=32768
! 6742: fi
! 6743: ;;
! 6744: *)
! 6745: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
! 6746: if test -n "$lt_cv_sys_max_cmd_len"; then
! 6747: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6748: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 6749: else
! 6750: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
! 6751: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
! 6752: = "XX$teststring") >/dev/null 2>&1 &&
! 6753: new_result=`expr "X$teststring" : ".*" 2>&1` &&
! 6754: lt_cv_sys_max_cmd_len=$new_result &&
! 6755: test $i != 17 # 1/2 MB should be enough
! 6756: do
! 6757: i=`expr $i + 1`
! 6758: teststring=$teststring$teststring
! 6759: done
! 6760: teststring=
! 6761: # Add a significant safety factor because C++ compilers can tack on massive
! 6762: # amounts of additional arguments before passing them to the linker.
! 6763: # It appears as though 1/2 is a usable value.
! 6764: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 6765: fi
! 6766: ;;
! 6767: esac
! 6768:
! 6769: fi
! 6770:
! 6771: if test -n $lt_cv_sys_max_cmd_len ; then
! 6772: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 6773: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
! 6774: else
! 6775: { echo "$as_me:$LINENO: result: none" >&5
! 6776: echo "${ECHO_T}none" >&6; }
! 6777: fi
! 6778:
! 6779:
! 6780:
! 6781:
! 6782:
! 6783: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 6784: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 6785: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
! 6786: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 6787: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6788: else
! 6789:
! 6790: # These are sane defaults that work on at least a few old systems.
! 6791: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 6792:
! 6793: # Character class describing NM global symbol codes.
! 6794: symcode='[BCDEGRST]'
! 6795:
! 6796: # Regexp to match symbols that can be accessed directly from C.
! 6797: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 6798:
! 6799: # Transform an extracted symbol line into a proper C declaration
! 6800: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
! 6801:
! 6802: # Transform an extracted symbol line into symbol name and symbol address
! 6803: 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 6804:
1.25 millert 6805: # Define system-specific variables.
6806: case $host_os in
6807: aix*)
6808: symcode='[BCDT]'
6809: ;;
6810: cygwin* | mingw* | pw32*)
6811: symcode='[ABCDGISTW]'
6812: ;;
1.27 ! millert 6813: hpux*) # Its linker distinguishes data from code symbols
1.25 millert 6814: if test "$host_cpu" = ia64; then
6815: symcode='[ABCDEGRST]'
6816: fi
1.27 ! millert 6817: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6818: 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'"
! 6819: ;;
! 6820: linux* | k*bsd*-gnu)
! 6821: if test "$host_cpu" = ia64; then
! 6822: symcode='[ABCDGIRSTW]'
! 6823: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6824: 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'"
! 6825: fi
1.25 millert 6826: ;;
6827: irix* | nonstopux*)
6828: symcode='[BCDEGRST]'
6829: ;;
6830: osf*)
6831: symcode='[BCDEGQRST]'
6832: ;;
1.27 ! millert 6833: solaris*)
1.25 millert 6834: symcode='[BDRT]'
6835: ;;
1.27 ! millert 6836: sco3.2v5*)
! 6837: symcode='[DT]'
! 6838: ;;
! 6839: sysv4.2uw2*)
! 6840: symcode='[DT]'
! 6841: ;;
! 6842: sysv5* | sco5v6* | unixware* | OpenUNIX*)
! 6843: symcode='[ABDT]'
! 6844: ;;
1.25 millert 6845: sysv4)
6846: symcode='[DFNSTU]'
6847: ;;
6848: esac
1.23 millert 6849:
1.25 millert 6850: # Handle CRLF in mingw tool chain
6851: opt_cr=
6852: case $build_os in
6853: mingw*)
1.27 ! millert 6854: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25 millert 6855: ;;
6856: esac
6857:
1.27 ! millert 6858: # If we're using GNU nm, then use its standard symbol codes.
! 6859: case `$NM -V 2>&1` in
! 6860: *GNU* | *'with BFD'*)
! 6861: symcode='[ABCDGIRSTW]' ;;
! 6862: esac
! 6863:
! 6864: # Try without a prefix undercore, then with it.
1.25 millert 6865: for ac_symprfx in "" "_"; do
6866:
1.27 ! millert 6867: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
! 6868: symxfrm="\\1 $ac_symprfx\\2 \\2"
! 6869:
1.25 millert 6870: # Write the raw and C identifiers.
1.27 ! millert 6871: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23 millert 6872:
1.25 millert 6873: # Check to see that the pipe works correctly.
6874: pipe_works=no
6875:
6876: rm -f conftest*
1.27 ! millert 6877: cat > conftest.$ac_ext <<EOF
1.25 millert 6878: #ifdef __cplusplus
6879: extern "C" {
6880: #endif
6881: char nm_test_var;
6882: void nm_test_func(){}
6883: #ifdef __cplusplus
6884: }
6885: #endif
6886: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27 ! millert 6887: EOF
1.25 millert 6888:
6889: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890: (eval $ac_compile) 2>&5
1.23 millert 6891: ac_status=$?
6892: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 6893: (exit $ac_status); }; then
6894: # Now try to grab the symbols.
6895: nlist=conftest.nm
6896: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6897: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23 millert 6898: ac_status=$?
6899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 6900: (exit $ac_status); } && test -s "$nlist"; then
6901: # Try sorting and uniquifying the output.
6902: if sort "$nlist" | uniq > "$nlist"T; then
6903: mv -f "$nlist"T "$nlist"
6904: else
6905: rm -f "$nlist"T
6906: fi
6907:
6908: # Make sure that we snagged all the symbols we need.
1.27 ! millert 6909: if grep ' nm_test_var$' "$nlist" >/dev/null; then
! 6910: if grep ' nm_test_func$' "$nlist" >/dev/null; then
! 6911: cat <<EOF > conftest.$ac_ext
1.25 millert 6912: #ifdef __cplusplus
6913: extern "C" {
6914: #endif
6915:
1.27 ! millert 6916: EOF
1.25 millert 6917: # Now generate the symbol file.
1.27 ! millert 6918: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23 millert 6919:
1.27 ! millert 6920: cat <<EOF >> conftest.$ac_ext
! 6921: #if defined (__STDC__) && __STDC__
! 6922: # define lt_ptr_t void *
! 6923: #else
! 6924: # define lt_ptr_t char *
! 6925: # define const
! 6926: #endif
1.23 millert 6927:
1.27 ! millert 6928: /* The mapping between symbol names and symbols. */
1.25 millert 6929: const struct {
6930: const char *name;
1.27 ! millert 6931: lt_ptr_t address;
1.25 millert 6932: }
1.27 ! millert 6933: lt_preloaded_symbols[] =
1.23 millert 6934: {
1.27 ! millert 6935: EOF
! 6936: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
! 6937: cat <<\EOF >> conftest.$ac_ext
! 6938: {0, (lt_ptr_t) 0}
1.25 millert 6939: };
6940:
6941: #ifdef __cplusplus
1.23 millert 6942: }
1.25 millert 6943: #endif
1.27 ! millert 6944: EOF
1.25 millert 6945: # Now try linking the two files.
6946: mv conftest.$ac_objext conftstm.$ac_objext
6947: lt_save_LIBS="$LIBS"
6948: lt_save_CFLAGS="$CFLAGS"
6949: LIBS="conftstm.$ac_objext"
6950: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6951: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952: (eval $ac_link) 2>&5
1.23 millert 6953: ac_status=$?
6954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 6955: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6956: pipe_works=yes
6957: fi
6958: LIBS="$lt_save_LIBS"
6959: CFLAGS="$lt_save_CFLAGS"
6960: else
6961: echo "cannot find nm_test_func in $nlist" >&5
6962: fi
6963: else
6964: echo "cannot find nm_test_var in $nlist" >&5
6965: fi
6966: else
6967: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6968: fi
6969: else
6970: echo "$progname: failed program was:" >&5
6971: cat conftest.$ac_ext >&5
6972: fi
6973: rm -f conftest* conftst*
6974:
6975: # Do not use the global_symbol_pipe unless it works.
6976: if test "$pipe_works" = yes; then
6977: break
6978: else
6979: lt_cv_sys_global_symbol_pipe=
6980: fi
6981: done
1.23 millert 6982:
6983: fi
6984:
1.25 millert 6985: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6986: lt_cv_sys_global_symbol_to_cdecl=
6987: fi
6988: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27 ! millert 6989: { echo "$as_me:$LINENO: result: failed" >&5
! 6990: echo "${ECHO_T}failed" >&6; }
1.25 millert 6991: else
1.27 ! millert 6992: { echo "$as_me:$LINENO: result: ok" >&5
! 6993: echo "${ECHO_T}ok" >&6; }
1.23 millert 6994: fi
1.25 millert 6995:
1.27 ! millert 6996: { echo "$as_me:$LINENO: checking for objdir" >&5
! 6997: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
! 6998: if test "${lt_cv_objdir+set}" = set; then
! 6999: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7000: else
! 7001: rm -f .libs 2>/dev/null
! 7002: mkdir .libs 2>/dev/null
! 7003: if test -d .libs; then
! 7004: lt_cv_objdir=.libs
! 7005: else
! 7006: # MS-DOS does not allow filenames that begin with a dot.
! 7007: lt_cv_objdir=_libs
! 7008: fi
! 7009: rmdir .libs 2>/dev/null
! 7010: fi
! 7011: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 7012: echo "${ECHO_T}$lt_cv_objdir" >&6; }
! 7013: objdir=$lt_cv_objdir
1.25 millert 7014:
7015:
7016:
7017:
7018:
1.27 ! millert 7019: case $host_os in
! 7020: aix3*)
! 7021: # AIX sometimes has problems with the GCC collect2 program. For some
! 7022: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 7023: # vanish in a puff of smoke.
! 7024: if test "X${COLLECT_NAMES+set}" != Xset; then
! 7025: COLLECT_NAMES=
! 7026: export COLLECT_NAMES
! 7027: fi
! 7028: ;;
! 7029: esac
1.25 millert 7030:
1.27 ! millert 7031: # Sed substitution that helps us do robust quoting. It backslashifies
! 7032: # metacharacters that are still active within double-quoted strings.
! 7033: Xsed='sed -e 1s/^X//'
! 7034: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25 millert 7035:
1.27 ! millert 7036: # Same as above, but do not quote variable references.
! 7037: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25 millert 7038:
1.27 ! millert 7039: # Sed substitution to delay expansion of an escaped shell variable in a
! 7040: # double_quote_subst'ed string.
! 7041: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25 millert 7042:
1.27 ! millert 7043: # Sed substitution to avoid accidental globbing in evaled expressions
! 7044: no_glob_subst='s/\*/\\\*/g'
1.25 millert 7045:
1.27 ! millert 7046: # Constants:
! 7047: rm="rm -f"
1.25 millert 7048:
1.27 ! millert 7049: # Global variables:
! 7050: default_ofile=libtool
! 7051: can_build_shared=yes
1.25 millert 7052:
1.27 ! millert 7053: # All known linkers require a `.a' archive for static linking (except MSVC,
! 7054: # which needs '.lib').
! 7055: libext=a
! 7056: ltmain="$ac_aux_dir/ltmain.sh"
! 7057: ofile="$default_ofile"
! 7058: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25 millert 7059:
1.27 ! millert 7060: if test -n "$ac_tool_prefix"; then
! 7061: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
! 7062: set dummy ${ac_tool_prefix}ar; ac_word=$2
! 7063: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7064: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7065: if test "${ac_cv_prog_AR+set}" = set; then
! 7066: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7067: else
! 7068: if test -n "$AR"; then
! 7069: ac_cv_prog_AR="$AR" # Let the user override the test.
! 7070: else
! 7071: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7072: for as_dir in $PATH
! 7073: do
! 7074: IFS=$as_save_IFS
! 7075: test -z "$as_dir" && as_dir=.
! 7076: for ac_exec_ext in '' $ac_executable_extensions; do
! 7077: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7078: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 7079: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7080: break 2
! 7081: fi
! 7082: done
! 7083: done
! 7084: IFS=$as_save_IFS
1.25 millert 7085:
1.27 ! millert 7086: fi
! 7087: fi
! 7088: AR=$ac_cv_prog_AR
! 7089: if test -n "$AR"; then
! 7090: { echo "$as_me:$LINENO: result: $AR" >&5
! 7091: echo "${ECHO_T}$AR" >&6; }
! 7092: else
! 7093: { echo "$as_me:$LINENO: result: no" >&5
! 7094: echo "${ECHO_T}no" >&6; }
! 7095: fi
1.25 millert 7096:
7097:
1.27 ! millert 7098: fi
! 7099: if test -z "$ac_cv_prog_AR"; then
! 7100: ac_ct_AR=$AR
! 7101: # Extract the first word of "ar", so it can be a program name with args.
! 7102: set dummy ar; ac_word=$2
! 7103: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7104: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7105: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 7106: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7107: else
! 7108: if test -n "$ac_ct_AR"; then
! 7109: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! 7110: else
! 7111: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7112: for as_dir in $PATH
! 7113: do
! 7114: IFS=$as_save_IFS
! 7115: test -z "$as_dir" && as_dir=.
! 7116: for ac_exec_ext in '' $ac_executable_extensions; do
! 7117: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7118: ac_cv_prog_ac_ct_AR="ar"
! 7119: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7120: break 2
! 7121: fi
! 7122: done
! 7123: done
! 7124: IFS=$as_save_IFS
1.25 millert 7125:
1.27 ! millert 7126: fi
! 7127: fi
! 7128: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 7129: if test -n "$ac_ct_AR"; then
! 7130: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 7131: echo "${ECHO_T}$ac_ct_AR" >&6; }
! 7132: else
! 7133: { echo "$as_me:$LINENO: result: no" >&5
! 7134: echo "${ECHO_T}no" >&6; }
! 7135: fi
1.25 millert 7136:
1.27 ! millert 7137: if test "x$ac_ct_AR" = x; then
! 7138: AR="false"
! 7139: else
! 7140: case $cross_compiling:$ac_tool_warned in
! 7141: yes:)
! 7142: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7143: whose name does not start with the host triplet. If you think this
! 7144: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 7145: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7146: whose name does not start with the host triplet. If you think this
! 7147: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 7148: ac_tool_warned=yes ;;
! 7149: esac
! 7150: AR=$ac_ct_AR
! 7151: fi
! 7152: else
! 7153: AR="$ac_cv_prog_AR"
! 7154: fi
1.25 millert 7155:
1.27 ! millert 7156: if test -n "$ac_tool_prefix"; then
! 7157: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 7158: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 7159: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7160: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7161: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 7162: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7163: else
! 7164: if test -n "$RANLIB"; then
! 7165: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 7166: else
! 7167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7168: for as_dir in $PATH
! 7169: do
! 7170: IFS=$as_save_IFS
! 7171: test -z "$as_dir" && as_dir=.
! 7172: for ac_exec_ext in '' $ac_executable_extensions; do
! 7173: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7174: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 7175: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7176: break 2
! 7177: fi
! 7178: done
! 7179: done
! 7180: IFS=$as_save_IFS
1.25 millert 7181:
1.27 ! millert 7182: fi
! 7183: fi
! 7184: RANLIB=$ac_cv_prog_RANLIB
! 7185: if test -n "$RANLIB"; then
! 7186: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 7187: echo "${ECHO_T}$RANLIB" >&6; }
! 7188: else
! 7189: { echo "$as_me:$LINENO: result: no" >&5
! 7190: echo "${ECHO_T}no" >&6; }
! 7191: fi
1.25 millert 7192:
7193:
1.27 ! millert 7194: fi
! 7195: if test -z "$ac_cv_prog_RANLIB"; then
! 7196: ac_ct_RANLIB=$RANLIB
! 7197: # Extract the first word of "ranlib", so it can be a program name with args.
! 7198: set dummy ranlib; ac_word=$2
! 7199: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7200: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7201: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23 millert 7202: echo $ECHO_N "(cached) $ECHO_C" >&6
7203: else
1.27 ! millert 7204: if test -n "$ac_ct_RANLIB"; then
! 7205: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23 millert 7206: else
1.27 ! millert 7207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7208: for as_dir in $PATH
! 7209: do
! 7210: IFS=$as_save_IFS
! 7211: test -z "$as_dir" && as_dir=.
! 7212: for ac_exec_ext in '' $ac_executable_extensions; do
! 7213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7214: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 7215: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7216: break 2
! 7217: fi
! 7218: done
! 7219: done
! 7220: IFS=$as_save_IFS
1.23 millert 7221:
7222: fi
1.27 ! millert 7223: fi
! 7224: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 7225: if test -n "$ac_ct_RANLIB"; then
! 7226: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 7227: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23 millert 7228: else
1.27 ! millert 7229: { echo "$as_me:$LINENO: result: no" >&5
! 7230: echo "${ECHO_T}no" >&6; }
1.25 millert 7231: fi
1.23 millert 7232:
1.27 ! millert 7233: if test "x$ac_ct_RANLIB" = x; then
! 7234: RANLIB=":"
! 7235: else
! 7236: case $cross_compiling:$ac_tool_warned in
! 7237: yes:)
! 7238: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7239: whose name does not start with the host triplet. If you think this
! 7240: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 7241: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7242: whose name does not start with the host triplet. If you think this
! 7243: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 7244: ac_tool_warned=yes ;;
! 7245: esac
! 7246: RANLIB=$ac_ct_RANLIB
! 7247: fi
! 7248: else
! 7249: RANLIB="$ac_cv_prog_RANLIB"
1.23 millert 7250: fi
1.25 millert 7251:
1.27 ! millert 7252: if test -n "$ac_tool_prefix"; then
! 7253: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 7254: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 7255: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7256: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7257: if test "${ac_cv_prog_STRIP+set}" = set; then
! 7258: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7259: else
! 7260: if test -n "$STRIP"; then
! 7261: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 7262: else
! 7263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7264: for as_dir in $PATH
! 7265: do
! 7266: IFS=$as_save_IFS
! 7267: test -z "$as_dir" && as_dir=.
! 7268: for ac_exec_ext in '' $ac_executable_extensions; do
! 7269: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7270: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 7271: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7272: break 2
! 7273: fi
! 7274: done
! 7275: done
! 7276: IFS=$as_save_IFS
1.25 millert 7277:
1.27 ! millert 7278: fi
! 7279: fi
! 7280: STRIP=$ac_cv_prog_STRIP
! 7281: if test -n "$STRIP"; then
! 7282: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 7283: echo "${ECHO_T}$STRIP" >&6; }
1.25 millert 7284: else
1.27 ! millert 7285: { echo "$as_me:$LINENO: result: no" >&5
! 7286: echo "${ECHO_T}no" >&6; }
1.25 millert 7287: fi
1.27 ! millert 7288:
1.25 millert 7289:
7290: fi
1.27 ! millert 7291: if test -z "$ac_cv_prog_STRIP"; then
! 7292: ac_ct_STRIP=$STRIP
! 7293: # Extract the first word of "strip", so it can be a program name with args.
! 7294: set dummy strip; ac_word=$2
! 7295: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7296: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 7297: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 7298: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 7299: else
1.27 ! millert 7300: if test -n "$ac_ct_STRIP"; then
! 7301: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23 millert 7302: else
1.27 ! millert 7303: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7304: for as_dir in $PATH
! 7305: do
! 7306: IFS=$as_save_IFS
! 7307: test -z "$as_dir" && as_dir=.
! 7308: for ac_exec_ext in '' $ac_executable_extensions; do
! 7309: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 7310: ac_cv_prog_ac_ct_STRIP="strip"
! 7311: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7312: break 2
! 7313: fi
! 7314: done
! 7315: done
! 7316: IFS=$as_save_IFS
1.23 millert 7317:
1.25 millert 7318: fi
7319: fi
1.27 ! millert 7320: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 7321: if test -n "$ac_ct_STRIP"; then
! 7322: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 7323: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
! 7324: else
! 7325: { echo "$as_me:$LINENO: result: no" >&5
! 7326: echo "${ECHO_T}no" >&6; }
1.23 millert 7327: fi
1.25 millert 7328:
1.27 ! millert 7329: if test "x$ac_ct_STRIP" = x; then
! 7330: STRIP=":"
! 7331: else
! 7332: case $cross_compiling:$ac_tool_warned in
! 7333: yes:)
! 7334: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7335: whose name does not start with the host triplet. If you think this
! 7336: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 7337: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7338: whose name does not start with the host triplet. If you think this
! 7339: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 7340: ac_tool_warned=yes ;;
! 7341: esac
! 7342: STRIP=$ac_ct_STRIP
! 7343: fi
! 7344: else
! 7345: STRIP="$ac_cv_prog_STRIP"
1.23 millert 7346: fi
7347:
1.25 millert 7348:
1.27 ! millert 7349: old_CC="$CC"
! 7350: old_CFLAGS="$CFLAGS"
1.25 millert 7351:
1.27 ! millert 7352: # Set sane defaults for various variables
! 7353: test -z "$AR" && AR=ar
! 7354: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 7355: test -z "$AS" && AS=as
! 7356: test -z "$CC" && CC=cc
! 7357: test -z "$LTCC" && LTCC=$CC
! 7358: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
! 7359: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 7360: test -z "$LD" && LD=ld
! 7361: test -z "$LN_S" && LN_S="ln -s"
! 7362: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 7363: test -z "$NM" && NM=nm
! 7364: test -z "$SED" && SED=sed
! 7365: test -z "$OBJDUMP" && OBJDUMP=objdump
! 7366: test -z "$RANLIB" && RANLIB=:
! 7367: test -z "$STRIP" && STRIP=:
! 7368: test -z "$ac_objext" && ac_objext=o
1.25 millert 7369:
1.27 ! millert 7370: # Determine commands to create old-style static archives.
! 7371: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
! 7372: old_postinstall_cmds='chmod 644 $oldlib'
! 7373: old_postuninstall_cmds=
1.25 millert 7374:
1.27 ! millert 7375: if test -n "$RANLIB"; then
! 7376: case $host_os in
! 7377: openbsd*)
! 7378: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
! 7379: ;;
! 7380: *)
! 7381: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
! 7382: ;;
! 7383: esac
! 7384: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
! 7385: fi
1.25 millert 7386:
1.27 ! millert 7387: for cc_temp in $compiler""; do
! 7388: case $cc_temp in
! 7389: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 7390: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 7391: \-*) ;;
! 7392: *) break;;
! 7393: esac
! 7394: done
! 7395: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25 millert 7396:
7397:
1.27 ! millert 7398: # Only perform the check for file, if the check method requires it
! 7399: case $deplibs_check_method in
! 7400: file_magic*)
! 7401: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 7402: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 7403: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
! 7404: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23 millert 7405: echo $ECHO_N "(cached) $ECHO_C" >&6
7406: else
1.27 ! millert 7407: case $MAGIC_CMD in
! 7408: [\\/*] | ?:[\\/]*)
! 7409: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7410: ;;
! 7411: *)
! 7412: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7413: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7414: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7415: for ac_dir in $ac_dummy; do
! 7416: IFS="$lt_save_ifs"
! 7417: test -z "$ac_dir" && ac_dir=.
! 7418: if test -f $ac_dir/${ac_tool_prefix}file; then
! 7419: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 7420: if test -n "$file_magic_test_file"; then
! 7421: case $deplibs_check_method in
! 7422: "file_magic "*)
! 7423: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 7424: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7425: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7426: $EGREP "$file_magic_regex" > /dev/null; then
! 7427: :
! 7428: else
! 7429: cat <<EOF 1>&2
1.25 millert 7430:
1.27 ! millert 7431: *** Warning: the command libtool uses to detect shared libraries,
! 7432: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7433: *** The result is that libtool may fail to recognize shared libraries
! 7434: *** as such. This will affect the creation of libtool libraries that
! 7435: *** depend on shared libraries, but programs linked with such libtool
! 7436: *** libraries will work regardless of this problem. Nevertheless, you
! 7437: *** may want to report the problem to your system manager and/or to
! 7438: *** bug-libtool@gnu.org
1.23 millert 7439:
1.27 ! millert 7440: EOF
! 7441: fi ;;
! 7442: esac
! 7443: fi
! 7444: break
! 7445: fi
! 7446: done
! 7447: IFS="$lt_save_ifs"
! 7448: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7449: ;;
! 7450: esac
1.25 millert 7451: fi
7452:
1.27 ! millert 7453: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7454: if test -n "$MAGIC_CMD"; then
! 7455: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7456: echo "${ECHO_T}$MAGIC_CMD" >&6; }
! 7457: else
! 7458: { echo "$as_me:$LINENO: result: no" >&5
! 7459: echo "${ECHO_T}no" >&6; }
1.23 millert 7460: fi
7461:
1.27 ! millert 7462: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 7463: if test -n "$ac_tool_prefix"; then
! 7464: { echo "$as_me:$LINENO: checking for file" >&5
! 7465: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
! 7466: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25 millert 7467: echo $ECHO_N "(cached) $ECHO_C" >&6
7468: else
1.27 ! millert 7469: case $MAGIC_CMD in
! 7470: [\\/*] | ?:[\\/]*)
! 7471: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7472: ;;
! 7473: *)
! 7474: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7475: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7476: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7477: for ac_dir in $ac_dummy; do
! 7478: IFS="$lt_save_ifs"
! 7479: test -z "$ac_dir" && ac_dir=.
! 7480: if test -f $ac_dir/file; then
! 7481: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 7482: if test -n "$file_magic_test_file"; then
! 7483: case $deplibs_check_method in
! 7484: "file_magic "*)
! 7485: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 7486: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7487: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7488: $EGREP "$file_magic_regex" > /dev/null; then
! 7489: :
! 7490: else
! 7491: cat <<EOF 1>&2
1.25 millert 7492:
1.27 ! millert 7493: *** Warning: the command libtool uses to detect shared libraries,
! 7494: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7495: *** The result is that libtool may fail to recognize shared libraries
! 7496: *** as such. This will affect the creation of libtool libraries that
! 7497: *** depend on shared libraries, but programs linked with such libtool
! 7498: *** libraries will work regardless of this problem. Nevertheless, you
! 7499: *** may want to report the problem to your system manager and/or to
! 7500: *** bug-libtool@gnu.org
1.23 millert 7501:
1.27 ! millert 7502: EOF
! 7503: fi ;;
! 7504: esac
! 7505: fi
! 7506: break
! 7507: fi
! 7508: done
! 7509: IFS="$lt_save_ifs"
! 7510: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7511: ;;
! 7512: esac
1.25 millert 7513: fi
1.27 ! millert 7514:
! 7515: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7516: if test -n "$MAGIC_CMD"; then
! 7517: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7518: echo "${ECHO_T}$MAGIC_CMD" >&6; }
! 7519: else
! 7520: { echo "$as_me:$LINENO: result: no" >&5
! 7521: echo "${ECHO_T}no" >&6; }
1.25 millert 7522: fi
7523:
1.27 ! millert 7524: else
! 7525: MAGIC_CMD=:
! 7526: fi
1.23 millert 7527: fi
7528:
1.27 ! millert 7529: fi
! 7530: ;;
! 7531: esac
1.23 millert 7532:
1.27 ! millert 7533: enable_dlopen=no
! 7534: enable_win32_dll=no
1.25 millert 7535:
1.27 ! millert 7536: # Check whether --enable-libtool-lock was given.
! 7537: if test "${enable_libtool_lock+set}" = set; then
! 7538: enableval=$enable_libtool_lock;
! 7539: fi
1.25 millert 7540:
1.27 ! millert 7541: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25 millert 7542:
1.23 millert 7543:
1.27 ! millert 7544: # Check whether --with-pic was given.
! 7545: if test "${with_pic+set}" = set; then
! 7546: withval=$with_pic; pic_mode="$withval"
1.23 millert 7547: else
1.27 ! millert 7548: pic_mode=default
! 7549: fi
1.25 millert 7550:
1.27 ! millert 7551: test -z "$pic_mode" && pic_mode=default
1.23 millert 7552:
1.27 ! millert 7553: # Use C for the default configuration in the libtool script
! 7554: tagname=
! 7555: lt_save_CC="$CC"
! 7556: ac_ext=c
! 7557: ac_cpp='$CPP $CPPFLAGS'
! 7558: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7559: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7560: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 7561:
7562:
1.27 ! millert 7563: # Source file extension for C test sources.
! 7564: ac_ext=c
1.23 millert 7565:
1.27 ! millert 7566: # Object file extension for compiled C test sources.
! 7567: objext=o
! 7568: objext=$objext
1.23 millert 7569:
1.27 ! millert 7570: # Code to be used in simple compile tests
! 7571: lt_simple_compile_test_code="int some_variable = 0;"
1.23 millert 7572:
1.27 ! millert 7573: # Code to be used in simple link tests
! 7574: lt_simple_link_test_code='int main(){return(0);}'
1.23 millert 7575:
7576:
1.27 ! millert 7577: # If no C compiler was specified, use CC.
! 7578: LTCC=${LTCC-"$CC"}
1.23 millert 7579:
1.27 ! millert 7580: # If no C compiler flags were specified, use CFLAGS.
! 7581: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23 millert 7582:
1.27 ! millert 7583: # Allow CC to be a program name with arguments.
! 7584: compiler=$CC
1.23 millert 7585:
7586:
1.27 ! millert 7587: # save warnings/boilerplate of simple test code
! 7588: ac_outfile=conftest.$ac_objext
! 7589: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 7590: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7591: _lt_compiler_boilerplate=`cat conftest.err`
! 7592: $rm conftest*
! 7593:
! 7594: ac_outfile=conftest.$ac_objext
! 7595: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 7596: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7597: _lt_linker_boilerplate=`cat conftest.err`
! 7598: $rm conftest*
1.23 millert 7599:
7600:
1.27 ! millert 7601: ## CAVEAT EMPTOR:
! 7602: ## There is no encapsulation within the following macros, do not change
! 7603: ## the running order or otherwise move them around unless you know exactly
! 7604: ## what you are doing...
1.23 millert 7605:
1.27 ! millert 7606: lt_prog_compiler_no_builtin_flag=
1.23 millert 7607:
1.27 ! millert 7608: if test "$GCC" = yes; then
! 7609: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23 millert 7610:
7611:
1.27 ! millert 7612: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7613: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
! 7614: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7615: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 7616: else
1.27 ! millert 7617: lt_cv_prog_compiler_rtti_exceptions=no
! 7618: ac_outfile=conftest.$ac_objext
! 7619: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7620: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 7621: # Insert the option either (1) after the last *FLAGS variable, or
! 7622: # (2) before a word containing "conftest.", or (3) at the end.
! 7623: # Note that $ac_compile itself does not contain backslashes and begins
! 7624: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7625: # The option is referenced via a variable to avoid confusing sed.
! 7626: lt_compile=`echo "$ac_compile" | $SED \
! 7627: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 7628: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7629: -e 's:$: $lt_compiler_flag:'`
! 7630: (eval echo "\"\$as_me:7630: $lt_compile\"" >&5)
! 7631: (eval "$lt_compile" 2>conftest.err)
! 7632: ac_status=$?
! 7633: cat conftest.err >&5
! 7634: echo "$as_me:7634: \$? = $ac_status" >&5
! 7635: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7636: # The compiler can only warn and ignore the option if not recognized
! 7637: # So say no if there are warnings other than the usual output.
! 7638: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7639: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7640: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 7641: lt_cv_prog_compiler_rtti_exceptions=yes
! 7642: fi
! 7643: fi
! 7644: $rm conftest*
1.23 millert 7645:
1.25 millert 7646: fi
1.27 ! millert 7647: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7648: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25 millert 7649:
1.27 ! millert 7650: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 7651: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25 millert 7652: else
1.27 ! millert 7653: :
! 7654: fi
1.23 millert 7655:
1.25 millert 7656: fi
1.23 millert 7657:
1.27 ! millert 7658: lt_prog_compiler_wl=
! 7659: lt_prog_compiler_pic=
! 7660: lt_prog_compiler_static=
1.23 millert 7661:
1.27 ! millert 7662: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 7663: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25 millert 7664:
1.27 ! millert 7665: if test "$GCC" = yes; then
! 7666: lt_prog_compiler_wl='-Wl,'
! 7667: lt_prog_compiler_static='-static'
1.25 millert 7668:
1.27 ! millert 7669: case $host_os in
! 7670: aix*)
! 7671: # All AIX code is PIC.
! 7672: if test "$host_cpu" = ia64; then
! 7673: # AIX 5 now supports IA64 processor
! 7674: lt_prog_compiler_static='-Bstatic'
! 7675: fi
! 7676: ;;
1.25 millert 7677:
1.27 ! millert 7678: amigaos*)
! 7679: # FIXME: we need at least 68020 code to build shared libraries, but
! 7680: # adding the `-m68020' flag to GCC prevents building anything better,
! 7681: # like `-m68040'.
! 7682: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
! 7683: ;;
1.25 millert 7684:
1.27 ! millert 7685: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 7686: # PIC is the default for these OSes.
! 7687: ;;
1.23 millert 7688:
1.27 ! millert 7689: mingw* | cygwin* | pw32* | os2*)
! 7690: # This hack is so that the source file can tell whether it is being
! 7691: # built for inclusion in a dll (and should export symbols for example).
! 7692: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 7693: # (--disable-auto-import) libraries
! 7694: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7695: ;;
1.23 millert 7696:
1.27 ! millert 7697: darwin* | rhapsody*)
! 7698: # PIC is the default on this platform
! 7699: # Common symbols not allowed in MH_DYLIB files
! 7700: lt_prog_compiler_pic='-fno-common'
! 7701: ;;
1.23 millert 7702:
1.27 ! millert 7703: interix[3-9]*)
! 7704: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 7705: # Instead, we relocate shared libraries at runtime.
! 7706: ;;
1.23 millert 7707:
1.27 ! millert 7708: msdosdjgpp*)
! 7709: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 7710: # on systems that don't support them.
! 7711: lt_prog_compiler_can_build_shared=no
! 7712: enable_shared=no
! 7713: ;;
1.23 millert 7714:
1.27 ! millert 7715: sysv4*MP*)
! 7716: if test -d /usr/nec; then
! 7717: lt_prog_compiler_pic=-Kconform_pic
! 7718: fi
! 7719: ;;
1.23 millert 7720:
1.27 ! millert 7721: hpux*)
! 7722: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7723: # not for PA HP-UX.
! 7724: case $host_cpu in
! 7725: hppa*64*|ia64*)
! 7726: # +Z the default
! 7727: ;;
! 7728: *)
! 7729: lt_prog_compiler_pic='-fPIC'
! 7730: ;;
! 7731: esac
! 7732: ;;
1.23 millert 7733:
1.27 ! millert 7734: *)
! 7735: lt_prog_compiler_pic='-fPIC'
! 7736: ;;
! 7737: esac
! 7738: else
! 7739: # PORTME Check for flag to pass linker flags through the system compiler.
! 7740: case $host_os in
! 7741: aix*)
! 7742: lt_prog_compiler_wl='-Wl,'
! 7743: if test "$host_cpu" = ia64; then
! 7744: # AIX 5 now supports IA64 processor
! 7745: lt_prog_compiler_static='-Bstatic'
! 7746: else
! 7747: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
! 7748: fi
! 7749: ;;
! 7750: darwin*)
! 7751: # PIC is the default on this platform
! 7752: # Common symbols not allowed in MH_DYLIB files
! 7753: case $cc_basename in
! 7754: xlc*)
! 7755: lt_prog_compiler_pic='-qnocommon'
! 7756: lt_prog_compiler_wl='-Wl,'
! 7757: ;;
! 7758: esac
! 7759: ;;
1.23 millert 7760:
1.27 ! millert 7761: mingw* | cygwin* | pw32* | os2*)
! 7762: # This hack is so that the source file can tell whether it is being
! 7763: # built for inclusion in a dll (and should export symbols for example).
! 7764: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7765: ;;
1.25 millert 7766:
1.27 ! millert 7767: hpux9* | hpux10* | hpux11*)
! 7768: lt_prog_compiler_wl='-Wl,'
! 7769: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7770: # not for PA HP-UX.
! 7771: case $host_cpu in
! 7772: hppa*64*|ia64*)
! 7773: # +Z the default
! 7774: ;;
! 7775: *)
! 7776: lt_prog_compiler_pic='+Z'
! 7777: ;;
! 7778: esac
! 7779: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 7780: lt_prog_compiler_static='${wl}-a ${wl}archive'
! 7781: ;;
1.23 millert 7782:
1.27 ! millert 7783: irix5* | irix6* | nonstopux*)
! 7784: lt_prog_compiler_wl='-Wl,'
! 7785: # PIC (with -KPIC) is the default.
! 7786: lt_prog_compiler_static='-non_shared'
! 7787: ;;
1.23 millert 7788:
1.27 ! millert 7789: newsos6)
! 7790: lt_prog_compiler_pic='-KPIC'
! 7791: lt_prog_compiler_static='-Bstatic'
! 7792: ;;
1.23 millert 7793:
1.27 ! millert 7794: linux* | k*bsd*-gnu)
! 7795: case $cc_basename in
! 7796: icc* | ecc*)
! 7797: lt_prog_compiler_wl='-Wl,'
! 7798: lt_prog_compiler_pic='-KPIC'
! 7799: lt_prog_compiler_static='-static'
! 7800: ;;
! 7801: pgcc* | pgf77* | pgf90* | pgf95*)
! 7802: # Portland Group compilers (*not* the Pentium gcc compiler,
! 7803: # which looks to be a dead project)
! 7804: lt_prog_compiler_wl='-Wl,'
! 7805: lt_prog_compiler_pic='-fpic'
! 7806: lt_prog_compiler_static='-Bstatic'
! 7807: ;;
! 7808: ccc*)
! 7809: lt_prog_compiler_wl='-Wl,'
! 7810: # All Alpha code is PIC.
! 7811: lt_prog_compiler_static='-non_shared'
! 7812: ;;
! 7813: *)
! 7814: case `$CC -V 2>&1 | sed 5q` in
! 7815: *Sun\ C*)
! 7816: # Sun C 5.9
! 7817: lt_prog_compiler_pic='-KPIC'
! 7818: lt_prog_compiler_static='-Bstatic'
! 7819: lt_prog_compiler_wl='-Wl,'
! 7820: ;;
! 7821: *Sun\ F*)
! 7822: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 7823: lt_prog_compiler_pic='-KPIC'
! 7824: lt_prog_compiler_static='-Bstatic'
! 7825: lt_prog_compiler_wl=''
! 7826: ;;
! 7827: esac
! 7828: ;;
! 7829: esac
! 7830: ;;
1.23 millert 7831:
1.27 ! millert 7832: osf3* | osf4* | osf5*)
! 7833: lt_prog_compiler_wl='-Wl,'
! 7834: # All OSF/1 code is PIC.
! 7835: lt_prog_compiler_static='-non_shared'
! 7836: ;;
1.23 millert 7837:
1.27 ! millert 7838: rdos*)
! 7839: lt_prog_compiler_static='-non_shared'
! 7840: ;;
1.25 millert 7841:
1.27 ! millert 7842: solaris*)
! 7843: lt_prog_compiler_pic='-KPIC'
! 7844: lt_prog_compiler_static='-Bstatic'
! 7845: case $cc_basename in
! 7846: f77* | f90* | f95*)
! 7847: lt_prog_compiler_wl='-Qoption ld ';;
! 7848: *)
! 7849: lt_prog_compiler_wl='-Wl,';;
! 7850: esac
! 7851: ;;
1.25 millert 7852:
1.27 ! millert 7853: sunos4*)
! 7854: lt_prog_compiler_wl='-Qoption ld '
! 7855: lt_prog_compiler_pic='-PIC'
! 7856: lt_prog_compiler_static='-Bstatic'
! 7857: ;;
1.25 millert 7858:
1.27 ! millert 7859: sysv4 | sysv4.2uw2* | sysv4.3*)
! 7860: lt_prog_compiler_wl='-Wl,'
! 7861: lt_prog_compiler_pic='-KPIC'
! 7862: lt_prog_compiler_static='-Bstatic'
! 7863: ;;
1.25 millert 7864:
1.27 ! millert 7865: sysv4*MP*)
! 7866: if test -d /usr/nec ;then
! 7867: lt_prog_compiler_pic='-Kconform_pic'
! 7868: lt_prog_compiler_static='-Bstatic'
! 7869: fi
! 7870: ;;
1.25 millert 7871:
1.27 ! millert 7872: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 7873: lt_prog_compiler_wl='-Wl,'
! 7874: lt_prog_compiler_pic='-KPIC'
! 7875: lt_prog_compiler_static='-Bstatic'
! 7876: ;;
1.25 millert 7877:
1.27 ! millert 7878: unicos*)
! 7879: lt_prog_compiler_wl='-Wl,'
! 7880: lt_prog_compiler_can_build_shared=no
! 7881: ;;
1.23 millert 7882:
1.27 ! millert 7883: uts4*)
! 7884: lt_prog_compiler_pic='-pic'
! 7885: lt_prog_compiler_static='-Bstatic'
! 7886: ;;
1.23 millert 7887:
1.27 ! millert 7888: *)
! 7889: lt_prog_compiler_can_build_shared=no
! 7890: ;;
1.25 millert 7891: esac
7892: fi
1.23 millert 7893:
1.27 ! millert 7894: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 7895: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23 millert 7896:
1.27 ! millert 7897: #
! 7898: # Check to make sure the PIC flag actually works.
! 7899: #
! 7900: if test -n "$lt_prog_compiler_pic"; then
1.23 millert 7901:
1.27 ! millert 7902: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7903: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
! 7904: if test "${lt_prog_compiler_pic_works+set}" = set; then
1.23 millert 7905: echo $ECHO_N "(cached) $ECHO_C" >&6
7906: else
1.27 ! millert 7907: lt_prog_compiler_pic_works=no
! 7908: ac_outfile=conftest.$ac_objext
! 7909: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7910: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
! 7911: # Insert the option either (1) after the last *FLAGS variable, or
! 7912: # (2) before a word containing "conftest.", or (3) at the end.
! 7913: # Note that $ac_compile itself does not contain backslashes and begins
! 7914: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7915: # The option is referenced via a variable to avoid confusing sed.
! 7916: lt_compile=`echo "$ac_compile" | $SED \
! 7917: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 7918: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7919: -e 's:$: $lt_compiler_flag:'`
! 7920: (eval echo "\"\$as_me:7920: $lt_compile\"" >&5)
! 7921: (eval "$lt_compile" 2>conftest.err)
! 7922: ac_status=$?
! 7923: cat conftest.err >&5
! 7924: echo "$as_me:7924: \$? = $ac_status" >&5
! 7925: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7926: # The compiler can only warn and ignore the option if not recognized
! 7927: # So say no if there are warnings other than the usual output.
! 7928: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7929: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7930: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 7931: lt_prog_compiler_pic_works=yes
! 7932: fi
! 7933: fi
! 7934: $rm conftest*
1.23 millert 7935:
1.27 ! millert 7936: fi
! 7937: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 7938: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
1.23 millert 7939:
1.27 ! millert 7940: if test x"$lt_prog_compiler_pic_works" = xyes; then
! 7941: case $lt_prog_compiler_pic in
! 7942: "" | " "*) ;;
! 7943: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 7944: esac
! 7945: else
! 7946: lt_prog_compiler_pic=
! 7947: lt_prog_compiler_can_build_shared=no
1.23 millert 7948: fi
1.25 millert 7949:
1.23 millert 7950: fi
1.27 ! millert 7951: case $host_os in
! 7952: # For platforms which do not support PIC, -DPIC is meaningless:
! 7953: *djgpp*)
! 7954: lt_prog_compiler_pic=
! 7955: ;;
! 7956: *)
! 7957: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25 millert 7958: ;;
1.27 ! millert 7959: esac
1.25 millert 7960:
1.27 ! millert 7961: #
! 7962: # Check to make sure the static flag actually works.
! 7963: #
! 7964: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
! 7965: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 7966: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 7967: if test "${lt_prog_compiler_static_works+set}" = set; then
! 7968: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7969: else
! 7970: lt_prog_compiler_static_works=no
! 7971: save_LDFLAGS="$LDFLAGS"
! 7972: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 7973: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 7974: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 7975: # The linker can only warn and ignore the option if not recognized
! 7976: # So say no if there are warnings
! 7977: if test -s conftest.err; then
! 7978: # Append any errors to the config.log.
! 7979: cat conftest.err 1>&5
! 7980: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 7981: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7982: if diff conftest.exp conftest.er2 >/dev/null; then
! 7983: lt_prog_compiler_static_works=yes
! 7984: fi
! 7985: else
! 7986: lt_prog_compiler_static_works=yes
! 7987: fi
! 7988: fi
! 7989: $rm conftest*
! 7990: LDFLAGS="$save_LDFLAGS"
1.25 millert 7991:
1.23 millert 7992: fi
1.27 ! millert 7993: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 7994: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
1.23 millert 7995:
1.27 ! millert 7996: if test x"$lt_prog_compiler_static_works" = xyes; then
! 7997: :
! 7998: else
! 7999: lt_prog_compiler_static=
! 8000: fi
1.23 millert 8001:
8002:
1.27 ! millert 8003: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8004: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 8005: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 8006: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8007: else
! 8008: lt_cv_prog_compiler_c_o=no
! 8009: $rm -r conftest 2>/dev/null
! 8010: mkdir conftest
! 8011: cd conftest
! 8012: mkdir out
! 8013: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 8014:
! 8015: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 8016: # Insert the option either (1) after the last *FLAGS variable, or
! 8017: # (2) before a word containing "conftest.", or (3) at the end.
! 8018: # Note that $ac_compile itself does not contain backslashes and begins
! 8019: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 8020: lt_compile=`echo "$ac_compile" | $SED \
! 8021: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 8022: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 8023: -e 's:$: $lt_compiler_flag:'`
! 8024: (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
! 8025: (eval "$lt_compile" 2>out/conftest.err)
! 8026: ac_status=$?
! 8027: cat out/conftest.err >&5
! 8028: echo "$as_me:8028: \$? = $ac_status" >&5
! 8029: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 8030: then
! 8031: # The compiler can only warn and ignore the option if not recognized
! 8032: # So say no if there are warnings
! 8033: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 8034: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 8035: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
! 8036: lt_cv_prog_compiler_c_o=yes
! 8037: fi
! 8038: fi
! 8039: chmod u+w . 2>&5
! 8040: $rm conftest*
! 8041: # SGI C++ compiler will create directory out/ii_files/ for
! 8042: # template instantiation
! 8043: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 8044: $rm out/* && rmdir out
! 8045: cd ..
! 8046: rmdir conftest
! 8047: $rm conftest*
1.23 millert 8048:
1.27 ! millert 8049: fi
! 8050: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 8051: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
! 8052:
! 8053:
! 8054: hard_links="nottested"
! 8055: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
! 8056: # do not overwrite the value of need_locks provided by the user
! 8057: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 8058: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
! 8059: hard_links=yes
! 8060: $rm conftest*
! 8061: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 8062: touch conftest.a
! 8063: ln conftest.a conftest.b 2>&5 || hard_links=no
! 8064: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 8065: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 8066: echo "${ECHO_T}$hard_links" >&6; }
! 8067: if test "$hard_links" = no; then
! 8068: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 8069: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 8070: need_locks=warn
! 8071: fi
! 8072: else
! 8073: need_locks=no
! 8074: fi
1.23 millert 8075:
1.27 ! millert 8076: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 8077: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23 millert 8078:
1.27 ! millert 8079: runpath_var=
! 8080: allow_undefined_flag=
! 8081: enable_shared_with_static_runtimes=no
! 8082: archive_cmds=
! 8083: archive_expsym_cmds=
! 8084: old_archive_From_new_cmds=
! 8085: old_archive_from_expsyms_cmds=
! 8086: export_dynamic_flag_spec=
! 8087: whole_archive_flag_spec=
! 8088: thread_safe_flag_spec=
! 8089: hardcode_libdir_flag_spec=
! 8090: hardcode_libdir_flag_spec_ld=
! 8091: hardcode_libdir_separator=
! 8092: hardcode_direct=no
! 8093: hardcode_minus_L=no
! 8094: hardcode_shlibpath_var=unsupported
! 8095: link_all_deplibs=unknown
! 8096: hardcode_automatic=no
! 8097: module_cmds=
! 8098: module_expsym_cmds=
! 8099: always_export_symbols=no
! 8100: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 8101: # include_expsyms should be a list of space-separated symbols to be *always*
! 8102: # included in the symbol list
! 8103: include_expsyms=
! 8104: # exclude_expsyms can be an extended regexp of symbols to exclude
! 8105: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 8106: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 8107: # as well as any symbol that contains `d'.
! 8108: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 8109: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 8110: # platforms (ab)use it in PIC code, but their linkers get confused if
! 8111: # the symbol is explicitly referenced. Since portable code cannot
! 8112: # rely on this symbol name, it's probably fine to never include it in
! 8113: # preloaded symbol tables.
! 8114: extract_expsyms_cmds=
! 8115: # Just being paranoid about ensuring that cc_basename is set.
! 8116: for cc_temp in $compiler""; do
! 8117: case $cc_temp in
! 8118: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 8119: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 8120: \-*) ;;
! 8121: *) break;;
! 8122: esac
! 8123: done
! 8124: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23 millert 8125:
1.27 ! millert 8126: case $host_os in
! 8127: cygwin* | mingw* | pw32*)
! 8128: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 8129: # When not using gcc, we currently assume that we are using
! 8130: # Microsoft Visual C++.
! 8131: if test "$GCC" != yes; then
! 8132: with_gnu_ld=no
! 8133: fi
! 8134: ;;
! 8135: interix*)
! 8136: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 8137: with_gnu_ld=yes
! 8138: ;;
! 8139: openbsd*)
! 8140: with_gnu_ld=no
! 8141: ;;
! 8142: esac
1.23 millert 8143:
1.27 ! millert 8144: ld_shlibs=yes
! 8145: if test "$with_gnu_ld" = yes; then
! 8146: # If archive_cmds runs LD, not CC, wlarc should be empty
! 8147: wlarc='${wl}'
1.23 millert 8148:
1.27 ! millert 8149: # Set some defaults for GNU ld with shared library support. These
! 8150: # are reset later if shared libraries are not supported. Putting them
! 8151: # here allows them to be overridden if necessary.
! 8152: runpath_var=LD_RUN_PATH
! 8153: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 8154: export_dynamic_flag_spec='${wl}--export-dynamic'
! 8155: # ancient GNU ld didn't support --whole-archive et. al.
! 8156: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 8157: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 8158: else
! 8159: whole_archive_flag_spec=
! 8160: fi
! 8161: supports_anon_versioning=no
! 8162: case `$LD -v 2>/dev/null` in
! 8163: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 8164: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 8165: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 8166: *\ 2.11.*) ;; # other 2.11 versions
! 8167: *) supports_anon_versioning=yes ;;
! 8168: esac
1.23 millert 8169:
1.27 ! millert 8170: # See if GNU ld supports shared libraries.
! 8171: case $host_os in
! 8172: aix3* | aix4* | aix5*)
! 8173: # On AIX/PPC, the GNU linker is very broken
! 8174: if test "$host_cpu" != ia64; then
! 8175: ld_shlibs=no
! 8176: cat <<EOF 1>&2
1.23 millert 8177:
1.27 ! millert 8178: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 8179: *** to be unable to reliably create shared libraries on AIX.
! 8180: *** Therefore, libtool is disabling shared libraries support. If you
! 8181: *** really care for shared libraries, you may want to modify your PATH
! 8182: *** so that a non-GNU linker is found, and then restart.
1.23 millert 8183:
1.27 ! millert 8184: EOF
! 8185: fi
! 8186: ;;
1.23 millert 8187:
1.27 ! millert 8188: amigaos*)
! 8189: 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)'
! 8190: hardcode_libdir_flag_spec='-L$libdir'
! 8191: hardcode_minus_L=yes
1.23 millert 8192:
1.27 ! millert 8193: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 8194: # that the semantics of dynamic libraries on AmigaOS, at least up
! 8195: # to version 4, is to share data among multiple programs linked
! 8196: # with the same dynamic library. Since this doesn't match the
! 8197: # behavior of shared libraries on other platforms, we can't use
! 8198: # them.
! 8199: ld_shlibs=no
! 8200: ;;
1.23 millert 8201:
1.27 ! millert 8202: beos*)
! 8203: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8204: allow_undefined_flag=unsupported
! 8205: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 8206: # support --undefined. This deserves some investigation. FIXME
! 8207: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8208: else
! 8209: ld_shlibs=no
! 8210: fi
! 8211: ;;
1.23 millert 8212:
1.27 ! millert 8213: cygwin* | mingw* | pw32*)
! 8214: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
! 8215: # as there is no search path for DLLs.
! 8216: hardcode_libdir_flag_spec='-L$libdir'
! 8217: allow_undefined_flag=unsupported
! 8218: always_export_symbols=no
! 8219: enable_shared_with_static_runtimes=yes
! 8220: 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 8221:
1.27 ! millert 8222: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 8223: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 8224: # If the export-symbols file already is a .def file (1st line
! 8225: # is EXPORTS), use it as is; otherwise, prepend...
! 8226: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 8227: cp $export_symbols $output_objdir/$soname.def;
! 8228: else
! 8229: echo EXPORTS > $output_objdir/$soname.def;
! 8230: cat $export_symbols >> $output_objdir/$soname.def;
! 8231: fi~
! 8232: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 8233: else
! 8234: ld_shlibs=no
! 8235: fi
! 8236: ;;
1.25 millert 8237:
1.27 ! millert 8238: interix[3-9]*)
! 8239: hardcode_direct=no
! 8240: hardcode_shlibpath_var=no
! 8241: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8242: export_dynamic_flag_spec='${wl}-E'
! 8243: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 8244: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 8245: # default) and relocated if they conflict, which is a slow very memory
! 8246: # consuming and fragmenting process. To avoid this, we pick a random,
! 8247: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 8248: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 8249: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 8250: 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'
! 8251: ;;
! 8252:
! 8253: gnu* | linux* | k*bsd*-gnu)
! 8254: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8255: tmp_addflag=
! 8256: case $cc_basename,$host_cpu in
! 8257: pgcc*) # Portland Group C compiler
! 8258: 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'
! 8259: tmp_addflag=' $pic_flag'
1.25 millert 8260: ;;
1.27 ! millert 8261: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 8262: 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'
! 8263: tmp_addflag=' $pic_flag -Mnomain' ;;
! 8264: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 8265: tmp_addflag=' -i_dynamic' ;;
! 8266: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 8267: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 8268: ifc* | ifort*) # Intel Fortran compiler
! 8269: tmp_addflag=' -nofor_main' ;;
1.25 millert 8270: esac
1.27 ! millert 8271: case `$CC -V 2>&1 | sed 5q` in
! 8272: *Sun\ C*) # Sun C 5.9
! 8273: 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'
! 8274: tmp_sharedflag='-G' ;;
! 8275: *Sun\ F*) # Sun Fortran 8.3
! 8276: tmp_sharedflag='-G' ;;
! 8277: *)
! 8278: tmp_sharedflag='-shared' ;;
1.25 millert 8279: esac
1.27 ! millert 8280: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25 millert 8281:
1.27 ! millert 8282: if test $supports_anon_versioning = yes; then
! 8283: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
! 8284: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 8285: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 8286: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 8287: fi
! 8288: else
! 8289: ld_shlibs=no
! 8290: fi
! 8291: ;;
1.23 millert 8292:
1.27 ! millert 8293: netbsd*)
! 8294: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8295: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 8296: wlarc=
! 8297: else
! 8298: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8299: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8300: fi
! 8301: ;;
1.23 millert 8302:
1.27 ! millert 8303: solaris*)
! 8304: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 8305: ld_shlibs=no
! 8306: cat <<EOF 1>&2
! 8307:
! 8308: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 8309: *** create shared libraries on Solaris systems. Therefore, libtool
! 8310: *** is disabling shared libraries support. We urge you to upgrade GNU
! 8311: *** binutils to release 2.9.1 or newer. Another option is to modify
! 8312: *** your PATH or compiler configuration so that the native linker is
! 8313: *** used, and then restart.
! 8314:
! 8315: EOF
! 8316: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8317: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8318: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8319: else
! 8320: ld_shlibs=no
! 8321: fi
! 8322: ;;
! 8323:
! 8324: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 8325: case `$LD -v 2>&1` in
! 8326: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 8327: ld_shlibs=no
! 8328: cat <<_LT_EOF 1>&2
! 8329:
! 8330: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 8331: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 8332: *** is disabling shared libraries support. We urge you to upgrade GNU
! 8333: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 8334: *** your PATH or compiler configuration so that the native linker is
! 8335: *** used, and then restart.
! 8336:
! 8337: _LT_EOF
! 8338: ;;
! 8339: *)
! 8340: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8341: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 8342: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 8343: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 8344: else
! 8345: ld_shlibs=no
! 8346: fi
! 8347: ;;
! 8348: esac
! 8349: ;;
! 8350:
! 8351: sunos4*)
! 8352: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8353: wlarc=
! 8354: hardcode_direct=yes
! 8355: hardcode_shlibpath_var=no
! 8356: ;;
! 8357:
! 8358: *)
! 8359: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8360: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8361: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8362: else
! 8363: ld_shlibs=no
! 8364: fi
! 8365: ;;
! 8366: esac
! 8367:
! 8368: if test "$ld_shlibs" = no; then
! 8369: runpath_var=
! 8370: hardcode_libdir_flag_spec=
! 8371: export_dynamic_flag_spec=
! 8372: whole_archive_flag_spec=
! 8373: fi
! 8374: else
! 8375: # PORTME fill in a description of your system's linker (not GNU ld)
! 8376: case $host_os in
! 8377: aix3*)
! 8378: allow_undefined_flag=unsupported
! 8379: always_export_symbols=yes
! 8380: 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'
! 8381: # Note: this linker hardcodes the directories in LIBPATH if there
! 8382: # are no directories specified by -L.
! 8383: hardcode_minus_L=yes
! 8384: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
! 8385: # Neither direct hardcoding nor static linking is supported with a
! 8386: # broken collect2.
! 8387: hardcode_direct=unsupported
! 8388: fi
! 8389: ;;
! 8390:
! 8391: aix4* | aix5*)
! 8392: if test "$host_cpu" = ia64; then
! 8393: # On IA64, the linker does run time linking by default, so we don't
! 8394: # have to do anything special.
! 8395: aix_use_runtimelinking=no
! 8396: exp_sym_flag='-Bexport'
! 8397: no_entry_flag=""
! 8398: else
! 8399: # If we're using GNU nm, then we don't want the "-C" option.
! 8400: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 8401: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 8402: 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'
! 8403: else
! 8404: 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'
! 8405: fi
! 8406: aix_use_runtimelinking=no
! 8407:
! 8408: # Test if we are trying to use run time linking or normal
! 8409: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 8410: # need to do runtime linking.
! 8411: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 8412: for ld_flag in $LDFLAGS; do
! 8413: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 8414: aix_use_runtimelinking=yes
! 8415: break
! 8416: fi
! 8417: done
! 8418: ;;
! 8419: esac
! 8420:
! 8421: exp_sym_flag='-bexport'
! 8422: no_entry_flag='-bnoentry'
! 8423: fi
! 8424:
! 8425: # When large executables or shared objects are built, AIX ld can
! 8426: # have problems creating the table of contents. If linking a library
! 8427: # or program results in "error TOC overflow" add -mminimal-toc to
! 8428: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 8429: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 8430:
! 8431: archive_cmds=''
! 8432: hardcode_direct=yes
! 8433: hardcode_libdir_separator=':'
! 8434: link_all_deplibs=yes
! 8435:
! 8436: if test "$GCC" = yes; then
! 8437: case $host_os in aix4.[012]|aix4.[012].*)
! 8438: # We only want to do this on AIX 4.2 and lower, the check
! 8439: # below for broken collect2 doesn't work under 4.3+
! 8440: collect2name=`${CC} -print-prog-name=collect2`
! 8441: if test -f "$collect2name" && \
! 8442: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 8443: then
! 8444: # We have reworked collect2
! 8445: :
! 8446: else
! 8447: # We have old collect2
! 8448: hardcode_direct=unsupported
! 8449: # It fails to find uninstalled libraries when the uninstalled
! 8450: # path is not listed in the libpath. Setting hardcode_minus_L
! 8451: # to unsupported forces relinking
! 8452: hardcode_minus_L=yes
! 8453: hardcode_libdir_flag_spec='-L$libdir'
! 8454: hardcode_libdir_separator=
! 8455: fi
! 8456: ;;
! 8457: esac
! 8458: shared_flag='-shared'
! 8459: if test "$aix_use_runtimelinking" = yes; then
! 8460: shared_flag="$shared_flag "'${wl}-G'
! 8461: fi
! 8462: else
! 8463: # not using gcc
! 8464: if test "$host_cpu" = ia64; then
! 8465: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 8466: # chokes on -Wl,-G. The following line is correct:
! 8467: shared_flag='-G'
! 8468: else
! 8469: if test "$aix_use_runtimelinking" = yes; then
! 8470: shared_flag='${wl}-G'
! 8471: else
! 8472: shared_flag='${wl}-bM:SRE'
! 8473: fi
! 8474: fi
! 8475: fi
! 8476:
! 8477: # It seems that -bexpall does not export symbols beginning with
! 8478: # underscore (_), so it is better to generate a list of symbols to export.
! 8479: always_export_symbols=yes
! 8480: if test "$aix_use_runtimelinking" = yes; then
! 8481: # Warning - without using the other runtime loading flags (-brtl),
! 8482: # -berok will link without error, but may produce a broken library.
! 8483: allow_undefined_flag='-berok'
! 8484: # Determine the default libpath from the value encoded in an empty executable.
! 8485: cat >conftest.$ac_ext <<_ACEOF
! 8486: /* confdefs.h. */
! 8487: _ACEOF
! 8488: cat confdefs.h >>conftest.$ac_ext
! 8489: cat >>conftest.$ac_ext <<_ACEOF
! 8490: /* end confdefs.h. */
! 8491:
! 8492: int
! 8493: main ()
! 8494: {
1.23 millert 8495:
1.25 millert 8496: ;
8497: return 0;
8498: }
8499: _ACEOF
8500: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 8501: if { (ac_try="$ac_link"
! 8502: case "(($ac_try" in
! 8503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8504: *) ac_try_echo=$ac_try;;
! 8505: esac
! 8506: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8507: (eval "$ac_link") 2>conftest.er1
1.25 millert 8508: ac_status=$?
8509: grep -v '^ *+' conftest.er1 >conftest.err
8510: rm -f conftest.er1
8511: cat conftest.err >&5
8512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 8513: (exit $ac_status); } && {
! 8514: test -z "$ac_c_werror_flag" ||
! 8515: test ! -s conftest.err
! 8516: } && test -s conftest$ac_exeext &&
! 8517: $as_test_x conftest$ac_exeext; then
! 8518:
! 8519: lt_aix_libpath_sed='
! 8520: /Import File Strings/,/^$/ {
! 8521: /^0/ {
! 8522: s/^0 *\(.*\)$/\1/
! 8523: p
! 8524: }
! 8525: }'
! 8526: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8527: # Check for a 64-bit object if we didn't find anything.
! 8528: if test -z "$aix_libpath"; then
! 8529: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8530: fi
1.23 millert 8531: else
1.25 millert 8532: echo "$as_me: failed program was:" >&5
8533: sed 's/^/| /' conftest.$ac_ext >&5
8534:
1.23 millert 8535:
8536: fi
8537:
1.27 ! millert 8538: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8539: conftest$ac_exeext conftest.$ac_ext
! 8540: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25 millert 8541:
1.27 ! millert 8542: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8543: 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"
! 8544: else
! 8545: if test "$host_cpu" = ia64; then
! 8546: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 8547: allow_undefined_flag="-z nodefs"
! 8548: 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"
! 8549: else
! 8550: # Determine the default libpath from the value encoded in an empty executable.
! 8551: cat >conftest.$ac_ext <<_ACEOF
! 8552: /* confdefs.h. */
! 8553: _ACEOF
! 8554: cat confdefs.h >>conftest.$ac_ext
! 8555: cat >>conftest.$ac_ext <<_ACEOF
! 8556: /* end confdefs.h. */
1.23 millert 8557:
1.27 ! millert 8558: int
! 8559: main ()
! 8560: {
1.23 millert 8561:
1.27 ! millert 8562: ;
! 8563: return 0;
! 8564: }
! 8565: _ACEOF
! 8566: rm -f conftest.$ac_objext conftest$ac_exeext
! 8567: if { (ac_try="$ac_link"
! 8568: case "(($ac_try" in
! 8569: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8570: *) ac_try_echo=$ac_try;;
! 8571: esac
! 8572: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8573: (eval "$ac_link") 2>conftest.er1
! 8574: ac_status=$?
! 8575: grep -v '^ *+' conftest.er1 >conftest.err
! 8576: rm -f conftest.er1
! 8577: cat conftest.err >&5
! 8578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8579: (exit $ac_status); } && {
! 8580: test -z "$ac_c_werror_flag" ||
! 8581: test ! -s conftest.err
! 8582: } && test -s conftest$ac_exeext &&
! 8583: $as_test_x conftest$ac_exeext; then
1.23 millert 8584:
1.27 ! millert 8585: lt_aix_libpath_sed='
! 8586: /Import File Strings/,/^$/ {
! 8587: /^0/ {
! 8588: s/^0 *\(.*\)$/\1/
! 8589: p
! 8590: }
! 8591: }'
! 8592: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8593: # Check for a 64-bit object if we didn't find anything.
! 8594: if test -z "$aix_libpath"; then
! 8595: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8596: fi
1.23 millert 8597: else
1.27 ! millert 8598: echo "$as_me: failed program was:" >&5
! 8599: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 8600:
8601:
1.27 ! millert 8602: fi
1.23 millert 8603:
1.27 ! millert 8604: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8605: conftest$ac_exeext conftest.$ac_ext
! 8606: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23 millert 8607:
1.27 ! millert 8608: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8609: # Warning - without using the other run time loading flags,
! 8610: # -berok will link without error, but may produce a broken library.
! 8611: no_undefined_flag=' ${wl}-bernotok'
! 8612: allow_undefined_flag=' ${wl}-berok'
! 8613: # Exported symbols can be pulled into shared objects from archives
! 8614: whole_archive_flag_spec='$convenience'
! 8615: archive_cmds_need_lc=yes
! 8616: # This is similar to how AIX traditionally builds its shared libraries.
! 8617: 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'
! 8618: fi
! 8619: fi
! 8620: ;;
1.23 millert 8621:
1.27 ! millert 8622: amigaos*)
! 8623: 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)'
! 8624: hardcode_libdir_flag_spec='-L$libdir'
! 8625: hardcode_minus_L=yes
! 8626: # see comment about different semantics on the GNU ld section
! 8627: ld_shlibs=no
! 8628: ;;
1.23 millert 8629:
1.27 ! millert 8630: bsdi[45]*)
! 8631: export_dynamic_flag_spec=-rdynamic
! 8632: ;;
1.25 millert 8633:
1.27 ! millert 8634: cygwin* | mingw* | pw32*)
! 8635: # When not using gcc, we currently assume that we are using
! 8636: # Microsoft Visual C++.
! 8637: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 8638: # no search path for DLLs.
! 8639: hardcode_libdir_flag_spec=' '
! 8640: allow_undefined_flag=unsupported
! 8641: # Tell ltmain to make .lib files, not .a files.
! 8642: libext=lib
! 8643: # Tell ltmain to make .dll files, not .so files.
! 8644: shrext_cmds=".dll"
! 8645: # FIXME: Setting linknames here is a bad hack.
! 8646: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 8647: # The linker will automatically build a .lib file if we build a DLL.
! 8648: old_archive_From_new_cmds='true'
! 8649: # FIXME: Should let the user specify the lib program.
! 8650: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 8651: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 8652: enable_shared_with_static_runtimes=yes
! 8653: ;;
1.25 millert 8654:
1.27 ! millert 8655: darwin* | rhapsody*)
! 8656: case $host_os in
! 8657: rhapsody* | darwin1.[012])
! 8658: allow_undefined_flag='${wl}-undefined ${wl}suppress'
! 8659: ;;
! 8660: *) # Darwin 1.3 on
! 8661: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 8662: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8663: else
! 8664: case ${MACOSX_DEPLOYMENT_TARGET} in
! 8665: 10.[012])
! 8666: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8667: ;;
! 8668: 10.*)
! 8669: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
! 8670: ;;
! 8671: esac
! 8672: fi
! 8673: ;;
! 8674: esac
! 8675: archive_cmds_need_lc=no
! 8676: hardcode_direct=no
! 8677: hardcode_automatic=yes
! 8678: hardcode_shlibpath_var=unsupported
! 8679: whole_archive_flag_spec=''
! 8680: link_all_deplibs=yes
! 8681: if test "$GCC" = yes ; then
! 8682: output_verbose_link_cmd='echo'
! 8683: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8684: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8685: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8686: 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}'
! 8687: 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}'
! 8688: else
! 8689: case $cc_basename in
! 8690: xlc*)
! 8691: output_verbose_link_cmd='echo'
! 8692: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 8693: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8694: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8695: 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}'
! 8696: 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}'
! 8697: ;;
! 8698: *)
! 8699: ld_shlibs=no
! 8700: ;;
! 8701: esac
! 8702: fi
! 8703: ;;
1.25 millert 8704:
1.27 ! millert 8705: dgux*)
! 8706: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8707: hardcode_libdir_flag_spec='-L$libdir'
! 8708: hardcode_shlibpath_var=no
1.25 millert 8709: ;;
8710:
1.27 ! millert 8711: freebsd1*)
! 8712: ld_shlibs=no
! 8713: ;;
1.23 millert 8714:
1.27 ! millert 8715: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 8716: # support. Future versions do this automatically, but an explicit c++rt0.o
! 8717: # does not break anything, and helps significantly (at the cost of a little
! 8718: # extra space).
! 8719: freebsd2.2*)
! 8720: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 8721: hardcode_libdir_flag_spec='-R$libdir'
! 8722: hardcode_direct=yes
! 8723: hardcode_shlibpath_var=no
! 8724: ;;
1.23 millert 8725:
1.27 ! millert 8726: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 8727: freebsd2*)
! 8728: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8729: hardcode_direct=yes
! 8730: hardcode_minus_L=yes
! 8731: hardcode_shlibpath_var=no
! 8732: ;;
1.23 millert 8733:
1.27 ! millert 8734: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 8735: freebsd* | dragonfly*)
! 8736: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 8737: hardcode_libdir_flag_spec='-R$libdir'
! 8738: hardcode_direct=yes
! 8739: hardcode_shlibpath_var=no
! 8740: ;;
1.23 millert 8741:
1.27 ! millert 8742: hpux9*)
! 8743: if test "$GCC" = yes; then
! 8744: 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'
! 8745: else
! 8746: 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'
! 8747: fi
! 8748: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8749: hardcode_libdir_separator=:
! 8750: hardcode_direct=yes
1.23 millert 8751:
1.27 ! millert 8752: # hardcode_minus_L: Not really in the search PATH,
! 8753: # but as the default location of the library.
! 8754: hardcode_minus_L=yes
! 8755: export_dynamic_flag_spec='${wl}-E'
! 8756: ;;
1.23 millert 8757:
1.27 ! millert 8758: hpux10*)
! 8759: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8760: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8761: else
! 8762: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 8763: fi
! 8764: if test "$with_gnu_ld" = no; then
! 8765: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8766: hardcode_libdir_separator=:
1.23 millert 8767:
1.27 ! millert 8768: hardcode_direct=yes
! 8769: export_dynamic_flag_spec='${wl}-E'
1.23 millert 8770:
1.27 ! millert 8771: # hardcode_minus_L: Not really in the search PATH,
! 8772: # but as the default location of the library.
! 8773: hardcode_minus_L=yes
! 8774: fi
! 8775: ;;
1.23 millert 8776:
1.27 ! millert 8777: hpux11*)
! 8778: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8779: case $host_cpu in
! 8780: hppa*64*)
! 8781: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8782: ;;
! 8783: ia64*)
! 8784: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 8785: ;;
! 8786: *)
! 8787: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8788: ;;
! 8789: esac
! 8790: else
! 8791: case $host_cpu in
! 8792: hppa*64*)
! 8793: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8794: ;;
! 8795: ia64*)
! 8796: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 8797: ;;
! 8798: *)
! 8799: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8800: ;;
! 8801: esac
! 8802: fi
! 8803: if test "$with_gnu_ld" = no; then
! 8804: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8805: hardcode_libdir_separator=:
1.23 millert 8806:
1.27 ! millert 8807: case $host_cpu in
! 8808: hppa*64*|ia64*)
! 8809: hardcode_libdir_flag_spec_ld='+b $libdir'
! 8810: hardcode_direct=no
! 8811: hardcode_shlibpath_var=no
! 8812: ;;
! 8813: *)
! 8814: hardcode_direct=yes
! 8815: export_dynamic_flag_spec='${wl}-E'
1.23 millert 8816:
1.27 ! millert 8817: # hardcode_minus_L: Not really in the search PATH,
! 8818: # but as the default location of the library.
! 8819: hardcode_minus_L=yes
! 8820: ;;
! 8821: esac
! 8822: fi
! 8823: ;;
1.23 millert 8824:
1.27 ! millert 8825: irix5* | irix6* | nonstopux*)
! 8826: if test "$GCC" = yes; then
! 8827: 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'
! 8828: else
! 8829: 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'
! 8830: hardcode_libdir_flag_spec_ld='-rpath $libdir'
! 8831: fi
! 8832: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8833: hardcode_libdir_separator=:
! 8834: link_all_deplibs=yes
! 8835: ;;
1.23 millert 8836:
1.27 ! millert 8837: netbsd*)
! 8838: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8839: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 8840: else
! 8841: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 8842: fi
! 8843: hardcode_libdir_flag_spec='-R$libdir'
! 8844: hardcode_direct=yes
! 8845: hardcode_shlibpath_var=no
! 8846: ;;
1.23 millert 8847:
1.27 ! millert 8848: newsos6)
! 8849: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8850: hardcode_direct=yes
! 8851: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8852: hardcode_libdir_separator=:
! 8853: hardcode_shlibpath_var=no
! 8854: ;;
1.23 millert 8855:
1.27 ! millert 8856: openbsd*)
! 8857: if test -f /usr/libexec/ld.so; then
! 8858: hardcode_direct=yes
! 8859: hardcode_shlibpath_var=no
! 8860: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8861: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8862: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 8863: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8864: export_dynamic_flag_spec='${wl}-E'
! 8865: else
! 8866: case $host_os in
! 8867: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 8868: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8869: hardcode_libdir_flag_spec='-R$libdir'
! 8870: ;;
! 8871: *)
! 8872: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8873: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8874: ;;
! 8875: esac
! 8876: fi
! 8877: else
! 8878: ld_shlibs=no
! 8879: fi
! 8880: ;;
1.23 millert 8881:
1.27 ! millert 8882: os2*)
! 8883: hardcode_libdir_flag_spec='-L$libdir'
! 8884: hardcode_minus_L=yes
! 8885: allow_undefined_flag=unsupported
! 8886: 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'
! 8887: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 8888: ;;
1.23 millert 8889:
1.27 ! millert 8890: osf3*)
! 8891: if test "$GCC" = yes; then
! 8892: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8893: 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'
! 8894: else
! 8895: allow_undefined_flag=' -expect_unresolved \*'
! 8896: 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'
! 8897: fi
! 8898: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8899: hardcode_libdir_separator=:
1.25 millert 8900: ;;
1.23 millert 8901:
1.27 ! millert 8902: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 8903: if test "$GCC" = yes; then
! 8904: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8905: 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'
! 8906: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8907: else
! 8908: allow_undefined_flag=' -expect_unresolved \*'
! 8909: 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'
! 8910: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 8911: $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 8912:
1.27 ! millert 8913: # Both c and cxx compiler support -rpath directly
! 8914: hardcode_libdir_flag_spec='-rpath $libdir'
! 8915: fi
! 8916: hardcode_libdir_separator=:
! 8917: ;;
1.23 millert 8918:
1.27 ! millert 8919: solaris*)
! 8920: no_undefined_flag=' -z text'
! 8921: if test "$GCC" = yes; then
! 8922: wlarc='${wl}'
! 8923: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8924: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8925: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 8926: else
! 8927: wlarc=''
! 8928: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8929: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8930: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8931: fi
! 8932: hardcode_libdir_flag_spec='-R$libdir'
! 8933: hardcode_shlibpath_var=no
! 8934: case $host_os in
! 8935: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 8936: *)
! 8937: # The compiler driver will combine and reorder linker options,
! 8938: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 8939: # but is careful enough not to reorder.
! 8940: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 8941: if test "$GCC" = yes; then
! 8942: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 8943: else
! 8944: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
! 8945: fi
! 8946: ;;
! 8947: esac
! 8948: link_all_deplibs=yes
! 8949: ;;
1.23 millert 8950:
1.27 ! millert 8951: sunos4*)
! 8952: if test "x$host_vendor" = xsequent; then
! 8953: # Use $CC to link under sequent, because it throws in some extra .o
! 8954: # files that make .init and .fini sections work.
! 8955: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 8956: else
! 8957: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 8958: fi
! 8959: hardcode_libdir_flag_spec='-L$libdir'
! 8960: hardcode_direct=yes
! 8961: hardcode_minus_L=yes
! 8962: hardcode_shlibpath_var=no
! 8963: ;;
1.23 millert 8964:
1.27 ! millert 8965: sysv4)
! 8966: case $host_vendor in
! 8967: sni)
! 8968: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8969: hardcode_direct=yes # is this really true???
! 8970: ;;
! 8971: siemens)
! 8972: ## LD is ld it makes a PLAMLIB
! 8973: ## CC just makes a GrossModule.
! 8974: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 8975: reload_cmds='$CC -r -o $output$reload_objs'
! 8976: hardcode_direct=no
! 8977: ;;
! 8978: motorola)
! 8979: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8980: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 8981: ;;
! 8982: esac
! 8983: runpath_var='LD_RUN_PATH'
! 8984: hardcode_shlibpath_var=no
! 8985: ;;
1.23 millert 8986:
1.27 ! millert 8987: sysv4.3*)
! 8988: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8989: hardcode_shlibpath_var=no
! 8990: export_dynamic_flag_spec='-Bexport'
! 8991: ;;
1.23 millert 8992:
1.27 ! millert 8993: sysv4*MP*)
! 8994: if test -d /usr/nec; then
! 8995: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8996: hardcode_shlibpath_var=no
! 8997: runpath_var=LD_RUN_PATH
! 8998: hardcode_runpath_var=yes
! 8999: ld_shlibs=yes
! 9000: fi
! 9001: ;;
1.23 millert 9002:
1.27 ! millert 9003: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 9004: no_undefined_flag='${wl}-z,text'
! 9005: archive_cmds_need_lc=no
! 9006: hardcode_shlibpath_var=no
! 9007: runpath_var='LD_RUN_PATH'
1.23 millert 9008:
1.27 ! millert 9009: if test "$GCC" = yes; then
! 9010: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9011: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9012: else
! 9013: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9014: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9015: fi
! 9016: ;;
1.23 millert 9017:
1.27 ! millert 9018: sysv5* | sco3.2v5* | sco5v6*)
! 9019: # Note: We can NOT use -z defs as we might desire, because we do not
! 9020: # link with -lc, and that would cause any symbols used from libc to
! 9021: # always be unresolved, which means just about no library would
! 9022: # ever link correctly. If we're not using GNU ld we use -z text
! 9023: # though, which does catch some bad symbols but isn't as heavy-handed
! 9024: # as -z defs.
! 9025: no_undefined_flag='${wl}-z,text'
! 9026: allow_undefined_flag='${wl}-z,nodefs'
! 9027: archive_cmds_need_lc=no
! 9028: hardcode_shlibpath_var=no
! 9029: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 9030: hardcode_libdir_separator=':'
! 9031: link_all_deplibs=yes
! 9032: export_dynamic_flag_spec='${wl}-Bexport'
! 9033: runpath_var='LD_RUN_PATH'
1.23 millert 9034:
1.27 ! millert 9035: if test "$GCC" = yes; then
! 9036: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9037: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9038: else
! 9039: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9040: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9041: fi
! 9042: ;;
1.23 millert 9043:
1.27 ! millert 9044: uts4*)
! 9045: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9046: hardcode_libdir_flag_spec='-L$libdir'
! 9047: hardcode_shlibpath_var=no
! 9048: ;;
1.23 millert 9049:
1.27 ! millert 9050: *)
! 9051: ld_shlibs=no
! 9052: ;;
! 9053: esac
! 9054: fi
1.23 millert 9055:
1.27 ! millert 9056: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 9057: echo "${ECHO_T}$ld_shlibs" >&6; }
! 9058: test "$ld_shlibs" = no && can_build_shared=no
1.23 millert 9059:
1.27 ! millert 9060: #
! 9061: # Do we need to explicitly link libc?
! 9062: #
! 9063: case "x$archive_cmds_need_lc" in
! 9064: x|xyes)
! 9065: # Assume -lc should be added
! 9066: archive_cmds_need_lc=yes
1.23 millert 9067:
1.27 ! millert 9068: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 9069: case $archive_cmds in
! 9070: *'~'*)
! 9071: # FIXME: we may have to deal with multi-command sequences.
! 9072: ;;
! 9073: '$CC '*)
! 9074: # Test whether the compiler implicitly links with -lc since on some
! 9075: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 9076: # to ld, don't add -lc before -lgcc.
! 9077: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 9078: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 9079: $rm conftest*
! 9080: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25 millert 9081:
1.27 ! millert 9082: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 9083: (eval $ac_compile) 2>&5
! 9084: ac_status=$?
! 9085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9086: (exit $ac_status); } 2>conftest.err; then
! 9087: soname=conftest
! 9088: lib=conftest
! 9089: libobjs=conftest.$ac_objext
! 9090: deplibs=
! 9091: wl=$lt_prog_compiler_wl
! 9092: pic_flag=$lt_prog_compiler_pic
! 9093: compiler_flags=-v
! 9094: linker_flags=-v
! 9095: verstring=
! 9096: output_objdir=.
! 9097: libname=conftest
! 9098: lt_save_allow_undefined_flag=$allow_undefined_flag
! 9099: allow_undefined_flag=
! 9100: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 9101: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 9102: ac_status=$?
! 9103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9104: (exit $ac_status); }
! 9105: then
! 9106: archive_cmds_need_lc=no
! 9107: else
! 9108: archive_cmds_need_lc=yes
! 9109: fi
! 9110: allow_undefined_flag=$lt_save_allow_undefined_flag
! 9111: else
! 9112: cat conftest.err 1>&5
! 9113: fi
! 9114: $rm conftest*
! 9115: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 9116: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
! 9117: ;;
! 9118: esac
! 9119: fi
! 9120: ;;
! 9121: esac
1.23 millert 9122:
1.27 ! millert 9123: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 9124: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 9125: library_names_spec=
! 9126: libname_spec='lib$name'
! 9127: soname_spec=
! 9128: shrext_cmds=".so"
! 9129: postinstall_cmds=
! 9130: postuninstall_cmds=
! 9131: finish_cmds=
! 9132: finish_eval=
! 9133: shlibpath_var=
! 9134: shlibpath_overrides_runpath=unknown
! 9135: version_type=none
! 9136: dynamic_linker="$host_os ld.so"
! 9137: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23 millert 9138:
1.27 ! millert 9139: if test "$GCC" = yes; then
! 9140: case $host_os in
! 9141: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
! 9142: *) lt_awk_arg="/^libraries:/" ;;
! 9143: esac
! 9144: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9145: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
! 9146: # if the path contains ";" then we assume it to be the separator
! 9147: # otherwise default to the standard path separator (i.e. ":") - it is
! 9148: # assumed that no part of a normal pathname contains ";" but that should
! 9149: # okay in the real world where ";" in dirpaths is itself problematic.
! 9150: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
! 9151: else
! 9152: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 9153: fi
! 9154: # Ok, now we have the path, separated by spaces, we can step through it
! 9155: # and add multilib dir if necessary.
! 9156: lt_tmp_lt_search_path_spec=
! 9157: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
! 9158: for lt_sys_path in $lt_search_path_spec; do
! 9159: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
! 9160: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
! 9161: else
! 9162: test -d "$lt_sys_path" && \
! 9163: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
! 9164: fi
! 9165: done
! 9166: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
! 9167: BEGIN {RS=" "; FS="/|\n";} {
! 9168: lt_foo="";
! 9169: lt_count=0;
! 9170: for (lt_i = NF; lt_i > 0; lt_i--) {
! 9171: if ($lt_i != "" && $lt_i != ".") {
! 9172: if ($lt_i == "..") {
! 9173: lt_count++;
! 9174: } else {
! 9175: if (lt_count == 0) {
! 9176: lt_foo="/" $lt_i lt_foo;
! 9177: } else {
! 9178: lt_count--;
! 9179: }
! 9180: }
! 9181: }
! 9182: }
! 9183: if (lt_foo != "") { lt_freq[lt_foo]++; }
! 9184: if (lt_freq[lt_foo] == 1) { print lt_foo; }
! 9185: }'`
! 9186: sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25 millert 9187: else
1.27 ! millert 9188: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25 millert 9189: fi
1.27 ! millert 9190: need_lib_prefix=no
! 9191: hardcode_into_libs=no
1.25 millert 9192:
1.27 ! millert 9193: # when you set need_version to no, make sure it does not cause -set_version
! 9194: # flags to be left without arguments
! 9195: need_version=no
1.25 millert 9196:
1.27 ! millert 9197: case $host_os in
! 9198: aix3*)
! 9199: version_type=linux
! 9200: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 9201: shlibpath_var=LIBPATH
1.25 millert 9202:
1.27 ! millert 9203: # AIX 3 has no versioning support, so we append a major version to the name.
! 9204: soname_spec='${libname}${release}${shared_ext}$major'
! 9205: ;;
1.23 millert 9206:
1.27 ! millert 9207: aix4* | aix5*)
! 9208: version_type=linux
! 9209: need_lib_prefix=no
! 9210: need_version=no
! 9211: hardcode_into_libs=yes
! 9212: if test "$host_cpu" = ia64; then
! 9213: # AIX 5 supports IA64
! 9214: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 9215: shlibpath_var=LD_LIBRARY_PATH
! 9216: else
! 9217: # With GCC up to 2.95.x, collect2 would create an import file
! 9218: # for dependence libraries. The import file would start with
! 9219: # the line `#! .'. This would cause the generated library to
! 9220: # depend on `.', always an invalid library. This was fixed in
! 9221: # development snapshots of GCC prior to 3.0.
! 9222: case $host_os in
! 9223: aix4 | aix4.[01] | aix4.[01].*)
! 9224: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 9225: echo ' yes '
! 9226: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 9227: :
! 9228: else
! 9229: can_build_shared=no
! 9230: fi
! 9231: ;;
! 9232: esac
! 9233: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 9234: # soname into executable. Probably we can add versioning support to
! 9235: # collect2, so additional links can be useful in future.
! 9236: if test "$aix_use_runtimelinking" = yes; then
! 9237: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 9238: # instead of lib<name>.a to let people know that these are not
! 9239: # typical AIX shared libraries.
! 9240: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9241: else
! 9242: # We preserve .a as extension for shared libraries through AIX4.2
! 9243: # and later when we are not doing run time linking.
! 9244: library_names_spec='${libname}${release}.a $libname.a'
! 9245: soname_spec='${libname}${release}${shared_ext}$major'
! 9246: fi
! 9247: shlibpath_var=LIBPATH
! 9248: fi
! 9249: ;;
1.23 millert 9250:
1.27 ! millert 9251: amigaos*)
! 9252: library_names_spec='$libname.ixlibrary $libname.a'
! 9253: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 9254: 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'
! 9255: ;;
1.23 millert 9256:
1.27 ! millert 9257: beos*)
! 9258: library_names_spec='${libname}${shared_ext}'
! 9259: dynamic_linker="$host_os ld.so"
! 9260: shlibpath_var=LIBRARY_PATH
! 9261: ;;
1.23 millert 9262:
1.27 ! millert 9263: bsdi[45]*)
! 9264: version_type=linux
! 9265: need_version=no
! 9266: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9267: soname_spec='${libname}${release}${shared_ext}$major'
! 9268: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 9269: shlibpath_var=LD_LIBRARY_PATH
! 9270: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 9271: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 9272: # the default ld.so.conf also contains /usr/contrib/lib and
! 9273: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 9274: # libtool to hard-code these into programs
! 9275: ;;
1.23 millert 9276:
1.27 ! millert 9277: cygwin* | mingw* | pw32*)
! 9278: version_type=windows
! 9279: shrext_cmds=".dll"
! 9280: need_version=no
! 9281: need_lib_prefix=no
1.23 millert 9282:
1.27 ! millert 9283: case $GCC,$host_os in
! 9284: yes,cygwin* | yes,mingw* | yes,pw32*)
! 9285: library_names_spec='$libname.dll.a'
! 9286: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 9287: postinstall_cmds='base_file=`basename \${file}`~
! 9288: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 9289: dldir=$destdir/`dirname \$dlpath`~
! 9290: test -d \$dldir || mkdir -p \$dldir~
! 9291: $install_prog $dir/$dlname \$dldir/$dlname~
! 9292: chmod a+x \$dldir/$dlname'
! 9293: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 9294: dlpath=$dir/\$dldll~
! 9295: $rm \$dlpath'
! 9296: shlibpath_overrides_runpath=yes
1.23 millert 9297:
1.27 ! millert 9298: case $host_os in
! 9299: cygwin*)
! 9300: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 9301: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9302: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 9303: ;;
! 9304: mingw*)
! 9305: # MinGW DLLs use traditional 'lib' prefix
! 9306: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9307: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9308: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 9309: # It is most probably a Windows format PATH printed by
! 9310: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 9311: # path with ; separators, and with drive letters. We can handle the
! 9312: # drive letters (cygwin fileutils understands them), so leave them,
! 9313: # especially as we might pass files found there to a mingw objdump,
! 9314: # which wouldn't understand a cygwinified path. Ahh.
! 9315: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 9316: else
! 9317: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 9318: fi
! 9319: ;;
! 9320: pw32*)
! 9321: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 9322: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9323: ;;
! 9324: esac
! 9325: ;;
1.23 millert 9326:
1.27 ! millert 9327: *)
! 9328: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 9329: ;;
! 9330: esac
! 9331: dynamic_linker='Win32 ld.exe'
! 9332: # FIXME: first we should search . and the directory the executable is in
! 9333: shlibpath_var=PATH
! 9334: ;;
1.23 millert 9335:
1.27 ! millert 9336: darwin* | rhapsody*)
! 9337: dynamic_linker="$host_os dyld"
! 9338: version_type=darwin
! 9339: need_lib_prefix=no
! 9340: need_version=no
! 9341: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 9342: soname_spec='${libname}${release}${major}$shared_ext'
! 9343: shlibpath_overrides_runpath=yes
! 9344: shlibpath_var=DYLD_LIBRARY_PATH
! 9345: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23 millert 9346:
1.27 ! millert 9347: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
! 9348: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 9349: ;;
1.23 millert 9350:
1.27 ! millert 9351: dgux*)
! 9352: version_type=linux
! 9353: need_lib_prefix=no
! 9354: need_version=no
! 9355: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 9356: soname_spec='${libname}${release}${shared_ext}$major'
! 9357: shlibpath_var=LD_LIBRARY_PATH
! 9358: ;;
1.23 millert 9359:
1.27 ! millert 9360: freebsd1*)
! 9361: dynamic_linker=no
! 9362: ;;
1.23 millert 9363:
1.27 ! millert 9364: freebsd* | dragonfly*)
! 9365: # DragonFly does not have aout. When/if they implement a new
! 9366: # versioning mechanism, adjust this.
! 9367: if test -x /usr/bin/objformat; then
! 9368: objformat=`/usr/bin/objformat`
! 9369: else
! 9370: case $host_os in
! 9371: freebsd[123]*) objformat=aout ;;
! 9372: *) objformat=elf ;;
! 9373: esac
! 9374: fi
! 9375: version_type=freebsd-$objformat
! 9376: case $version_type in
! 9377: freebsd-elf*)
! 9378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9379: need_version=no
! 9380: need_lib_prefix=no
! 9381: ;;
! 9382: freebsd-*)
! 9383: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 9384: need_version=no
! 9385: ;;
! 9386: esac
! 9387: shlibpath_var=LD_LIBRARY_PATH
! 9388: case $host_os in
! 9389: freebsd2*)
! 9390: shlibpath_overrides_runpath=yes
! 9391: ;;
! 9392: freebsd3.[01]* | freebsdelf3.[01]*)
! 9393: shlibpath_overrides_runpath=yes
! 9394: hardcode_into_libs=yes
! 9395: ;;
! 9396: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 9397: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 9398: shlibpath_overrides_runpath=no
! 9399: hardcode_into_libs=yes
! 9400: ;;
! 9401: *) # from 4.6 on, and DragonFly
! 9402: shlibpath_overrides_runpath=yes
! 9403: hardcode_into_libs=yes
! 9404: ;;
! 9405: esac
! 9406: ;;
1.23 millert 9407:
1.27 ! millert 9408: gnu*)
! 9409: version_type=linux
! 9410: need_lib_prefix=no
! 9411: need_version=no
! 9412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 9413: soname_spec='${libname}${release}${shared_ext}$major'
! 9414: shlibpath_var=LD_LIBRARY_PATH
! 9415: hardcode_into_libs=yes
! 9416: ;;
1.23 millert 9417:
1.27 ! millert 9418: hpux9* | hpux10* | hpux11*)
! 9419: # Give a soname corresponding to the major version so that dld.sl refuses to
! 9420: # link against other versions.
! 9421: version_type=sunos
! 9422: need_lib_prefix=no
! 9423: need_version=no
! 9424: case $host_cpu in
! 9425: ia64*)
! 9426: shrext_cmds='.so'
! 9427: hardcode_into_libs=yes
! 9428: dynamic_linker="$host_os dld.so"
! 9429: shlibpath_var=LD_LIBRARY_PATH
! 9430: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 9431: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9432: soname_spec='${libname}${release}${shared_ext}$major'
! 9433: if test "X$HPUX_IA64_MODE" = X32; then
! 9434: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 9435: else
! 9436: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 9437: fi
! 9438: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 9439: ;;
! 9440: hppa*64*)
! 9441: shrext_cmds='.sl'
! 9442: hardcode_into_libs=yes
! 9443: dynamic_linker="$host_os dld.sl"
! 9444: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 9445: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 9446: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9447: soname_spec='${libname}${release}${shared_ext}$major'
! 9448: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 9449: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 9450: ;;
! 9451: *)
! 9452: shrext_cmds='.sl'
! 9453: dynamic_linker="$host_os dld.sl"
! 9454: shlibpath_var=SHLIB_PATH
! 9455: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 9456: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9457: soname_spec='${libname}${release}${shared_ext}$major'
! 9458: ;;
! 9459: esac
! 9460: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 9461: postinstall_cmds='chmod 555 $lib'
! 9462: ;;
1.23 millert 9463:
1.27 ! millert 9464: interix[3-9]*)
! 9465: version_type=linux
! 9466: need_lib_prefix=no
! 9467: need_version=no
! 9468: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9469: soname_spec='${libname}${release}${shared_ext}$major'
! 9470: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 9471: shlibpath_var=LD_LIBRARY_PATH
! 9472: shlibpath_overrides_runpath=no
! 9473: hardcode_into_libs=yes
! 9474: ;;
1.23 millert 9475:
1.27 ! millert 9476: irix5* | irix6* | nonstopux*)
! 9477: case $host_os in
! 9478: nonstopux*) version_type=nonstopux ;;
! 9479: *)
! 9480: if test "$lt_cv_prog_gnu_ld" = yes; then
! 9481: version_type=linux
! 9482: else
! 9483: version_type=irix
! 9484: fi ;;
! 9485: esac
! 9486: need_lib_prefix=no
! 9487: need_version=no
! 9488: soname_spec='${libname}${release}${shared_ext}$major'
! 9489: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9490: case $host_os in
! 9491: irix5* | nonstopux*)
! 9492: libsuff= shlibsuff=
! 9493: ;;
! 9494: *)
! 9495: case $LD in # libtool.m4 will add one of these switches to LD
! 9496: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 9497: libsuff= shlibsuff= libmagic=32-bit;;
! 9498: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 9499: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 9500: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 9501: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 9502: *) libsuff= shlibsuff= libmagic=never-match;;
! 9503: esac
! 9504: ;;
! 9505: esac
! 9506: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 9507: shlibpath_overrides_runpath=no
! 9508: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 9509: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 9510: hardcode_into_libs=yes
! 9511: ;;
1.23 millert 9512:
1.27 ! millert 9513: # No shared lib support for Linux oldld, aout, or coff.
! 9514: linux*oldld* | linux*aout* | linux*coff*)
! 9515: dynamic_linker=no
1.25 millert 9516: ;;
1.23 millert 9517:
1.27 ! millert 9518: # This must be Linux ELF.
! 9519: linux* | k*bsd*-gnu)
! 9520: version_type=linux
! 9521: need_lib_prefix=no
! 9522: need_version=no
! 9523: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9524: soname_spec='${libname}${release}${shared_ext}$major'
! 9525: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 9526: shlibpath_var=LD_LIBRARY_PATH
! 9527: shlibpath_overrides_runpath=no
! 9528: # This implies no fast_install, which is unacceptable.
! 9529: # Some rework will be needed to allow for fast_install
! 9530: # before this can be enabled.
! 9531: hardcode_into_libs=yes
1.23 millert 9532:
1.27 ! millert 9533: # Append ld.so.conf contents to the search path
! 9534: if test -f /etc/ld.so.conf; then
! 9535: 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' ' '`
! 9536: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 9537: fi
1.23 millert 9538:
1.27 ! millert 9539: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 9540: # powerpc, because MkLinux only supported shared libraries with the
! 9541: # GNU dynamic linker. Since this was broken with cross compilers,
! 9542: # most powerpc-linux boxes support dynamic linking these days and
! 9543: # people can always --disable-shared, the test was removed, and we
! 9544: # assume the GNU/Linux dynamic linker is in use.
! 9545: dynamic_linker='GNU/Linux ld.so'
! 9546: ;;
1.23 millert 9547:
1.27 ! millert 9548: netbsd*)
! 9549: version_type=sunos
! 9550: need_lib_prefix=no
! 9551: need_version=no
! 9552: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 9553: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9554: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9555: dynamic_linker='NetBSD (a.out) ld.so'
! 9556: else
! 9557: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9558: soname_spec='${libname}${release}${shared_ext}$major'
! 9559: dynamic_linker='NetBSD ld.elf_so'
! 9560: fi
! 9561: shlibpath_var=LD_LIBRARY_PATH
! 9562: shlibpath_overrides_runpath=yes
! 9563: hardcode_into_libs=yes
! 9564: ;;
1.23 millert 9565:
1.27 ! millert 9566: newsos6)
! 9567: version_type=linux
! 9568: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9569: shlibpath_var=LD_LIBRARY_PATH
! 9570: shlibpath_overrides_runpath=yes
! 9571: ;;
1.23 millert 9572:
1.27 ! millert 9573: nto-qnx*)
! 9574: version_type=linux
! 9575: need_lib_prefix=no
! 9576: need_version=no
! 9577: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9578: soname_spec='${libname}${release}${shared_ext}$major'
! 9579: shlibpath_var=LD_LIBRARY_PATH
! 9580: shlibpath_overrides_runpath=yes
! 9581: ;;
1.23 millert 9582:
1.27 ! millert 9583: openbsd*)
! 9584: version_type=sunos
! 9585: sys_lib_dlsearch_path_spec="/usr/lib"
! 9586: need_lib_prefix=no
! 9587: need_version=no
! 9588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9589: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9590: shlibpath_var=LD_LIBRARY_PATH
! 9591: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 9592: case $host_os in
! 9593: openbsd2.[89] | openbsd2.[89].*)
! 9594: shlibpath_overrides_runpath=no
! 9595: ;;
! 9596: *)
! 9597: shlibpath_overrides_runpath=yes
! 9598: ;;
! 9599: esac
! 9600: else
! 9601: shlibpath_overrides_runpath=yes
! 9602: fi
! 9603: ;;
1.23 millert 9604:
1.27 ! millert 9605: os2*)
! 9606: libname_spec='$name'
! 9607: shrext_cmds=".dll"
! 9608: need_lib_prefix=no
! 9609: library_names_spec='$libname${shared_ext} $libname.a'
! 9610: dynamic_linker='OS/2 ld.exe'
! 9611: shlibpath_var=LIBPATH
! 9612: ;;
1.23 millert 9613:
1.27 ! millert 9614: osf3* | osf4* | osf5*)
! 9615: version_type=osf
! 9616: need_lib_prefix=no
! 9617: need_version=no
! 9618: soname_spec='${libname}${release}${shared_ext}$major'
! 9619: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9620: shlibpath_var=LD_LIBRARY_PATH
! 9621: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 9622: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 9623: ;;
1.23 millert 9624:
1.27 ! millert 9625: rdos*)
! 9626: dynamic_linker=no
! 9627: ;;
1.23 millert 9628:
1.27 ! millert 9629: solaris*)
! 9630: version_type=linux
! 9631: need_lib_prefix=no
! 9632: need_version=no
! 9633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9634: soname_spec='${libname}${release}${shared_ext}$major'
! 9635: shlibpath_var=LD_LIBRARY_PATH
! 9636: shlibpath_overrides_runpath=yes
! 9637: hardcode_into_libs=yes
! 9638: # ldd complains unless libraries are executable
! 9639: postinstall_cmds='chmod +x $lib'
! 9640: ;;
1.23 millert 9641:
1.27 ! millert 9642: sunos4*)
! 9643: version_type=sunos
! 9644: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9645: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 9646: shlibpath_var=LD_LIBRARY_PATH
! 9647: shlibpath_overrides_runpath=yes
! 9648: if test "$with_gnu_ld" = yes; then
! 9649: need_lib_prefix=no
! 9650: fi
! 9651: need_version=no
! 9652: ;;
1.23 millert 9653:
1.27 ! millert 9654: sysv4 | sysv4.3*)
! 9655: version_type=linux
! 9656: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9657: soname_spec='${libname}${release}${shared_ext}$major'
! 9658: shlibpath_var=LD_LIBRARY_PATH
! 9659: case $host_vendor in
! 9660: sni)
! 9661: shlibpath_overrides_runpath=no
! 9662: need_lib_prefix=no
! 9663: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 9664: runpath_var=LD_RUN_PATH
! 9665: ;;
! 9666: siemens)
! 9667: need_lib_prefix=no
! 9668: ;;
! 9669: motorola)
! 9670: need_lib_prefix=no
! 9671: need_version=no
! 9672: shlibpath_overrides_runpath=no
! 9673: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 9674: ;;
! 9675: esac
1.25 millert 9676: ;;
9677:
1.27 ! millert 9678: sysv4*MP*)
! 9679: if test -d /usr/nec ;then
! 9680: version_type=linux
! 9681: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 9682: soname_spec='$libname${shared_ext}.$major'
! 9683: shlibpath_var=LD_LIBRARY_PATH
! 9684: fi
! 9685: ;;
1.25 millert 9686:
1.27 ! millert 9687: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 9688: version_type=freebsd-elf
! 9689: need_lib_prefix=no
! 9690: need_version=no
! 9691: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9692: soname_spec='${libname}${release}${shared_ext}$major'
! 9693: shlibpath_var=LD_LIBRARY_PATH
! 9694: hardcode_into_libs=yes
! 9695: if test "$with_gnu_ld" = yes; then
! 9696: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 9697: shlibpath_overrides_runpath=no
! 9698: else
! 9699: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 9700: shlibpath_overrides_runpath=yes
! 9701: case $host_os in
! 9702: sco3.2v5*)
! 9703: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 9704: ;;
! 9705: esac
! 9706: fi
! 9707: sys_lib_dlsearch_path_spec='/usr/lib'
1.25 millert 9708: ;;
1.23 millert 9709:
1.27 ! millert 9710: uts4*)
! 9711: version_type=linux
! 9712: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9713: soname_spec='${libname}${release}${shared_ext}$major'
! 9714: shlibpath_var=LD_LIBRARY_PATH
! 9715: ;;
1.23 millert 9716:
1.25 millert 9717: *)
1.27 ! millert 9718: dynamic_linker=no
1.25 millert 9719: ;;
9720: esac
1.27 ! millert 9721: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 9722: echo "${ECHO_T}$dynamic_linker" >&6; }
! 9723: test "$dynamic_linker" = no && can_build_shared=no
1.23 millert 9724:
1.27 ! millert 9725: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 9726: if test "$GCC" = yes; then
! 9727: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25 millert 9728: fi
9729:
1.27 ! millert 9730: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 9731: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 9732: hardcode_action=
! 9733: if test -n "$hardcode_libdir_flag_spec" || \
! 9734: test -n "$runpath_var" || \
! 9735: test "X$hardcode_automatic" = "Xyes" ; then
1.23 millert 9736:
1.27 ! millert 9737: # We can hardcode non-existant directories.
! 9738: if test "$hardcode_direct" != no &&
! 9739: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 9740: # have to relink, otherwise we might link with an installed library
! 9741: # when we should be linking with a yet-to-be-installed one
! 9742: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 9743: test "$hardcode_minus_L" != no; then
! 9744: # Linking always hardcodes the temporary library directory.
! 9745: hardcode_action=relink
1.25 millert 9746: else
1.27 ! millert 9747: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 9748: hardcode_action=immediate
1.25 millert 9749: fi
1.27 ! millert 9750: else
! 9751: # We cannot hardcode anything, or else we can only hardcode existing
! 9752: # directories.
! 9753: hardcode_action=unsupported
1.23 millert 9754: fi
1.27 ! millert 9755: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 9756: echo "${ECHO_T}$hardcode_action" >&6; }
1.23 millert 9757:
1.27 ! millert 9758: if test "$hardcode_action" = relink; then
! 9759: # Fast installation is not supported
! 9760: enable_fast_install=no
! 9761: elif test "$shlibpath_overrides_runpath" = yes ||
! 9762: test "$enable_shared" = no; then
! 9763: # Fast installation is not necessary
! 9764: enable_fast_install=needless
! 9765: fi
1.25 millert 9766:
1.27 ! millert 9767: striplib=
! 9768: old_striplib=
! 9769: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 9770: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
! 9771: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 9772: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 9773: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 9774: { echo "$as_me:$LINENO: result: yes" >&5
! 9775: echo "${ECHO_T}yes" >&6; }
! 9776: else
! 9777: # FIXME - insert some real tests, host_os isn't really good enough
! 9778: case $host_os in
! 9779: darwin*)
! 9780: if test -n "$STRIP" ; then
! 9781: striplib="$STRIP -x"
! 9782: old_striplib="$STRIP -S"
! 9783: { echo "$as_me:$LINENO: result: yes" >&5
! 9784: echo "${ECHO_T}yes" >&6; }
! 9785: else
! 9786: { echo "$as_me:$LINENO: result: no" >&5
! 9787: echo "${ECHO_T}no" >&6; }
! 9788: fi
! 9789: ;;
! 9790: *)
! 9791: { echo "$as_me:$LINENO: result: no" >&5
! 9792: echo "${ECHO_T}no" >&6; }
! 9793: ;;
! 9794: esac
! 9795: fi
1.25 millert 9796:
1.27 ! millert 9797: if test "x$enable_dlopen" != xyes; then
! 9798: enable_dlopen=unknown
! 9799: enable_dlopen_self=unknown
! 9800: enable_dlopen_self_static=unknown
! 9801: else
! 9802: lt_cv_dlopen=no
! 9803: lt_cv_dlopen_libs=
1.25 millert 9804:
1.27 ! millert 9805: case $host_os in
! 9806: beos*)
! 9807: lt_cv_dlopen="load_add_on"
! 9808: lt_cv_dlopen_libs=
! 9809: lt_cv_dlopen_self=yes
! 9810: ;;
1.23 millert 9811:
1.27 ! millert 9812: mingw* | pw32*)
! 9813: lt_cv_dlopen="LoadLibrary"
! 9814: lt_cv_dlopen_libs=
! 9815: ;;
1.23 millert 9816:
1.27 ! millert 9817: cygwin*)
! 9818: lt_cv_dlopen="dlopen"
! 9819: lt_cv_dlopen_libs=
! 9820: ;;
1.23 millert 9821:
1.27 ! millert 9822: darwin*)
! 9823: # if libdl is installed we need to link against it
! 9824: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9825: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 9826: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9827: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9828: else
! 9829: ac_check_lib_save_LIBS=$LIBS
! 9830: LIBS="-ldl $LIBS"
! 9831: cat >conftest.$ac_ext <<_ACEOF
! 9832: /* confdefs.h. */
! 9833: _ACEOF
! 9834: cat confdefs.h >>conftest.$ac_ext
! 9835: cat >>conftest.$ac_ext <<_ACEOF
! 9836: /* end confdefs.h. */
1.23 millert 9837:
1.27 ! millert 9838: /* Override any GCC internal prototype to avoid an error.
! 9839: Use char because int might match the return type of a GCC
! 9840: builtin and then its argument prototype would still apply. */
! 9841: #ifdef __cplusplus
! 9842: extern "C"
! 9843: #endif
! 9844: char dlopen ();
! 9845: int
! 9846: main ()
! 9847: {
! 9848: return dlopen ();
! 9849: ;
! 9850: return 0;
! 9851: }
! 9852: _ACEOF
! 9853: rm -f conftest.$ac_objext conftest$ac_exeext
! 9854: if { (ac_try="$ac_link"
! 9855: case "(($ac_try" in
! 9856: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9857: *) ac_try_echo=$ac_try;;
! 9858: esac
! 9859: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9860: (eval "$ac_link") 2>conftest.er1
! 9861: ac_status=$?
! 9862: grep -v '^ *+' conftest.er1 >conftest.err
! 9863: rm -f conftest.er1
! 9864: cat conftest.err >&5
! 9865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9866: (exit $ac_status); } && {
! 9867: test -z "$ac_c_werror_flag" ||
! 9868: test ! -s conftest.err
! 9869: } && test -s conftest$ac_exeext &&
! 9870: $as_test_x conftest$ac_exeext; then
! 9871: ac_cv_lib_dl_dlopen=yes
! 9872: else
! 9873: echo "$as_me: failed program was:" >&5
! 9874: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 9875:
1.27 ! millert 9876: ac_cv_lib_dl_dlopen=no
! 9877: fi
1.23 millert 9878:
1.27 ! millert 9879: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9880: conftest$ac_exeext conftest.$ac_ext
! 9881: LIBS=$ac_check_lib_save_LIBS
! 9882: fi
! 9883: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9884: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 9885: if test $ac_cv_lib_dl_dlopen = yes; then
! 9886: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9887: else
1.23 millert 9888:
1.27 ! millert 9889: lt_cv_dlopen="dyld"
! 9890: lt_cv_dlopen_libs=
! 9891: lt_cv_dlopen_self=yes
1.23 millert 9892:
1.27 ! millert 9893: fi
1.23 millert 9894:
1.27 ! millert 9895: ;;
1.23 millert 9896:
1.27 ! millert 9897: *)
! 9898: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 9899: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
! 9900: if test "${ac_cv_func_shl_load+set}" = set; then
! 9901: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9902: else
! 9903: cat >conftest.$ac_ext <<_ACEOF
! 9904: /* confdefs.h. */
! 9905: _ACEOF
! 9906: cat confdefs.h >>conftest.$ac_ext
! 9907: cat >>conftest.$ac_ext <<_ACEOF
! 9908: /* end confdefs.h. */
! 9909: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 9910: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 9911: #define shl_load innocuous_shl_load
1.23 millert 9912:
1.27 ! millert 9913: /* System header to define __stub macros and hopefully few prototypes,
! 9914: which can conflict with char shl_load (); below.
! 9915: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 9916: <limits.h> exists even on freestanding compilers. */
1.23 millert 9917:
1.27 ! millert 9918: #ifdef __STDC__
! 9919: # include <limits.h>
! 9920: #else
! 9921: # include <assert.h>
! 9922: #endif
1.23 millert 9923:
1.27 ! millert 9924: #undef shl_load
1.23 millert 9925:
1.27 ! millert 9926: /* Override any GCC internal prototype to avoid an error.
! 9927: Use char because int might match the return type of a GCC
! 9928: builtin and then its argument prototype would still apply. */
! 9929: #ifdef __cplusplus
! 9930: extern "C"
! 9931: #endif
! 9932: char shl_load ();
! 9933: /* The GNU C library defines this for functions which it implements
! 9934: to always fail with ENOSYS. Some functions are actually named
! 9935: something starting with __ and the normal name is an alias. */
! 9936: #if defined __stub_shl_load || defined __stub___shl_load
! 9937: choke me
! 9938: #endif
1.23 millert 9939:
1.27 ! millert 9940: int
! 9941: main ()
! 9942: {
! 9943: return shl_load ();
! 9944: ;
! 9945: return 0;
! 9946: }
! 9947: _ACEOF
! 9948: rm -f conftest.$ac_objext conftest$ac_exeext
! 9949: if { (ac_try="$ac_link"
! 9950: case "(($ac_try" in
! 9951: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9952: *) ac_try_echo=$ac_try;;
! 9953: esac
! 9954: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9955: (eval "$ac_link") 2>conftest.er1
! 9956: ac_status=$?
! 9957: grep -v '^ *+' conftest.er1 >conftest.err
! 9958: rm -f conftest.er1
! 9959: cat conftest.err >&5
! 9960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9961: (exit $ac_status); } && {
! 9962: test -z "$ac_c_werror_flag" ||
! 9963: test ! -s conftest.err
! 9964: } && test -s conftest$ac_exeext &&
! 9965: $as_test_x conftest$ac_exeext; then
! 9966: ac_cv_func_shl_load=yes
! 9967: else
! 9968: echo "$as_me: failed program was:" >&5
! 9969: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 9970:
1.27 ! millert 9971: ac_cv_func_shl_load=no
! 9972: fi
1.23 millert 9973:
1.27 ! millert 9974: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9975: conftest$ac_exeext conftest.$ac_ext
1.25 millert 9976: fi
1.27 ! millert 9977: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 9978: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
! 9979: if test $ac_cv_func_shl_load = yes; then
! 9980: lt_cv_dlopen="shl_load"
! 9981: else
! 9982: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 9983: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
! 9984: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25 millert 9985: echo $ECHO_N "(cached) $ECHO_C" >&6
9986: else
1.27 ! millert 9987: ac_check_lib_save_LIBS=$LIBS
! 9988: LIBS="-ldld $LIBS"
! 9989: cat >conftest.$ac_ext <<_ACEOF
! 9990: /* confdefs.h. */
! 9991: _ACEOF
! 9992: cat confdefs.h >>conftest.$ac_ext
! 9993: cat >>conftest.$ac_ext <<_ACEOF
! 9994: /* end confdefs.h. */
1.25 millert 9995:
1.27 ! millert 9996: /* Override any GCC internal prototype to avoid an error.
! 9997: Use char because int might match the return type of a GCC
! 9998: builtin and then its argument prototype would still apply. */
! 9999: #ifdef __cplusplus
! 10000: extern "C"
! 10001: #endif
! 10002: char shl_load ();
! 10003: int
! 10004: main ()
! 10005: {
! 10006: return shl_load ();
! 10007: ;
! 10008: return 0;
! 10009: }
! 10010: _ACEOF
! 10011: rm -f conftest.$ac_objext conftest$ac_exeext
! 10012: if { (ac_try="$ac_link"
! 10013: case "(($ac_try" in
! 10014: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10015: *) ac_try_echo=$ac_try;;
! 10016: esac
! 10017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10018: (eval "$ac_link") 2>conftest.er1
! 10019: ac_status=$?
! 10020: grep -v '^ *+' conftest.er1 >conftest.err
! 10021: rm -f conftest.er1
! 10022: cat conftest.err >&5
! 10023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10024: (exit $ac_status); } && {
! 10025: test -z "$ac_c_werror_flag" ||
! 10026: test ! -s conftest.err
! 10027: } && test -s conftest$ac_exeext &&
! 10028: $as_test_x conftest$ac_exeext; then
! 10029: ac_cv_lib_dld_shl_load=yes
1.25 millert 10030: else
1.27 ! millert 10031: echo "$as_me: failed program was:" >&5
! 10032: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10033:
1.27 ! millert 10034: ac_cv_lib_dld_shl_load=no
1.25 millert 10035: fi
10036:
1.27 ! millert 10037: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10038: conftest$ac_exeext conftest.$ac_ext
! 10039: LIBS=$ac_check_lib_save_LIBS
! 10040: fi
! 10041: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 10042: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
! 10043: if test $ac_cv_lib_dld_shl_load = yes; then
! 10044: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 10045: else
! 10046: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 10047: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
! 10048: if test "${ac_cv_func_dlopen+set}" = set; then
! 10049: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10050: else
! 10051: cat >conftest.$ac_ext <<_ACEOF
! 10052: /* confdefs.h. */
! 10053: _ACEOF
! 10054: cat confdefs.h >>conftest.$ac_ext
! 10055: cat >>conftest.$ac_ext <<_ACEOF
! 10056: /* end confdefs.h. */
! 10057: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 10058: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10059: #define dlopen innocuous_dlopen
! 10060:
! 10061: /* System header to define __stub macros and hopefully few prototypes,
! 10062: which can conflict with char dlopen (); below.
! 10063: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 10064: <limits.h> exists even on freestanding compilers. */
! 10065:
! 10066: #ifdef __STDC__
! 10067: # include <limits.h>
! 10068: #else
! 10069: # include <assert.h>
! 10070: #endif
! 10071:
! 10072: #undef dlopen
! 10073:
! 10074: /* Override any GCC internal prototype to avoid an error.
! 10075: Use char because int might match the return type of a GCC
! 10076: builtin and then its argument prototype would still apply. */
! 10077: #ifdef __cplusplus
! 10078: extern "C"
! 10079: #endif
! 10080: char dlopen ();
! 10081: /* The GNU C library defines this for functions which it implements
! 10082: to always fail with ENOSYS. Some functions are actually named
! 10083: something starting with __ and the normal name is an alias. */
! 10084: #if defined __stub_dlopen || defined __stub___dlopen
! 10085: choke me
! 10086: #endif
! 10087:
! 10088: int
! 10089: main ()
! 10090: {
! 10091: return dlopen ();
! 10092: ;
! 10093: return 0;
! 10094: }
! 10095: _ACEOF
! 10096: rm -f conftest.$ac_objext conftest$ac_exeext
! 10097: if { (ac_try="$ac_link"
! 10098: case "(($ac_try" in
! 10099: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10100: *) ac_try_echo=$ac_try;;
! 10101: esac
! 10102: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10103: (eval "$ac_link") 2>conftest.er1
! 10104: ac_status=$?
! 10105: grep -v '^ *+' conftest.er1 >conftest.err
! 10106: rm -f conftest.er1
! 10107: cat conftest.err >&5
! 10108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10109: (exit $ac_status); } && {
! 10110: test -z "$ac_c_werror_flag" ||
! 10111: test ! -s conftest.err
! 10112: } && test -s conftest$ac_exeext &&
! 10113: $as_test_x conftest$ac_exeext; then
! 10114: ac_cv_func_dlopen=yes
! 10115: else
! 10116: echo "$as_me: failed program was:" >&5
! 10117: sed 's/^/| /' conftest.$ac_ext >&5
! 10118:
! 10119: ac_cv_func_dlopen=no
! 10120: fi
! 10121:
! 10122: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10123: conftest$ac_exeext conftest.$ac_ext
! 10124: fi
! 10125: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 10126: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
! 10127: if test $ac_cv_func_dlopen = yes; then
! 10128: lt_cv_dlopen="dlopen"
! 10129: else
! 10130: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 10131: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 10132: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 10133: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10134: else
! 10135: ac_check_lib_save_LIBS=$LIBS
! 10136: LIBS="-ldl $LIBS"
! 10137: cat >conftest.$ac_ext <<_ACEOF
! 10138: /* confdefs.h. */
! 10139: _ACEOF
! 10140: cat confdefs.h >>conftest.$ac_ext
! 10141: cat >>conftest.$ac_ext <<_ACEOF
! 10142: /* end confdefs.h. */
! 10143:
! 10144: /* Override any GCC internal prototype to avoid an error.
! 10145: Use char because int might match the return type of a GCC
! 10146: builtin and then its argument prototype would still apply. */
! 10147: #ifdef __cplusplus
! 10148: extern "C"
! 10149: #endif
! 10150: char dlopen ();
! 10151: int
! 10152: main ()
! 10153: {
! 10154: return dlopen ();
! 10155: ;
! 10156: return 0;
! 10157: }
! 10158: _ACEOF
! 10159: rm -f conftest.$ac_objext conftest$ac_exeext
! 10160: if { (ac_try="$ac_link"
! 10161: case "(($ac_try" in
! 10162: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10163: *) ac_try_echo=$ac_try;;
! 10164: esac
! 10165: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10166: (eval "$ac_link") 2>conftest.er1
! 10167: ac_status=$?
! 10168: grep -v '^ *+' conftest.er1 >conftest.err
! 10169: rm -f conftest.er1
! 10170: cat conftest.err >&5
! 10171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10172: (exit $ac_status); } && {
! 10173: test -z "$ac_c_werror_flag" ||
! 10174: test ! -s conftest.err
! 10175: } && test -s conftest$ac_exeext &&
! 10176: $as_test_x conftest$ac_exeext; then
! 10177: ac_cv_lib_dl_dlopen=yes
! 10178: else
! 10179: echo "$as_me: failed program was:" >&5
! 10180: sed 's/^/| /' conftest.$ac_ext >&5
! 10181:
! 10182: ac_cv_lib_dl_dlopen=no
! 10183: fi
! 10184:
! 10185: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10186: conftest$ac_exeext conftest.$ac_ext
! 10187: LIBS=$ac_check_lib_save_LIBS
! 10188: fi
! 10189: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 10190: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 10191: if test $ac_cv_lib_dl_dlopen = yes; then
! 10192: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 10193: else
! 10194: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 10195: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
! 10196: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 10197: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10198: else
! 10199: ac_check_lib_save_LIBS=$LIBS
! 10200: LIBS="-lsvld $LIBS"
! 10201: cat >conftest.$ac_ext <<_ACEOF
! 10202: /* confdefs.h. */
! 10203: _ACEOF
! 10204: cat confdefs.h >>conftest.$ac_ext
! 10205: cat >>conftest.$ac_ext <<_ACEOF
! 10206: /* end confdefs.h. */
! 10207:
! 10208: /* Override any GCC internal prototype to avoid an error.
! 10209: Use char because int might match the return type of a GCC
! 10210: builtin and then its argument prototype would still apply. */
! 10211: #ifdef __cplusplus
! 10212: extern "C"
! 10213: #endif
! 10214: char dlopen ();
! 10215: int
! 10216: main ()
! 10217: {
! 10218: return dlopen ();
! 10219: ;
! 10220: return 0;
! 10221: }
! 10222: _ACEOF
! 10223: rm -f conftest.$ac_objext conftest$ac_exeext
! 10224: if { (ac_try="$ac_link"
! 10225: case "(($ac_try" in
! 10226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10227: *) ac_try_echo=$ac_try;;
! 10228: esac
! 10229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10230: (eval "$ac_link") 2>conftest.er1
! 10231: ac_status=$?
! 10232: grep -v '^ *+' conftest.er1 >conftest.err
! 10233: rm -f conftest.er1
! 10234: cat conftest.err >&5
! 10235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10236: (exit $ac_status); } && {
! 10237: test -z "$ac_c_werror_flag" ||
! 10238: test ! -s conftest.err
! 10239: } && test -s conftest$ac_exeext &&
! 10240: $as_test_x conftest$ac_exeext; then
! 10241: ac_cv_lib_svld_dlopen=yes
! 10242: else
! 10243: echo "$as_me: failed program was:" >&5
! 10244: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10245:
1.27 ! millert 10246: ac_cv_lib_svld_dlopen=no
! 10247: fi
1.25 millert 10248:
1.27 ! millert 10249: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10250: conftest$ac_exeext conftest.$ac_ext
! 10251: LIBS=$ac_check_lib_save_LIBS
! 10252: fi
! 10253: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 10254: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
! 10255: if test $ac_cv_lib_svld_dlopen = yes; then
! 10256: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 10257: else
! 10258: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 10259: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
! 10260: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 10261: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10262: else
! 10263: ac_check_lib_save_LIBS=$LIBS
! 10264: LIBS="-ldld $LIBS"
! 10265: cat >conftest.$ac_ext <<_ACEOF
! 10266: /* confdefs.h. */
! 10267: _ACEOF
! 10268: cat confdefs.h >>conftest.$ac_ext
! 10269: cat >>conftest.$ac_ext <<_ACEOF
! 10270: /* end confdefs.h. */
1.25 millert 10271:
1.27 ! millert 10272: /* Override any GCC internal prototype to avoid an error.
! 10273: Use char because int might match the return type of a GCC
! 10274: builtin and then its argument prototype would still apply. */
! 10275: #ifdef __cplusplus
! 10276: extern "C"
! 10277: #endif
! 10278: char dld_link ();
! 10279: int
! 10280: main ()
! 10281: {
! 10282: return dld_link ();
! 10283: ;
! 10284: return 0;
! 10285: }
! 10286: _ACEOF
! 10287: rm -f conftest.$ac_objext conftest$ac_exeext
! 10288: if { (ac_try="$ac_link"
! 10289: case "(($ac_try" in
! 10290: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10291: *) ac_try_echo=$ac_try;;
! 10292: esac
! 10293: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10294: (eval "$ac_link") 2>conftest.er1
! 10295: ac_status=$?
! 10296: grep -v '^ *+' conftest.er1 >conftest.err
! 10297: rm -f conftest.er1
! 10298: cat conftest.err >&5
! 10299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10300: (exit $ac_status); } && {
! 10301: test -z "$ac_c_werror_flag" ||
! 10302: test ! -s conftest.err
! 10303: } && test -s conftest$ac_exeext &&
! 10304: $as_test_x conftest$ac_exeext; then
! 10305: ac_cv_lib_dld_dld_link=yes
! 10306: else
! 10307: echo "$as_me: failed program was:" >&5
! 10308: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10309:
1.27 ! millert 10310: ac_cv_lib_dld_dld_link=no
! 10311: fi
1.25 millert 10312:
1.27 ! millert 10313: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10314: conftest$ac_exeext conftest.$ac_ext
! 10315: LIBS=$ac_check_lib_save_LIBS
! 10316: fi
! 10317: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 10318: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
! 10319: if test $ac_cv_lib_dld_dld_link = yes; then
! 10320: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 10321: fi
1.25 millert 10322:
1.23 millert 10323:
1.27 ! millert 10324: fi
1.23 millert 10325:
10326:
1.27 ! millert 10327: fi
1.23 millert 10328:
1.25 millert 10329:
1.27 ! millert 10330: fi
1.23 millert 10331:
10332:
1.27 ! millert 10333: fi
1.23 millert 10334:
10335:
1.27 ! millert 10336: fi
1.23 millert 10337:
1.27 ! millert 10338: ;;
! 10339: esac
1.23 millert 10340:
1.27 ! millert 10341: if test "x$lt_cv_dlopen" != xno; then
! 10342: enable_dlopen=yes
! 10343: else
! 10344: enable_dlopen=no
! 10345: fi
1.25 millert 10346:
1.27 ! millert 10347: case $lt_cv_dlopen in
! 10348: dlopen)
! 10349: save_CPPFLAGS="$CPPFLAGS"
! 10350: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23 millert 10351:
1.27 ! millert 10352: save_LDFLAGS="$LDFLAGS"
! 10353: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25 millert 10354:
1.27 ! millert 10355: save_LIBS="$LIBS"
! 10356: LIBS="$lt_cv_dlopen_libs $LIBS"
1.23 millert 10357:
1.27 ! millert 10358: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 10359: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
! 10360: if test "${lt_cv_dlopen_self+set}" = set; then
! 10361: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10362: else
! 10363: if test "$cross_compiling" = yes; then :
! 10364: lt_cv_dlopen_self=cross
! 10365: else
! 10366: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 10367: lt_status=$lt_dlunknown
! 10368: cat > conftest.$ac_ext <<EOF
! 10369: #line 10369 "configure"
! 10370: #include "confdefs.h"
1.23 millert 10371:
1.27 ! millert 10372: #if HAVE_DLFCN_H
! 10373: #include <dlfcn.h>
! 10374: #endif
1.25 millert 10375:
1.27 ! millert 10376: #include <stdio.h>
1.25 millert 10377:
1.27 ! millert 10378: #ifdef RTLD_GLOBAL
! 10379: # define LT_DLGLOBAL RTLD_GLOBAL
! 10380: #else
! 10381: # ifdef DL_GLOBAL
! 10382: # define LT_DLGLOBAL DL_GLOBAL
! 10383: # else
! 10384: # define LT_DLGLOBAL 0
! 10385: # endif
! 10386: #endif
1.25 millert 10387:
1.27 ! millert 10388: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 10389: find out it does not work in some platform. */
! 10390: #ifndef LT_DLLAZY_OR_NOW
! 10391: # ifdef RTLD_LAZY
! 10392: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 10393: # else
! 10394: # ifdef DL_LAZY
! 10395: # define LT_DLLAZY_OR_NOW DL_LAZY
! 10396: # else
! 10397: # ifdef RTLD_NOW
! 10398: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 10399: # else
! 10400: # ifdef DL_NOW
! 10401: # define LT_DLLAZY_OR_NOW DL_NOW
! 10402: # else
! 10403: # define LT_DLLAZY_OR_NOW 0
! 10404: # endif
! 10405: # endif
! 10406: # endif
! 10407: # endif
! 10408: #endif
1.23 millert 10409:
1.27 ! millert 10410: #ifdef __cplusplus
! 10411: extern "C" void exit (int);
! 10412: #endif
1.23 millert 10413:
1.27 ! millert 10414: void fnord() { int i=42;}
! 10415: int main ()
! 10416: {
! 10417: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 10418: int status = $lt_dlunknown;
1.23 millert 10419:
1.27 ! millert 10420: if (self)
! 10421: {
! 10422: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 10423: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10424: /* dlclose (self); */
! 10425: }
! 10426: else
! 10427: puts (dlerror ());
1.23 millert 10428:
1.27 ! millert 10429: exit (status);
! 10430: }
! 10431: EOF
! 10432: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10433: (eval $ac_link) 2>&5
! 10434: ac_status=$?
! 10435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10436: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 10437: (./conftest; exit; ) >&5 2>/dev/null
! 10438: lt_status=$?
! 10439: case x$lt_status in
! 10440: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 10441: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 10442: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23 millert 10443: esac
1.27 ! millert 10444: else :
! 10445: # compilation failed
! 10446: lt_cv_dlopen_self=no
1.23 millert 10447: fi
1.27 ! millert 10448: fi
! 10449: rm -fr conftest*
1.23 millert 10450:
10451:
1.27 ! millert 10452: fi
! 10453: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 10454: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23 millert 10455:
1.27 ! millert 10456: if test "x$lt_cv_dlopen_self" = xyes; then
! 10457: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
! 10458: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 10459: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
! 10460: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25 millert 10461: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 10462: else
1.27 ! millert 10463: if test "$cross_compiling" = yes; then :
! 10464: lt_cv_dlopen_self_static=cross
1.25 millert 10465: else
1.27 ! millert 10466: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 10467: lt_status=$lt_dlunknown
! 10468: cat > conftest.$ac_ext <<EOF
! 10469: #line 10469 "configure"
! 10470: #include "confdefs.h"
1.23 millert 10471:
1.27 ! millert 10472: #if HAVE_DLFCN_H
! 10473: #include <dlfcn.h>
! 10474: #endif
1.23 millert 10475:
1.27 ! millert 10476: #include <stdio.h>
1.25 millert 10477:
1.27 ! millert 10478: #ifdef RTLD_GLOBAL
! 10479: # define LT_DLGLOBAL RTLD_GLOBAL
! 10480: #else
! 10481: # ifdef DL_GLOBAL
! 10482: # define LT_DLGLOBAL DL_GLOBAL
! 10483: # else
! 10484: # define LT_DLGLOBAL 0
! 10485: # endif
! 10486: #endif
1.25 millert 10487:
1.27 ! millert 10488: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 10489: find out it does not work in some platform. */
! 10490: #ifndef LT_DLLAZY_OR_NOW
! 10491: # ifdef RTLD_LAZY
! 10492: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 10493: # else
! 10494: # ifdef DL_LAZY
! 10495: # define LT_DLLAZY_OR_NOW DL_LAZY
! 10496: # else
! 10497: # ifdef RTLD_NOW
! 10498: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 10499: # else
! 10500: # ifdef DL_NOW
! 10501: # define LT_DLLAZY_OR_NOW DL_NOW
! 10502: # else
! 10503: # define LT_DLLAZY_OR_NOW 0
! 10504: # endif
! 10505: # endif
! 10506: # endif
! 10507: # endif
! 10508: #endif
1.25 millert 10509:
1.27 ! millert 10510: #ifdef __cplusplus
! 10511: extern "C" void exit (int);
! 10512: #endif
1.25 millert 10513:
1.27 ! millert 10514: void fnord() { int i=42;}
! 10515: int main ()
! 10516: {
! 10517: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 10518: int status = $lt_dlunknown;
1.25 millert 10519:
1.27 ! millert 10520: if (self)
! 10521: {
! 10522: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 10523: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10524: /* dlclose (self); */
! 10525: }
! 10526: else
! 10527: puts (dlerror ());
1.25 millert 10528:
1.27 ! millert 10529: exit (status);
! 10530: }
! 10531: EOF
! 10532: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10533: (eval $ac_link) 2>&5
! 10534: ac_status=$?
! 10535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10536: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 10537: (./conftest; exit; ) >&5 2>/dev/null
! 10538: lt_status=$?
! 10539: case x$lt_status in
! 10540: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 10541: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 10542: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
! 10543: esac
! 10544: else :
! 10545: # compilation failed
! 10546: lt_cv_dlopen_self_static=no
! 10547: fi
1.23 millert 10548: fi
1.27 ! millert 10549: rm -fr conftest*
1.23 millert 10550:
10551:
1.25 millert 10552: fi
1.27 ! millert 10553: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 10554: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
! 10555: fi
1.23 millert 10556:
1.27 ! millert 10557: CPPFLAGS="$save_CPPFLAGS"
! 10558: LDFLAGS="$save_LDFLAGS"
! 10559: LIBS="$save_LIBS"
1.25 millert 10560: ;;
10561: esac
1.23 millert 10562:
1.27 ! millert 10563: case $lt_cv_dlopen_self in
! 10564: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 10565: *) enable_dlopen_self=unknown ;;
! 10566: esac
1.23 millert 10567:
1.27 ! millert 10568: case $lt_cv_dlopen_self_static in
! 10569: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 10570: *) enable_dlopen_self_static=unknown ;;
1.23 millert 10571: esac
1.27 ! millert 10572: fi
1.23 millert 10573:
10574:
1.27 ! millert 10575: # Report which library types will actually be built
! 10576: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 10577: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 10578: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 10579: echo "${ECHO_T}$can_build_shared" >&6; }
! 10580:
! 10581: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 10582: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
! 10583: test "$can_build_shared" = "no" && enable_shared=no
1.25 millert 10584:
1.27 ! millert 10585: # On AIX, shared libraries and static libraries use the same namespace, and
! 10586: # are all built from PIC.
! 10587: case $host_os in
! 10588: aix3*)
! 10589: test "$enable_shared" = yes && enable_static=no
! 10590: if test -n "$RANLIB"; then
! 10591: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 10592: postinstall_cmds='$RANLIB $lib'
! 10593: fi
1.23 millert 10594: ;;
10595:
1.27 ! millert 10596: aix4* | aix5*)
! 10597: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 10598: test "$enable_shared" = yes && enable_static=no
! 10599: fi
! 10600: ;;
1.23 millert 10601: esac
1.27 ! millert 10602: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 10603: echo "${ECHO_T}$enable_shared" >&6; }
1.23 millert 10604:
1.27 ! millert 10605: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 10606: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
! 10607: # Make sure either enable_shared or enable_static is yes.
! 10608: test "$enable_shared" = yes || enable_static=yes
! 10609: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 10610: echo "${ECHO_T}$enable_static" >&6; }
! 10611:
! 10612: # The else clause should only fire when bootstrapping the
! 10613: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 10614: # with your package, and you will get complaints that there are
! 10615: # no rules to generate ltmain.sh.
! 10616: if test -f "$ltmain"; then
! 10617: # See if we are running on zsh, and set the options which allow our commands through
! 10618: # without removal of \ escapes.
! 10619: if test -n "${ZSH_VERSION+set}" ; then
! 10620: setopt NO_GLOB_SUBST
! 10621: fi
! 10622: # Now quote all the things that may contain metacharacters while being
! 10623: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 10624: # variables and quote the copies for generation of the libtool script.
! 10625: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 10626: SED SHELL STRIP \
! 10627: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 10628: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 10629: deplibs_check_method reload_flag reload_cmds need_locks \
! 10630: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 10631: lt_cv_sys_global_symbol_to_c_name_address \
! 10632: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 10633: old_postinstall_cmds old_postuninstall_cmds \
! 10634: compiler \
! 10635: CC \
! 10636: LD \
! 10637: lt_prog_compiler_wl \
! 10638: lt_prog_compiler_pic \
! 10639: lt_prog_compiler_static \
! 10640: lt_prog_compiler_no_builtin_flag \
! 10641: export_dynamic_flag_spec \
! 10642: thread_safe_flag_spec \
! 10643: whole_archive_flag_spec \
! 10644: enable_shared_with_static_runtimes \
! 10645: old_archive_cmds \
! 10646: old_archive_from_new_cmds \
! 10647: predep_objects \
! 10648: postdep_objects \
! 10649: predeps \
! 10650: postdeps \
! 10651: compiler_lib_search_path \
! 10652: archive_cmds \
! 10653: archive_expsym_cmds \
! 10654: postinstall_cmds \
! 10655: postuninstall_cmds \
! 10656: old_archive_from_expsyms_cmds \
! 10657: allow_undefined_flag \
! 10658: no_undefined_flag \
! 10659: export_symbols_cmds \
! 10660: hardcode_libdir_flag_spec \
! 10661: hardcode_libdir_flag_spec_ld \
! 10662: hardcode_libdir_separator \
! 10663: hardcode_automatic \
! 10664: module_cmds \
! 10665: module_expsym_cmds \
! 10666: lt_cv_prog_compiler_c_o \
! 10667: fix_srcfile_path \
! 10668: exclude_expsyms \
! 10669: include_expsyms; do
! 10670:
! 10671: case $var in
! 10672: old_archive_cmds | \
! 10673: old_archive_from_new_cmds | \
! 10674: archive_cmds | \
! 10675: archive_expsym_cmds | \
! 10676: module_cmds | \
! 10677: module_expsym_cmds | \
! 10678: old_archive_from_expsyms_cmds | \
! 10679: export_symbols_cmds | \
! 10680: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 10681: postinstall_cmds | postuninstall_cmds | \
! 10682: old_postinstall_cmds | old_postuninstall_cmds | \
! 10683: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 10684: # Double-quote double-evaled strings.
! 10685: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 10686: ;;
! 10687: *)
! 10688: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 10689: ;;
! 10690: esac
! 10691: done
1.23 millert 10692:
1.27 ! millert 10693: case $lt_echo in
! 10694: *'\$0 --fallback-echo"')
! 10695: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 10696: ;;
! 10697: esac
1.23 millert 10698:
1.27 ! millert 10699: cfgfile="${ofile}T"
! 10700: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
! 10701: $rm -f "$cfgfile"
! 10702: { echo "$as_me:$LINENO: creating $ofile" >&5
! 10703: echo "$as_me: creating $ofile" >&6;}
1.23 millert 10704:
1.27 ! millert 10705: cat <<__EOF__ >> "$cfgfile"
! 10706: #! $SHELL
1.23 millert 10707:
1.27 ! millert 10708: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 10709: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 10710: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 10711: #
! 10712: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
! 10713: # Free Software Foundation, Inc.
! 10714: #
! 10715: # This file is part of GNU Libtool:
! 10716: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 10717: #
! 10718: # This program is free software; you can redistribute it and/or modify
! 10719: # it under the terms of the GNU General Public License as published by
! 10720: # the Free Software Foundation; either version 2 of the License, or
! 10721: # (at your option) any later version.
! 10722: #
! 10723: # This program is distributed in the hope that it will be useful, but
! 10724: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 10725: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 10726: # General Public License for more details.
! 10727: #
! 10728: # You should have received a copy of the GNU General Public License
! 10729: # along with this program; if not, write to the Free Software
! 10730: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
! 10731: #
! 10732: # As a special exception to the GNU General Public License, if you
! 10733: # distribute this file as part of a program that contains a
! 10734: # configuration script generated by Autoconf, you may include it under
! 10735: # the same distribution terms that you use for the rest of that program.
1.23 millert 10736:
1.27 ! millert 10737: # A sed program that does not truncate output.
! 10738: SED=$lt_SED
1.23 millert 10739:
1.27 ! millert 10740: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 10741: Xsed="$SED -e 1s/^X//"
1.23 millert 10742:
1.27 ! millert 10743: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 10744: # if CDPATH is set.
! 10745: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23 millert 10746:
1.27 ! millert 10747: # The names of the tagged configurations supported by this script.
! 10748: available_tags=
1.23 millert 10749:
1.27 ! millert 10750: # ### BEGIN LIBTOOL CONFIG
1.23 millert 10751:
1.27 ! millert 10752: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23 millert 10753:
1.27 ! millert 10754: # Shell to use when invoking shell scripts.
! 10755: SHELL=$lt_SHELL
1.23 millert 10756:
1.27 ! millert 10757: # Whether or not to build shared libraries.
! 10758: build_libtool_libs=$enable_shared
1.23 millert 10759:
1.27 ! millert 10760: # Whether or not to build static libraries.
! 10761: build_old_libs=$enable_static
1.23 millert 10762:
1.27 ! millert 10763: # Whether or not to add -lc for building shared libraries.
! 10764: build_libtool_need_lc=$archive_cmds_need_lc
1.23 millert 10765:
1.27 ! millert 10766: # Whether or not to disallow shared libs when runtime libs are static
! 10767: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23 millert 10768:
1.27 ! millert 10769: # Whether or not to optimize for fast installation.
! 10770: fast_install=$enable_fast_install
1.23 millert 10771:
1.27 ! millert 10772: # The host system.
! 10773: host_alias=$host_alias
! 10774: host=$host
! 10775: host_os=$host_os
1.23 millert 10776:
1.27 ! millert 10777: # The build system.
! 10778: build_alias=$build_alias
! 10779: build=$build
! 10780: build_os=$build_os
1.23 millert 10781:
1.27 ! millert 10782: # An echo program that does not interpret backslashes.
! 10783: echo=$lt_echo
1.23 millert 10784:
1.27 ! millert 10785: # The archiver.
! 10786: AR=$lt_AR
! 10787: AR_FLAGS=$lt_AR_FLAGS
1.23 millert 10788:
1.27 ! millert 10789: # A C compiler.
! 10790: LTCC=$lt_LTCC
1.23 millert 10791:
1.27 ! millert 10792: # LTCC compiler flags.
! 10793: LTCFLAGS=$lt_LTCFLAGS
1.23 millert 10794:
1.27 ! millert 10795: # A language-specific compiler.
! 10796: CC=$lt_compiler
1.23 millert 10797:
1.27 ! millert 10798: # Is the compiler the GNU C compiler?
! 10799: with_gcc=$GCC
1.23 millert 10800:
1.27 ! millert 10801: # An ERE matcher.
! 10802: EGREP=$lt_EGREP
1.23 millert 10803:
1.27 ! millert 10804: # The linker used to build libraries.
! 10805: LD=$lt_LD
1.23 millert 10806:
1.27 ! millert 10807: # Whether we need hard or soft links.
! 10808: LN_S=$lt_LN_S
1.23 millert 10809:
1.27 ! millert 10810: # A BSD-compatible nm program.
! 10811: NM=$lt_NM
1.23 millert 10812:
1.27 ! millert 10813: # A symbol stripping program
! 10814: STRIP=$lt_STRIP
1.23 millert 10815:
1.27 ! millert 10816: # Used to examine libraries when file_magic_cmd begins "file"
! 10817: MAGIC_CMD=$MAGIC_CMD
1.23 millert 10818:
1.27 ! millert 10819: # Used on cygwin: DLL creation program.
! 10820: DLLTOOL="$DLLTOOL"
1.23 millert 10821:
1.27 ! millert 10822: # Used on cygwin: object dumper.
! 10823: OBJDUMP="$OBJDUMP"
1.23 millert 10824:
1.27 ! millert 10825: # Used on cygwin: assembler.
! 10826: AS="$AS"
1.23 millert 10827:
1.27 ! millert 10828: # The name of the directory that contains temporary libtool files.
! 10829: objdir=$objdir
1.23 millert 10830:
1.27 ! millert 10831: # How to create reloadable object files.
! 10832: reload_flag=$lt_reload_flag
! 10833: reload_cmds=$lt_reload_cmds
1.23 millert 10834:
1.27 ! millert 10835: # How to pass a linker flag through the compiler.
! 10836: wl=$lt_lt_prog_compiler_wl
1.23 millert 10837:
1.27 ! millert 10838: # Object file suffix (normally "o").
! 10839: objext="$ac_objext"
1.23 millert 10840:
1.27 ! millert 10841: # Old archive suffix (normally "a").
! 10842: libext="$libext"
1.23 millert 10843:
1.27 ! millert 10844: # Shared library suffix (normally ".so").
! 10845: shrext_cmds='$shrext_cmds'
1.23 millert 10846:
1.27 ! millert 10847: # Executable file suffix (normally "").
! 10848: exeext="$exeext"
1.23 millert 10849:
1.27 ! millert 10850: # Additional compiler flags for building library objects.
! 10851: pic_flag=$lt_lt_prog_compiler_pic
! 10852: pic_mode=$pic_mode
1.23 millert 10853:
1.27 ! millert 10854: # What is the maximum length of a command?
! 10855: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23 millert 10856:
1.27 ! millert 10857: # Does compiler simultaneously support -c and -o options?
! 10858: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23 millert 10859:
1.27 ! millert 10860: # Must we lock files when doing compilation?
! 10861: need_locks=$lt_need_locks
1.23 millert 10862:
1.27 ! millert 10863: # Do we need the lib prefix for modules?
! 10864: need_lib_prefix=$need_lib_prefix
1.23 millert 10865:
1.27 ! millert 10866: # Do we need a version for libraries?
! 10867: need_version=$need_version
1.23 millert 10868:
1.27 ! millert 10869: # Whether dlopen is supported.
! 10870: dlopen_support=$enable_dlopen
1.23 millert 10871:
1.27 ! millert 10872: # Whether dlopen of programs is supported.
! 10873: dlopen_self=$enable_dlopen_self
1.23 millert 10874:
1.27 ! millert 10875: # Whether dlopen of statically linked programs is supported.
! 10876: dlopen_self_static=$enable_dlopen_self_static
1.23 millert 10877:
1.27 ! millert 10878: # Compiler flag to prevent dynamic linking.
! 10879: link_static_flag=$lt_lt_prog_compiler_static
1.23 millert 10880:
1.27 ! millert 10881: # Compiler flag to turn off builtin functions.
! 10882: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23 millert 10883:
1.27 ! millert 10884: # Compiler flag to allow reflexive dlopens.
! 10885: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23 millert 10886:
1.27 ! millert 10887: # Compiler flag to generate shared objects directly from archives.
! 10888: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23 millert 10889:
1.27 ! millert 10890: # Compiler flag to generate thread-safe objects.
! 10891: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23 millert 10892:
1.27 ! millert 10893: # Library versioning type.
! 10894: version_type=$version_type
1.23 millert 10895:
1.27 ! millert 10896: # Format of library name prefix.
! 10897: libname_spec=$lt_libname_spec
1.23 millert 10898:
1.27 ! millert 10899: # List of archive names. First name is the real one, the rest are links.
! 10900: # The last name is the one that the linker finds with -lNAME.
! 10901: library_names_spec=$lt_library_names_spec
1.25 millert 10902:
1.27 ! millert 10903: # The coded name of the library, if different from the real name.
! 10904: soname_spec=$lt_soname_spec
1.25 millert 10905:
1.27 ! millert 10906: # Commands used to build and install an old-style archive.
! 10907: RANLIB=$lt_RANLIB
! 10908: old_archive_cmds=$lt_old_archive_cmds
! 10909: old_postinstall_cmds=$lt_old_postinstall_cmds
! 10910: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25 millert 10911:
1.27 ! millert 10912: # Create an old-style archive from a shared archive.
! 10913: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25 millert 10914:
1.27 ! millert 10915: # Create a temporary old-style archive to link instead of a shared archive.
! 10916: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25 millert 10917:
1.27 ! millert 10918: # Commands used to build and install a shared archive.
! 10919: archive_cmds=$lt_archive_cmds
! 10920: archive_expsym_cmds=$lt_archive_expsym_cmds
! 10921: postinstall_cmds=$lt_postinstall_cmds
! 10922: postuninstall_cmds=$lt_postuninstall_cmds
1.25 millert 10923:
1.27 ! millert 10924: # Commands used to build a loadable module (assumed same as above if empty)
! 10925: module_cmds=$lt_module_cmds
! 10926: module_expsym_cmds=$lt_module_expsym_cmds
1.25 millert 10927:
1.27 ! millert 10928: # Commands to strip libraries.
! 10929: old_striplib=$lt_old_striplib
! 10930: striplib=$lt_striplib
1.25 millert 10931:
1.27 ! millert 10932: # Dependencies to place before the objects being linked to create a
! 10933: # shared library.
! 10934: predep_objects=$lt_predep_objects
! 10935:
! 10936: # Dependencies to place after the objects being linked to create a
! 10937: # shared library.
! 10938: postdep_objects=$lt_postdep_objects
! 10939:
! 10940: # Dependencies to place before the objects being linked to create a
! 10941: # shared library.
! 10942: predeps=$lt_predeps
! 10943:
! 10944: # Dependencies to place after the objects being linked to create a
! 10945: # shared library.
! 10946: postdeps=$lt_postdeps
! 10947:
! 10948: # The library search path used internally by the compiler when linking
! 10949: # a shared library.
! 10950: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25 millert 10951:
1.27 ! millert 10952: # Method to check whether dependent libraries are shared objects.
! 10953: deplibs_check_method=$lt_deplibs_check_method
1.25 millert 10954:
1.27 ! millert 10955: # Command to use when deplibs_check_method == file_magic.
! 10956: file_magic_cmd=$lt_file_magic_cmd
1.25 millert 10957:
1.27 ! millert 10958: # Flag that allows shared libraries with undefined symbols to be built.
! 10959: allow_undefined_flag=$lt_allow_undefined_flag
1.25 millert 10960:
1.27 ! millert 10961: # Flag that forces no undefined symbols.
! 10962: no_undefined_flag=$lt_no_undefined_flag
1.25 millert 10963:
1.27 ! millert 10964: # Commands used to finish a libtool library installation in a directory.
! 10965: finish_cmds=$lt_finish_cmds
1.25 millert 10966:
1.27 ! millert 10967: # Same as above, but a single script fragment to be evaled but not shown.
! 10968: finish_eval=$lt_finish_eval
1.25 millert 10969:
1.27 ! millert 10970: # Take the output of nm and produce a listing of raw symbols and C names.
! 10971: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25 millert 10972:
1.27 ! millert 10973: # Transform the output of nm in a proper C declaration
! 10974: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25 millert 10975:
1.27 ! millert 10976: # Transform the output of nm in a C name address pair
! 10977: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25 millert 10978:
1.27 ! millert 10979: # This is the shared library runtime path variable.
! 10980: runpath_var=$runpath_var
1.25 millert 10981:
1.27 ! millert 10982: # This is the shared library path variable.
! 10983: shlibpath_var=$shlibpath_var
1.25 millert 10984:
1.27 ! millert 10985: # Is shlibpath searched before the hard-coded library search path?
! 10986: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25 millert 10987:
1.27 ! millert 10988: # How to hardcode a shared library path into an executable.
! 10989: hardcode_action=$hardcode_action
1.25 millert 10990:
1.27 ! millert 10991: # Whether we should hardcode library paths into libraries.
! 10992: hardcode_into_libs=$hardcode_into_libs
1.25 millert 10993:
1.27 ! millert 10994: # Flag to hardcode \$libdir into a binary during linking.
! 10995: # This must work even if \$libdir does not exist.
! 10996: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25 millert 10997:
1.27 ! millert 10998: # If ld is used when linking, flag to hardcode \$libdir into
! 10999: # a binary during linking. This must work even if \$libdir does
! 11000: # not exist.
! 11001: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23 millert 11002:
1.27 ! millert 11003: # Whether we need a single -rpath flag with a separated argument.
! 11004: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23 millert 11005:
1.27 ! millert 11006: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 11007: # resulting binary.
! 11008: hardcode_direct=$hardcode_direct
1.25 millert 11009:
1.27 ! millert 11010: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 11011: # resulting binary.
! 11012: hardcode_minus_L=$hardcode_minus_L
1.25 millert 11013:
1.27 ! millert 11014: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 11015: # the resulting binary.
! 11016: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25 millert 11017:
1.27 ! millert 11018: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 11019: # and all subsequent libraries and executables linked against it.
! 11020: hardcode_automatic=$hardcode_automatic
1.25 millert 11021:
1.27 ! millert 11022: # Variables whose values should be saved in libtool wrapper scripts and
! 11023: # restored at relink time.
! 11024: variables_saved_for_relink="$variables_saved_for_relink"
1.25 millert 11025:
1.27 ! millert 11026: # Whether libtool must link a program against all its dependency libraries.
! 11027: link_all_deplibs=$link_all_deplibs
1.23 millert 11028:
1.27 ! millert 11029: # Compile-time system search path for libraries
! 11030: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23 millert 11031:
1.27 ! millert 11032: # Run-time system search path for libraries
! 11033: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23 millert 11034:
1.27 ! millert 11035: # Fix the shell variable \$srcfile for the compiler.
! 11036: fix_srcfile_path=$lt_fix_srcfile_path
1.23 millert 11037:
1.27 ! millert 11038: # Set to yes if exported symbols are required.
! 11039: always_export_symbols=$always_export_symbols
1.23 millert 11040:
1.27 ! millert 11041: # The commands to list exported symbols.
! 11042: export_symbols_cmds=$lt_export_symbols_cmds
1.23 millert 11043:
1.27 ! millert 11044: # The commands to extract the exported symbol list from a shared archive.
! 11045: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23 millert 11046:
1.27 ! millert 11047: # Symbols that should not be listed in the preloaded symbols.
! 11048: exclude_expsyms=$lt_exclude_expsyms
1.23 millert 11049:
1.27 ! millert 11050: # Symbols that must always be exported.
! 11051: include_expsyms=$lt_include_expsyms
1.23 millert 11052:
1.27 ! millert 11053: # ### END LIBTOOL CONFIG
1.23 millert 11054:
1.27 ! millert 11055: __EOF__
1.23 millert 11056:
11057:
1.27 ! millert 11058: case $host_os in
1.25 millert 11059: aix3*)
1.27 ! millert 11060: cat <<\EOF >> "$cfgfile"
1.23 millert 11061:
1.27 ! millert 11062: # AIX sometimes has problems with the GCC collect2 program. For some
! 11063: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 11064: # vanish in a puff of smoke.
! 11065: if test "X${COLLECT_NAMES+set}" != Xset; then
! 11066: COLLECT_NAMES=
! 11067: export COLLECT_NAMES
! 11068: fi
! 11069: EOF
1.25 millert 11070: ;;
11071: esac
1.23 millert 11072:
1.27 ! millert 11073: # We use sed instead of cat because bash on DJGPP gets confused if
! 11074: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 11075: # text mode, it properly converts lines to CR/LF. This bash problem
! 11076: # is reportedly fixed, but why not run on old versions too?
! 11077: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23 millert 11078:
1.27 ! millert 11079: mv -f "$cfgfile" "$ofile" || \
! 11080: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
! 11081: chmod +x "$ofile"
1.23 millert 11082:
1.27 ! millert 11083: else
! 11084: # If there is no Makefile yet, we rely on a make rule to execute
! 11085: # `config.status --recheck' to rerun these tests and create the
! 11086: # libtool script then.
! 11087: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 11088: if test -f "$ltmain_in"; then
! 11089: test -f Makefile && make "$ltmain"
! 11090: fi
! 11091: fi
1.23 millert 11092:
11093:
1.25 millert 11094: ac_ext=c
11095: ac_cpp='$CPP $CPPFLAGS'
11096: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11097: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11098: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 11099:
1.25 millert 11100: CC="$lt_save_CC"
1.23 millert 11101:
11102:
11103:
1.27 ! millert 11104: # This can be used to rebuild libtool when needed
! 11105: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23 millert 11106:
1.27 ! millert 11107: # Always use our own libtool.
! 11108: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23 millert 11109:
1.27 ! millert 11110: # Prevent multiple expansion
1.23 millert 11111:
11112:
11113:
11114:
11115:
11116:
11117:
11118:
11119:
11120:
1.25 millert 11121: if test "$enable_shared" = "no"; then
11122: with_noexec=no
11123: else
1.26 millert 11124: eval _shrext="$shrext_cmds"
1.25 millert 11125: fi
1.27 ! millert 11126: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
! 11127: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23 millert 11128:
1.27 ! millert 11129: # Check whether --with-noexec was given.
1.25 millert 11130: if test "${with_noexec+set}" = set; then
1.27 ! millert 11131: withval=$with_noexec; case $with_noexec in
1.25 millert 11132: yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11133: ;;
11134: no) ;;
11135: *) ;;
11136: esac
11137: else
11138: with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27 ! millert 11139: fi
! 11140:
! 11141: { echo "$as_me:$LINENO: result: $with_noexec" >&5
! 11142: echo "${ECHO_T}$with_noexec" >&6; }
1.25 millert 11143: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23 millert 11144:
1.25 millert 11145: if test "$with_devel" = "yes" -a -n "$GCC"; then
11146: CFLAGS="${CFLAGS} -Wall"
11147: fi
1.23 millert 11148:
1.25 millert 11149: # Extract the first word of "uname", so it can be a program name with args.
11150: set dummy uname; ac_word=$2
1.27 ! millert 11151: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 11152: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11153: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11154: echo $ECHO_N "(cached) $ECHO_C" >&6
11155: else
11156: if test -n "$UNAMEPROG"; then
11157: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11158: else
11159: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160: for as_dir in $PATH
11161: do
11162: IFS=$as_save_IFS
11163: test -z "$as_dir" && as_dir=.
11164: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 11165: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11166: ac_cv_prog_UNAMEPROG="uname"
11167: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11168: break 2
11169: fi
11170: done
11171: done
1.27 ! millert 11172: IFS=$as_save_IFS
1.23 millert 11173:
1.25 millert 11174: fi
11175: fi
11176: UNAMEPROG=$ac_cv_prog_UNAMEPROG
11177: if test -n "$UNAMEPROG"; then
1.27 ! millert 11178: { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
! 11179: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25 millert 11180: else
1.27 ! millert 11181: { echo "$as_me:$LINENO: result: no" >&5
! 11182: echo "${ECHO_T}no" >&6; }
1.25 millert 11183: fi
1.23 millert 11184:
1.27 ! millert 11185:
1.25 millert 11186: # Extract the first word of "tr", so it can be a program name with args.
11187: set dummy tr; ac_word=$2
1.27 ! millert 11188: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 11189: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11190: if test "${ac_cv_prog_TRPROG+set}" = set; then
11191: echo $ECHO_N "(cached) $ECHO_C" >&6
11192: else
11193: if test -n "$TRPROG"; then
11194: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11195: else
11196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197: for as_dir in $PATH
11198: do
11199: IFS=$as_save_IFS
11200: test -z "$as_dir" && as_dir=.
11201: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 11202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11203: ac_cv_prog_TRPROG="tr"
11204: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205: break 2
11206: fi
11207: done
11208: done
1.27 ! millert 11209: IFS=$as_save_IFS
1.23 millert 11210:
1.25 millert 11211: fi
11212: fi
11213: TRPROG=$ac_cv_prog_TRPROG
11214: if test -n "$TRPROG"; then
1.27 ! millert 11215: { echo "$as_me:$LINENO: result: $TRPROG" >&5
! 11216: echo "${ECHO_T}$TRPROG" >&6; }
1.25 millert 11217: else
1.27 ! millert 11218: { echo "$as_me:$LINENO: result: no" >&5
! 11219: echo "${ECHO_T}no" >&6; }
1.25 millert 11220: fi
1.23 millert 11221:
1.27 ! millert 11222:
1.25 millert 11223: # Extract the first word of "nroff", so it can be a program name with args.
11224: set dummy nroff; ac_word=$2
1.27 ! millert 11225: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 11226: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11227: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11228: echo $ECHO_N "(cached) $ECHO_C" >&6
11229: else
11230: if test -n "$NROFFPROG"; then
11231: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11232: else
11233: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234: for as_dir in $PATH
11235: do
11236: IFS=$as_save_IFS
11237: test -z "$as_dir" && as_dir=.
11238: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 11239: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11240: ac_cv_prog_NROFFPROG="nroff"
11241: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242: break 2
11243: fi
11244: done
11245: done
1.27 ! millert 11246: IFS=$as_save_IFS
1.23 millert 11247:
1.25 millert 11248: fi
11249: fi
11250: NROFFPROG=$ac_cv_prog_NROFFPROG
11251: if test -n "$NROFFPROG"; then
1.27 ! millert 11252: { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
! 11253: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25 millert 11254: else
1.27 ! millert 11255: { echo "$as_me:$LINENO: result: no" >&5
! 11256: echo "${ECHO_T}no" >&6; }
1.25 millert 11257: fi
1.23 millert 11258:
1.27 ! millert 11259:
1.25 millert 11260: if test -z "$NROFFPROG"; then
11261: MANTYPE="cat"
11262: mansrcdir='$(srcdir)'
11263: fi
1.23 millert 11264:
1.25 millert 11265: if test -n "$sudo_cv_prev_host"; then
11266: if test "$sudo_cv_prev_host" != "$host"; then
11267: { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11268: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11269: { (exit 1); exit 1; }; }
11270: else
1.27 ! millert 11271: { echo "$as_me:$LINENO: checking previous host type" >&5
! 11272: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25 millert 11273: if test "${sudo_cv_prev_host+set}" = set; then
11274: echo $ECHO_N "(cached) $ECHO_C" >&6
11275: else
11276: sudo_cv_prev_host="$host"
11277: fi
1.23 millert 11278:
1.27 ! millert 11279: { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
! 11280: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25 millert 11281: fi
11282: else
11283: # this will produce no output since there is no cached value
11284: if test "${sudo_cv_prev_host+set}" = set; then
11285: echo $ECHO_N "(cached) $ECHO_C" >&6
11286: else
11287: sudo_cv_prev_host="$host"
11288: fi
1.23 millert 11289:
1.25 millert 11290: fi
1.23 millert 11291:
1.25 millert 11292: if test -n "$host_os"; then
11293: OS=`echo $host_os | sed 's/[0-9].*//'`
11294: OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11295: OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11296: else
11297: OS="unknown"
11298: OSREV=0
11299: OSMAJOR=0
11300: fi
1.23 millert 11301:
1.25 millert 11302: case "$host" in
11303: *-*-sunos4*)
11304: # getcwd(3) opens a pipe to getpwd(1)!?!
11305: BROKEN_GETCWD=1
1.23 millert 11306:
1.25 millert 11307: # system headers lack prototypes but gcc helps...
11308: if test -n "$GCC"; then
11309: OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11310: fi
1.23 millert 11311:
1.25 millert 11312: shadow_funcs="getpwanam issecure"
11313: ;;
11314: *-*-solaris2*)
11315: # To get the crypt(3) prototype (so we pass -Wall)
11316: OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11317: # AFS support needs -lucb
11318: if test "$with_AFS" = "yes"; then
11319: AFS_LIBS="-lc -lucb"
11320: fi
11321: : ${mansectsu='1m'}
11322: : ${mansectform='4'}
11323: : ${with_rpath='yes'}
1.27 ! millert 11324: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 11325: ;;
11326: *-*-aix*)
11327: # To get all prototypes (so we pass -Wall)
11328: OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11329: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11330: if test X"$with_blibpath" != X"no"; then
1.27 ! millert 11331: { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
! 11332: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25 millert 11333: O_LDFLAGS="$LDFLAGS"
11334: LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11335: cat >conftest.$ac_ext <<_ACEOF
11336: /* confdefs.h. */
11337: _ACEOF
11338: cat confdefs.h >>conftest.$ac_ext
11339: cat >>conftest.$ac_ext <<_ACEOF
11340: /* end confdefs.h. */
1.23 millert 11341:
1.25 millert 11342: int
11343: main ()
11344: {
1.23 millert 11345:
1.25 millert 11346: ;
11347: return 0;
11348: }
11349: _ACEOF
11350: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 11351: if { (ac_try="$ac_link"
! 11352: case "(($ac_try" in
! 11353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11354: *) ac_try_echo=$ac_try;;
! 11355: esac
! 11356: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11357: (eval "$ac_link") 2>conftest.er1
1.25 millert 11358: ac_status=$?
11359: grep -v '^ *+' conftest.er1 >conftest.err
11360: rm -f conftest.er1
11361: cat conftest.err >&5
11362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11363: (exit $ac_status); } && {
! 11364: test -z "$ac_c_werror_flag" ||
! 11365: test ! -s conftest.err
! 11366: } && test -s conftest$ac_exeext &&
! 11367: $as_test_x conftest$ac_exeext; then
1.23 millert 11368:
1.25 millert 11369: if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11370: blibpath="$with_blibpath"
11371: elif test -n "$GCC"; then
11372: blibpath="/usr/lib:/lib:/usr/local/lib"
11373: else
11374: blibpath="/usr/lib:/lib"
11375: fi
1.27 ! millert 11376: { echo "$as_me:$LINENO: result: yes" >&5
! 11377: echo "${ECHO_T}yes" >&6; }
1.23 millert 11378:
1.25 millert 11379: else
11380: echo "$as_me: failed program was:" >&5
11381: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11382:
1.27 ! millert 11383: { echo "$as_me:$LINENO: result: no" >&5
! 11384: echo "${ECHO_T}no" >&6; }
1.25 millert 11385: fi
1.27 ! millert 11386:
! 11387: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11388: conftest$ac_exeext conftest.$ac_ext
11389: fi
11390: LDFLAGS="$O_LDFLAGS"
1.23 millert 11391:
1.27 ! millert 11392: # Use authenticate(3) as the default authentication method
1.25 millert 11393: if test X"$with_aixauth" = X""; then
1.23 millert 11394:
1.25 millert 11395: for ac_func in authenticate
11396: do
11397: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 11398: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11399: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 11400: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 11401: echo $ECHO_N "(cached) $ECHO_C" >&6
11402: else
11403: cat >conftest.$ac_ext <<_ACEOF
11404: /* confdefs.h. */
11405: _ACEOF
11406: cat confdefs.h >>conftest.$ac_ext
11407: cat >>conftest.$ac_ext <<_ACEOF
11408: /* end confdefs.h. */
11409: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11410: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11411: #define $ac_func innocuous_$ac_func
1.23 millert 11412:
1.25 millert 11413: /* System header to define __stub macros and hopefully few prototypes,
11414: which can conflict with char $ac_func (); below.
11415: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11416: <limits.h> exists even on freestanding compilers. */
1.23 millert 11417:
1.25 millert 11418: #ifdef __STDC__
11419: # include <limits.h>
11420: #else
11421: # include <assert.h>
11422: #endif
1.23 millert 11423:
1.25 millert 11424: #undef $ac_func
1.23 millert 11425:
1.27 ! millert 11426: /* Override any GCC internal prototype to avoid an error.
! 11427: Use char because int might match the return type of a GCC
! 11428: builtin and then its argument prototype would still apply. */
1.25 millert 11429: #ifdef __cplusplus
11430: extern "C"
11431: #endif
11432: char $ac_func ();
11433: /* The GNU C library defines this for functions which it implements
11434: to always fail with ENOSYS. Some functions are actually named
11435: something starting with __ and the normal name is an alias. */
1.27 ! millert 11436: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 11437: choke me
11438: #endif
1.23 millert 11439:
1.25 millert 11440: int
11441: main ()
11442: {
1.27 ! millert 11443: return $ac_func ();
1.25 millert 11444: ;
11445: return 0;
11446: }
11447: _ACEOF
11448: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 11449: if { (ac_try="$ac_link"
! 11450: case "(($ac_try" in
! 11451: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11452: *) ac_try_echo=$ac_try;;
! 11453: esac
! 11454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11455: (eval "$ac_link") 2>conftest.er1
1.25 millert 11456: ac_status=$?
11457: grep -v '^ *+' conftest.er1 >conftest.err
11458: rm -f conftest.er1
11459: cat conftest.err >&5
11460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11461: (exit $ac_status); } && {
! 11462: test -z "$ac_c_werror_flag" ||
! 11463: test ! -s conftest.err
! 11464: } && test -s conftest$ac_exeext &&
! 11465: $as_test_x conftest$ac_exeext; then
1.25 millert 11466: eval "$as_ac_var=yes"
11467: else
11468: echo "$as_me: failed program was:" >&5
11469: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11470:
1.27 ! millert 11471: eval "$as_ac_var=no"
1.25 millert 11472: fi
1.27 ! millert 11473:
! 11474: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11475: conftest$ac_exeext conftest.$ac_ext
11476: fi
1.27 ! millert 11477: ac_res=`eval echo '${'$as_ac_var'}'`
! 11478: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11479: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 11480: if test `eval echo '${'$as_ac_var'}'` = yes; then
11481: cat >>confdefs.h <<_ACEOF
11482: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483: _ACEOF
1.27 ! millert 11484: AUTH_EXCL_DEF="AIX_AUTH"
1.25 millert 11485: fi
11486: done
1.23 millert 11487:
1.25 millert 11488: fi
11489: ;;
11490: *-*-hiuxmpp*)
11491: : ${mansectsu='1m'}
11492: : ${mansectform='4'}
11493: ;;
11494: *-*-hpux*)
11495: # AFS support needs -lBSD
11496: if test "$with_AFS" = "yes"; then
11497: AFS_LIBS="-lc -lBSD"
11498: fi
11499: : ${mansectsu='1m'}
11500: : ${mansectform='4'}
1.23 millert 11501:
1.25 millert 11502: case "$host" in
11503: *-*-hpux1-8.*)
11504: cat >>confdefs.h <<\_ACEOF
11505: #define BROKEN_SYSLOG 1
11506: _ACEOF
1.23 millert 11507:
11508:
1.25 millert 11509: # Not sure if setuid binaries are safe in < 9.x
11510: if test -n "$GCC"; then
11511: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11512: else
11513: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11514: fi
11515: ;;
11516: *-*-hpux9.*)
11517: cat >>confdefs.h <<\_ACEOF
11518: #define BROKEN_SYSLOG 1
11519: _ACEOF
1.23 millert 11520:
11521:
1.25 millert 11522: shadow_funcs="getspwuid"
1.23 millert 11523:
1.25 millert 11524: # DCE support (requires ANSI C compiler)
11525: if test "$with_DCE" = "yes"; then
11526: # order of libs in 9.X is important. -lc_r must be last
11527: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11528: LIBS="${LIBS} -ldce -lM -lc_r"
11529: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11530: fi
11531: ;;
11532: *-*-hpux10.*)
11533: shadow_funcs="getprpwnam iscomsec"
11534: shadow_libs="-lsec"
11535: ;;
11536: *)
11537: shadow_funcs="getspnam iscomsec"
11538: shadow_libs="-lsec"
1.27 ! millert 11539: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 11540: ;;
11541: esac
11542: ;;
11543: *-dec-osf*)
11544: # ignore envariables wrt dynamic lib path
11545: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23 millert 11546:
1.27 ! millert 11547: { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
! 11548: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
! 11549: # Check whether --enable-sia was given.
1.25 millert 11550: if test "${enable_sia+set}" = set; then
1.27 ! millert 11551: enableval=$enable_sia; case "$enableval" in
! 11552: yes) { echo "$as_me:$LINENO: result: no" >&5
! 11553: echo "${ECHO_T}no" >&6; }
1.25 millert 11554: ;;
1.27 ! millert 11555: no) { echo "$as_me:$LINENO: result: yes" >&5
! 11556: echo "${ECHO_T}yes" >&6; }
1.25 millert 11557: CHECKSIA=false
11558: ;;
1.27 ! millert 11559: *) { echo "$as_me:$LINENO: result: no" >&5
! 11560: echo "${ECHO_T}no" >&6; }
1.25 millert 11561: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11562: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11563: ;;
11564: esac
1.23 millert 11565:
1.25 millert 11566: else
1.27 ! millert 11567: { echo "$as_me:$LINENO: result: no" >&5
! 11568: echo "${ECHO_T}no" >&6; }
! 11569: fi
! 11570:
1.23 millert 11571:
1.25 millert 11572: shadow_funcs="getprpwnam dispcrypt"
11573: # OSF/1 4.x and higher need -ldb too
11574: if test $OSMAJOR -lt 4; then
11575: shadow_libs="-lsecurity -laud -lm"
11576: else
11577: shadow_libs="-lsecurity -ldb -laud -lm"
11578: fi
1.23 millert 11579:
1.25 millert 11580: # use SIA by default, if we have it
1.27 ! millert 11581: test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23 millert 11582:
1.27 ! millert 11583: #
! 11584: # Some versions of Digital Unix ship with a broken
! 11585: # copy of prot.h, which we need for shadow passwords.
! 11586: # XXX - make should remove this as part of distclean
! 11587: #
! 11588: { echo "$as_me:$LINENO: checking for broken prot.h" >&5
! 11589: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
! 11590: cat >conftest.$ac_ext <<_ACEOF
1.25 millert 11591: /* confdefs.h. */
11592: _ACEOF
11593: cat confdefs.h >>conftest.$ac_ext
11594: cat >>conftest.$ac_ext <<_ACEOF
11595: /* end confdefs.h. */
1.23 millert 11596:
1.25 millert 11597: #include <sys/types.h>
11598: #include <sys/security.h>
11599: #include <prot.h>
1.23 millert 11600:
1.25 millert 11601: int
11602: main ()
11603: {
11604: exit(0);
11605: ;
11606: return 0;
11607: }
11608: _ACEOF
11609: rm -f conftest.$ac_objext
1.27 ! millert 11610: if { (ac_try="$ac_compile"
! 11611: case "(($ac_try" in
! 11612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11613: *) ac_try_echo=$ac_try;;
! 11614: esac
! 11615: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11616: (eval "$ac_compile") 2>conftest.er1
1.25 millert 11617: ac_status=$?
11618: grep -v '^ *+' conftest.er1 >conftest.err
11619: rm -f conftest.er1
11620: cat conftest.err >&5
11621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11622: (exit $ac_status); } && {
! 11623: test -z "$ac_c_werror_flag" ||
! 11624: test ! -s conftest.err
! 11625: } && test -s conftest.$ac_objext; then
! 11626: { echo "$as_me:$LINENO: result: no" >&5
! 11627: echo "${ECHO_T}no" >&6; }
1.25 millert 11628: else
11629: echo "$as_me: failed program was:" >&5
11630: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11631:
1.27 ! millert 11632: { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
! 11633: echo "${ECHO_T}yes, fixing locally" >&6; }
! 11634: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23 millert 11635:
1.25 millert 11636: fi
1.27 ! millert 11637:
! 11638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 11639: : ${mansectsu='8'}
11640: : ${mansectform='4'}
11641: ;;
11642: *-*-irix*)
11643: OSDEFS="${OSDEFS} -D_BSD_TYPES"
11644: if test -z "$NROFFPROG"; then
11645: 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)'
11646: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11647: if test -d /usr/share/catman/local; then
11648: mandir="/usr/share/catman/local"
11649: else
11650: mandir="/usr/catman/local"
11651: fi
11652: fi
11653: else
11654: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11655: if test -d "/usr/share/man/local"; then
11656: mandir="/usr/share/man/local"
11657: else
11658: mandir="/usr/man/local"
11659: fi
11660: fi
11661: fi
11662: # IRIX <= 4 needs -lsun
11663: if test "$OSMAJOR" -le 4; then
1.27 ! millert 11664: { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
! 11665: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25 millert 11666: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11667: echo $ECHO_N "(cached) $ECHO_C" >&6
11668: else
11669: ac_check_lib_save_LIBS=$LIBS
11670: LIBS="-lsun $LIBS"
11671: cat >conftest.$ac_ext <<_ACEOF
11672: /* confdefs.h. */
11673: _ACEOF
11674: cat confdefs.h >>conftest.$ac_ext
11675: cat >>conftest.$ac_ext <<_ACEOF
11676: /* end confdefs.h. */
1.23 millert 11677:
1.27 ! millert 11678: /* Override any GCC internal prototype to avoid an error.
! 11679: Use char because int might match the return type of a GCC
! 11680: builtin and then its argument prototype would still apply. */
1.25 millert 11681: #ifdef __cplusplus
11682: extern "C"
11683: #endif
11684: char getpwnam ();
11685: int
11686: main ()
11687: {
1.27 ! millert 11688: return getpwnam ();
1.25 millert 11689: ;
11690: return 0;
11691: }
11692: _ACEOF
11693: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 11694: if { (ac_try="$ac_link"
! 11695: case "(($ac_try" in
! 11696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11697: *) ac_try_echo=$ac_try;;
! 11698: esac
! 11699: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11700: (eval "$ac_link") 2>conftest.er1
1.25 millert 11701: ac_status=$?
11702: grep -v '^ *+' conftest.er1 >conftest.err
11703: rm -f conftest.er1
11704: cat conftest.err >&5
11705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11706: (exit $ac_status); } && {
! 11707: test -z "$ac_c_werror_flag" ||
! 11708: test ! -s conftest.err
! 11709: } && test -s conftest$ac_exeext &&
! 11710: $as_test_x conftest$ac_exeext; then
1.25 millert 11711: ac_cv_lib_sun_getpwnam=yes
11712: else
11713: echo "$as_me: failed program was:" >&5
11714: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11715:
1.27 ! millert 11716: ac_cv_lib_sun_getpwnam=no
1.25 millert 11717: fi
1.27 ! millert 11718:
! 11719: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11720: conftest$ac_exeext conftest.$ac_ext
11721: LIBS=$ac_check_lib_save_LIBS
11722: fi
1.27 ! millert 11723: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
! 11724: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25 millert 11725: if test $ac_cv_lib_sun_getpwnam = yes; then
11726: LIBS="${LIBS} -lsun"
11727: fi
1.23 millert 11728:
1.25 millert 11729: fi
11730: : ${mansectsu='1m'}
11731: : ${mansectform='4'}
11732: ;;
11733: *-*-linux*)
11734: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11735: # Some Linux versions need to link with -lshadow
11736: shadow_funcs="getspnam"
11737: shadow_libs_optional="-lshadow"
1.27 ! millert 11738: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 11739: ;;
11740: *-convex-bsd*)
11741: OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11742: if test -z "$GCC"; then
11743: CFLAGS="${CFLAGS} -D__STDC__"
11744: fi
1.23 millert 11745:
1.25 millert 11746: shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11747: shadow_funcs="getprpwnam"
11748: shadow_libs="-lprot"
11749: ;;
11750: *-*-ultrix*)
11751: OS="ultrix"
11752: shadow_funcs="getauthuid"
11753: shadow_libs="-lauth"
11754: ;;
11755: *-*-riscos*)
11756: LIBS="${LIBS} -lsun -lbsd"
11757: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11758: OSDEFS="${OSDEFS} -D_MIPS"
11759: : ${mansectsu='1m'}
11760: : ${mansectform='4'}
11761: ;;
11762: *-*-isc*)
11763: OSDEFS="${OSDEFS} -D_ISC"
11764: LIB_CRYPT=1
11765: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11766: LIBS="${LIBS} -lcrypt"
1.23 millert 11767:
1.25 millert 11768: shadow_funcs="getspnam"
11769: shadow_libs="-lsec"
1.23 millert 11770:
1.25 millert 11771: : ${mansectsu='1m'}
11772: : ${mansectform='4'}
11773: ;;
11774: *-*-sco*|*-sco-*)
11775: shadow_funcs="getprpwnam"
11776: shadow_libs="-lprot -lx"
11777: : ${mansectsu='1m'}
11778: : ${mansectform='4'}
11779: ;;
11780: m88k-motorola-sysv*)
11781: # motorolla's cc (a variant of gcc) does -O but not -O2
11782: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11783: : ${mansectsu='1m'}
11784: : ${mansectform='4'}
11785: ;;
11786: *-sequent-sysv*)
11787: shadow_funcs="getspnam"
11788: shadow_libs="-lsec"
11789: : ${mansectsu='1m'}
11790: : ${mansectform='4'}
11791: : ${with_rpath='yes'}
11792: ;;
11793: *-ncr-sysv4*|*-ncr-sysvr4*)
1.27 ! millert 11794: { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
! 11795: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25 millert 11796: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11797: echo $ECHO_N "(cached) $ECHO_C" >&6
11798: else
11799: ac_check_lib_save_LIBS=$LIBS
11800: LIBS="-lc89 $LIBS"
11801: cat >conftest.$ac_ext <<_ACEOF
11802: /* confdefs.h. */
11803: _ACEOF
11804: cat confdefs.h >>conftest.$ac_ext
11805: cat >>conftest.$ac_ext <<_ACEOF
11806: /* end confdefs.h. */
1.23 millert 11807:
1.27 ! millert 11808: /* Override any GCC internal prototype to avoid an error.
! 11809: Use char because int might match the return type of a GCC
! 11810: builtin and then its argument prototype would still apply. */
1.25 millert 11811: #ifdef __cplusplus
11812: extern "C"
11813: #endif
11814: char strcasecmp ();
11815: int
11816: main ()
11817: {
1.27 ! millert 11818: return strcasecmp ();
1.25 millert 11819: ;
11820: return 0;
11821: }
11822: _ACEOF
11823: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 11824: if { (ac_try="$ac_link"
! 11825: case "(($ac_try" in
! 11826: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11827: *) ac_try_echo=$ac_try;;
! 11828: esac
! 11829: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11830: (eval "$ac_link") 2>conftest.er1
1.25 millert 11831: ac_status=$?
11832: grep -v '^ *+' conftest.er1 >conftest.err
11833: rm -f conftest.er1
11834: cat conftest.err >&5
11835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11836: (exit $ac_status); } && {
! 11837: test -z "$ac_c_werror_flag" ||
! 11838: test ! -s conftest.err
! 11839: } && test -s conftest$ac_exeext &&
! 11840: $as_test_x conftest$ac_exeext; then
1.25 millert 11841: ac_cv_lib_c89_strcasecmp=yes
11842: else
11843: echo "$as_me: failed program was:" >&5
11844: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11845:
1.27 ! millert 11846: ac_cv_lib_c89_strcasecmp=no
1.25 millert 11847: fi
1.27 ! millert 11848:
! 11849: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11850: conftest$ac_exeext conftest.$ac_ext
11851: LIBS=$ac_check_lib_save_LIBS
11852: fi
1.27 ! millert 11853: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
! 11854: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25 millert 11855: if test $ac_cv_lib_c89_strcasecmp = yes; then
11856: cat >>confdefs.h <<\_ACEOF
11857: #define HAVE_STRCASECMP 1
11858: _ACEOF
11859: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11860: fi
1.23 millert 11861:
1.25 millert 11862: : ${mansectsu='1m'}
11863: : ${mansectform='4'}
11864: : ${with_rpath='yes'}
11865: ;;
11866: *-ccur-sysv4*|*-ccur-sysvr4*)
11867: LIBS="${LIBS} -lgen"
11868: SUDO_LIBS="${SUDO_LIBS} -lgen"
11869: : ${mansectsu='1m'}
11870: : ${mansectform='4'}
11871: : ${with_rpath='yes'}
11872: ;;
11873: *-*-bsdi*)
11874: SKIP_SETREUID=yes
11875: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11876: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11877: case "$OSMAJOR" in
11878: 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
11879: echo "$as_me: using shlicc as CC" >&6;}
11880: ac_cv_prog_CC=shlicc
11881: CC="$ac_cv_prog_CC"
11882: ;;
11883: esac
11884: fi
11885: # Check for newer BSD auth API (just check for >= 3.0?)
11886: if test -z "$with_bsdauth"; then
1.23 millert 11887:
1.25 millert 11888: for ac_func in auth_challenge
11889: do
11890: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 11891: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11892: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 11893: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 11894: echo $ECHO_N "(cached) $ECHO_C" >&6
11895: else
11896: cat >conftest.$ac_ext <<_ACEOF
11897: /* confdefs.h. */
11898: _ACEOF
11899: cat confdefs.h >>conftest.$ac_ext
11900: cat >>conftest.$ac_ext <<_ACEOF
11901: /* end confdefs.h. */
11902: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11903: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11904: #define $ac_func innocuous_$ac_func
1.23 millert 11905:
1.25 millert 11906: /* System header to define __stub macros and hopefully few prototypes,
11907: which can conflict with char $ac_func (); below.
11908: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909: <limits.h> exists even on freestanding compilers. */
1.23 millert 11910:
1.25 millert 11911: #ifdef __STDC__
11912: # include <limits.h>
11913: #else
11914: # include <assert.h>
11915: #endif
1.23 millert 11916:
1.25 millert 11917: #undef $ac_func
1.23 millert 11918:
1.27 ! millert 11919: /* Override any GCC internal prototype to avoid an error.
! 11920: Use char because int might match the return type of a GCC
! 11921: builtin and then its argument prototype would still apply. */
1.25 millert 11922: #ifdef __cplusplus
11923: extern "C"
11924: #endif
11925: char $ac_func ();
11926: /* The GNU C library defines this for functions which it implements
11927: to always fail with ENOSYS. Some functions are actually named
11928: something starting with __ and the normal name is an alias. */
1.27 ! millert 11929: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 11930: choke me
11931: #endif
1.23 millert 11932:
1.25 millert 11933: int
11934: main ()
11935: {
1.27 ! millert 11936: return $ac_func ();
1.25 millert 11937: ;
11938: return 0;
11939: }
11940: _ACEOF
11941: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 11942: if { (ac_try="$ac_link"
! 11943: case "(($ac_try" in
! 11944: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11945: *) ac_try_echo=$ac_try;;
! 11946: esac
! 11947: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11948: (eval "$ac_link") 2>conftest.er1
1.25 millert 11949: ac_status=$?
11950: grep -v '^ *+' conftest.er1 >conftest.err
11951: rm -f conftest.er1
11952: cat conftest.err >&5
11953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 11954: (exit $ac_status); } && {
! 11955: test -z "$ac_c_werror_flag" ||
! 11956: test ! -s conftest.err
! 11957: } && test -s conftest$ac_exeext &&
! 11958: $as_test_x conftest$ac_exeext; then
1.25 millert 11959: eval "$as_ac_var=yes"
11960: else
11961: echo "$as_me: failed program was:" >&5
11962: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11963:
1.27 ! millert 11964: eval "$as_ac_var=no"
1.25 millert 11965: fi
1.27 ! millert 11966:
! 11967: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11968: conftest$ac_exeext conftest.$ac_ext
11969: fi
1.27 ! millert 11970: ac_res=`eval echo '${'$as_ac_var'}'`
! 11971: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11972: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 11973: if test `eval echo '${'$as_ac_var'}'` = yes; then
11974: cat >>confdefs.h <<_ACEOF
11975: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976: _ACEOF
1.27 ! millert 11977: AUTH_EXCL_DEF="BSD_AUTH"
1.25 millert 11978: fi
11979: done
1.23 millert 11980:
1.25 millert 11981: fi
11982: ;;
11983: *-*-freebsd*)
11984: # FreeBSD has a real setreuid(2) starting with 2.1 and
11985: # backported to 2.0.5. We just take 2.1 and above...
11986: case "$OSREV" in
11987: 0.*|1.*|2.0*)
11988: SKIP_SETREUID=yes
11989: ;;
11990: esac
11991: if test "$with_skey" = "yes"; then
11992: SUDO_LIBS="${SUDO_LIBS} -lmd"
11993: fi
1.27 ! millert 11994: CHECKSHADOW="false"
! 11995: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 11996: : ${with_logincap='maybe'}
11997: ;;
11998: *-*-*openbsd*)
11999: # OpenBSD has a real setreuid(2) starting with 3.3 but
12000: # we will use setreuid(2) instead.
12001: SKIP_SETREUID=yes
1.27 ! millert 12002: CHECKSHADOW="false"
1.25 millert 12003: # OpenBSD >= 3.0 supports BSD auth
12004: if test -z "$with_bsdauth"; then
12005: case "$OSREV" in
12006: 0-2.*)
12007: ;;
12008: *)
1.27 ! millert 12009: AUTH_EXCL_DEF="BSD_AUTH"
1.25 millert 12010: ;;
12011: esac
12012: fi
12013: : ${with_logincap='maybe'}
12014: ;;
12015: *-*-*netbsd*)
12016: # NetBSD has a real setreuid(2) starting with 1.3.2
12017: case "$OSREV" in
12018: 0.9*|1.012*|1.3|1.3.1)
12019: SKIP_SETREUID=yes
12020: ;;
12021: esac
1.27 ! millert 12022: CHECKSHADOW="false"
! 12023: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12024: : ${with_logincap='maybe'}
12025: ;;
12026: *-*-dragonfly*)
12027: if test "$with_skey" = "yes"; then
12028: SUDO_LIBS="${SUDO_LIBS} -lmd"
12029: fi
1.27 ! millert 12030: CHECKSHADOW="false"
! 12031: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12032: : ${with_logincap='yes'}
12033: ;;
12034: *-*-*bsd*)
1.27 ! millert 12035: CHECKSHADOW="false"
1.25 millert 12036: ;;
12037: *-*-darwin*)
12038: SKIP_SETREUID=yes
1.27 ! millert 12039: CHECKSHADOW="false"
! 12040: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12041: : ${with_logincap='yes'}
12042: ;;
12043: *-*-nextstep*)
12044: # lockf() on is broken on the NeXT -- use flock instead
12045: ac_cv_func_lockf=no
12046: ac_cv_func_flock=yes
12047: ;;
12048: *-*-*sysv4*)
12049: : ${mansectsu='1m'}
12050: : ${mansectform='4'}
12051: : ${with_rpath='yes'}
12052: ;;
12053: *-*-sysv*)
12054: : ${mansectsu='1m'}
12055: : ${mansectform='4'}
1.27 ! millert 12056: ;;
! 12057: *-gnu*)
! 12058: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
! 12059: ;;
! 12060: esac
! 12061:
! 12062: AUTH_REG=${AUTH_REG# }
! 12063: AUTH_EXCL=${AUTH_EXCL# }
! 12064: if test -n "$AUTH_EXCL"; then
! 12065: set -- $AUTH_EXCL
! 12066: if test $# != 1; then
! 12067: { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
! 12068: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
! 12069: { (exit 1); exit 1; }; }
! 12070: fi
! 12071: if test -n "$AUTH_REG"; then
! 12072: { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
! 12073: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
! 12074: { (exit 1); exit 1; }; }
! 12075: fi
! 12076: fi
! 12077: if test X"${with_skey}${with_opie}" = X"yesyes"; then
! 12078: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
! 12079: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
! 12080: { (exit 1); exit 1; }; }
! 12081: fi
1.23 millert 12082:
1.25 millert 12083: : ${mansectsu='8'}
12084: : ${mansectform='5'}
1.23 millert 12085:
1.25 millert 12086: if test -n "$with_libpath"; then
12087: for i in ${with_libpath}; do
1.23 millert 12088:
1.25 millert 12089: if test X"$with_rpath" = X"yes"; then
12090: LDFLAGS="${LDFLAGS} -L$i -R$i"
12091: else
12092: LDFLAGS="${LDFLAGS} -L$i"
12093: fi
12094: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12095: blibpath_add="${blibpath_add}:$i"
12096: fi
1.23 millert 12097:
1.25 millert 12098: done
12099: fi
12100: if test -n "$with_libraries"; then
12101: for i in ${with_libraries}; do
12102: case $i in
12103: -l*) ;;
12104: *.a) ;;
12105: *.o) ;;
12106: *) i="-l${i}";;
12107: esac
12108: LIBS="${LIBS} ${i}"
12109: done
12110: fi
1.23 millert 12111:
1.25 millert 12112: if test $ac_cv_c_compiler_gnu = yes; then
1.27 ! millert 12113: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
! 12114: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25 millert 12115: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12116: echo $ECHO_N "(cached) $ECHO_C" >&6
12117: else
12118: ac_pattern="Autoconf.*'x'"
12119: cat >conftest.$ac_ext <<_ACEOF
12120: /* confdefs.h. */
12121: _ACEOF
12122: cat confdefs.h >>conftest.$ac_ext
12123: cat >>conftest.$ac_ext <<_ACEOF
12124: /* end confdefs.h. */
12125: #include <sgtty.h>
12126: Autoconf TIOCGETP
12127: _ACEOF
12128: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12129: $EGREP "$ac_pattern" >/dev/null 2>&1; then
12130: ac_cv_prog_gcc_traditional=yes
12131: else
12132: ac_cv_prog_gcc_traditional=no
12133: fi
12134: rm -f conftest*
1.23 millert 12135:
12136:
1.25 millert 12137: if test $ac_cv_prog_gcc_traditional = no; then
12138: cat >conftest.$ac_ext <<_ACEOF
12139: /* confdefs.h. */
12140: _ACEOF
12141: cat confdefs.h >>conftest.$ac_ext
12142: cat >>conftest.$ac_ext <<_ACEOF
12143: /* end confdefs.h. */
12144: #include <termio.h>
12145: Autoconf TCGETA
12146: _ACEOF
12147: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12148: $EGREP "$ac_pattern" >/dev/null 2>&1; then
12149: ac_cv_prog_gcc_traditional=yes
12150: fi
12151: rm -f conftest*
1.23 millert 12152:
1.25 millert 12153: fi
12154: fi
1.27 ! millert 12155: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
! 12156: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25 millert 12157: if test $ac_cv_prog_gcc_traditional = yes; then
12158: CC="$CC -traditional"
12159: fi
12160: fi
1.23 millert 12161:
1.27 ! millert 12162: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 12163: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25 millert 12164: if test "${ac_cv_c_const+set}" = set; then
12165: echo $ECHO_N "(cached) $ECHO_C" >&6
12166: else
12167: cat >conftest.$ac_ext <<_ACEOF
12168: /* confdefs.h. */
12169: _ACEOF
12170: cat confdefs.h >>conftest.$ac_ext
12171: cat >>conftest.$ac_ext <<_ACEOF
12172: /* end confdefs.h. */
1.23 millert 12173:
1.25 millert 12174: int
12175: main ()
12176: {
12177: /* FIXME: Include the comments suggested by Paul. */
12178: #ifndef __cplusplus
12179: /* Ultrix mips cc rejects this. */
12180: typedef int charset[2];
1.27 ! millert 12181: const charset cs;
1.25 millert 12182: /* SunOS 4.1.1 cc rejects this. */
1.27 ! millert 12183: char const *const *pcpcc;
! 12184: char **ppc;
1.25 millert 12185: /* NEC SVR4.0.2 mips cc rejects this. */
12186: struct point {int x, y;};
12187: static struct point const zero = {0,0};
12188: /* AIX XL C 1.02.0.0 rejects this.
12189: It does not let you subtract one const X* pointer from another in
12190: an arm of an if-expression whose if-part is not a constant
12191: expression */
12192: const char *g = "string";
1.27 ! millert 12193: pcpcc = &g + (g ? g-g : 0);
1.25 millert 12194: /* HPUX 7.0 cc rejects these. */
1.27 ! millert 12195: ++pcpcc;
! 12196: ppc = (char**) pcpcc;
! 12197: pcpcc = (char const *const *) ppc;
1.25 millert 12198: { /* SCO 3.2v4 cc rejects this. */
12199: char *t;
12200: char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23 millert 12201:
1.25 millert 12202: *t++ = 0;
1.27 ! millert 12203: if (s) return 0;
1.25 millert 12204: }
12205: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12206: int x[] = {25, 17};
12207: const int *foo = &x[0];
12208: ++foo;
12209: }
12210: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12211: typedef const int *iptr;
12212: iptr p = 0;
12213: ++p;
12214: }
12215: { /* AIX XL C 1.02.0.0 rejects this saying
12216: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12217: struct s { int j; const int *ap[3]; };
12218: struct s *b; b->j = 5;
12219: }
12220: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12221: const int foo = 10;
1.27 ! millert 12222: if (!foo) return 0;
1.25 millert 12223: }
1.27 ! millert 12224: return !cs[0] && !zero.x;
1.25 millert 12225: #endif
1.23 millert 12226:
1.25 millert 12227: ;
12228: return 0;
12229: }
12230: _ACEOF
12231: rm -f conftest.$ac_objext
1.27 ! millert 12232: if { (ac_try="$ac_compile"
! 12233: case "(($ac_try" in
! 12234: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12235: *) ac_try_echo=$ac_try;;
! 12236: esac
! 12237: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12238: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12239: ac_status=$?
12240: grep -v '^ *+' conftest.er1 >conftest.err
12241: rm -f conftest.er1
12242: cat conftest.err >&5
12243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12244: (exit $ac_status); } && {
! 12245: test -z "$ac_c_werror_flag" ||
! 12246: test ! -s conftest.err
! 12247: } && test -s conftest.$ac_objext; then
1.25 millert 12248: ac_cv_c_const=yes
12249: else
12250: echo "$as_me: failed program was:" >&5
12251: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12252:
1.27 ! millert 12253: ac_cv_c_const=no
1.25 millert 12254: fi
1.27 ! millert 12255:
! 12256: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 12257: fi
1.27 ! millert 12258: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 12259: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25 millert 12260: if test $ac_cv_c_const = no; then
1.23 millert 12261:
1.25 millert 12262: cat >>confdefs.h <<\_ACEOF
12263: #define const
12264: _ACEOF
1.23 millert 12265:
1.25 millert 12266: fi
1.23 millert 12267:
1.27 ! millert 12268: { echo "$as_me:$LINENO: checking for working volatile" >&5
! 12269: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25 millert 12270: if test "${ac_cv_c_volatile+set}" = set; then
12271: echo $ECHO_N "(cached) $ECHO_C" >&6
12272: else
12273: cat >conftest.$ac_ext <<_ACEOF
12274: /* confdefs.h. */
12275: _ACEOF
12276: cat confdefs.h >>conftest.$ac_ext
12277: cat >>conftest.$ac_ext <<_ACEOF
12278: /* end confdefs.h. */
1.23 millert 12279:
1.25 millert 12280: int
12281: main ()
12282: {
1.23 millert 12283:
1.25 millert 12284: volatile int x;
1.27 ! millert 12285: int * volatile y = (int *) 0;
! 12286: return !x && !y;
1.25 millert 12287: ;
12288: return 0;
12289: }
12290: _ACEOF
12291: rm -f conftest.$ac_objext
1.27 ! millert 12292: if { (ac_try="$ac_compile"
! 12293: case "(($ac_try" in
! 12294: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12295: *) ac_try_echo=$ac_try;;
! 12296: esac
! 12297: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12298: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12299: ac_status=$?
12300: grep -v '^ *+' conftest.er1 >conftest.err
12301: rm -f conftest.er1
12302: cat conftest.err >&5
12303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12304: (exit $ac_status); } && {
! 12305: test -z "$ac_c_werror_flag" ||
! 12306: test ! -s conftest.err
! 12307: } && test -s conftest.$ac_objext; then
1.25 millert 12308: ac_cv_c_volatile=yes
12309: else
12310: echo "$as_me: failed program was:" >&5
12311: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12312:
1.27 ! millert 12313: ac_cv_c_volatile=no
1.25 millert 12314: fi
1.27 ! millert 12315:
! 12316: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 12317: fi
1.27 ! millert 12318: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 12319: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25 millert 12320: if test $ac_cv_c_volatile = no; then
1.23 millert 12321:
1.25 millert 12322: cat >>confdefs.h <<\_ACEOF
12323: #define volatile
12324: _ACEOF
1.23 millert 12325:
1.25 millert 12326: fi
1.23 millert 12327:
1.25 millert 12328: for ac_prog in 'bison -y' byacc
12329: do
12330: # Extract the first word of "$ac_prog", so it can be a program name with args.
12331: set dummy $ac_prog; ac_word=$2
1.27 ! millert 12332: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 12333: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 12334: if test "${ac_cv_prog_YACC+set}" = set; then
12335: echo $ECHO_N "(cached) $ECHO_C" >&6
12336: else
12337: if test -n "$YACC"; then
12338: ac_cv_prog_YACC="$YACC" # Let the user override the test.
12339: else
12340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341: for as_dir in $PATH
12342: do
12343: IFS=$as_save_IFS
12344: test -z "$as_dir" && as_dir=.
12345: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 ! millert 12346: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 12347: ac_cv_prog_YACC="$ac_prog"
12348: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12349: break 2
12350: fi
12351: done
12352: done
1.27 ! millert 12353: IFS=$as_save_IFS
1.23 millert 12354:
1.25 millert 12355: fi
12356: fi
12357: YACC=$ac_cv_prog_YACC
12358: if test -n "$YACC"; then
1.27 ! millert 12359: { echo "$as_me:$LINENO: result: $YACC" >&5
! 12360: echo "${ECHO_T}$YACC" >&6; }
1.25 millert 12361: else
1.27 ! millert 12362: { echo "$as_me:$LINENO: result: no" >&5
! 12363: echo "${ECHO_T}no" >&6; }
1.25 millert 12364: fi
1.23 millert 12365:
1.27 ! millert 12366:
1.25 millert 12367: test -n "$YACC" && break
12368: done
12369: test -n "$YACC" || YACC="yacc"
1.23 millert 12370:
1.27 ! millert 12371: { echo "$as_me:$LINENO: checking for mv" >&5
! 12372: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25 millert 12373: if test -f "/usr/bin/mv"; then
1.27 ! millert 12374: { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
! 12375: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25 millert 12376: cat >>confdefs.h <<\EOF
12377: #define _PATH_MV "/usr/bin/mv"
12378: EOF
1.23 millert 12379:
1.25 millert 12380: elif test -f "/bin/mv"; then
1.27 ! millert 12381: { echo "$as_me:$LINENO: result: /bin/mv" >&5
! 12382: echo "${ECHO_T}/bin/mv" >&6; }
1.25 millert 12383: cat >>confdefs.h <<\EOF
12384: #define _PATH_MV "/bin/mv"
12385: EOF
1.23 millert 12386:
1.25 millert 12387: elif test -f "/usr/ucb/mv"; then
1.27 ! millert 12388: { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
! 12389: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25 millert 12390: cat >>confdefs.h <<\EOF
12391: #define _PATH_MV "/usr/ucb/mv"
12392: EOF
1.23 millert 12393:
1.25 millert 12394: elif test -f "/usr/sbin/mv"; then
1.27 ! millert 12395: { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
! 12396: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25 millert 12397: cat >>confdefs.h <<\EOF
12398: #define _PATH_MV "/usr/sbin/mv"
12399: EOF
1.23 millert 12400:
1.25 millert 12401: else
1.27 ! millert 12402: { echo "$as_me:$LINENO: result: not found" >&5
! 12403: echo "${ECHO_T}not found" >&6; }
1.25 millert 12404: fi
1.23 millert 12405:
1.27 ! millert 12406: { echo "$as_me:$LINENO: checking for bourne shell" >&5
! 12407: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25 millert 12408: if test -f "/bin/sh"; then
1.27 ! millert 12409: { echo "$as_me:$LINENO: result: /bin/sh" >&5
! 12410: echo "${ECHO_T}/bin/sh" >&6; }
1.25 millert 12411: cat >>confdefs.h <<\EOF
12412: #define _PATH_BSHELL "/bin/sh"
12413: EOF
1.23 millert 12414:
1.25 millert 12415: elif test -f "/usr/bin/sh"; then
1.27 ! millert 12416: { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
! 12417: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25 millert 12418: cat >>confdefs.h <<\EOF
12419: #define _PATH_BSHELL "/usr/bin/sh"
12420: EOF
1.23 millert 12421:
1.25 millert 12422: elif test -f "/sbin/sh"; then
1.27 ! millert 12423: { echo "$as_me:$LINENO: result: /sbin/sh" >&5
! 12424: echo "${ECHO_T}/sbin/sh" >&6; }
1.25 millert 12425: cat >>confdefs.h <<\EOF
12426: #define _PATH_BSHELL "/sbin/sh"
12427: EOF
1.23 millert 12428:
1.25 millert 12429: elif test -f "/usr/sbin/sh"; then
1.27 ! millert 12430: { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
! 12431: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25 millert 12432: cat >>confdefs.h <<\EOF
12433: #define _PATH_BSHELL "/usr/sbin/sh"
12434: EOF
1.23 millert 12435:
1.25 millert 12436: elif test -f "/bin/ksh"; then
1.27 ! millert 12437: { echo "$as_me:$LINENO: result: /bin/ksh" >&5
! 12438: echo "${ECHO_T}/bin/ksh" >&6; }
1.25 millert 12439: cat >>confdefs.h <<\EOF
12440: #define _PATH_BSHELL "/bin/ksh"
12441: EOF
1.23 millert 12442:
1.25 millert 12443: elif test -f "/usr/bin/ksh"; then
1.27 ! millert 12444: { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
! 12445: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25 millert 12446: cat >>confdefs.h <<\EOF
12447: #define _PATH_BSHELL "/usr/bin/ksh"
12448: EOF
1.23 millert 12449:
1.25 millert 12450: elif test -f "/bin/bash"; then
1.27 ! millert 12451: { echo "$as_me:$LINENO: result: /bin/bash" >&5
! 12452: echo "${ECHO_T}/bin/bash" >&6; }
1.25 millert 12453: cat >>confdefs.h <<\EOF
12454: #define _PATH_BSHELL "/bin/bash"
12455: EOF
1.23 millert 12456:
1.25 millert 12457: elif test -f "/usr/bin/bash"; then
1.27 ! millert 12458: { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
! 12459: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25 millert 12460: cat >>confdefs.h <<\EOF
12461: #define _PATH_BSHELL "/usr/bin/bash"
12462: EOF
1.23 millert 12463:
1.25 millert 12464: else
1.27 ! millert 12465: { echo "$as_me:$LINENO: result: not found" >&5
! 12466: echo "${ECHO_T}not found" >&6; }
1.25 millert 12467: fi
1.23 millert 12468:
1.25 millert 12469: if test -z "$with_sendmail"; then
1.27 ! millert 12470: { echo "$as_me:$LINENO: checking for sendmail" >&5
! 12471: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25 millert 12472: if test -f "/usr/sbin/sendmail"; then
1.27 ! millert 12473: { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
! 12474: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25 millert 12475: cat >>confdefs.h <<\EOF
12476: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12477: EOF
1.23 millert 12478:
1.25 millert 12479: elif test -f "/usr/lib/sendmail"; then
1.27 ! millert 12480: { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
! 12481: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25 millert 12482: cat >>confdefs.h <<\EOF
12483: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12484: EOF
1.23 millert 12485:
1.25 millert 12486: elif test -f "/usr/etc/sendmail"; then
1.27 ! millert 12487: { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
! 12488: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25 millert 12489: cat >>confdefs.h <<\EOF
12490: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12491: EOF
1.23 millert 12492:
1.25 millert 12493: elif test -f "/usr/ucblib/sendmail"; then
1.27 ! millert 12494: { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
! 12495: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25 millert 12496: cat >>confdefs.h <<\EOF
12497: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12498: EOF
1.23 millert 12499:
1.25 millert 12500: elif test -f "/usr/local/lib/sendmail"; then
1.27 ! millert 12501: { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
! 12502: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25 millert 12503: cat >>confdefs.h <<\EOF
12504: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12505: EOF
1.23 millert 12506:
1.25 millert 12507: elif test -f "/usr/local/bin/sendmail"; then
1.27 ! millert 12508: { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
! 12509: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25 millert 12510: cat >>confdefs.h <<\EOF
12511: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12512: EOF
1.23 millert 12513:
1.25 millert 12514: else
1.27 ! millert 12515: { echo "$as_me:$LINENO: result: not found" >&5
! 12516: echo "${ECHO_T}not found" >&6; }
1.25 millert 12517: fi
1.23 millert 12518:
1.25 millert 12519: fi
12520: if test -z "$with_editor"; then
1.27 ! millert 12521: { echo "$as_me:$LINENO: checking for vi" >&5
! 12522: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25 millert 12523: if test -f "/usr/bin/vi"; then
1.27 ! millert 12524: { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
! 12525: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25 millert 12526: cat >>confdefs.h <<\EOF
12527: #define _PATH_VI "/usr/bin/vi"
12528: EOF
1.23 millert 12529:
1.25 millert 12530: elif test -f "/usr/ucb/vi"; then
1.27 ! millert 12531: { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
! 12532: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25 millert 12533: cat >>confdefs.h <<\EOF
12534: #define _PATH_VI "/usr/ucb/vi"
12535: EOF
1.23 millert 12536:
1.25 millert 12537: elif test -f "/usr/bsd/vi"; then
1.27 ! millert 12538: { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
! 12539: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25 millert 12540: cat >>confdefs.h <<\EOF
12541: #define _PATH_VI "/usr/bsd/vi"
12542: EOF
1.23 millert 12543:
1.25 millert 12544: elif test -f "/bin/vi"; then
1.27 ! millert 12545: { echo "$as_me:$LINENO: result: /bin/vi" >&5
! 12546: echo "${ECHO_T}/bin/vi" >&6; }
1.25 millert 12547: cat >>confdefs.h <<\EOF
12548: #define _PATH_VI "/bin/vi"
12549: EOF
1.23 millert 12550:
1.25 millert 12551: elif test -f "/usr/local/bin/vi"; then
1.27 ! millert 12552: { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
! 12553: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25 millert 12554: cat >>confdefs.h <<\EOF
12555: #define _PATH_VI "/usr/local/bin/vi"
12556: EOF
1.23 millert 12557:
12558: else
1.27 ! millert 12559: { echo "$as_me:$LINENO: result: not found" >&5
! 12560: echo "${ECHO_T}not found" >&6; }
1.23 millert 12561: fi
12562:
1.25 millert 12563: fi
1.27 ! millert 12564: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 12565: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25 millert 12566: if test "${ac_cv_header_stdc+set}" = set; then
12567: echo $ECHO_N "(cached) $ECHO_C" >&6
12568: else
12569: cat >conftest.$ac_ext <<_ACEOF
12570: /* confdefs.h. */
12571: _ACEOF
12572: cat confdefs.h >>conftest.$ac_ext
12573: cat >>conftest.$ac_ext <<_ACEOF
12574: /* end confdefs.h. */
12575: #include <stdlib.h>
12576: #include <stdarg.h>
12577: #include <string.h>
12578: #include <float.h>
1.23 millert 12579:
1.25 millert 12580: int
12581: main ()
12582: {
1.23 millert 12583:
1.25 millert 12584: ;
12585: return 0;
12586: }
12587: _ACEOF
12588: rm -f conftest.$ac_objext
1.27 ! millert 12589: if { (ac_try="$ac_compile"
! 12590: case "(($ac_try" in
! 12591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12592: *) ac_try_echo=$ac_try;;
! 12593: esac
! 12594: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12595: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12596: ac_status=$?
12597: grep -v '^ *+' conftest.er1 >conftest.err
12598: rm -f conftest.er1
12599: cat conftest.err >&5
12600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12601: (exit $ac_status); } && {
! 12602: test -z "$ac_c_werror_flag" ||
! 12603: test ! -s conftest.err
! 12604: } && test -s conftest.$ac_objext; then
1.25 millert 12605: ac_cv_header_stdc=yes
12606: else
12607: echo "$as_me: failed program was:" >&5
12608: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12609:
1.27 ! millert 12610: ac_cv_header_stdc=no
1.25 millert 12611: fi
1.27 ! millert 12612:
! 12613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 12614:
1.25 millert 12615: if test $ac_cv_header_stdc = yes; then
12616: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12617: cat >conftest.$ac_ext <<_ACEOF
12618: /* confdefs.h. */
12619: _ACEOF
12620: cat confdefs.h >>conftest.$ac_ext
12621: cat >>conftest.$ac_ext <<_ACEOF
12622: /* end confdefs.h. */
12623: #include <string.h>
1.23 millert 12624:
1.25 millert 12625: _ACEOF
12626: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12627: $EGREP "memchr" >/dev/null 2>&1; then
12628: :
12629: else
12630: ac_cv_header_stdc=no
12631: fi
12632: rm -f conftest*
1.23 millert 12633:
12634: fi
12635:
1.25 millert 12636: if test $ac_cv_header_stdc = yes; then
12637: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12638: cat >conftest.$ac_ext <<_ACEOF
12639: /* confdefs.h. */
12640: _ACEOF
12641: cat confdefs.h >>conftest.$ac_ext
12642: cat >>conftest.$ac_ext <<_ACEOF
12643: /* end confdefs.h. */
12644: #include <stdlib.h>
1.23 millert 12645:
1.25 millert 12646: _ACEOF
12647: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648: $EGREP "free" >/dev/null 2>&1; then
12649: :
1.23 millert 12650: else
1.25 millert 12651: ac_cv_header_stdc=no
1.23 millert 12652: fi
1.25 millert 12653: rm -f conftest*
1.23 millert 12654:
12655: fi
12656:
1.25 millert 12657: if test $ac_cv_header_stdc = yes; then
12658: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12659: if test "$cross_compiling" = yes; then
12660: :
1.1 millert 12661: else
1.25 millert 12662: cat >conftest.$ac_ext <<_ACEOF
12663: /* confdefs.h. */
12664: _ACEOF
12665: cat confdefs.h >>conftest.$ac_ext
12666: cat >>conftest.$ac_ext <<_ACEOF
12667: /* end confdefs.h. */
12668: #include <ctype.h>
1.27 ! millert 12669: #include <stdlib.h>
1.25 millert 12670: #if ((' ' & 0x0FF) == 0x020)
12671: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12672: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12673: #else
12674: # define ISLOWER(c) \
12675: (('a' <= (c) && (c) <= 'i') \
12676: || ('j' <= (c) && (c) <= 'r') \
12677: || ('s' <= (c) && (c) <= 'z'))
12678: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12679: #endif
12680:
12681: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12682: int
12683: main ()
12684: {
12685: int i;
12686: for (i = 0; i < 256; i++)
12687: if (XOR (islower (i), ISLOWER (i))
12688: || toupper (i) != TOUPPER (i))
1.27 ! millert 12689: return 2;
! 12690: return 0;
1.25 millert 12691: }
12692: _ACEOF
12693: rm -f conftest$ac_exeext
1.27 ! millert 12694: if { (ac_try="$ac_link"
! 12695: case "(($ac_try" in
! 12696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12697: *) ac_try_echo=$ac_try;;
! 12698: esac
! 12699: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12700: (eval "$ac_link") 2>&5
1.25 millert 12701: ac_status=$?
12702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27 ! millert 12704: { (case "(($ac_try" in
! 12705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12706: *) ac_try_echo=$ac_try;;
! 12707: esac
! 12708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12709: (eval "$ac_try") 2>&5
1.25 millert 12710: ac_status=$?
12711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712: (exit $ac_status); }; }; then
12713: :
1.1 millert 12714: else
1.25 millert 12715: echo "$as_me: program exited with status $ac_status" >&5
12716: echo "$as_me: failed program was:" >&5
12717: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 12718:
1.25 millert 12719: ( exit $ac_status )
12720: ac_cv_header_stdc=no
12721: fi
1.27 ! millert 12722: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 12723: fi
1.27 ! millert 12724:
! 12725:
1.1 millert 12726: fi
12727: fi
1.27 ! millert 12728: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 12729: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25 millert 12730: if test $ac_cv_header_stdc = yes; then
1.1 millert 12731:
1.25 millert 12732: cat >>confdefs.h <<\_ACEOF
12733: #define STDC_HEADERS 1
12734: _ACEOF
1.9 millert 12735:
1.1 millert 12736: fi
12737:
1.25 millert 12738:
12739:
12740:
12741:
12742:
12743: ac_header_dirent=no
12744: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12745: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27 ! millert 12746: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 12747: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
! 12748: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 12749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12750: else
1.25 millert 12751: cat >conftest.$ac_ext <<_ACEOF
12752: /* confdefs.h. */
12753: _ACEOF
12754: cat confdefs.h >>conftest.$ac_ext
12755: cat >>conftest.$ac_ext <<_ACEOF
12756: /* end confdefs.h. */
12757: #include <sys/types.h>
12758: #include <$ac_hdr>
12759:
12760: int
12761: main ()
12762: {
12763: if ((DIR *) 0)
12764: return 0;
12765: ;
12766: return 0;
12767: }
12768: _ACEOF
12769: rm -f conftest.$ac_objext
1.27 ! millert 12770: if { (ac_try="$ac_compile"
! 12771: case "(($ac_try" in
! 12772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12773: *) ac_try_echo=$ac_try;;
! 12774: esac
! 12775: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12776: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12777: ac_status=$?
12778: grep -v '^ *+' conftest.er1 >conftest.err
12779: rm -f conftest.er1
12780: cat conftest.err >&5
12781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12782: (exit $ac_status); } && {
! 12783: test -z "$ac_c_werror_flag" ||
! 12784: test ! -s conftest.err
! 12785: } && test -s conftest.$ac_objext; then
1.25 millert 12786: eval "$as_ac_Header=yes"
1.1 millert 12787: else
1.25 millert 12788: echo "$as_me: failed program was:" >&5
12789: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 12790:
1.27 ! millert 12791: eval "$as_ac_Header=no"
1.1 millert 12792: fi
1.27 ! millert 12793:
! 12794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 12795: fi
1.27 ! millert 12796: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12797: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12798: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 12799: if test `eval echo '${'$as_ac_Header'}'` = yes; then
12800: cat >>confdefs.h <<_ACEOF
12801: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12802: _ACEOF
1.9 millert 12803:
1.25 millert 12804: ac_header_dirent=$ac_hdr; break
1.9 millert 12805: fi
1.16 millert 12806:
1.25 millert 12807: done
12808: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12809: if test $ac_header_dirent = dirent.h; then
1.27 ! millert 12810: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 12811: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25 millert 12812: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 12813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12814: else
1.25 millert 12815: ac_func_search_save_LIBS=$LIBS
12816: cat >conftest.$ac_ext <<_ACEOF
12817: /* confdefs.h. */
12818: _ACEOF
12819: cat confdefs.h >>conftest.$ac_ext
12820: cat >>conftest.$ac_ext <<_ACEOF
12821: /* end confdefs.h. */
1.1 millert 12822:
1.27 ! millert 12823: /* Override any GCC internal prototype to avoid an error.
! 12824: Use char because int might match the return type of a GCC
! 12825: builtin and then its argument prototype would still apply. */
1.25 millert 12826: #ifdef __cplusplus
12827: extern "C"
12828: #endif
12829: char opendir ();
12830: int
12831: main ()
12832: {
1.27 ! millert 12833: return opendir ();
1.25 millert 12834: ;
12835: return 0;
12836: }
12837: _ACEOF
1.27 ! millert 12838: for ac_lib in '' dir; do
! 12839: if test -z "$ac_lib"; then
! 12840: ac_res="none required"
! 12841: else
! 12842: ac_res=-l$ac_lib
! 12843: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 12844: fi
! 12845: rm -f conftest.$ac_objext conftest$ac_exeext
! 12846: if { (ac_try="$ac_link"
! 12847: case "(($ac_try" in
! 12848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12849: *) ac_try_echo=$ac_try;;
! 12850: esac
! 12851: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12852: (eval "$ac_link") 2>conftest.er1
1.25 millert 12853: ac_status=$?
12854: grep -v '^ *+' conftest.er1 >conftest.err
12855: rm -f conftest.er1
12856: cat conftest.err >&5
12857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12858: (exit $ac_status); } && {
! 12859: test -z "$ac_c_werror_flag" ||
! 12860: test ! -s conftest.err
! 12861: } && test -s conftest$ac_exeext &&
! 12862: $as_test_x conftest$ac_exeext; then
! 12863: ac_cv_search_opendir=$ac_res
1.1 millert 12864: else
1.25 millert 12865: echo "$as_me: failed program was:" >&5
12866: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 12867:
1.27 ! millert 12868:
1.1 millert 12869: fi
12870:
1.27 ! millert 12871: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12872: conftest$ac_exeext
! 12873: if test "${ac_cv_search_opendir+set}" = set; then
! 12874: break
! 12875: fi
! 12876: done
! 12877: if test "${ac_cv_search_opendir+set}" = set; then
! 12878: :
1.1 millert 12879: else
1.27 ! millert 12880: ac_cv_search_opendir=no
1.25 millert 12881: fi
1.27 ! millert 12882: rm conftest.$ac_ext
1.25 millert 12883: LIBS=$ac_func_search_save_LIBS
1.1 millert 12884: fi
1.27 ! millert 12885: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 12886: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 12887: ac_res=$ac_cv_search_opendir
! 12888: if test "$ac_res" != no; then
! 12889: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 millert 12890:
1.25 millert 12891: fi
1.1 millert 12892:
1.25 millert 12893: else
1.27 ! millert 12894: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 12895: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25 millert 12896: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 12897: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12898: else
1.25 millert 12899: ac_func_search_save_LIBS=$LIBS
12900: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12901: /* confdefs.h. */
12902: _ACEOF
12903: cat confdefs.h >>conftest.$ac_ext
12904: cat >>conftest.$ac_ext <<_ACEOF
12905: /* end confdefs.h. */
1.25 millert 12906:
1.27 ! millert 12907: /* Override any GCC internal prototype to avoid an error.
! 12908: Use char because int might match the return type of a GCC
! 12909: builtin and then its argument prototype would still apply. */
1.9 millert 12910: #ifdef __cplusplus
12911: extern "C"
12912: #endif
1.25 millert 12913: char opendir ();
1.16 millert 12914: int
12915: main ()
12916: {
1.27 ! millert 12917: return opendir ();
1.9 millert 12918: ;
12919: return 0;
12920: }
12921: _ACEOF
1.27 ! millert 12922: for ac_lib in '' x; do
! 12923: if test -z "$ac_lib"; then
! 12924: ac_res="none required"
! 12925: else
! 12926: ac_res=-l$ac_lib
! 12927: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 12928: fi
! 12929: rm -f conftest.$ac_objext conftest$ac_exeext
! 12930: if { (ac_try="$ac_link"
! 12931: case "(($ac_try" in
! 12932: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12933: *) ac_try_echo=$ac_try;;
! 12934: esac
! 12935: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12936: (eval "$ac_link") 2>conftest.er1
1.9 millert 12937: ac_status=$?
1.25 millert 12938: grep -v '^ *+' conftest.er1 >conftest.err
12939: rm -f conftest.er1
12940: cat conftest.err >&5
1.16 millert 12941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 12942: (exit $ac_status); } && {
! 12943: test -z "$ac_c_werror_flag" ||
! 12944: test ! -s conftest.err
! 12945: } && test -s conftest$ac_exeext &&
! 12946: $as_test_x conftest$ac_exeext; then
! 12947: ac_cv_search_opendir=$ac_res
1.9 millert 12948: else
12949: echo "$as_me: failed program was:" >&5
1.16 millert 12950: sed 's/^/| /' conftest.$ac_ext >&5
12951:
1.27 ! millert 12952:
1.1 millert 12953: fi
1.17 millert 12954:
1.27 ! millert 12955: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12956: conftest$ac_exeext
! 12957: if test "${ac_cv_search_opendir+set}" = set; then
! 12958: break
! 12959: fi
! 12960: done
! 12961: if test "${ac_cv_search_opendir+set}" = set; then
! 12962: :
1.17 millert 12963: else
1.27 ! millert 12964: ac_cv_search_opendir=no
1.25 millert 12965: fi
1.27 ! millert 12966: rm conftest.$ac_ext
1.25 millert 12967: LIBS=$ac_func_search_save_LIBS
12968: fi
1.27 ! millert 12969: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 12970: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 12971: ac_res=$ac_cv_search_opendir
! 12972: if test "$ac_res" != no; then
! 12973: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25 millert 12974:
12975: fi
12976:
12977: fi
12978:
1.27 ! millert 12979: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
! 12980: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25 millert 12981: if test "${ac_cv_header_time+set}" = set; then
1.9 millert 12982: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12983: else
1.25 millert 12984: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12985: /* confdefs.h. */
12986: _ACEOF
12987: cat confdefs.h >>conftest.$ac_ext
12988: cat >>conftest.$ac_ext <<_ACEOF
12989: /* end confdefs.h. */
1.25 millert 12990: #include <sys/types.h>
12991: #include <sys/time.h>
12992: #include <time.h>
1.9 millert 12993:
12994: int
12995: main ()
12996: {
1.25 millert 12997: if ((struct tm *) 0)
12998: return 0;
1.9 millert 12999: ;
13000: return 0;
13001: }
13002: _ACEOF
1.25 millert 13003: rm -f conftest.$ac_objext
1.27 ! millert 13004: if { (ac_try="$ac_compile"
! 13005: case "(($ac_try" in
! 13006: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13007: *) ac_try_echo=$ac_try;;
! 13008: esac
! 13009: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13010: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13011: ac_status=$?
1.25 millert 13012: grep -v '^ *+' conftest.er1 >conftest.err
13013: rm -f conftest.er1
13014: cat conftest.err >&5
1.16 millert 13015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13016: (exit $ac_status); } && {
! 13017: test -z "$ac_c_werror_flag" ||
! 13018: test ! -s conftest.err
! 13019: } && test -s conftest.$ac_objext; then
1.25 millert 13020: ac_cv_header_time=yes
1.9 millert 13021: else
13022: echo "$as_me: failed program was:" >&5
1.16 millert 13023: sed 's/^/| /' conftest.$ac_ext >&5
13024:
1.27 ! millert 13025: ac_cv_header_time=no
1.9 millert 13026: fi
1.27 ! millert 13027:
! 13028: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13029: fi
1.27 ! millert 13030: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
! 13031: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25 millert 13032: if test $ac_cv_header_time = yes; then
13033:
13034: cat >>confdefs.h <<\_ACEOF
13035: #define TIME_WITH_SYS_TIME 1
1.16 millert 13036: _ACEOF
1.25 millert 13037:
13038: fi
13039:
13040:
13041:
13042:
13043:
13044:
13045:
13046:
13047: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13048: do
13049: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 ! millert 13050: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13051: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13052: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13053: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13054: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13055: fi
1.27 ! millert 13056: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13057: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13058: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 13059: else
1.25 millert 13060: # Is the header compilable?
1.27 ! millert 13061: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13062: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9 millert 13063: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13064: /* confdefs.h. */
13065: _ACEOF
13066: cat confdefs.h >>conftest.$ac_ext
13067: cat >>conftest.$ac_ext <<_ACEOF
13068: /* end confdefs.h. */
1.25 millert 13069: $ac_includes_default
13070: #include <$ac_header>
1.9 millert 13071: _ACEOF
1.25 millert 13072: rm -f conftest.$ac_objext
1.27 ! millert 13073: if { (ac_try="$ac_compile"
! 13074: case "(($ac_try" in
! 13075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13076: *) ac_try_echo=$ac_try;;
! 13077: esac
! 13078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13079: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13080: ac_status=$?
1.25 millert 13081: grep -v '^ *+' conftest.er1 >conftest.err
13082: rm -f conftest.er1
13083: cat conftest.err >&5
1.16 millert 13084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13085: (exit $ac_status); } && {
! 13086: test -z "$ac_c_werror_flag" ||
! 13087: test ! -s conftest.err
! 13088: } && test -s conftest.$ac_objext; then
1.25 millert 13089: ac_header_compiler=yes
1.9 millert 13090: else
13091: echo "$as_me: failed program was:" >&5
1.16 millert 13092: sed 's/^/| /' conftest.$ac_ext >&5
13093:
1.27 ! millert 13094: ac_header_compiler=no
1.9 millert 13095: fi
1.27 ! millert 13096:
! 13097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13098: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13099: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 13100:
13101: # Is the header present?
1.27 ! millert 13102: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13103: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25 millert 13104: cat >conftest.$ac_ext <<_ACEOF
13105: /* confdefs.h. */
13106: _ACEOF
13107: cat confdefs.h >>conftest.$ac_ext
13108: cat >>conftest.$ac_ext <<_ACEOF
13109: /* end confdefs.h. */
13110: #include <$ac_header>
1.16 millert 13111: _ACEOF
1.27 ! millert 13112: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13113: case "(($ac_try" in
! 13114: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13115: *) ac_try_echo=$ac_try;;
! 13116: esac
! 13117: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13118: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 13119: ac_status=$?
13120: grep -v '^ *+' conftest.er1 >conftest.err
13121: rm -f conftest.er1
13122: cat conftest.err >&5
13123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13124: (exit $ac_status); } >/dev/null && {
! 13125: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13126: test ! -s conftest.err
! 13127: }; then
1.25 millert 13128: ac_header_preproc=yes
13129: else
13130: echo "$as_me: failed program was:" >&5
13131: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 13132:
1.25 millert 13133: ac_header_preproc=no
1.1 millert 13134: fi
1.27 ! millert 13135:
1.25 millert 13136: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 13137: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13138: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 millert 13139:
1.25 millert 13140: # So? What about this header?
13141: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13142: yes:no: )
13143: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13144: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13145: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13146: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13147: ac_header_preproc=yes
13148: ;;
13149: no:yes:* )
13150: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13151: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13152: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13153: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13154: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13155: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13156: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13157: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13158: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13159: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13160: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13161: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 ! millert 13162:
1.25 millert 13163: ;;
13164: esac
1.27 ! millert 13165: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13166: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13167: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13168: echo $ECHO_N "(cached) $ECHO_C" >&6
13169: else
13170: eval "$as_ac_Header=\$ac_header_preproc"
13171: fi
1.27 ! millert 13172: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13173: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13174: echo "${ECHO_T}$ac_res" >&6; }
1.23 millert 13175:
1.25 millert 13176: fi
13177: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13178: cat >>confdefs.h <<_ACEOF
13179: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 millert 13180: _ACEOF
13181:
1.25 millert 13182: fi
1.23 millert 13183:
1.25 millert 13184: done
1.23 millert 13185:
13186:
1.25 millert 13187: for ac_header in err.h
1.23 millert 13188: do
1.25 millert 13189: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 ! millert 13190: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13191: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13192: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13193: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 13194: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13195: fi
1.27 ! millert 13196: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13197: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13198: echo "${ECHO_T}$ac_res" >&6; }
1.23 millert 13199: else
1.25 millert 13200: # Is the header compilable?
1.27 ! millert 13201: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13202: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25 millert 13203: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 13204: /* confdefs.h. */
13205: _ACEOF
13206: cat confdefs.h >>conftest.$ac_ext
13207: cat >>conftest.$ac_ext <<_ACEOF
13208: /* end confdefs.h. */
1.25 millert 13209: $ac_includes_default
13210: #include <$ac_header>
1.23 millert 13211: _ACEOF
1.25 millert 13212: rm -f conftest.$ac_objext
1.27 ! millert 13213: if { (ac_try="$ac_compile"
! 13214: case "(($ac_try" in
! 13215: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13216: *) ac_try_echo=$ac_try;;
! 13217: esac
! 13218: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13219: (eval "$ac_compile") 2>conftest.er1
1.23 millert 13220: ac_status=$?
1.25 millert 13221: grep -v '^ *+' conftest.er1 >conftest.err
13222: rm -f conftest.er1
13223: cat conftest.err >&5
1.23 millert 13224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13225: (exit $ac_status); } && {
! 13226: test -z "$ac_c_werror_flag" ||
! 13227: test ! -s conftest.err
! 13228: } && test -s conftest.$ac_objext; then
1.25 millert 13229: ac_header_compiler=yes
1.23 millert 13230: else
13231: echo "$as_me: failed program was:" >&5
13232: sed 's/^/| /' conftest.$ac_ext >&5
13233:
1.27 ! millert 13234: ac_header_compiler=no
1.23 millert 13235: fi
1.27 ! millert 13236:
! 13237: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13238: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13239: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23 millert 13240:
1.25 millert 13241: # Is the header present?
1.27 ! millert 13242: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13243: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9 millert 13244: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13245: /* confdefs.h. */
13246: _ACEOF
13247: cat confdefs.h >>conftest.$ac_ext
13248: cat >>conftest.$ac_ext <<_ACEOF
13249: /* end confdefs.h. */
1.25 millert 13250: #include <$ac_header>
1.9 millert 13251: _ACEOF
1.27 ! millert 13252: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13253: case "(($ac_try" in
! 13254: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13255: *) ac_try_echo=$ac_try;;
! 13256: esac
! 13257: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13258: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 13259: ac_status=$?
1.25 millert 13260: grep -v '^ *+' conftest.er1 >conftest.err
13261: rm -f conftest.er1
13262: cat conftest.err >&5
1.16 millert 13263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13264: (exit $ac_status); } >/dev/null && {
! 13265: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13266: test ! -s conftest.err
! 13267: }; then
1.25 millert 13268: ac_header_preproc=yes
1.9 millert 13269: else
13270: echo "$as_me: failed program was:" >&5
1.16 millert 13271: sed 's/^/| /' conftest.$ac_ext >&5
13272:
1.25 millert 13273: ac_header_preproc=no
13274: fi
1.27 ! millert 13275:
1.25 millert 13276: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 13277: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13278: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 13279:
13280: # So? What about this header?
13281: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282: yes:no: )
13283: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287: ac_header_preproc=yes
13288: ;;
13289: no:yes:* )
13290: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13293: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13294: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13297: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13298: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 ! millert 13302:
1.25 millert 13303: ;;
13304: esac
1.27 ! millert 13305: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13306: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13307: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13308: echo $ECHO_N "(cached) $ECHO_C" >&6
13309: else
13310: eval "$as_ac_Header=\$ac_header_preproc"
13311: fi
1.27 ! millert 13312: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13313: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13314: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 13315:
1.9 millert 13316: fi
1.25 millert 13317: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13318: cat >>confdefs.h <<_ACEOF
13319: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13320: _ACEOF
13321:
13322: else
1.27 ! millert 13323: case " $LIBOBJS " in
1.25 millert 13324: *" err.$ac_objext "* ) ;;
1.27 ! millert 13325: *) LIBOBJS="$LIBOBJS err.$ac_objext"
! 13326: ;;
1.25 millert 13327: esac
13328:
1.9 millert 13329: fi
1.25 millert 13330:
13331: done
13332:
13333: if test "$OS" != "ultrix"; then
1.27 ! millert 13334: { echo "$as_me:$LINENO: checking POSIX termios" >&5
! 13335: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
1.25 millert 13336: if test "${ac_cv_sys_posix_termios+set}" = set; then
1.9 millert 13337: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13338: else
1.25 millert 13339: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13340: /* confdefs.h. */
13341: _ACEOF
13342: cat confdefs.h >>conftest.$ac_ext
13343: cat >>conftest.$ac_ext <<_ACEOF
13344: /* end confdefs.h. */
1.25 millert 13345: #include <sys/types.h>
13346: #include <unistd.h>
13347: #include <termios.h>
1.9 millert 13348:
13349: int
13350: main ()
13351: {
1.25 millert 13352: /* SunOS 4.0.3 has termios.h but not the library calls. */
13353: tcgetattr(0, 0);
1.9 millert 13354: ;
13355: return 0;
13356: }
13357: _ACEOF
13358: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 13359: if { (ac_try="$ac_link"
! 13360: case "(($ac_try" in
! 13361: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13362: *) ac_try_echo=$ac_try;;
! 13363: esac
! 13364: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13365: (eval "$ac_link") 2>conftest.er1
1.9 millert 13366: ac_status=$?
1.25 millert 13367: grep -v '^ *+' conftest.er1 >conftest.err
13368: rm -f conftest.er1
13369: cat conftest.err >&5
1.16 millert 13370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13371: (exit $ac_status); } && {
! 13372: test -z "$ac_c_werror_flag" ||
! 13373: test ! -s conftest.err
! 13374: } && test -s conftest$ac_exeext &&
! 13375: $as_test_x conftest$ac_exeext; then
1.25 millert 13376: ac_cv_sys_posix_termios=yes
1.9 millert 13377: else
13378: echo "$as_me: failed program was:" >&5
1.16 millert 13379: sed 's/^/| /' conftest.$ac_ext >&5
13380:
1.27 ! millert 13381: ac_cv_sys_posix_termios=no
1.9 millert 13382: fi
1.27 ! millert 13383:
! 13384: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 13385: conftest$ac_exeext conftest.$ac_ext
1.9 millert 13386: fi
1.27 ! millert 13387: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
! 13388: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
1.25 millert 13389:
13390: if test "$ac_cv_sys_posix_termios" = "yes"; then
13391: cat >>confdefs.h <<\_ACEOF
13392: #define HAVE_TERMIOS_H 1
1.16 millert 13393: _ACEOF
1.1 millert 13394:
1.25 millert 13395: else
1.1 millert 13396:
1.25 millert 13397: for ac_header in termio.h
13398: do
13399: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 ! millert 13400: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13401: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13402: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13403: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13405: fi
1.27 ! millert 13406: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13407: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13408: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 13409: else
1.25 millert 13410: # Is the header compilable?
1.27 ! millert 13411: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13412: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.23 millert 13413: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13414: /* confdefs.h. */
13415: _ACEOF
13416: cat confdefs.h >>conftest.$ac_ext
13417: cat >>conftest.$ac_ext <<_ACEOF
13418: /* end confdefs.h. */
1.25 millert 13419: $ac_includes_default
13420: #include <$ac_header>
1.9 millert 13421: _ACEOF
1.25 millert 13422: rm -f conftest.$ac_objext
1.27 ! millert 13423: if { (ac_try="$ac_compile"
! 13424: case "(($ac_try" in
! 13425: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13426: *) ac_try_echo=$ac_try;;
! 13427: esac
! 13428: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13429: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13430: ac_status=$?
1.25 millert 13431: grep -v '^ *+' conftest.er1 >conftest.err
13432: rm -f conftest.er1
13433: cat conftest.err >&5
1.16 millert 13434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13435: (exit $ac_status); } && {
! 13436: test -z "$ac_c_werror_flag" ||
! 13437: test ! -s conftest.err
! 13438: } && test -s conftest.$ac_objext; then
1.25 millert 13439: ac_header_compiler=yes
13440: else
13441: echo "$as_me: failed program was:" >&5
13442: sed 's/^/| /' conftest.$ac_ext >&5
13443:
1.27 ! millert 13444: ac_header_compiler=no
1.25 millert 13445: fi
1.27 ! millert 13446:
! 13447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13448: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13449: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 13450:
13451: # Is the header present?
1.27 ! millert 13452: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13453: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25 millert 13454: cat >conftest.$ac_ext <<_ACEOF
13455: /* confdefs.h. */
13456: _ACEOF
13457: cat confdefs.h >>conftest.$ac_ext
13458: cat >>conftest.$ac_ext <<_ACEOF
13459: /* end confdefs.h. */
13460: #include <$ac_header>
13461: _ACEOF
1.27 ! millert 13462: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13463: case "(($ac_try" in
! 13464: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13465: *) ac_try_echo=$ac_try;;
! 13466: esac
! 13467: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 13469: ac_status=$?
13470: grep -v '^ *+' conftest.er1 >conftest.err
13471: rm -f conftest.er1
13472: cat conftest.err >&5
13473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13474: (exit $ac_status); } >/dev/null && {
! 13475: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13476: test ! -s conftest.err
! 13477: }; then
1.25 millert 13478: ac_header_preproc=yes
1.9 millert 13479: else
13480: echo "$as_me: failed program was:" >&5
1.16 millert 13481: sed 's/^/| /' conftest.$ac_ext >&5
13482:
1.25 millert 13483: ac_header_preproc=no
13484: fi
1.27 ! millert 13485:
1.25 millert 13486: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 13487: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13488: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 13489:
13490: # So? What about this header?
13491: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13492: yes:no: )
13493: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13494: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13495: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13496: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13497: ac_header_preproc=yes
13498: ;;
13499: no:yes:* )
13500: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13501: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13502: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13503: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13504: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13505: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13506: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13507: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13508: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13509: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13510: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13511: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 ! millert 13512:
1.25 millert 13513: ;;
13514: esac
1.27 ! millert 13515: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13516: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13517: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13518: echo $ECHO_N "(cached) $ECHO_C" >&6
13519: else
13520: eval "$as_ac_Header=\$ac_header_preproc"
1.9 millert 13521: fi
1.27 ! millert 13522: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13523: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13524: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 13525:
1.9 millert 13526: fi
1.25 millert 13527: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13528: cat >>confdefs.h <<_ACEOF
13529: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 13530: _ACEOF
1.25 millert 13531:
1.1 millert 13532: fi
13533:
1.25 millert 13534: done
1.1 millert 13535:
1.25 millert 13536: fi
13537: fi
13538: if test ${with_logincap-'no'} != "no"; then
1.9 millert 13539:
1.25 millert 13540: for ac_header in login_cap.h
13541: do
13542: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 ! millert 13543: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13544: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13545: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13546: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13547: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13548: fi
1.27 ! millert 13549: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13550: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13551: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 13552: else
1.25 millert 13553: # Is the header compilable?
1.27 ! millert 13554: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13555: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25 millert 13556: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13557: /* confdefs.h. */
13558: _ACEOF
13559: cat confdefs.h >>conftest.$ac_ext
13560: cat >>conftest.$ac_ext <<_ACEOF
13561: /* end confdefs.h. */
1.25 millert 13562: $ac_includes_default
13563: #include <$ac_header>
13564: _ACEOF
13565: rm -f conftest.$ac_objext
1.27 ! millert 13566: if { (ac_try="$ac_compile"
! 13567: case "(($ac_try" in
! 13568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13569: *) ac_try_echo=$ac_try;;
! 13570: esac
! 13571: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13572: (eval "$ac_compile") 2>conftest.er1
1.25 millert 13573: ac_status=$?
13574: grep -v '^ *+' conftest.er1 >conftest.err
13575: rm -f conftest.er1
13576: cat conftest.err >&5
13577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13578: (exit $ac_status); } && {
! 13579: test -z "$ac_c_werror_flag" ||
! 13580: test ! -s conftest.err
! 13581: } && test -s conftest.$ac_objext; then
1.25 millert 13582: ac_header_compiler=yes
1.9 millert 13583: else
13584: echo "$as_me: failed program was:" >&5
1.16 millert 13585: sed 's/^/| /' conftest.$ac_ext >&5
13586:
1.27 ! millert 13587: ac_header_compiler=no
1.9 millert 13588: fi
1.27 ! millert 13589:
! 13590: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13591: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13592: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9 millert 13593:
1.25 millert 13594: # Is the header present?
1.27 ! millert 13595: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13596: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9 millert 13597: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13598: /* confdefs.h. */
13599: _ACEOF
13600: cat confdefs.h >>conftest.$ac_ext
13601: cat >>conftest.$ac_ext <<_ACEOF
13602: /* end confdefs.h. */
1.25 millert 13603: #include <$ac_header>
1.9 millert 13604: _ACEOF
1.27 ! millert 13605: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13606: case "(($ac_try" in
! 13607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13608: *) ac_try_echo=$ac_try;;
! 13609: esac
! 13610: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13611: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 13612: ac_status=$?
1.25 millert 13613: grep -v '^ *+' conftest.er1 >conftest.err
13614: rm -f conftest.er1
13615: cat conftest.err >&5
1.16 millert 13616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13617: (exit $ac_status); } >/dev/null && {
! 13618: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13619: test ! -s conftest.err
! 13620: }; then
1.25 millert 13621: ac_header_preproc=yes
1.9 millert 13622: else
13623: echo "$as_me: failed program was:" >&5
1.16 millert 13624: sed 's/^/| /' conftest.$ac_ext >&5
13625:
1.25 millert 13626: ac_header_preproc=no
1.9 millert 13627: fi
1.27 ! millert 13628:
1.25 millert 13629: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 13630: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13631: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 13632:
13633: # So? What about this header?
13634: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13635: yes:no: )
13636: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13637: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13638: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13639: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13640: ac_header_preproc=yes
13641: ;;
13642: no:yes:* )
13643: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13644: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13645: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13646: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13647: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13648: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13649: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13650: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13651: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13652: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13653: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13654: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 ! millert 13655:
1.25 millert 13656: ;;
13657: esac
1.27 ! millert 13658: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13659: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13660: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13661: echo $ECHO_N "(cached) $ECHO_C" >&6
13662: else
13663: eval "$as_ac_Header=\$ac_header_preproc"
1.9 millert 13664: fi
1.27 ! millert 13665: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13666: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13667: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 13668:
1.1 millert 13669: fi
1.25 millert 13670: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13671: cat >>confdefs.h <<_ACEOF
13672: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13673: _ACEOF
1.1 millert 13674:
1.25 millert 13675: fi
1.1 millert 13676:
1.25 millert 13677: done
1.1 millert 13678:
1.25 millert 13679: fi
13680: if test ${with_project-'no'} != "no"; then
13681: if test "${ac_cv_header_project_h+set}" = set; then
1.27 ! millert 13682: { echo "$as_me:$LINENO: checking for project.h" >&5
! 13683: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25 millert 13684: if test "${ac_cv_header_project_h+set}" = set; then
1.9 millert 13685: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13686: fi
1.27 ! millert 13687: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
! 13688: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1 millert 13689: else
1.25 millert 13690: # Is the header compilable?
1.27 ! millert 13691: { echo "$as_me:$LINENO: checking project.h usability" >&5
! 13692: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25 millert 13693: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13694: /* confdefs.h. */
13695: _ACEOF
13696: cat confdefs.h >>conftest.$ac_ext
13697: cat >>conftest.$ac_ext <<_ACEOF
13698: /* end confdefs.h. */
1.25 millert 13699: $ac_includes_default
13700: #include <project.h>
1.9 millert 13701: _ACEOF
1.25 millert 13702: rm -f conftest.$ac_objext
1.27 ! millert 13703: if { (ac_try="$ac_compile"
! 13704: case "(($ac_try" in
! 13705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13706: *) ac_try_echo=$ac_try;;
! 13707: esac
! 13708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13709: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13710: ac_status=$?
1.25 millert 13711: grep -v '^ *+' conftest.er1 >conftest.err
13712: rm -f conftest.er1
13713: cat conftest.err >&5
1.16 millert 13714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13715: (exit $ac_status); } && {
! 13716: test -z "$ac_c_werror_flag" ||
! 13717: test ! -s conftest.err
! 13718: } && test -s conftest.$ac_objext; then
1.25 millert 13719: ac_header_compiler=yes
1.9 millert 13720: else
13721: echo "$as_me: failed program was:" >&5
1.16 millert 13722: sed 's/^/| /' conftest.$ac_ext >&5
13723:
1.27 ! millert 13724: ac_header_compiler=no
1.9 millert 13725: fi
1.27 ! millert 13726:
! 13727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13728: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13729: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 millert 13730:
1.25 millert 13731: # Is the header present?
1.27 ! millert 13732: { echo "$as_me:$LINENO: checking project.h presence" >&5
! 13733: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25 millert 13734: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13735: /* confdefs.h. */
13736: _ACEOF
13737: cat confdefs.h >>conftest.$ac_ext
13738: cat >>conftest.$ac_ext <<_ACEOF
13739: /* end confdefs.h. */
1.25 millert 13740: #include <project.h>
1.9 millert 13741: _ACEOF
1.27 ! millert 13742: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13743: case "(($ac_try" in
! 13744: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13745: *) ac_try_echo=$ac_try;;
! 13746: esac
! 13747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13748: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 13749: ac_status=$?
1.25 millert 13750: grep -v '^ *+' conftest.er1 >conftest.err
13751: rm -f conftest.er1
13752: cat conftest.err >&5
1.16 millert 13753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13754: (exit $ac_status); } >/dev/null && {
! 13755: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13756: test ! -s conftest.err
! 13757: }; then
1.25 millert 13758: ac_header_preproc=yes
1.9 millert 13759: else
13760: echo "$as_me: failed program was:" >&5
1.16 millert 13761: sed 's/^/| /' conftest.$ac_ext >&5
13762:
1.25 millert 13763: ac_header_preproc=no
13764: fi
1.27 ! millert 13765:
1.25 millert 13766: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 13767: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13768: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 13769:
13770: # So? What about this header?
13771: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13772: yes:no: )
13773: { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13774: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13775: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13776: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13777: ac_header_preproc=yes
13778: ;;
13779: no:yes:* )
13780: { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13781: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13782: { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
13783: echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
13784: { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13785: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13786: { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
13787: echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
13788: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13789: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13790: { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13791: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.27 ! millert 13792:
1.25 millert 13793: ;;
13794: esac
1.27 ! millert 13795: { echo "$as_me:$LINENO: checking for project.h" >&5
! 13796: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25 millert 13797: if test "${ac_cv_header_project_h+set}" = set; then
13798: echo $ECHO_N "(cached) $ECHO_C" >&6
13799: else
13800: ac_cv_header_project_h=$ac_header_preproc
1.9 millert 13801: fi
1.27 ! millert 13802: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
! 13803: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25 millert 13804:
1.9 millert 13805: fi
1.25 millert 13806: if test $ac_cv_header_project_h = yes; then
13807: cat >>confdefs.h <<\_ACEOF
13808: #define HAVE_PROJECT_H 1
1.16 millert 13809: _ACEOF
1.1 millert 13810:
1.25 millert 13811: SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1 millert 13812: else
1.25 millert 13813: -
1.1 millert 13814: fi
13815:
1.25 millert 13816:
13817: fi
1.27 ! millert 13818: { echo "$as_me:$LINENO: checking for mode_t" >&5
! 13819: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25 millert 13820: if test "${ac_cv_type_mode_t+set}" = set; then
1.9 millert 13821: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13822: else
1.25 millert 13823: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13824: /* confdefs.h. */
13825: _ACEOF
13826: cat confdefs.h >>conftest.$ac_ext
13827: cat >>conftest.$ac_ext <<_ACEOF
13828: /* end confdefs.h. */
1.25 millert 13829: $ac_includes_default
1.27 ! millert 13830: typedef mode_t ac__type_new_;
1.9 millert 13831: int
13832: main ()
13833: {
1.27 ! millert 13834: if ((ac__type_new_ *) 0)
1.25 millert 13835: return 0;
1.27 ! millert 13836: if (sizeof (ac__type_new_))
1.25 millert 13837: return 0;
1.9 millert 13838: ;
13839: return 0;
13840: }
13841: _ACEOF
1.25 millert 13842: rm -f conftest.$ac_objext
1.27 ! millert 13843: if { (ac_try="$ac_compile"
! 13844: case "(($ac_try" in
! 13845: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13846: *) ac_try_echo=$ac_try;;
! 13847: esac
! 13848: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13849: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13850: ac_status=$?
1.25 millert 13851: grep -v '^ *+' conftest.er1 >conftest.err
13852: rm -f conftest.er1
13853: cat conftest.err >&5
1.16 millert 13854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13855: (exit $ac_status); } && {
! 13856: test -z "$ac_c_werror_flag" ||
! 13857: test ! -s conftest.err
! 13858: } && test -s conftest.$ac_objext; then
1.25 millert 13859: ac_cv_type_mode_t=yes
1.9 millert 13860: else
13861: echo "$as_me: failed program was:" >&5
1.16 millert 13862: sed 's/^/| /' conftest.$ac_ext >&5
13863:
1.27 ! millert 13864: ac_cv_type_mode_t=no
1.9 millert 13865: fi
1.27 ! millert 13866:
! 13867: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13868: fi
1.27 ! millert 13869: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 13870: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25 millert 13871: if test $ac_cv_type_mode_t = yes; then
13872: :
1.1 millert 13873: else
1.25 millert 13874:
13875: cat >>confdefs.h <<_ACEOF
13876: #define mode_t int
13877: _ACEOF
13878:
1.1 millert 13879: fi
13880:
1.27 ! millert 13881: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
! 13882: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25 millert 13883: if test "${ac_cv_type_uid_t+set}" = set; then
1.9 millert 13884: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13885: else
1.9 millert 13886: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13887: /* confdefs.h. */
13888: _ACEOF
13889: cat confdefs.h >>conftest.$ac_ext
13890: cat >>conftest.$ac_ext <<_ACEOF
13891: /* end confdefs.h. */
1.25 millert 13892: #include <sys/types.h>
1.1 millert 13893:
1.9 millert 13894: _ACEOF
1.25 millert 13895: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13896: $EGREP "uid_t" >/dev/null 2>&1; then
13897: ac_cv_type_uid_t=yes
1.9 millert 13898: else
1.25 millert 13899: ac_cv_type_uid_t=no
13900: fi
13901: rm -f conftest*
1.16 millert 13902:
1.9 millert 13903: fi
1.27 ! millert 13904: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
! 13905: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25 millert 13906: if test $ac_cv_type_uid_t = no; then
13907:
13908: cat >>confdefs.h <<\_ACEOF
13909: #define uid_t int
13910: _ACEOF
13911:
13912:
13913: cat >>confdefs.h <<\_ACEOF
13914: #define gid_t int
1.16 millert 13915: _ACEOF
1.1 millert 13916:
13917: fi
13918:
1.27 ! millert 13919: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
! 13920: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
1.25 millert 13921: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13922: echo $ECHO_N "(cached) $ECHO_C" >&6
13923: else
13924: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13925: /* confdefs.h. */
13926: _ACEOF
13927: cat confdefs.h >>conftest.$ac_ext
13928: cat >>conftest.$ac_ext <<_ACEOF
13929: /* end confdefs.h. */
1.1 millert 13930: #include <sys/types.h>
1.25 millert 13931: #include <signal.h>
1.9 millert 13932:
1.27 ! millert 13933: typedef sig_atomic_t ac__type_new_;
1.9 millert 13934: int
13935: main ()
13936: {
1.27 ! millert 13937: if ((ac__type_new_ *) 0)
1.25 millert 13938: return 0;
1.27 ! millert 13939: if (sizeof (ac__type_new_))
1.25 millert 13940: return 0;
1.9 millert 13941: ;
13942: return 0;
13943: }
13944: _ACEOF
13945: rm -f conftest.$ac_objext
1.27 ! millert 13946: if { (ac_try="$ac_compile"
! 13947: case "(($ac_try" in
! 13948: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13949: *) ac_try_echo=$ac_try;;
! 13950: esac
! 13951: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13952: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13953: ac_status=$?
1.25 millert 13954: grep -v '^ *+' conftest.er1 >conftest.err
13955: rm -f conftest.er1
13956: cat conftest.err >&5
1.16 millert 13957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 13958: (exit $ac_status); } && {
! 13959: test -z "$ac_c_werror_flag" ||
! 13960: test ! -s conftest.err
! 13961: } && test -s conftest.$ac_objext; then
1.25 millert 13962: ac_cv_type_sig_atomic_t=yes
1.9 millert 13963: else
13964: echo "$as_me: failed program was:" >&5
1.16 millert 13965: sed 's/^/| /' conftest.$ac_ext >&5
13966:
1.27 ! millert 13967: ac_cv_type_sig_atomic_t=no
1.25 millert 13968: fi
1.27 ! millert 13969:
! 13970: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 13971: fi
1.27 ! millert 13972: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
! 13973: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
1.25 millert 13974: if test $ac_cv_type_sig_atomic_t = yes; then
13975:
13976: cat >>confdefs.h <<_ACEOF
13977: #define HAVE_SIG_ATOMIC_T 1
13978: _ACEOF
13979:
13980:
13981: else
13982: cat >>confdefs.h <<\_ACEOF
13983: #define sig_atomic_t int
13984: _ACEOF
1.9 millert 13985:
1.1 millert 13986: fi
1.25 millert 13987:
1.27 ! millert 13988: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
! 13989: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
1.25 millert 13990: if test "${ac_cv_type_sigaction_t+set}" = set; then
1.9 millert 13991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13992: else
1.25 millert 13993: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13994: /* confdefs.h. */
13995: _ACEOF
13996: cat confdefs.h >>conftest.$ac_ext
13997: cat >>conftest.$ac_ext <<_ACEOF
13998: /* end confdefs.h. */
1.25 millert 13999: #include <sys/types.h>
14000: #include <signal.h>
1.9 millert 14001:
1.27 ! millert 14002: typedef sigaction_t ac__type_new_;
1.9 millert 14003: int
1.25 millert 14004: main ()
14005: {
1.27 ! millert 14006: if ((ac__type_new_ *) 0)
1.25 millert 14007: return 0;
1.27 ! millert 14008: if (sizeof (ac__type_new_))
1.25 millert 14009: return 0;
1.9 millert 14010: ;
14011: return 0;
14012: }
14013: _ACEOF
1.25 millert 14014: rm -f conftest.$ac_objext
1.27 ! millert 14015: if { (ac_try="$ac_compile"
! 14016: case "(($ac_try" in
! 14017: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14018: *) ac_try_echo=$ac_try;;
! 14019: esac
! 14020: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14021: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14022: ac_status=$?
1.25 millert 14023: grep -v '^ *+' conftest.er1 >conftest.err
14024: rm -f conftest.er1
14025: cat conftest.err >&5
1.16 millert 14026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14027: (exit $ac_status); } && {
! 14028: test -z "$ac_c_werror_flag" ||
! 14029: test ! -s conftest.err
! 14030: } && test -s conftest.$ac_objext; then
1.25 millert 14031: ac_cv_type_sigaction_t=yes
1.9 millert 14032: else
14033: echo "$as_me: failed program was:" >&5
1.16 millert 14034: sed 's/^/| /' conftest.$ac_ext >&5
14035:
1.27 ! millert 14036: ac_cv_type_sigaction_t=no
1.9 millert 14037: fi
1.27 ! millert 14038:
! 14039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14040: fi
1.27 ! millert 14041: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
! 14042: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
1.25 millert 14043: if test $ac_cv_type_sigaction_t = yes; then
14044:
14045: cat >>confdefs.h <<_ACEOF
14046: #define HAVE_SIGACTION_T 1
14047: _ACEOF
14048:
14049: cat >>confdefs.h <<\_ACEOF
14050: #define HAVE_SIGACTION_T 1
14051: _ACEOF
14052:
1.1 millert 14053: fi
14054:
1.27 ! millert 14055: { echo "$as_me:$LINENO: checking for struct timespec" >&5
! 14056: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25 millert 14057: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9 millert 14058: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14059: else
1.9 millert 14060: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14061: /* confdefs.h. */
14062: _ACEOF
14063: cat confdefs.h >>conftest.$ac_ext
14064: cat >>conftest.$ac_ext <<_ACEOF
14065: /* end confdefs.h. */
1.25 millert 14066: #include <sys/types.h>
14067: #if TIME_WITH_SYS_TIME
14068: # include <sys/time.h>
14069: # include <time.h>
1.1 millert 14070: #else
1.25 millert 14071: # include <sys/time.h>
1.1 millert 14072: #endif
14073:
1.27 ! millert 14074: typedef struct timespec ac__type_new_;
1.16 millert 14075: int
14076: main ()
14077: {
1.27 ! millert 14078: if ((ac__type_new_ *) 0)
1.25 millert 14079: return 0;
1.27 ! millert 14080: if (sizeof (ac__type_new_))
1.25 millert 14081: return 0;
1.9 millert 14082: ;
14083: return 0;
14084: }
14085: _ACEOF
1.25 millert 14086: rm -f conftest.$ac_objext
1.27 ! millert 14087: if { (ac_try="$ac_compile"
! 14088: case "(($ac_try" in
! 14089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14090: *) ac_try_echo=$ac_try;;
! 14091: esac
! 14092: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14093: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14094: ac_status=$?
1.25 millert 14095: grep -v '^ *+' conftest.er1 >conftest.err
14096: rm -f conftest.er1
14097: cat conftest.err >&5
1.16 millert 14098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14099: (exit $ac_status); } && {
! 14100: test -z "$ac_c_werror_flag" ||
! 14101: test ! -s conftest.err
! 14102: } && test -s conftest.$ac_objext; then
1.25 millert 14103: ac_cv_type_struct_timespec=yes
1.9 millert 14104: else
14105: echo "$as_me: failed program was:" >&5
1.16 millert 14106: sed 's/^/| /' conftest.$ac_ext >&5
14107:
1.27 ! millert 14108: ac_cv_type_struct_timespec=no
1.9 millert 14109: fi
1.27 ! millert 14110:
! 14111: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14112: fi
1.27 ! millert 14113: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
! 14114: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25 millert 14115: if test $ac_cv_type_struct_timespec = yes; then
14116: cat >>confdefs.h <<\_ACEOF
14117: #define HAVE_TIMESPEC 1
1.16 millert 14118: _ACEOF
1.1 millert 14119:
1.25 millert 14120: fi
14121:
1.27 ! millert 14122: { echo "$as_me:$LINENO: checking for size_t" >&5
! 14123: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25 millert 14124: if test "${sudo_cv_type_size_t+set}" = set; then
14125: echo $ECHO_N "(cached) $ECHO_C" >&6
14126: else
14127: cat >conftest.$ac_ext <<_ACEOF
14128: /* confdefs.h. */
14129: _ACEOF
14130: cat confdefs.h >>conftest.$ac_ext
14131: cat >>conftest.$ac_ext <<_ACEOF
14132: /* end confdefs.h. */
14133: #include <sys/types.h>
14134: #include <stdio.h>
14135: #if STDC_HEADERS
14136: #include <stdlib.h>
14137: #endif
14138: #if HAVE_UNISTD_H
14139: #include <unistd.h>
14140: #endif
14141: _ACEOF
14142: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14143: $EGREP "size_t" >/dev/null 2>&1; then
14144: sudo_cv_type_size_t=yes
1.1 millert 14145: else
1.25 millert 14146: sudo_cv_type_size_t=no
14147: fi
14148: rm -f conftest*
14149:
14150: fi
1.27 ! millert 14151: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
! 14152: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25 millert 14153: if test $sudo_cv_type_size_t = no; then
14154:
14155: cat >>confdefs.h <<\_ACEOF
14156: #define size_t int
14157: _ACEOF
14158:
14159: fi
14160:
1.27 ! millert 14161: { echo "$as_me:$LINENO: checking for ssize_t" >&5
! 14162: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25 millert 14163: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9 millert 14164: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14165: else
1.25 millert 14166: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14167: /* confdefs.h. */
14168: _ACEOF
14169: cat confdefs.h >>conftest.$ac_ext
14170: cat >>conftest.$ac_ext <<_ACEOF
14171: /* end confdefs.h. */
1.25 millert 14172: #include <sys/types.h>
14173: #include <stdio.h>
14174: #if STDC_HEADERS
14175: #include <stdlib.h>
14176: #endif
14177: #if HAVE_UNISTD_H
14178: #include <unistd.h>
1.9 millert 14179: #endif
14180: _ACEOF
1.25 millert 14181: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14182: $EGREP "ssize_t" >/dev/null 2>&1; then
14183: sudo_cv_type_ssize_t=yes
1.9 millert 14184: else
1.25 millert 14185: sudo_cv_type_ssize_t=no
14186: fi
14187: rm -f conftest*
1.16 millert 14188:
1.9 millert 14189: fi
1.27 ! millert 14190: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
! 14191: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25 millert 14192: if test $sudo_cv_type_ssize_t = no; then
14193:
14194: cat >>confdefs.h <<\_ACEOF
14195: #define ssize_t int
14196: _ACEOF
14197:
1.9 millert 14198: fi
1.25 millert 14199:
1.27 ! millert 14200: { echo "$as_me:$LINENO: checking for dev_t" >&5
! 14201: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25 millert 14202: if test "${sudo_cv_type_dev_t+set}" = set; then
14203: echo $ECHO_N "(cached) $ECHO_C" >&6
14204: else
14205: cat >conftest.$ac_ext <<_ACEOF
14206: /* confdefs.h. */
14207: _ACEOF
14208: cat confdefs.h >>conftest.$ac_ext
14209: cat >>conftest.$ac_ext <<_ACEOF
14210: /* end confdefs.h. */
14211: #include <sys/types.h>
14212: #include <stdio.h>
14213: #if STDC_HEADERS
14214: #include <stdlib.h>
14215: #endif
14216: #if HAVE_UNISTD_H
14217: #include <unistd.h>
14218: #endif
1.16 millert 14219: _ACEOF
1.25 millert 14220: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14221: $EGREP "dev_t" >/dev/null 2>&1; then
14222: sudo_cv_type_dev_t=yes
14223: else
14224: sudo_cv_type_dev_t=no
1.1 millert 14225: fi
1.25 millert 14226: rm -f conftest*
1.1 millert 14227:
14228: fi
1.27 ! millert 14229: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
! 14230: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25 millert 14231: if test $sudo_cv_type_dev_t = no; then
1.1 millert 14232:
1.25 millert 14233: cat >>confdefs.h <<\_ACEOF
14234: #define dev_t int
14235: _ACEOF
1.1 millert 14236:
1.25 millert 14237: fi
1.1 millert 14238:
1.27 ! millert 14239: { echo "$as_me:$LINENO: checking for ino_t" >&5
! 14240: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
! 14241: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9 millert 14242: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14243: else
1.25 millert 14244: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14245: /* confdefs.h. */
14246: _ACEOF
14247: cat confdefs.h >>conftest.$ac_ext
14248: cat >>conftest.$ac_ext <<_ACEOF
14249: /* end confdefs.h. */
1.25 millert 14250: #include <sys/types.h>
1.27 ! millert 14251: #include <stdio.h>
! 14252: #if STDC_HEADERS
! 14253: #include <stdlib.h>
! 14254: #endif
! 14255: #if HAVE_UNISTD_H
! 14256: #include <unistd.h>
! 14257: #endif
1.9 millert 14258: _ACEOF
1.27 ! millert 14259: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 14260: $EGREP "ino_t" >/dev/null 2>&1; then
! 14261: sudo_cv_type_ino_t=yes
1.9 millert 14262: else
1.27 ! millert 14263: sudo_cv_type_ino_t=no
! 14264: fi
! 14265: rm -f conftest*
1.16 millert 14266:
1.25 millert 14267: fi
1.27 ! millert 14268: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
! 14269: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
! 14270: if test $sudo_cv_type_ino_t = no; then
1.25 millert 14271:
14272: cat >>confdefs.h <<\_ACEOF
1.27 ! millert 14273: #define ino_t unsigned int
1.16 millert 14274: _ACEOF
1.25 millert 14275:
1.1 millert 14276: fi
14277:
1.27 ! millert 14278: { echo "$as_me:$LINENO: checking for full void implementation" >&5
! 14279: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
! 14280: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14281: /* confdefs.h. */
14282: _ACEOF
14283: cat confdefs.h >>conftest.$ac_ext
14284: cat >>conftest.$ac_ext <<_ACEOF
14285: /* end confdefs.h. */
1.25 millert 14286:
1.9 millert 14287: int
14288: main ()
14289: {
1.27 ! millert 14290: void *foo;
! 14291: foo = (void *)0; (void *)"test";
1.9 millert 14292: ;
14293: return 0;
14294: }
14295: _ACEOF
1.25 millert 14296: rm -f conftest.$ac_objext
1.27 ! millert 14297: if { (ac_try="$ac_compile"
! 14298: case "(($ac_try" in
! 14299: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14300: *) ac_try_echo=$ac_try;;
! 14301: esac
! 14302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14303: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14304: ac_status=$?
1.25 millert 14305: grep -v '^ *+' conftest.er1 >conftest.err
14306: rm -f conftest.er1
14307: cat conftest.err >&5
1.16 millert 14308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14309: (exit $ac_status); } && {
! 14310: test -z "$ac_c_werror_flag" ||
! 14311: test ! -s conftest.err
! 14312: } && test -s conftest.$ac_objext; then
! 14313:
! 14314: cat >>confdefs.h <<\_ACEOF
! 14315: #define VOID void
! 14316: _ACEOF
! 14317:
! 14318: { echo "$as_me:$LINENO: result: yes" >&5
! 14319: echo "${ECHO_T}yes" >&6; }
1.9 millert 14320: else
14321: echo "$as_me: failed program was:" >&5
1.16 millert 14322: sed 's/^/| /' conftest.$ac_ext >&5
14323:
1.27 ! millert 14324: cat >>confdefs.h <<\_ACEOF
! 14325: #define VOID char
1.16 millert 14326: _ACEOF
1.9 millert 14327:
1.27 ! millert 14328: { echo "$as_me:$LINENO: result: no" >&5
! 14329: echo "${ECHO_T}no" >&6; }
! 14330: fi
1.1 millert 14331:
1.27 ! millert 14332: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 millert 14333:
1.27 ! millert 14334: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
! 14335: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
! 14336: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9 millert 14337: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14338: else
1.27 ! millert 14339: rm -f conftestdata
! 14340: if test "$cross_compiling" = yes; then
! 14341: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 14342: See \`config.log' for more details." >&5
! 14343: echo "$as_me: error: cannot run test program while cross compiling
! 14344: See \`config.log' for more details." >&2;}
! 14345: { (exit 1); exit 1; }; }
! 14346: else
1.9 millert 14347: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14348: /* confdefs.h. */
14349: _ACEOF
14350: cat confdefs.h >>conftest.$ac_ext
14351: cat >>conftest.$ac_ext <<_ACEOF
14352: /* end confdefs.h. */
1.27 ! millert 14353: #include <stdio.h>
! 14354: #include <pwd.h>
! 14355: #include <limits.h>
! 14356: #include <sys/types.h>
! 14357: #include <sys/param.h>
! 14358: main() {
! 14359: FILE *f;
! 14360: char b[1024];
! 14361: uid_t u = (uid_t) -1;
1.25 millert 14362:
1.27 ! millert 14363: if ((f = fopen("conftestdata", "w")) == NULL)
! 14364: exit(1);
1.25 millert 14365:
1.27 ! millert 14366: (void) sprintf(b, "%lu", (unsigned long) u);
! 14367: (void) fprintf(f, "%d\n", strlen(b));
! 14368: (void) fclose(f);
! 14369: exit(0);
1.9 millert 14370: }
14371: _ACEOF
1.27 ! millert 14372: rm -f conftest$ac_exeext
! 14373: if { (ac_try="$ac_link"
! 14374: case "(($ac_try" in
! 14375: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14376: *) ac_try_echo=$ac_try;;
! 14377: esac
! 14378: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14379: (eval "$ac_link") 2>&5
1.9 millert 14380: ac_status=$?
1.16 millert 14381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14382: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 14383: { (case "(($ac_try" in
! 14384: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14385: *) ac_try_echo=$ac_try;;
! 14386: esac
! 14387: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14388: (eval "$ac_try") 2>&5
1.9 millert 14389: ac_status=$?
1.16 millert 14390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14391: (exit $ac_status); }; }; then
1.27 ! millert 14392: sudo_cv_uid_t_len=`cat conftestdata`
1.9 millert 14393: else
1.27 ! millert 14394: echo "$as_me: program exited with status $ac_status" >&5
! 14395: echo "$as_me: failed program was:" >&5
1.16 millert 14396: sed 's/^/| /' conftest.$ac_ext >&5
14397:
1.27 ! millert 14398: ( exit $ac_status )
! 14399: sudo_cv_uid_t_len=10
1.9 millert 14400: fi
1.27 ! millert 14401: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14402: fi
1.27 ! millert 14403:
! 14404:
1.25 millert 14405:
14406: fi
14407:
1.27 ! millert 14408: rm -f conftestdata
! 14409: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
! 14410: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
! 14411:
! 14412: cat >>confdefs.h <<_ACEOF
! 14413: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
! 14414: _ACEOF
! 14415:
1.25 millert 14416:
1.27 ! millert 14417: { echo "$as_me:$LINENO: checking for long long" >&5
! 14418: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
! 14419: if test "${ac_cv_type_long_long+set}" = set; then
1.9 millert 14420: echo $ECHO_N "(cached) $ECHO_C" >&6
14421: else
1.25 millert 14422: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14423: /* confdefs.h. */
14424: _ACEOF
14425: cat confdefs.h >>conftest.$ac_ext
14426: cat >>conftest.$ac_ext <<_ACEOF
14427: /* end confdefs.h. */
1.27 ! millert 14428: $ac_includes_default
! 14429: typedef long long ac__type_new_;
1.9 millert 14430: int
14431: main ()
14432: {
1.27 ! millert 14433: if ((ac__type_new_ *) 0)
! 14434: return 0;
! 14435: if (sizeof (ac__type_new_))
! 14436: return 0;
1.9 millert 14437: ;
14438: return 0;
14439: }
14440: _ACEOF
1.27 ! millert 14441: rm -f conftest.$ac_objext
! 14442: if { (ac_try="$ac_compile"
! 14443: case "(($ac_try" in
! 14444: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14445: *) ac_try_echo=$ac_try;;
! 14446: esac
! 14447: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14448: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14449: ac_status=$?
1.25 millert 14450: grep -v '^ *+' conftest.er1 >conftest.err
14451: rm -f conftest.er1
14452: cat conftest.err >&5
1.16 millert 14453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14454: (exit $ac_status); } && {
! 14455: test -z "$ac_c_werror_flag" ||
! 14456: test ! -s conftest.err
! 14457: } && test -s conftest.$ac_objext; then
! 14458: ac_cv_type_long_long=yes
1.9 millert 14459: else
14460: echo "$as_me: failed program was:" >&5
1.16 millert 14461: sed 's/^/| /' conftest.$ac_ext >&5
14462:
1.27 ! millert 14463: ac_cv_type_long_long=no
1.9 millert 14464: fi
1.27 ! millert 14465:
! 14466: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14467: fi
1.27 ! millert 14468: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 14469: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
! 14470: if test $ac_cv_type_long_long = yes; then
! 14471:
! 14472: cat >>confdefs.h <<_ACEOF
! 14473: #define HAVE_LONG_LONG 1
1.16 millert 14474: _ACEOF
1.9 millert 14475:
1.1 millert 14476:
1.27 ! millert 14477: cat >>confdefs.h <<\_ACEOF
! 14478: #define HAVE_LONG_LONG 1
! 14479: _ACEOF
! 14480:
! 14481: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
! 14482: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
! 14483: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9 millert 14484: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14485: else
1.27 ! millert 14486: if test "$cross_compiling" = yes; then
! 14487: sudo_cv_type_long_is_quad=no
! 14488: else
1.9 millert 14489: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14490: /* confdefs.h. */
14491: _ACEOF
14492: cat confdefs.h >>conftest.$ac_ext
14493: cat >>conftest.$ac_ext <<_ACEOF
14494: /* end confdefs.h. */
1.25 millert 14495:
1.27 ! millert 14496: main() {
! 14497: if (sizeof(long long) == sizeof(long)) exit(0);
! 14498: else exit(1);
1.9 millert 14499: }
14500: _ACEOF
1.27 ! millert 14501: rm -f conftest$ac_exeext
! 14502: if { (ac_try="$ac_link"
! 14503: case "(($ac_try" in
! 14504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14505: *) ac_try_echo=$ac_try;;
! 14506: esac
! 14507: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14508: (eval "$ac_link") 2>&5
1.9 millert 14509: ac_status=$?
1.16 millert 14510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14511: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 14512: { (case "(($ac_try" in
! 14513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14514: *) ac_try_echo=$ac_try;;
! 14515: esac
! 14516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14517: (eval "$ac_try") 2>&5
1.9 millert 14518: ac_status=$?
1.16 millert 14519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14520: (exit $ac_status); }; }; then
1.27 ! millert 14521: sudo_cv_type_long_is_quad=yes
1.9 millert 14522: else
1.27 ! millert 14523: echo "$as_me: program exited with status $ac_status" >&5
! 14524: echo "$as_me: failed program was:" >&5
1.16 millert 14525: sed 's/^/| /' conftest.$ac_ext >&5
14526:
1.27 ! millert 14527: ( exit $ac_status )
! 14528: sudo_cv_type_long_is_quad=no
! 14529: fi
! 14530: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14531: fi
1.27 ! millert 14532:
! 14533:
! 14534: rm -f core core.* *.core
1.9 millert 14535: fi
1.27 ! millert 14536: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
! 14537: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
! 14538: if test $sudo_cv_type_long_is_quad = yes; then
! 14539:
! 14540: cat >>confdefs.h <<\_ACEOF
! 14541: #define LONG_IS_QUAD 1
1.16 millert 14542: _ACEOF
1.27 ! millert 14543:
1.25 millert 14544: fi
14545:
14546: fi
14547:
1.27 ! millert 14548: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
! 14549: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
! 14550: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9 millert 14551: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14552: else
1.27 ! millert 14553: if test "$cross_compiling" = yes; then
! 14554: sudo_cv_sock_sa_len=no
! 14555: else
1.25 millert 14556: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14557: /* confdefs.h. */
14558: _ACEOF
14559: cat confdefs.h >>conftest.$ac_ext
14560: cat >>conftest.$ac_ext <<_ACEOF
14561: /* end confdefs.h. */
1.27 ! millert 14562: #include <sys/types.h>
! 14563: #include <sys/socket.h>
! 14564: main() {
! 14565: struct sockaddr s;
! 14566: s.sa_len = 0;
! 14567: exit(0);
1.9 millert 14568: }
14569: _ACEOF
1.27 ! millert 14570: rm -f conftest$ac_exeext
! 14571: if { (ac_try="$ac_link"
! 14572: case "(($ac_try" in
! 14573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14574: *) ac_try_echo=$ac_try;;
! 14575: esac
! 14576: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14577: (eval "$ac_link") 2>&5
1.9 millert 14578: ac_status=$?
1.16 millert 14579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14580: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 14581: { (case "(($ac_try" in
! 14582: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14583: *) ac_try_echo=$ac_try;;
! 14584: esac
! 14585: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14586: (eval "$ac_try") 2>&5
1.9 millert 14587: ac_status=$?
1.16 millert 14588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14589: (exit $ac_status); }; }; then
1.27 ! millert 14590: sudo_cv_sock_sa_len=yes
1.9 millert 14591: else
1.27 ! millert 14592: echo "$as_me: program exited with status $ac_status" >&5
! 14593: echo "$as_me: failed program was:" >&5
1.16 millert 14594: sed 's/^/| /' conftest.$ac_ext >&5
14595:
1.27 ! millert 14596: ( exit $ac_status )
! 14597: sudo_cv_sock_sa_len=no
1.9 millert 14598: fi
1.27 ! millert 14599: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14600: fi
1.1 millert 14601:
1.27 ! millert 14602:
! 14603: rm -f core core.* *.core
1.1 millert 14604: fi
1.27 ! millert 14605: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
! 14606: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
! 14607: if test $sudo_cv_sock_sa_len = yes; then
! 14608:
! 14609: cat >>confdefs.h <<\_ACEOF
! 14610: #define HAVE_SA_LEN 1
! 14611: _ACEOF
1.1 millert 14612:
14613: fi
14614:
1.27 ! millert 14615: case "$DEFS" in
! 14616: *"RETSIGTYPE"*) ;;
! 14617: *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 14618: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
! 14619: if test "${ac_cv_type_signal+set}" = set; then
1.9 millert 14620: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14621: else
1.9 millert 14622: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14623: /* confdefs.h. */
14624: _ACEOF
14625: cat confdefs.h >>conftest.$ac_ext
14626: cat >>conftest.$ac_ext <<_ACEOF
14627: /* end confdefs.h. */
1.27 ! millert 14628: #include <sys/types.h>
! 14629: #include <signal.h>
1.9 millert 14630:
14631: int
14632: main ()
14633: {
1.27 ! millert 14634: return *(signal (0, 0)) (0) == 1;
1.9 millert 14635: ;
14636: return 0;
1.1 millert 14637: }
1.9 millert 14638: _ACEOF
1.27 ! millert 14639: rm -f conftest.$ac_objext
! 14640: if { (ac_try="$ac_compile"
! 14641: case "(($ac_try" in
! 14642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14643: *) ac_try_echo=$ac_try;;
! 14644: esac
! 14645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14646: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14647: ac_status=$?
1.25 millert 14648: grep -v '^ *+' conftest.er1 >conftest.err
14649: rm -f conftest.er1
14650: cat conftest.err >&5
1.16 millert 14651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14652: (exit $ac_status); } && {
! 14653: test -z "$ac_c_werror_flag" ||
! 14654: test ! -s conftest.err
! 14655: } && test -s conftest.$ac_objext; then
! 14656: ac_cv_type_signal=int
1.1 millert 14657: else
1.9 millert 14658: echo "$as_me: failed program was:" >&5
1.16 millert 14659: sed 's/^/| /' conftest.$ac_ext >&5
14660:
1.27 ! millert 14661: ac_cv_type_signal=void
1.9 millert 14662: fi
1.27 ! millert 14663:
! 14664: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 14665: fi
1.27 ! millert 14666: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 14667: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
! 14668:
! 14669: cat >>confdefs.h <<_ACEOF
! 14670: #define RETSIGTYPE $ac_cv_type_signal
1.25 millert 14671: _ACEOF
14672:
1.27 ! millert 14673: ;;
! 14674: esac
! 14675:
! 14676:
! 14677:
! 14678:
! 14679:
! 14680:
! 14681:
! 14682:
! 14683:
! 14684:
! 14685:
! 14686:
! 14687:
! 14688:
! 14689:
! 14690: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
! 14691: strftime setrlimit initgroups getgroups fstat gettimeofday \
! 14692: setlocale getaddrinfo
1.25 millert 14693: do
14694: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 14695: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14696: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 14697: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 14698: echo $ECHO_N "(cached) $ECHO_C" >&6
14699: else
14700: cat >conftest.$ac_ext <<_ACEOF
14701: /* confdefs.h. */
14702: _ACEOF
14703: cat confdefs.h >>conftest.$ac_ext
14704: cat >>conftest.$ac_ext <<_ACEOF
14705: /* end confdefs.h. */
14706: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14707: For example, HP-UX 11i <limits.h> declares gettimeofday. */
14708: #define $ac_func innocuous_$ac_func
14709:
14710: /* System header to define __stub macros and hopefully few prototypes,
14711: which can conflict with char $ac_func (); below.
14712: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713: <limits.h> exists even on freestanding compilers. */
14714:
14715: #ifdef __STDC__
14716: # include <limits.h>
14717: #else
14718: # include <assert.h>
14719: #endif
14720:
14721: #undef $ac_func
14722:
1.27 ! millert 14723: /* Override any GCC internal prototype to avoid an error.
! 14724: Use char because int might match the return type of a GCC
! 14725: builtin and then its argument prototype would still apply. */
1.25 millert 14726: #ifdef __cplusplus
14727: extern "C"
14728: #endif
14729: char $ac_func ();
14730: /* The GNU C library defines this for functions which it implements
14731: to always fail with ENOSYS. Some functions are actually named
14732: something starting with __ and the normal name is an alias. */
1.27 ! millert 14733: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 14734: choke me
14735: #endif
1.9 millert 14736:
14737: int
14738: main ()
14739: {
1.27 ! millert 14740: return $ac_func ();
1.9 millert 14741: ;
14742: return 0;
14743: }
14744: _ACEOF
1.25 millert 14745: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 14746: if { (ac_try="$ac_link"
! 14747: case "(($ac_try" in
! 14748: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14749: *) ac_try_echo=$ac_try;;
! 14750: esac
! 14751: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14752: (eval "$ac_link") 2>conftest.er1
1.9 millert 14753: ac_status=$?
1.25 millert 14754: grep -v '^ *+' conftest.er1 >conftest.err
14755: rm -f conftest.er1
14756: cat conftest.err >&5
1.16 millert 14757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14758: (exit $ac_status); } && {
! 14759: test -z "$ac_c_werror_flag" ||
! 14760: test ! -s conftest.err
! 14761: } && test -s conftest$ac_exeext &&
! 14762: $as_test_x conftest$ac_exeext; then
1.25 millert 14763: eval "$as_ac_var=yes"
1.9 millert 14764: else
14765: echo "$as_me: failed program was:" >&5
1.16 millert 14766: sed 's/^/| /' conftest.$ac_ext >&5
14767:
1.27 ! millert 14768: eval "$as_ac_var=no"
1.9 millert 14769: fi
1.27 ! millert 14770:
! 14771: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 14772: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14773: fi
1.27 ! millert 14774: ac_res=`eval echo '${'$as_ac_var'}'`
! 14775: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 14776: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 14777: if test `eval echo '${'$as_ac_var'}'` = yes; then
14778: cat >>confdefs.h <<_ACEOF
14779: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14780: _ACEOF
1.1 millert 14781:
14782: fi
1.9 millert 14783: done
14784:
1.27 ! millert 14785: if test -z "$SKIP_SETRESUID"; then
1.1 millert 14786:
1.27 ! millert 14787: for ac_func in setresuid
1.25 millert 14788: do
14789: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 14790: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14791: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 14792: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 14793: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14794: else
1.25 millert 14795: cat >conftest.$ac_ext <<_ACEOF
14796: /* confdefs.h. */
14797: _ACEOF
14798: cat confdefs.h >>conftest.$ac_ext
14799: cat >>conftest.$ac_ext <<_ACEOF
14800: /* end confdefs.h. */
14801: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14802: For example, HP-UX 11i <limits.h> declares gettimeofday. */
14803: #define $ac_func innocuous_$ac_func
1.9 millert 14804:
1.25 millert 14805: /* System header to define __stub macros and hopefully few prototypes,
14806: which can conflict with char $ac_func (); below.
14807: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14808: <limits.h> exists even on freestanding compilers. */
1.9 millert 14809:
1.25 millert 14810: #ifdef __STDC__
14811: # include <limits.h>
14812: #else
14813: # include <assert.h>
14814: #endif
1.9 millert 14815:
1.25 millert 14816: #undef $ac_func
1.9 millert 14817:
1.27 ! millert 14818: /* Override any GCC internal prototype to avoid an error.
! 14819: Use char because int might match the return type of a GCC
! 14820: builtin and then its argument prototype would still apply. */
1.25 millert 14821: #ifdef __cplusplus
14822: extern "C"
14823: #endif
14824: char $ac_func ();
14825: /* The GNU C library defines this for functions which it implements
14826: to always fail with ENOSYS. Some functions are actually named
14827: something starting with __ and the normal name is an alias. */
1.27 ! millert 14828: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 14829: choke me
14830: #endif
1.9 millert 14831:
1.25 millert 14832: int
14833: main ()
14834: {
1.27 ! millert 14835: return $ac_func ();
1.25 millert 14836: ;
14837: return 0;
14838: }
14839: _ACEOF
14840: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 14841: if { (ac_try="$ac_link"
! 14842: case "(($ac_try" in
! 14843: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14844: *) ac_try_echo=$ac_try;;
! 14845: esac
! 14846: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14847: (eval "$ac_link") 2>conftest.er1
1.25 millert 14848: ac_status=$?
14849: grep -v '^ *+' conftest.er1 >conftest.err
14850: rm -f conftest.er1
14851: cat conftest.err >&5
14852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14853: (exit $ac_status); } && {
! 14854: test -z "$ac_c_werror_flag" ||
! 14855: test ! -s conftest.err
! 14856: } && test -s conftest$ac_exeext &&
! 14857: $as_test_x conftest$ac_exeext; then
1.25 millert 14858: eval "$as_ac_var=yes"
14859: else
14860: echo "$as_me: failed program was:" >&5
14861: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 14862:
1.27 ! millert 14863: eval "$as_ac_var=no"
1.1 millert 14864: fi
1.27 ! millert 14865:
! 14866: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 14867: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14868: fi
1.27 ! millert 14869: ac_res=`eval echo '${'$as_ac_var'}'`
! 14870: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 14871: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 14872: if test `eval echo '${'$as_ac_var'}'` = yes; then
14873: cat >>confdefs.h <<_ACEOF
14874: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14875: _ACEOF
1.27 ! millert 14876: SKIP_SETREUID=yes
1.25 millert 14877: fi
14878: done
1.23 millert 14879:
14880: fi
1.27 ! millert 14881: if test -z "$SKIP_SETREUID"; then
1.23 millert 14882:
1.27 ! millert 14883: for ac_func in setreuid
1.25 millert 14884: do
14885: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 14886: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14887: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 14888: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 14889: echo $ECHO_N "(cached) $ECHO_C" >&6
14890: else
14891: cat >conftest.$ac_ext <<_ACEOF
14892: /* confdefs.h. */
14893: _ACEOF
14894: cat confdefs.h >>conftest.$ac_ext
14895: cat >>conftest.$ac_ext <<_ACEOF
14896: /* end confdefs.h. */
1.25 millert 14897: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14898: For example, HP-UX 11i <limits.h> declares gettimeofday. */
14899: #define $ac_func innocuous_$ac_func
14900:
14901: /* System header to define __stub macros and hopefully few prototypes,
14902: which can conflict with char $ac_func (); below.
14903: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14904: <limits.h> exists even on freestanding compilers. */
14905:
14906: #ifdef __STDC__
14907: # include <limits.h>
14908: #else
14909: # include <assert.h>
14910: #endif
14911:
14912: #undef $ac_func
14913:
1.27 ! millert 14914: /* Override any GCC internal prototype to avoid an error.
! 14915: Use char because int might match the return type of a GCC
! 14916: builtin and then its argument prototype would still apply. */
1.25 millert 14917: #ifdef __cplusplus
14918: extern "C"
14919: #endif
14920: char $ac_func ();
14921: /* The GNU C library defines this for functions which it implements
14922: to always fail with ENOSYS. Some functions are actually named
14923: something starting with __ and the normal name is an alias. */
1.27 ! millert 14924: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 14925: choke me
14926: #endif
1.23 millert 14927:
14928: int
14929: main ()
14930: {
1.27 ! millert 14931: return $ac_func ();
1.23 millert 14932: ;
14933: return 0;
14934: }
14935: _ACEOF
1.25 millert 14936: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 14937: if { (ac_try="$ac_link"
! 14938: case "(($ac_try" in
! 14939: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14940: *) ac_try_echo=$ac_try;;
! 14941: esac
! 14942: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14943: (eval "$ac_link") 2>conftest.er1
1.23 millert 14944: ac_status=$?
1.25 millert 14945: grep -v '^ *+' conftest.er1 >conftest.err
14946: rm -f conftest.er1
14947: cat conftest.err >&5
1.23 millert 14948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 14949: (exit $ac_status); } && {
! 14950: test -z "$ac_c_werror_flag" ||
! 14951: test ! -s conftest.err
! 14952: } && test -s conftest$ac_exeext &&
! 14953: $as_test_x conftest$ac_exeext; then
1.25 millert 14954: eval "$as_ac_var=yes"
1.23 millert 14955: else
14956: echo "$as_me: failed program was:" >&5
14957: sed 's/^/| /' conftest.$ac_ext >&5
14958:
1.27 ! millert 14959: eval "$as_ac_var=no"
1.25 millert 14960: fi
1.27 ! millert 14961:
! 14962: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 14963: conftest$ac_exeext conftest.$ac_ext
1.23 millert 14964: fi
1.27 ! millert 14965: ac_res=`eval echo '${'$as_ac_var'}'`
! 14966: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 14967: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 14968: if test `eval echo '${'$as_ac_var'}'` = yes; then
14969: cat >>confdefs.h <<_ACEOF
14970: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14971: _ACEOF
1.27 ! millert 14972: SKIP_SETEUID=yes
1.23 millert 14973: fi
1.27 ! millert 14974: done
1.23 millert 14975:
14976: fi
1.27 ! millert 14977: if test -z "$SKIP_SETEUID"; then
1.25 millert 14978:
1.27 ! millert 14979: for ac_func in seteuid
1.25 millert 14980: do
14981: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 14982: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14983: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 14984: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 14985: echo $ECHO_N "(cached) $ECHO_C" >&6
14986: else
1.23 millert 14987: cat >conftest.$ac_ext <<_ACEOF
14988: /* confdefs.h. */
14989: _ACEOF
14990: cat confdefs.h >>conftest.$ac_ext
14991: cat >>conftest.$ac_ext <<_ACEOF
14992: /* end confdefs.h. */
1.25 millert 14993: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14994: For example, HP-UX 11i <limits.h> declares gettimeofday. */
14995: #define $ac_func innocuous_$ac_func
14996:
14997: /* System header to define __stub macros and hopefully few prototypes,
14998: which can conflict with char $ac_func (); below.
14999: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15000: <limits.h> exists even on freestanding compilers. */
15001:
15002: #ifdef __STDC__
15003: # include <limits.h>
15004: #else
15005: # include <assert.h>
15006: #endif
15007:
15008: #undef $ac_func
1.23 millert 15009:
1.27 ! millert 15010: /* Override any GCC internal prototype to avoid an error.
! 15011: Use char because int might match the return type of a GCC
! 15012: builtin and then its argument prototype would still apply. */
1.25 millert 15013: #ifdef __cplusplus
15014: extern "C"
15015: #endif
15016: char $ac_func ();
15017: /* The GNU C library defines this for functions which it implements
15018: to always fail with ENOSYS. Some functions are actually named
15019: something starting with __ and the normal name is an alias. */
1.27 ! millert 15020: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15021: choke me
1.23 millert 15022: #endif
15023:
15024: int
15025: main ()
15026: {
1.27 ! millert 15027: return $ac_func ();
1.25 millert 15028: ;
15029: return 0;
1.23 millert 15030: }
15031: _ACEOF
1.25 millert 15032: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15033: if { (ac_try="$ac_link"
! 15034: case "(($ac_try" in
! 15035: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15036: *) ac_try_echo=$ac_try;;
! 15037: esac
! 15038: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15039: (eval "$ac_link") 2>conftest.er1
1.25 millert 15040: ac_status=$?
15041: grep -v '^ *+' conftest.er1 >conftest.err
15042: rm -f conftest.er1
15043: cat conftest.err >&5
15044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15045: (exit $ac_status); } && {
! 15046: test -z "$ac_c_werror_flag" ||
! 15047: test ! -s conftest.err
! 15048: } && test -s conftest$ac_exeext &&
! 15049: $as_test_x conftest$ac_exeext; then
1.25 millert 15050: eval "$as_ac_var=yes"
1.23 millert 15051: else
1.25 millert 15052: echo "$as_me: failed program was:" >&5
1.23 millert 15053: sed 's/^/| /' conftest.$ac_ext >&5
15054:
1.27 ! millert 15055: eval "$as_ac_var=no"
1.23 millert 15056: fi
1.27 ! millert 15057:
! 15058: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15059: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15060: fi
1.27 ! millert 15061: ac_res=`eval echo '${'$as_ac_var'}'`
! 15062: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15063: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15064: if test `eval echo '${'$as_ac_var'}'` = yes; then
15065: cat >>confdefs.h <<_ACEOF
15066: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15067: _ACEOF
1.27 ! millert 15068:
1.23 millert 15069: fi
1.25 millert 15070: done
1.23 millert 15071:
1.27 ! millert 15072: fi
! 15073: if test X"$with_interfaces" != X"no"; then
1.23 millert 15074:
1.27 ! millert 15075: for ac_func in getifaddrs
1.25 millert 15076: do
15077: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15078: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15079: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15080: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 15081: echo $ECHO_N "(cached) $ECHO_C" >&6
15082: else
15083: cat >conftest.$ac_ext <<_ACEOF
15084: /* confdefs.h. */
15085: _ACEOF
15086: cat confdefs.h >>conftest.$ac_ext
15087: cat >>conftest.$ac_ext <<_ACEOF
15088: /* end confdefs.h. */
1.25 millert 15089: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15090: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15091: #define $ac_func innocuous_$ac_func
15092:
15093: /* System header to define __stub macros and hopefully few prototypes,
15094: which can conflict with char $ac_func (); below.
15095: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15096: <limits.h> exists even on freestanding compilers. */
15097:
15098: #ifdef __STDC__
15099: # include <limits.h>
15100: #else
15101: # include <assert.h>
15102: #endif
15103:
15104: #undef $ac_func
15105:
1.27 ! millert 15106: /* Override any GCC internal prototype to avoid an error.
! 15107: Use char because int might match the return type of a GCC
! 15108: builtin and then its argument prototype would still apply. */
1.25 millert 15109: #ifdef __cplusplus
15110: extern "C"
15111: #endif
15112: char $ac_func ();
15113: /* The GNU C library defines this for functions which it implements
15114: to always fail with ENOSYS. Some functions are actually named
15115: something starting with __ and the normal name is an alias. */
1.27 ! millert 15116: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15117: choke me
15118: #endif
1.23 millert 15119:
15120: int
15121: main ()
15122: {
1.27 ! millert 15123: return $ac_func ();
1.23 millert 15124: ;
15125: return 0;
15126: }
15127: _ACEOF
1.25 millert 15128: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15129: if { (ac_try="$ac_link"
! 15130: case "(($ac_try" in
! 15131: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15132: *) ac_try_echo=$ac_try;;
! 15133: esac
! 15134: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15135: (eval "$ac_link") 2>conftest.er1
1.23 millert 15136: ac_status=$?
1.25 millert 15137: grep -v '^ *+' conftest.er1 >conftest.err
15138: rm -f conftest.er1
15139: cat conftest.err >&5
1.23 millert 15140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15141: (exit $ac_status); } && {
! 15142: test -z "$ac_c_werror_flag" ||
! 15143: test ! -s conftest.err
! 15144: } && test -s conftest$ac_exeext &&
! 15145: $as_test_x conftest$ac_exeext; then
1.25 millert 15146: eval "$as_ac_var=yes"
1.23 millert 15147: else
15148: echo "$as_me: failed program was:" >&5
15149: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 15150:
1.27 ! millert 15151: eval "$as_ac_var=no"
1.23 millert 15152: fi
1.27 ! millert 15153:
! 15154: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15155: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15156: fi
1.27 ! millert 15157: ac_res=`eval echo '${'$as_ac_var'}'`
! 15158: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15159: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15160: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 15161: cat >>confdefs.h <<_ACEOF
1.25 millert 15162: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15163: _ACEOF
1.25 millert 15164:
1.27 ! millert 15165: for ac_func in freeifaddrs
1.25 millert 15166: do
15167: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15168: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15169: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15170: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 15171: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15172: else
1.25 millert 15173: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15174: /* confdefs.h. */
15175: _ACEOF
15176: cat confdefs.h >>conftest.$ac_ext
15177: cat >>conftest.$ac_ext <<_ACEOF
15178: /* end confdefs.h. */
1.25 millert 15179: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15180: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15181: #define $ac_func innocuous_$ac_func
15182:
15183: /* System header to define __stub macros and hopefully few prototypes,
15184: which can conflict with char $ac_func (); below.
15185: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15186: <limits.h> exists even on freestanding compilers. */
15187:
15188: #ifdef __STDC__
15189: # include <limits.h>
15190: #else
15191: # include <assert.h>
15192: #endif
15193:
15194: #undef $ac_func
1.9 millert 15195:
1.27 ! millert 15196: /* Override any GCC internal prototype to avoid an error.
! 15197: Use char because int might match the return type of a GCC
! 15198: builtin and then its argument prototype would still apply. */
1.23 millert 15199: #ifdef __cplusplus
15200: extern "C"
15201: #endif
1.25 millert 15202: char $ac_func ();
15203: /* The GNU C library defines this for functions which it implements
15204: to always fail with ENOSYS. Some functions are actually named
15205: something starting with __ and the normal name is an alias. */
1.27 ! millert 15206: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15207: choke me
15208: #endif
15209:
1.16 millert 15210: int
15211: main ()
15212: {
1.27 ! millert 15213: return $ac_func ();
1.16 millert 15214: ;
15215: return 0;
15216: }
1.9 millert 15217: _ACEOF
1.23 millert 15218: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15219: if { (ac_try="$ac_link"
! 15220: case "(($ac_try" in
! 15221: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15222: *) ac_try_echo=$ac_try;;
! 15223: esac
! 15224: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15225: (eval "$ac_link") 2>conftest.er1
1.16 millert 15226: ac_status=$?
1.25 millert 15227: grep -v '^ *+' conftest.er1 >conftest.err
15228: rm -f conftest.er1
15229: cat conftest.err >&5
1.16 millert 15230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15231: (exit $ac_status); } && {
! 15232: test -z "$ac_c_werror_flag" ||
! 15233: test ! -s conftest.err
! 15234: } && test -s conftest$ac_exeext &&
! 15235: $as_test_x conftest$ac_exeext; then
1.25 millert 15236: eval "$as_ac_var=yes"
1.1 millert 15237: else
1.9 millert 15238: echo "$as_me: failed program was:" >&5
1.16 millert 15239: sed 's/^/| /' conftest.$ac_ext >&5
15240:
1.27 ! millert 15241: eval "$as_ac_var=no"
1.25 millert 15242: fi
1.27 ! millert 15243:
! 15244: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15245: conftest$ac_exeext conftest.$ac_ext
1.1 millert 15246: fi
1.27 ! millert 15247: ac_res=`eval echo '${'$as_ac_var'}'`
! 15248: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15249: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15250: if test `eval echo '${'$as_ac_var'}'` = yes; then
15251: cat >>confdefs.h <<_ACEOF
15252: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15253: _ACEOF
15254:
1.27 ! millert 15255: fi
! 15256: done
! 15257:
! 15258: fi
! 15259: done
! 15260:
! 15261: fi
! 15262: if test -z "$BROKEN_GETCWD"; then
! 15263:
! 15264: for ac_func in getcwd
1.25 millert 15265: do
15266: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15267: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15268: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15269: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 15270: echo $ECHO_N "(cached) $ECHO_C" >&6
15271: else
15272: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15273: /* confdefs.h. */
15274: _ACEOF
15275: cat confdefs.h >>conftest.$ac_ext
15276: cat >>conftest.$ac_ext <<_ACEOF
15277: /* end confdefs.h. */
1.25 millert 15278: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15280: #define $ac_func innocuous_$ac_func
15281:
15282: /* System header to define __stub macros and hopefully few prototypes,
15283: which can conflict with char $ac_func (); below.
15284: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285: <limits.h> exists even on freestanding compilers. */
15286:
15287: #ifdef __STDC__
15288: # include <limits.h>
15289: #else
15290: # include <assert.h>
15291: #endif
15292:
15293: #undef $ac_func
1.9 millert 15294:
1.27 ! millert 15295: /* Override any GCC internal prototype to avoid an error.
! 15296: Use char because int might match the return type of a GCC
! 15297: builtin and then its argument prototype would still apply. */
1.23 millert 15298: #ifdef __cplusplus
15299: extern "C"
15300: #endif
1.25 millert 15301: char $ac_func ();
15302: /* The GNU C library defines this for functions which it implements
15303: to always fail with ENOSYS. Some functions are actually named
15304: something starting with __ and the normal name is an alias. */
1.27 ! millert 15305: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15306: choke me
15307: #endif
15308:
1.23 millert 15309: int
15310: main ()
15311: {
1.27 ! millert 15312: return $ac_func ();
1.23 millert 15313: ;
15314: return 0;
15315: }
1.9 millert 15316: _ACEOF
1.23 millert 15317: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15318: if { (ac_try="$ac_link"
! 15319: case "(($ac_try" in
! 15320: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15321: *) ac_try_echo=$ac_try;;
! 15322: esac
! 15323: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15324: (eval "$ac_link") 2>conftest.er1
1.23 millert 15325: ac_status=$?
1.25 millert 15326: grep -v '^ *+' conftest.er1 >conftest.err
15327: rm -f conftest.er1
15328: cat conftest.err >&5
1.23 millert 15329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15330: (exit $ac_status); } && {
! 15331: test -z "$ac_c_werror_flag" ||
! 15332: test ! -s conftest.err
! 15333: } && test -s conftest$ac_exeext &&
! 15334: $as_test_x conftest$ac_exeext; then
1.25 millert 15335: eval "$as_ac_var=yes"
1.1 millert 15336: else
1.23 millert 15337: echo "$as_me: failed program was:" >&5
15338: sed 's/^/| /' conftest.$ac_ext >&5
15339:
1.27 ! millert 15340: eval "$as_ac_var=no"
1.25 millert 15341: fi
1.27 ! millert 15342:
! 15343: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15344: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15345: fi
1.27 ! millert 15346: ac_res=`eval echo '${'$as_ac_var'}'`
! 15347: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15348: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15349: if test `eval echo '${'$as_ac_var'}'` = yes; then
15350: cat >>confdefs.h <<_ACEOF
15351: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15352: _ACEOF
15353:
1.27 ! millert 15354: else
! 15355: case " $LIBOBJS " in
! 15356: *" $ac_func.$ac_objext "* ) ;;
! 15357: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
! 15358: ;;
! 15359: esac
! 15360:
1.23 millert 15361: fi
1.25 millert 15362: done
1.27 ! millert 15363:
! 15364:
1.1 millert 15365: fi
15366:
1.27 ! millert 15367: for ac_func in glob
1.25 millert 15368: do
15369: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15370: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15371: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15372: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 15373: echo $ECHO_N "(cached) $ECHO_C" >&6
15374: else
1.25 millert 15375: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15376: /* confdefs.h. */
15377: _ACEOF
15378: cat confdefs.h >>conftest.$ac_ext
15379: cat >>conftest.$ac_ext <<_ACEOF
15380: /* end confdefs.h. */
1.25 millert 15381: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15383: #define $ac_func innocuous_$ac_func
15384:
15385: /* System header to define __stub macros and hopefully few prototypes,
15386: which can conflict with char $ac_func (); below.
15387: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388: <limits.h> exists even on freestanding compilers. */
15389:
15390: #ifdef __STDC__
15391: # include <limits.h>
15392: #else
15393: # include <assert.h>
15394: #endif
15395:
15396: #undef $ac_func
1.9 millert 15397:
1.27 ! millert 15398: /* Override any GCC internal prototype to avoid an error.
! 15399: Use char because int might match the return type of a GCC
! 15400: builtin and then its argument prototype would still apply. */
1.23 millert 15401: #ifdef __cplusplus
15402: extern "C"
15403: #endif
1.25 millert 15404: char $ac_func ();
15405: /* The GNU C library defines this for functions which it implements
15406: to always fail with ENOSYS. Some functions are actually named
15407: something starting with __ and the normal name is an alias. */
1.27 ! millert 15408: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15409: choke me
15410: #endif
15411:
1.23 millert 15412: int
15413: main ()
15414: {
1.27 ! millert 15415: return $ac_func ();
1.23 millert 15416: ;
15417: return 0;
15418: }
1.9 millert 15419: _ACEOF
1.23 millert 15420: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15421: if { (ac_try="$ac_link"
! 15422: case "(($ac_try" in
! 15423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15424: *) ac_try_echo=$ac_try;;
! 15425: esac
! 15426: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15427: (eval "$ac_link") 2>conftest.er1
1.23 millert 15428: ac_status=$?
1.25 millert 15429: grep -v '^ *+' conftest.er1 >conftest.err
15430: rm -f conftest.er1
15431: cat conftest.err >&5
1.23 millert 15432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15433: (exit $ac_status); } && {
! 15434: test -z "$ac_c_werror_flag" ||
! 15435: test ! -s conftest.err
! 15436: } && test -s conftest$ac_exeext &&
! 15437: $as_test_x conftest$ac_exeext; then
1.25 millert 15438: eval "$as_ac_var=yes"
1.1 millert 15439: else
1.23 millert 15440: echo "$as_me: failed program was:" >&5
15441: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 15442:
1.27 ! millert 15443: eval "$as_ac_var=no"
1.25 millert 15444: fi
1.27 ! millert 15445:
! 15446: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15447: conftest$ac_exeext conftest.$ac_ext
1.1 millert 15448: fi
1.27 ! millert 15449: ac_res=`eval echo '${'$as_ac_var'}'`
! 15450: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15451: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15452: if test `eval echo '${'$as_ac_var'}'` = yes; then
15453: cat >>confdefs.h <<_ACEOF
15454: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15455: _ACEOF
1.27 ! millert 15456: { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
! 15457: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
1.25 millert 15458: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15459: /* confdefs.h. */
15460: _ACEOF
15461: cat confdefs.h >>conftest.$ac_ext
15462: cat >>conftest.$ac_ext <<_ACEOF
15463: /* end confdefs.h. */
1.27 ! millert 15464: #include <glob.h>
1.9 millert 15465: int
15466: main ()
15467: {
1.27 ! millert 15468: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23 millert 15469: ;
15470: return 0;
1.9 millert 15471: }
15472: _ACEOF
1.27 ! millert 15473: rm -f conftest.$ac_objext
! 15474: if { (ac_try="$ac_compile"
! 15475: case "(($ac_try" in
! 15476: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15477: *) ac_try_echo=$ac_try;;
! 15478: esac
! 15479: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15480: (eval "$ac_compile") 2>conftest.er1
1.9 millert 15481: ac_status=$?
1.25 millert 15482: grep -v '^ *+' conftest.er1 >conftest.err
15483: rm -f conftest.er1
15484: cat conftest.err >&5
1.16 millert 15485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15486: (exit $ac_status); } && {
! 15487: test -z "$ac_c_werror_flag" ||
! 15488: test ! -s conftest.err
! 15489: } && test -s conftest.$ac_objext; then
! 15490: cat >>confdefs.h <<\_ACEOF
! 15491: #define HAVE_EXTENDED_GLOB 1
! 15492: _ACEOF
1.16 millert 15493:
1.27 ! millert 15494: { echo "$as_me:$LINENO: result: yes" >&5
! 15495: echo "${ECHO_T}yes" >&6; }
1.23 millert 15496: else
15497: echo "$as_me: failed program was:" >&5
15498: sed 's/^/| /' conftest.$ac_ext >&5
15499:
1.27 ! millert 15500: case " $LIBOBJS " in
! 15501: *" glob.$ac_objext "* ) ;;
! 15502: *) LIBOBJS="$LIBOBJS glob.$ac_objext"
! 15503: ;;
1.25 millert 15504: esac
15505:
1.27 ! millert 15506: { echo "$as_me:$LINENO: result: no" >&5
! 15507: echo "${ECHO_T}no" >&6; }
1.25 millert 15508: fi
15509:
1.27 ! millert 15510: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 15511: else
1.27 ! millert 15512: case " $LIBOBJS " in
! 15513: *" glob.$ac_objext "* ) ;;
! 15514: *) LIBOBJS="$LIBOBJS glob.$ac_objext"
! 15515: ;;
1.23 millert 15516: esac
15517:
15518: fi
1.27 ! millert 15519: done
1.9 millert 15520:
1.23 millert 15521:
15522:
1.27 ! millert 15523: for ac_func in lockf flock
1.25 millert 15524: do
15525: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15526: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15527: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15528: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 15529: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15530: else
1.25 millert 15531: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15532: /* confdefs.h. */
15533: _ACEOF
15534: cat confdefs.h >>conftest.$ac_ext
15535: cat >>conftest.$ac_ext <<_ACEOF
15536: /* end confdefs.h. */
1.25 millert 15537: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539: #define $ac_func innocuous_$ac_func
15540:
15541: /* System header to define __stub macros and hopefully few prototypes,
15542: which can conflict with char $ac_func (); below.
15543: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544: <limits.h> exists even on freestanding compilers. */
15545:
15546: #ifdef __STDC__
15547: # include <limits.h>
15548: #else
15549: # include <assert.h>
15550: #endif
15551:
15552: #undef $ac_func
15553:
1.27 ! millert 15554: /* Override any GCC internal prototype to avoid an error.
! 15555: Use char because int might match the return type of a GCC
! 15556: builtin and then its argument prototype would still apply. */
1.25 millert 15557: #ifdef __cplusplus
15558: extern "C"
15559: #endif
15560: char $ac_func ();
15561: /* The GNU C library defines this for functions which it implements
15562: to always fail with ENOSYS. Some functions are actually named
15563: something starting with __ and the normal name is an alias. */
1.27 ! millert 15564: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15565: choke me
15566: #endif
15567:
15568: int
15569: main ()
15570: {
1.27 ! millert 15571: return $ac_func ();
1.25 millert 15572: ;
15573: return 0;
15574: }
1.16 millert 15575: _ACEOF
1.25 millert 15576: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15577: if { (ac_try="$ac_link"
! 15578: case "(($ac_try" in
! 15579: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15580: *) ac_try_echo=$ac_try;;
! 15581: esac
! 15582: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15583: (eval "$ac_link") 2>conftest.er1
1.16 millert 15584: ac_status=$?
1.25 millert 15585: grep -v '^ *+' conftest.er1 >conftest.err
15586: rm -f conftest.er1
15587: cat conftest.err >&5
1.16 millert 15588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15589: (exit $ac_status); } && {
! 15590: test -z "$ac_c_werror_flag" ||
! 15591: test ! -s conftest.err
! 15592: } && test -s conftest$ac_exeext &&
! 15593: $as_test_x conftest$ac_exeext; then
1.25 millert 15594: eval "$as_ac_var=yes"
1.16 millert 15595: else
15596: echo "$as_me: failed program was:" >&5
15597: sed 's/^/| /' conftest.$ac_ext >&5
15598:
1.27 ! millert 15599: eval "$as_ac_var=no"
1.25 millert 15600: fi
1.27 ! millert 15601:
! 15602: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15603: conftest$ac_exeext conftest.$ac_ext
1.16 millert 15604: fi
1.27 ! millert 15605: ac_res=`eval echo '${'$as_ac_var'}'`
! 15606: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15607: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15608: if test `eval echo '${'$as_ac_var'}'` = yes; then
15609: cat >>confdefs.h <<_ACEOF
15610: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611: _ACEOF
1.27 ! millert 15612: break
! 15613: fi
! 15614: done
! 15615:
1.25 millert 15616:
1.23 millert 15617:
1.27 ! millert 15618: for ac_func in waitpid wait3
1.25 millert 15619: do
15620: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15621: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15622: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15623: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 15624: echo $ECHO_N "(cached) $ECHO_C" >&6
15625: else
15626: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15627: /* confdefs.h. */
15628: _ACEOF
15629: cat confdefs.h >>conftest.$ac_ext
15630: cat >>conftest.$ac_ext <<_ACEOF
15631: /* end confdefs.h. */
1.25 millert 15632: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15634: #define $ac_func innocuous_$ac_func
15635:
15636: /* System header to define __stub macros and hopefully few prototypes,
15637: which can conflict with char $ac_func (); below.
15638: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639: <limits.h> exists even on freestanding compilers. */
15640:
15641: #ifdef __STDC__
15642: # include <limits.h>
15643: #else
15644: # include <assert.h>
15645: #endif
15646:
15647: #undef $ac_func
15648:
1.27 ! millert 15649: /* Override any GCC internal prototype to avoid an error.
! 15650: Use char because int might match the return type of a GCC
! 15651: builtin and then its argument prototype would still apply. */
1.25 millert 15652: #ifdef __cplusplus
15653: extern "C"
15654: #endif
15655: char $ac_func ();
15656: /* The GNU C library defines this for functions which it implements
15657: to always fail with ENOSYS. Some functions are actually named
15658: something starting with __ and the normal name is an alias. */
1.27 ! millert 15659: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15660: choke me
15661: #endif
15662:
15663: int
15664: main ()
15665: {
1.27 ! millert 15666: return $ac_func ();
1.25 millert 15667: ;
15668: return 0;
15669: }
1.9 millert 15670: _ACEOF
1.25 millert 15671: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15672: if { (ac_try="$ac_link"
! 15673: case "(($ac_try" in
! 15674: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15675: *) ac_try_echo=$ac_try;;
! 15676: esac
! 15677: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15678: (eval "$ac_link") 2>conftest.er1
1.9 millert 15679: ac_status=$?
1.23 millert 15680: grep -v '^ *+' conftest.er1 >conftest.err
15681: rm -f conftest.er1
15682: cat conftest.err >&5
1.16 millert 15683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15684: (exit $ac_status); } && {
! 15685: test -z "$ac_c_werror_flag" ||
! 15686: test ! -s conftest.err
! 15687: } && test -s conftest$ac_exeext &&
! 15688: $as_test_x conftest$ac_exeext; then
1.25 millert 15689: eval "$as_ac_var=yes"
1.23 millert 15690: else
15691: echo "$as_me: failed program was:" >&5
15692: sed 's/^/| /' conftest.$ac_ext >&5
15693:
1.27 ! millert 15694: eval "$as_ac_var=no"
1.23 millert 15695: fi
1.27 ! millert 15696:
! 15697: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15698: conftest$ac_exeext conftest.$ac_ext
1.9 millert 15699: fi
1.27 ! millert 15700: ac_res=`eval echo '${'$as_ac_var'}'`
! 15701: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15702: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15703: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 15704: cat >>confdefs.h <<_ACEOF
1.25 millert 15705: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15706: _ACEOF
1.25 millert 15707: break
15708: fi
15709: done
1.23 millert 15710:
1.16 millert 15711:
1.27 ! millert 15712:
! 15713: for ac_func in innetgr _innetgr
1.25 millert 15714: do
15715: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15716: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15717: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15718: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 15719: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15720: else
1.23 millert 15721: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15722: /* confdefs.h. */
15723: _ACEOF
15724: cat confdefs.h >>conftest.$ac_ext
15725: cat >>conftest.$ac_ext <<_ACEOF
15726: /* end confdefs.h. */
1.25 millert 15727: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15728: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15729: #define $ac_func innocuous_$ac_func
15730:
15731: /* System header to define __stub macros and hopefully few prototypes,
15732: which can conflict with char $ac_func (); below.
15733: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15734: <limits.h> exists even on freestanding compilers. */
15735:
15736: #ifdef __STDC__
15737: # include <limits.h>
15738: #else
15739: # include <assert.h>
15740: #endif
15741:
15742: #undef $ac_func
15743:
1.27 ! millert 15744: /* Override any GCC internal prototype to avoid an error.
! 15745: Use char because int might match the return type of a GCC
! 15746: builtin and then its argument prototype would still apply. */
1.25 millert 15747: #ifdef __cplusplus
15748: extern "C"
15749: #endif
15750: char $ac_func ();
15751: /* The GNU C library defines this for functions which it implements
15752: to always fail with ENOSYS. Some functions are actually named
15753: something starting with __ and the normal name is an alias. */
1.27 ! millert 15754: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15755: choke me
15756: #endif
1.16 millert 15757:
15758: int
15759: main ()
15760: {
1.27 ! millert 15761: return $ac_func ();
1.16 millert 15762: ;
15763: return 0;
15764: }
15765: _ACEOF
15766: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15767: if { (ac_try="$ac_link"
! 15768: case "(($ac_try" in
! 15769: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15770: *) ac_try_echo=$ac_try;;
! 15771: esac
! 15772: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15773: (eval "$ac_link") 2>conftest.er1
1.16 millert 15774: ac_status=$?
1.25 millert 15775: grep -v '^ *+' conftest.er1 >conftest.err
15776: rm -f conftest.er1
15777: cat conftest.err >&5
1.16 millert 15778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15779: (exit $ac_status); } && {
! 15780: test -z "$ac_c_werror_flag" ||
! 15781: test ! -s conftest.err
! 15782: } && test -s conftest$ac_exeext &&
! 15783: $as_test_x conftest$ac_exeext; then
1.25 millert 15784: eval "$as_ac_var=yes"
1.16 millert 15785: else
15786: echo "$as_me: failed program was:" >&5
15787: sed 's/^/| /' conftest.$ac_ext >&5
15788:
1.27 ! millert 15789: eval "$as_ac_var=no"
1.16 millert 15790: fi
1.27 ! millert 15791:
! 15792: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15793: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15794: fi
1.27 ! millert 15795: ac_res=`eval echo '${'$as_ac_var'}'`
! 15796: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15797: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15798: if test `eval echo '${'$as_ac_var'}'` = yes; then
15799: cat >>confdefs.h <<_ACEOF
15800: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15801: _ACEOF
1.9 millert 15802:
1.27 ! millert 15803: for ac_func in getdomainname
! 15804: do
! 15805: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15806: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15807: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15808: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16 millert 15809: echo $ECHO_N "(cached) $ECHO_C" >&6
15810: else
1.25 millert 15811: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15812: /* confdefs.h. */
15813: _ACEOF
15814: cat confdefs.h >>conftest.$ac_ext
15815: cat >>conftest.$ac_ext <<_ACEOF
15816: /* end confdefs.h. */
1.27 ! millert 15817: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15818: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15819: #define $ac_func innocuous_$ac_func
1.16 millert 15820:
1.27 ! millert 15821: /* System header to define __stub macros and hopefully few prototypes,
! 15822: which can conflict with char $ac_func (); below.
! 15823: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15824: <limits.h> exists even on freestanding compilers. */
1.25 millert 15825:
1.27 ! millert 15826: #ifdef __STDC__
! 15827: # include <limits.h>
! 15828: #else
! 15829: # include <assert.h>
! 15830: #endif
1.25 millert 15831:
1.27 ! millert 15832: #undef $ac_func
1.25 millert 15833:
1.27 ! millert 15834: /* Override any GCC internal prototype to avoid an error.
! 15835: Use char because int might match the return type of a GCC
! 15836: builtin and then its argument prototype would still apply. */
! 15837: #ifdef __cplusplus
! 15838: extern "C"
! 15839: #endif
! 15840: char $ac_func ();
! 15841: /* The GNU C library defines this for functions which it implements
! 15842: to always fail with ENOSYS. Some functions are actually named
! 15843: something starting with __ and the normal name is an alias. */
! 15844: #if defined __stub_$ac_func || defined __stub___$ac_func
! 15845: choke me
! 15846: #endif
1.23 millert 15847:
1.25 millert 15848: int
15849: main ()
15850: {
1.27 ! millert 15851: return $ac_func ();
1.25 millert 15852: ;
15853: return 0;
15854: }
1.23 millert 15855: _ACEOF
1.25 millert 15856: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15857: if { (ac_try="$ac_link"
! 15858: case "(($ac_try" in
! 15859: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15860: *) ac_try_echo=$ac_try;;
! 15861: esac
! 15862: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15863: (eval "$ac_link") 2>conftest.er1
1.23 millert 15864: ac_status=$?
15865: grep -v '^ *+' conftest.er1 >conftest.err
15866: rm -f conftest.er1
15867: cat conftest.err >&5
15868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15869: (exit $ac_status); } && {
! 15870: test -z "$ac_c_werror_flag" ||
! 15871: test ! -s conftest.err
! 15872: } && test -s conftest$ac_exeext &&
! 15873: $as_test_x conftest$ac_exeext; then
! 15874: eval "$as_ac_var=yes"
1.23 millert 15875: else
15876: echo "$as_me: failed program was:" >&5
15877: sed 's/^/| /' conftest.$ac_ext >&5
15878:
1.27 ! millert 15879: eval "$as_ac_var=no"
1.25 millert 15880: fi
1.27 ! millert 15881:
! 15882: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15883: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15884: fi
1.27 ! millert 15885: ac_res=`eval echo '${'$as_ac_var'}'`
! 15886: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15887: echo "${ECHO_T}$ac_res" >&6; }
! 15888: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15889: cat >>confdefs.h <<_ACEOF
! 15890: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 15891: _ACEOF
1.1 millert 15892:
1.27 ! millert 15893: fi
! 15894: done
! 15895: break
! 15896: fi
! 15897: done
1.25 millert 15898:
15899:
1.27 ! millert 15900: for ac_func in lsearch
1.1 millert 15901: do
1.25 millert 15902: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 15903: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15904: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 15905: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 15906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 15907: else
1.25 millert 15908: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15909: /* confdefs.h. */
15910: _ACEOF
15911: cat confdefs.h >>conftest.$ac_ext
15912: cat >>conftest.$ac_ext <<_ACEOF
15913: /* end confdefs.h. */
1.25 millert 15914: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15915: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15916: #define $ac_func innocuous_$ac_func
15917:
15918: /* System header to define __stub macros and hopefully few prototypes,
15919: which can conflict with char $ac_func (); below.
15920: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15921: <limits.h> exists even on freestanding compilers. */
15922:
15923: #ifdef __STDC__
15924: # include <limits.h>
15925: #else
15926: # include <assert.h>
15927: #endif
15928:
15929: #undef $ac_func
15930:
1.27 ! millert 15931: /* Override any GCC internal prototype to avoid an error.
! 15932: Use char because int might match the return type of a GCC
! 15933: builtin and then its argument prototype would still apply. */
1.25 millert 15934: #ifdef __cplusplus
15935: extern "C"
15936: #endif
15937: char $ac_func ();
15938: /* The GNU C library defines this for functions which it implements
15939: to always fail with ENOSYS. Some functions are actually named
15940: something starting with __ and the normal name is an alias. */
1.27 ! millert 15941: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15942: choke me
15943: #endif
15944:
15945: int
15946: main ()
15947: {
1.27 ! millert 15948: return $ac_func ();
1.25 millert 15949: ;
15950: return 0;
15951: }
1.16 millert 15952: _ACEOF
1.25 millert 15953: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 15954: if { (ac_try="$ac_link"
! 15955: case "(($ac_try" in
! 15956: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15957: *) ac_try_echo=$ac_try;;
! 15958: esac
! 15959: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15960: (eval "$ac_link") 2>conftest.er1
1.16 millert 15961: ac_status=$?
1.25 millert 15962: grep -v '^ *+' conftest.er1 >conftest.err
15963: rm -f conftest.er1
15964: cat conftest.err >&5
1.16 millert 15965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 15966: (exit $ac_status); } && {
! 15967: test -z "$ac_c_werror_flag" ||
! 15968: test ! -s conftest.err
! 15969: } && test -s conftest$ac_exeext &&
! 15970: $as_test_x conftest$ac_exeext; then
1.25 millert 15971: eval "$as_ac_var=yes"
1.9 millert 15972: else
1.16 millert 15973: echo "$as_me: failed program was:" >&5
15974: sed 's/^/| /' conftest.$ac_ext >&5
15975:
1.27 ! millert 15976: eval "$as_ac_var=no"
1.25 millert 15977: fi
1.27 ! millert 15978:
! 15979: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15980: conftest$ac_exeext conftest.$ac_ext
15981: fi
1.27 ! millert 15982: ac_res=`eval echo '${'$as_ac_var'}'`
! 15983: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15984: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15985: if test `eval echo '${'$as_ac_var'}'` = yes; then
15986: cat >>confdefs.h <<_ACEOF
15987: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15988: _ACEOF
15989:
15990: else
1.27 ! millert 15991: { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
! 15992: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
! 15993: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
1.25 millert 15994: echo $ECHO_N "(cached) $ECHO_C" >&6
15995: else
1.27 ! millert 15996: ac_check_lib_save_LIBS=$LIBS
! 15997: LIBS="-lcompat $LIBS"
! 15998: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15999: /* confdefs.h. */
16000: _ACEOF
16001: cat confdefs.h >>conftest.$ac_ext
16002: cat >>conftest.$ac_ext <<_ACEOF
16003: /* end confdefs.h. */
1.25 millert 16004:
1.27 ! millert 16005: /* Override any GCC internal prototype to avoid an error.
! 16006: Use char because int might match the return type of a GCC
! 16007: builtin and then its argument prototype would still apply. */
1.25 millert 16008: #ifdef __cplusplus
16009: extern "C"
16010: #endif
1.27 ! millert 16011: char lsearch ();
1.25 millert 16012: int
16013: main ()
16014: {
1.27 ! millert 16015: return lsearch ();
1.25 millert 16016: ;
16017: return 0;
16018: }
1.9 millert 16019: _ACEOF
1.25 millert 16020: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16021: if { (ac_try="$ac_link"
! 16022: case "(($ac_try" in
! 16023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16024: *) ac_try_echo=$ac_try;;
! 16025: esac
! 16026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16027: (eval "$ac_link") 2>conftest.er1
1.9 millert 16028: ac_status=$?
1.16 millert 16029: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 16030: rm -f conftest.er1
16031: cat conftest.err >&5
1.16 millert 16032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16033: (exit $ac_status); } && {
! 16034: test -z "$ac_c_werror_flag" ||
! 16035: test ! -s conftest.err
! 16036: } && test -s conftest$ac_exeext &&
! 16037: $as_test_x conftest$ac_exeext; then
! 16038: ac_cv_lib_compat_lsearch=yes
1.1 millert 16039: else
1.9 millert 16040: echo "$as_me: failed program was:" >&5
1.16 millert 16041: sed 's/^/| /' conftest.$ac_ext >&5
16042:
1.27 ! millert 16043: ac_cv_lib_compat_lsearch=no
1.1 millert 16044: fi
1.27 ! millert 16045:
! 16046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16047: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 16048: LIBS=$ac_check_lib_save_LIBS
1.16 millert 16049: fi
1.27 ! millert 16050: { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
! 16051: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
! 16052: if test $ac_cv_lib_compat_lsearch = yes; then
! 16053: { echo "$as_me:$LINENO: checking for search.h" >&5
! 16054: echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
! 16055: if test "${ac_cv_header_search_h+set}" = set; then
1.18 millert 16056: echo $ECHO_N "(cached) $ECHO_C" >&6
16057: else
1.25 millert 16058: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 16059: /* confdefs.h. */
16060: _ACEOF
16061: cat confdefs.h >>conftest.$ac_ext
16062: cat >>conftest.$ac_ext <<_ACEOF
16063: /* end confdefs.h. */
1.27 ! millert 16064: #include <search.h>
1.18 millert 16065: _ACEOF
1.27 ! millert 16066: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 16067: case "(($ac_try" in
! 16068: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16069: *) ac_try_echo=$ac_try;;
! 16070: esac
! 16071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16072: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.18 millert 16073: ac_status=$?
1.25 millert 16074: grep -v '^ *+' conftest.er1 >conftest.err
16075: rm -f conftest.er1
16076: cat conftest.err >&5
1.18 millert 16077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16078: (exit $ac_status); } >/dev/null && {
! 16079: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 16080: test ! -s conftest.err
! 16081: }; then
! 16082: ac_cv_header_search_h=yes
1.23 millert 16083: else
1.25 millert 16084: echo "$as_me: failed program was:" >&5
16085: sed 's/^/| /' conftest.$ac_ext >&5
16086:
1.27 ! millert 16087: ac_cv_header_search_h=no
1.23 millert 16088: fi
1.27 ! millert 16089:
! 16090: rm -f conftest.err conftest.$ac_ext
1.23 millert 16091: fi
1.27 ! millert 16092: { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
! 16093: echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
! 16094: if test $ac_cv_header_search_h = yes; then
1.23 millert 16095: cat >>confdefs.h <<\_ACEOF
1.27 ! millert 16096: #define HAVE_LSEARCH 1
1.23 millert 16097: _ACEOF
1.27 ! millert 16098: LIBS="${LIBS} -lcompat"
! 16099: else
! 16100: case " $LIBOBJS " in
! 16101: *" lsearch.$ac_objext "* ) ;;
! 16102: *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
! 16103: ;;
! 16104: esac
1.25 millert 16105:
1.23 millert 16106: fi
16107:
16108:
1.27 ! millert 16109: else
! 16110: case " $LIBOBJS " in
! 16111: *" lsearch.$ac_objext "* ) ;;
! 16112: *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
! 16113: ;;
! 16114: esac
! 16115:
! 16116: fi
! 16117:
1.23 millert 16118: fi
1.25 millert 16119: done
16120:
16121:
1.27 ! millert 16122: for ac_func in utimes
1.25 millert 16123: do
16124: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 16125: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16126: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16127: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 16128: echo $ECHO_N "(cached) $ECHO_C" >&6
16129: else
16130: cat >conftest.$ac_ext <<_ACEOF
16131: /* confdefs.h. */
16132: _ACEOF
16133: cat confdefs.h >>conftest.$ac_ext
16134: cat >>conftest.$ac_ext <<_ACEOF
16135: /* end confdefs.h. */
1.25 millert 16136: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16138: #define $ac_func innocuous_$ac_func
16139:
16140: /* System header to define __stub macros and hopefully few prototypes,
16141: which can conflict with char $ac_func (); below.
16142: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143: <limits.h> exists even on freestanding compilers. */
16144:
16145: #ifdef __STDC__
16146: # include <limits.h>
16147: #else
16148: # include <assert.h>
16149: #endif
16150:
16151: #undef $ac_func
16152:
1.27 ! millert 16153: /* Override any GCC internal prototype to avoid an error.
! 16154: Use char because int might match the return type of a GCC
! 16155: builtin and then its argument prototype would still apply. */
1.25 millert 16156: #ifdef __cplusplus
16157: extern "C"
16158: #endif
16159: char $ac_func ();
16160: /* The GNU C library defines this for functions which it implements
16161: to always fail with ENOSYS. Some functions are actually named
16162: something starting with __ and the normal name is an alias. */
1.27 ! millert 16163: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16164: choke me
16165: #endif
16166:
1.23 millert 16167: int
16168: main ()
16169: {
1.27 ! millert 16170: return $ac_func ();
1.23 millert 16171: ;
16172: return 0;
16173: }
16174: _ACEOF
1.25 millert 16175: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16176: if { (ac_try="$ac_link"
! 16177: case "(($ac_try" in
! 16178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16179: *) ac_try_echo=$ac_try;;
! 16180: esac
! 16181: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16182: (eval "$ac_link") 2>conftest.er1
1.23 millert 16183: ac_status=$?
1.25 millert 16184: grep -v '^ *+' conftest.er1 >conftest.err
16185: rm -f conftest.er1
16186: cat conftest.err >&5
1.23 millert 16187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16188: (exit $ac_status); } && {
! 16189: test -z "$ac_c_werror_flag" ||
! 16190: test ! -s conftest.err
! 16191: } && test -s conftest$ac_exeext &&
! 16192: $as_test_x conftest$ac_exeext; then
1.25 millert 16193: eval "$as_ac_var=yes"
1.23 millert 16194: else
16195: echo "$as_me: failed program was:" >&5
16196: sed 's/^/| /' conftest.$ac_ext >&5
16197:
1.27 ! millert 16198: eval "$as_ac_var=no"
1.23 millert 16199: fi
1.27 ! millert 16200:
! 16201: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16202: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16203: fi
1.27 ! millert 16204: ac_res=`eval echo '${'$as_ac_var'}'`
! 16205: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16206: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16207: if test `eval echo '${'$as_ac_var'}'` = yes; then
16208: cat >>confdefs.h <<_ACEOF
16209: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16210: _ACEOF
16211:
1.23 millert 16212:
1.27 ! millert 16213: for ac_func in futimes futimesat
1.25 millert 16214: do
16215: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 16216: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16217: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16218: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18 millert 16219: echo $ECHO_N "(cached) $ECHO_C" >&6
16220: else
1.23 millert 16221: cat >conftest.$ac_ext <<_ACEOF
16222: /* confdefs.h. */
16223: _ACEOF
16224: cat confdefs.h >>conftest.$ac_ext
16225: cat >>conftest.$ac_ext <<_ACEOF
16226: /* end confdefs.h. */
1.25 millert 16227: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16228: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16229: #define $ac_func innocuous_$ac_func
16230:
16231: /* System header to define __stub macros and hopefully few prototypes,
16232: which can conflict with char $ac_func (); below.
16233: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16234: <limits.h> exists even on freestanding compilers. */
16235:
16236: #ifdef __STDC__
16237: # include <limits.h>
16238: #else
16239: # include <assert.h>
16240: #endif
16241:
16242: #undef $ac_func
16243:
1.27 ! millert 16244: /* Override any GCC internal prototype to avoid an error.
! 16245: Use char because int might match the return type of a GCC
! 16246: builtin and then its argument prototype would still apply. */
1.25 millert 16247: #ifdef __cplusplus
16248: extern "C"
16249: #endif
16250: char $ac_func ();
16251: /* The GNU C library defines this for functions which it implements
16252: to always fail with ENOSYS. Some functions are actually named
16253: something starting with __ and the normal name is an alias. */
1.27 ! millert 16254: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16255: choke me
16256: #endif
1.23 millert 16257:
1.25 millert 16258: int
16259: main ()
16260: {
1.27 ! millert 16261: return $ac_func ();
1.25 millert 16262: ;
16263: return 0;
16264: }
1.23 millert 16265: _ACEOF
1.25 millert 16266: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16267: if { (ac_try="$ac_link"
! 16268: case "(($ac_try" in
! 16269: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16270: *) ac_try_echo=$ac_try;;
! 16271: esac
! 16272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16273: (eval "$ac_link") 2>conftest.er1
1.25 millert 16274: ac_status=$?
16275: grep -v '^ *+' conftest.er1 >conftest.err
16276: rm -f conftest.er1
16277: cat conftest.err >&5
16278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16279: (exit $ac_status); } && {
! 16280: test -z "$ac_c_werror_flag" ||
! 16281: test ! -s conftest.err
! 16282: } && test -s conftest$ac_exeext &&
! 16283: $as_test_x conftest$ac_exeext; then
1.25 millert 16284: eval "$as_ac_var=yes"
1.23 millert 16285: else
1.25 millert 16286: echo "$as_me: failed program was:" >&5
16287: sed 's/^/| /' conftest.$ac_ext >&5
16288:
1.27 ! millert 16289: eval "$as_ac_var=no"
1.25 millert 16290: fi
1.27 ! millert 16291:
! 16292: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16293: conftest$ac_exeext conftest.$ac_ext
16294: fi
1.27 ! millert 16295: ac_res=`eval echo '${'$as_ac_var'}'`
! 16296: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16297: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16298: if test `eval echo '${'$as_ac_var'}'` = yes; then
16299: cat >>confdefs.h <<_ACEOF
16300: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16301: _ACEOF
16302: break
1.23 millert 16303: fi
1.25 millert 16304: done
16305:
1.27 ! millert 16306: else
1.23 millert 16307:
1.27 ! millert 16308: for ac_func in futime
1.25 millert 16309: do
16310: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 16311: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16312: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16313: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 16314: echo $ECHO_N "(cached) $ECHO_C" >&6
16315: else
16316: cat >conftest.$ac_ext <<_ACEOF
16317: /* confdefs.h. */
1.18 millert 16318: _ACEOF
1.23 millert 16319: cat confdefs.h >>conftest.$ac_ext
16320: cat >>conftest.$ac_ext <<_ACEOF
16321: /* end confdefs.h. */
1.25 millert 16322: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16323: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16324: #define $ac_func innocuous_$ac_func
16325:
16326: /* System header to define __stub macros and hopefully few prototypes,
16327: which can conflict with char $ac_func (); below.
16328: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16329: <limits.h> exists even on freestanding compilers. */
16330:
16331: #ifdef __STDC__
16332: # include <limits.h>
16333: #else
16334: # include <assert.h>
16335: #endif
16336:
16337: #undef $ac_func
16338:
1.27 ! millert 16339: /* Override any GCC internal prototype to avoid an error.
! 16340: Use char because int might match the return type of a GCC
! 16341: builtin and then its argument prototype would still apply. */
1.25 millert 16342: #ifdef __cplusplus
16343: extern "C"
16344: #endif
16345: char $ac_func ();
16346: /* The GNU C library defines this for functions which it implements
16347: to always fail with ENOSYS. Some functions are actually named
16348: something starting with __ and the normal name is an alias. */
1.27 ! millert 16349: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16350: choke me
16351: #endif
1.18 millert 16352:
1.23 millert 16353: int
16354: main ()
16355: {
1.27 ! millert 16356: return $ac_func ();
1.25 millert 16357: ;
16358: return 0;
16359: }
1.9 millert 16360: _ACEOF
1.27 ! millert 16361: rm -f conftest.$ac_objext conftest$ac_exeext
! 16362: if { (ac_try="$ac_link"
! 16363: case "(($ac_try" in
! 16364: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16365: *) ac_try_echo=$ac_try;;
! 16366: esac
! 16367: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16368: (eval "$ac_link") 2>conftest.er1
1.25 millert 16369: ac_status=$?
16370: grep -v '^ *+' conftest.er1 >conftest.err
16371: rm -f conftest.er1
16372: cat conftest.err >&5
16373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16374: (exit $ac_status); } && {
! 16375: test -z "$ac_c_werror_flag" ||
! 16376: test ! -s conftest.err
! 16377: } && test -s conftest$ac_exeext &&
! 16378: $as_test_x conftest$ac_exeext; then
! 16379: eval "$as_ac_var=yes"
1.1 millert 16380: else
1.25 millert 16381: echo "$as_me: failed program was:" >&5
16382: sed 's/^/| /' conftest.$ac_ext >&5
16383:
1.27 ! millert 16384: eval "$as_ac_var=no"
1.23 millert 16385: fi
1.27 ! millert 16386:
! 16387: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 16388: conftest$ac_exeext conftest.$ac_ext
1.9 millert 16389: fi
1.27 ! millert 16390: ac_res=`eval echo '${'$as_ac_var'}'`
! 16391: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16392: echo "${ECHO_T}$ac_res" >&6; }
! 16393: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16394: cat >>confdefs.h <<_ACEOF
! 16395: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 16396: _ACEOF
1.16 millert 16397:
16398: fi
1.27 ! millert 16399: done
! 16400: case " $LIBOBJS " in
! 16401: *" utimes.$ac_objext "* ) ;;
! 16402: *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
! 16403: ;;
! 16404: esac
1.9 millert 16405:
16406: fi
1.27 ! millert 16407: done
1.16 millert 16408:
1.27 ! millert 16409: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
! 16410: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
! 16411: if test "${sudo_cv_func_fnmatch+set}" = set; then
! 16412: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16413: else
! 16414: rm -f conftestdata; > conftestdata
! 16415: if test "$cross_compiling" = yes; then
! 16416: sudo_cv_func_fnmatch=no
! 16417: else
! 16418: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16419: /* confdefs.h. */
16420: _ACEOF
16421: cat confdefs.h >>conftest.$ac_ext
16422: cat >>conftest.$ac_ext <<_ACEOF
16423: /* end confdefs.h. */
1.27 ! millert 16424: #include <fnmatch.h>
! 16425: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.16 millert 16426: _ACEOF
1.27 ! millert 16427: rm -f conftest$ac_exeext
! 16428: if { (ac_try="$ac_link"
! 16429: case "(($ac_try" in
! 16430: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16431: *) ac_try_echo=$ac_try;;
! 16432: esac
! 16433: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16434: (eval "$ac_link") 2>&5
1.25 millert 16435: ac_status=$?
16436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16437: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 16438: { (case "(($ac_try" in
! 16439: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16440: *) ac_try_echo=$ac_try;;
! 16441: esac
! 16442: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16443: (eval "$ac_try") 2>&5
1.16 millert 16444: ac_status=$?
16445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446: (exit $ac_status); }; }; then
1.27 ! millert 16447: sudo_cv_func_fnmatch=yes
1.1 millert 16448: else
1.27 ! millert 16449: echo "$as_me: program exited with status $ac_status" >&5
! 16450: echo "$as_me: failed program was:" >&5
1.16 millert 16451: sed 's/^/| /' conftest.$ac_ext >&5
16452:
1.27 ! millert 16453: ( exit $ac_status )
! 16454: sudo_cv_func_fnmatch=no
1.16 millert 16455: fi
1.27 ! millert 16456: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 16457: fi
! 16458:
! 16459:
! 16460: rm -f core core.* *.core
1.25 millert 16461: fi
1.27 ! millert 16462:
! 16463: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
! 16464: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
! 16465: if test $sudo_cv_func_fnmatch = yes; then
1.25 millert 16466: cat >>confdefs.h <<\_ACEOF
1.27 ! millert 16467: #define HAVE_FNMATCH 1
1.25 millert 16468: _ACEOF
16469:
1.9 millert 16470: else
1.27 ! millert 16471: case " $LIBOBJS " in
! 16472: *" fnmatch.$ac_objext "* ) ;;
! 16473: *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
! 16474: ;;
! 16475: esac
! 16476:
! 16477: fi
1.16 millert 16478:
1.27 ! millert 16479: { echo "$as_me:$LINENO: checking for isblank" >&5
! 16480: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
! 16481: if test "${sudo_cv_func_isblank+set}" = set; then
! 16482: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16483: else
! 16484: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16485: /* confdefs.h. */
16486: _ACEOF
16487: cat confdefs.h >>conftest.$ac_ext
16488: cat >>conftest.$ac_ext <<_ACEOF
16489: /* end confdefs.h. */
1.27 ! millert 16490: #include <ctype.h>
1.9 millert 16491: int
16492: main ()
16493: {
1.27 ! millert 16494: return (isblank('a'));
1.9 millert 16495: ;
16496: return 0;
16497: }
16498: _ACEOF
1.23 millert 16499: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16500: if { (ac_try="$ac_link"
! 16501: case "(($ac_try" in
! 16502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16503: *) ac_try_echo=$ac_try;;
! 16504: esac
! 16505: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16506: (eval "$ac_link") 2>conftest.er1
1.9 millert 16507: ac_status=$?
1.25 millert 16508: grep -v '^ *+' conftest.er1 >conftest.err
16509: rm -f conftest.er1
16510: cat conftest.err >&5
1.16 millert 16511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16512: (exit $ac_status); } && {
! 16513: test -z "$ac_c_werror_flag" ||
! 16514: test ! -s conftest.err
! 16515: } && test -s conftest$ac_exeext &&
! 16516: $as_test_x conftest$ac_exeext; then
! 16517: sudo_cv_func_isblank=yes
1.25 millert 16518: else
16519: echo "$as_me: failed program was:" >&5
16520: sed 's/^/| /' conftest.$ac_ext >&5
1.16 millert 16521:
1.27 ! millert 16522: sudo_cv_func_isblank=no
1.25 millert 16523: fi
1.27 ! millert 16524:
! 16525: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16526: conftest$ac_exeext conftest.$ac_ext
16527: fi
1.27 ! millert 16528: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
! 16529: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
! 16530:
! 16531: if test "$sudo_cv_func_isblank" = "yes"; then
! 16532:
! 16533: cat >>confdefs.h <<\_ACEOF
! 16534: #define HAVE_ISBLANK 1
! 16535: _ACEOF
! 16536:
! 16537: fi
! 16538:
! 16539:
! 16540:
! 16541:
! 16542:
! 16543:
1.9 millert 16544:
1.27 ! millert 16545: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
! 16546: do
! 16547: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16548: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16549: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16550: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 16551: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 16552: else
1.9 millert 16553: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16554: /* confdefs.h. */
16555: _ACEOF
16556: cat confdefs.h >>conftest.$ac_ext
16557: cat >>conftest.$ac_ext <<_ACEOF
1.25 millert 16558: /* end confdefs.h. */
1.27 ! millert 16559: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25 millert 16560: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 ! millert 16561: #define $ac_func innocuous_$ac_func
1.25 millert 16562:
16563: /* System header to define __stub macros and hopefully few prototypes,
1.27 ! millert 16564: which can conflict with char $ac_func (); below.
1.25 millert 16565: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566: <limits.h> exists even on freestanding compilers. */
16567:
16568: #ifdef __STDC__
16569: # include <limits.h>
16570: #else
16571: # include <assert.h>
16572: #endif
16573:
1.27 ! millert 16574: #undef $ac_func
1.25 millert 16575:
1.27 ! millert 16576: /* Override any GCC internal prototype to avoid an error.
! 16577: Use char because int might match the return type of a GCC
! 16578: builtin and then its argument prototype would still apply. */
1.25 millert 16579: #ifdef __cplusplus
16580: extern "C"
16581: #endif
1.27 ! millert 16582: char $ac_func ();
1.25 millert 16583: /* The GNU C library defines this for functions which it implements
16584: to always fail with ENOSYS. Some functions are actually named
16585: something starting with __ and the normal name is an alias. */
1.27 ! millert 16586: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16587: choke me
16588: #endif
16589:
16590: int
16591: main ()
16592: {
1.27 ! millert 16593: return $ac_func ();
1.25 millert 16594: ;
16595: return 0;
16596: }
16597: _ACEOF
16598: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16599: if { (ac_try="$ac_link"
! 16600: case "(($ac_try" in
! 16601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16602: *) ac_try_echo=$ac_try;;
! 16603: esac
! 16604: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16605: (eval "$ac_link") 2>conftest.er1
1.25 millert 16606: ac_status=$?
16607: grep -v '^ *+' conftest.er1 >conftest.err
16608: rm -f conftest.er1
16609: cat conftest.err >&5
16610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16611: (exit $ac_status); } && {
! 16612: test -z "$ac_c_werror_flag" ||
! 16613: test ! -s conftest.err
! 16614: } && test -s conftest$ac_exeext &&
! 16615: $as_test_x conftest$ac_exeext; then
! 16616: eval "$as_ac_var=yes"
1.23 millert 16617: else
1.25 millert 16618: echo "$as_me: failed program was:" >&5
1.23 millert 16619: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 16620:
1.27 ! millert 16621: eval "$as_ac_var=no"
1.23 millert 16622: fi
1.27 ! millert 16623:
! 16624: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16625: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16626: fi
1.27 ! millert 16627: ac_res=`eval echo '${'$as_ac_var'}'`
! 16628: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16629: echo "${ECHO_T}$ac_res" >&6; }
! 16630: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16631: cat >>confdefs.h <<_ACEOF
! 16632: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16633: _ACEOF
! 16634:
1.23 millert 16635: else
1.27 ! millert 16636: case " $LIBOBJS " in
! 16637: *" $ac_func.$ac_objext "* ) ;;
! 16638: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
! 16639: ;;
! 16640: esac
! 16641:
! 16642: fi
! 16643: done
! 16644:
! 16645:
! 16646:
! 16647: for ac_func in closefrom
! 16648: do
! 16649: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16650: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16651: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16652: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16653: echo $ECHO_N "(cached) $ECHO_C" >&6
16654: else
1.27 ! millert 16655: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16656: /* confdefs.h. */
16657: _ACEOF
16658: cat confdefs.h >>conftest.$ac_ext
16659: cat >>conftest.$ac_ext <<_ACEOF
16660: /* end confdefs.h. */
1.27 ! millert 16661: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16662: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16663: #define $ac_func innocuous_$ac_func
! 16664:
! 16665: /* System header to define __stub macros and hopefully few prototypes,
! 16666: which can conflict with char $ac_func (); below.
! 16667: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16668: <limits.h> exists even on freestanding compilers. */
! 16669:
! 16670: #ifdef __STDC__
! 16671: # include <limits.h>
! 16672: #else
! 16673: # include <assert.h>
! 16674: #endif
1.25 millert 16675:
1.27 ! millert 16676: #undef $ac_func
! 16677:
! 16678: /* Override any GCC internal prototype to avoid an error.
! 16679: Use char because int might match the return type of a GCC
! 16680: builtin and then its argument prototype would still apply. */
1.25 millert 16681: #ifdef __cplusplus
16682: extern "C"
16683: #endif
1.27 ! millert 16684: char $ac_func ();
! 16685: /* The GNU C library defines this for functions which it implements
! 16686: to always fail with ENOSYS. Some functions are actually named
! 16687: something starting with __ and the normal name is an alias. */
! 16688: #if defined __stub_$ac_func || defined __stub___$ac_func
! 16689: choke me
! 16690: #endif
! 16691:
1.25 millert 16692: int
16693: main ()
16694: {
1.27 ! millert 16695: return $ac_func ();
1.25 millert 16696: ;
16697: return 0;
1.9 millert 16698: }
16699: _ACEOF
1.25 millert 16700: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16701: if { (ac_try="$ac_link"
! 16702: case "(($ac_try" in
! 16703: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16704: *) ac_try_echo=$ac_try;;
! 16705: esac
! 16706: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16707: (eval "$ac_link") 2>conftest.er1
1.25 millert 16708: ac_status=$?
16709: grep -v '^ *+' conftest.er1 >conftest.err
16710: rm -f conftest.er1
16711: cat conftest.err >&5
16712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16713: (exit $ac_status); } && {
! 16714: test -z "$ac_c_werror_flag" ||
! 16715: test ! -s conftest.err
! 16716: } && test -s conftest$ac_exeext &&
! 16717: $as_test_x conftest$ac_exeext; then
! 16718: eval "$as_ac_var=yes"
1.7 millert 16719: else
1.25 millert 16720: echo "$as_me: failed program was:" >&5
1.16 millert 16721: sed 's/^/| /' conftest.$ac_ext >&5
16722:
1.27 ! millert 16723: eval "$as_ac_var=no"
1.23 millert 16724: fi
1.27 ! millert 16725:
! 16726: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16727: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 16728: fi
! 16729: ac_res=`eval echo '${'$as_ac_var'}'`
! 16730: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16731: echo "${ECHO_T}$ac_res" >&6; }
! 16732: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16733: cat >>confdefs.h <<_ACEOF
! 16734: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16735: _ACEOF
! 16736:
! 16737: else
! 16738: case " $LIBOBJS " in
! 16739: *" closefrom.$ac_objext "* ) ;;
! 16740: *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
! 16741: ;;
! 16742: esac
! 16743:
! 16744: { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
! 16745: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
! 16746: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.9 millert 16747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16748: else
1.27 ! millert 16749: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16750: /* confdefs.h. */
16751: _ACEOF
16752: cat confdefs.h >>conftest.$ac_ext
16753: cat >>conftest.$ac_ext <<_ACEOF
16754: /* end confdefs.h. */
1.27 ! millert 16755: #include <limits.h>
! 16756: #include <fcntl.h>
1.25 millert 16757:
1.9 millert 16758: int
16759: main ()
16760: {
1.27 ! millert 16761: #ifndef F_CLOSEM
! 16762: (void) F_CLOSEM;
! 16763: #endif
! 16764:
1.9 millert 16765: ;
16766: return 0;
16767: }
16768: _ACEOF
1.27 ! millert 16769: rm -f conftest.$ac_objext
! 16770: if { (ac_try="$ac_compile"
! 16771: case "(($ac_try" in
! 16772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16773: *) ac_try_echo=$ac_try;;
! 16774: esac
! 16775: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16776: (eval "$ac_compile") 2>conftest.er1
1.9 millert 16777: ac_status=$?
1.25 millert 16778: grep -v '^ *+' conftest.er1 >conftest.err
16779: rm -f conftest.er1
16780: cat conftest.err >&5
1.16 millert 16781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16782: (exit $ac_status); } && {
! 16783: test -z "$ac_c_werror_flag" ||
! 16784: test ! -s conftest.err
! 16785: } && test -s conftest.$ac_objext; then
! 16786: ac_cv_have_decl_F_CLOSEM=yes
1.1 millert 16787: else
1.9 millert 16788: echo "$as_me: failed program was:" >&5
1.16 millert 16789: sed 's/^/| /' conftest.$ac_ext >&5
16790:
1.27 ! millert 16791: ac_cv_have_decl_F_CLOSEM=no
! 16792: fi
! 16793:
! 16794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 16795: fi
! 16796: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
! 16797: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
! 16798: if test $ac_cv_have_decl_F_CLOSEM = yes; then
! 16799: cat >>confdefs.h <<\_ACEOF
! 16800: #define HAVE_FCNTL_CLOSEM 1
! 16801: _ACEOF
! 16802:
1.1 millert 16803: fi
1.27 ! millert 16804:
! 16805:
1.1 millert 16806: fi
1.27 ! millert 16807: done
! 16808:
! 16809:
! 16810: for ac_func in mkstemp
! 16811: do
! 16812: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16813: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16814: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16815: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16816: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16817: else
1.27 ! millert 16818: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16819: /* confdefs.h. */
16820: _ACEOF
16821: cat confdefs.h >>conftest.$ac_ext
16822: cat >>conftest.$ac_ext <<_ACEOF
16823: /* end confdefs.h. */
1.27 ! millert 16824: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16825: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16826: #define $ac_func innocuous_$ac_func
1.25 millert 16827:
1.27 ! millert 16828: /* System header to define __stub macros and hopefully few prototypes,
! 16829: which can conflict with char $ac_func (); below.
! 16830: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16831: <limits.h> exists even on freestanding compilers. */
! 16832:
! 16833: #ifdef __STDC__
! 16834: # include <limits.h>
! 16835: #else
! 16836: # include <assert.h>
! 16837: #endif
! 16838:
! 16839: #undef $ac_func
! 16840:
! 16841: /* Override any GCC internal prototype to avoid an error.
! 16842: Use char because int might match the return type of a GCC
! 16843: builtin and then its argument prototype would still apply. */
1.23 millert 16844: #ifdef __cplusplus
16845: extern "C"
16846: #endif
1.27 ! millert 16847: char $ac_func ();
! 16848: /* The GNU C library defines this for functions which it implements
! 16849: to always fail with ENOSYS. Some functions are actually named
! 16850: something starting with __ and the normal name is an alias. */
! 16851: #if defined __stub_$ac_func || defined __stub___$ac_func
! 16852: choke me
! 16853: #endif
! 16854:
1.23 millert 16855: int
16856: main ()
16857: {
1.27 ! millert 16858: return $ac_func ();
1.23 millert 16859: ;
16860: return 0;
16861: }
1.9 millert 16862: _ACEOF
1.23 millert 16863: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16864: if { (ac_try="$ac_link"
! 16865: case "(($ac_try" in
! 16866: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16867: *) ac_try_echo=$ac_try;;
! 16868: esac
! 16869: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16870: (eval "$ac_link") 2>conftest.er1
1.23 millert 16871: ac_status=$?
1.25 millert 16872: grep -v '^ *+' conftest.er1 >conftest.err
16873: rm -f conftest.er1
16874: cat conftest.err >&5
1.23 millert 16875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16876: (exit $ac_status); } && {
! 16877: test -z "$ac_c_werror_flag" ||
! 16878: test ! -s conftest.err
! 16879: } && test -s conftest$ac_exeext &&
! 16880: $as_test_x conftest$ac_exeext; then
! 16881: eval "$as_ac_var=yes"
1.1 millert 16882: else
1.23 millert 16883: echo "$as_me: failed program was:" >&5
16884: sed 's/^/| /' conftest.$ac_ext >&5
16885:
1.27 ! millert 16886: eval "$as_ac_var=no"
1.25 millert 16887: fi
1.27 ! millert 16888:
! 16889: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16890: conftest$ac_exeext conftest.$ac_ext
1.1 millert 16891: fi
1.27 ! millert 16892: ac_res=`eval echo '${'$as_ac_var'}'`
! 16893: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16894: echo "${ECHO_T}$ac_res" >&6; }
! 16895: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16896: cat >>confdefs.h <<_ACEOF
! 16897: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16898: _ACEOF
1.25 millert 16899:
1.27 ! millert 16900: else
! 16901: SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.1 millert 16902:
16903:
1.27 ! millert 16904: for ac_func in random lrand48
! 16905: do
! 16906: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16907: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16908: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16909: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16910: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16911: else
1.9 millert 16912: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16913: /* confdefs.h. */
16914: _ACEOF
16915: cat confdefs.h >>conftest.$ac_ext
16916: cat >>conftest.$ac_ext <<_ACEOF
16917: /* end confdefs.h. */
1.27 ! millert 16918: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25 millert 16919: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 ! millert 16920: #define $ac_func innocuous_$ac_func
1.25 millert 16921:
1.23 millert 16922: /* System header to define __stub macros and hopefully few prototypes,
1.27 ! millert 16923: which can conflict with char $ac_func (); below.
1.23 millert 16924: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16925: <limits.h> exists even on freestanding compilers. */
1.25 millert 16926:
1.23 millert 16927: #ifdef __STDC__
16928: # include <limits.h>
16929: #else
16930: # include <assert.h>
16931: #endif
1.25 millert 16932:
1.27 ! millert 16933: #undef $ac_func
1.25 millert 16934:
1.27 ! millert 16935: /* Override any GCC internal prototype to avoid an error.
! 16936: Use char because int might match the return type of a GCC
! 16937: builtin and then its argument prototype would still apply. */
1.23 millert 16938: #ifdef __cplusplus
16939: extern "C"
16940: #endif
1.27 ! millert 16941: char $ac_func ();
1.23 millert 16942: /* The GNU C library defines this for functions which it implements
16943: to always fail with ENOSYS. Some functions are actually named
16944: something starting with __ and the normal name is an alias. */
1.27 ! millert 16945: #if defined __stub_$ac_func || defined __stub___$ac_func
1.23 millert 16946: choke me
1.1 millert 16947: #endif
16948:
1.9 millert 16949: int
16950: main ()
16951: {
1.27 ! millert 16952: return $ac_func ();
1.9 millert 16953: ;
16954: return 0;
16955: }
16956: _ACEOF
1.23 millert 16957: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 16958: if { (ac_try="$ac_link"
! 16959: case "(($ac_try" in
! 16960: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16961: *) ac_try_echo=$ac_try;;
! 16962: esac
! 16963: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16964: (eval "$ac_link") 2>conftest.er1
1.9 millert 16965: ac_status=$?
1.25 millert 16966: grep -v '^ *+' conftest.er1 >conftest.err
16967: rm -f conftest.er1
16968: cat conftest.err >&5
1.16 millert 16969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 16970: (exit $ac_status); } && {
! 16971: test -z "$ac_c_werror_flag" ||
! 16972: test ! -s conftest.err
! 16973: } && test -s conftest$ac_exeext &&
! 16974: $as_test_x conftest$ac_exeext; then
! 16975: eval "$as_ac_var=yes"
1.23 millert 16976: else
16977: echo "$as_me: failed program was:" >&5
16978: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 16979:
1.27 ! millert 16980: eval "$as_ac_var=no"
1.23 millert 16981: fi
1.27 ! millert 16982:
! 16983: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16984: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16985: fi
1.27 ! millert 16986: ac_res=`eval echo '${'$as_ac_var'}'`
! 16987: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16988: echo "${ECHO_T}$ac_res" >&6; }
! 16989: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16990: cat >>confdefs.h <<_ACEOF
! 16991: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16992: _ACEOF
! 16993: break
! 16994: fi
! 16995: done
! 16996:
! 16997:
! 16998: fi
! 16999: done
! 17000:
! 17001:
! 17002:
! 17003:
! 17004:
! 17005: for ac_func in snprintf vsnprintf asprintf vasprintf
! 17006: do
! 17007: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17008: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 17009: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 17010: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 17011: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17012: else
1.27 ! millert 17013: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17014: /* confdefs.h. */
17015: _ACEOF
17016: cat confdefs.h >>conftest.$ac_ext
1.23 millert 17017: cat >>conftest.$ac_ext <<_ACEOF
17018: /* end confdefs.h. */
1.27 ! millert 17019: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 17020: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17021: #define $ac_func innocuous_$ac_func
! 17022:
! 17023: /* System header to define __stub macros and hopefully few prototypes,
! 17024: which can conflict with char $ac_func (); below.
! 17025: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17026: <limits.h> exists even on freestanding compilers. */
! 17027:
! 17028: #ifdef __STDC__
! 17029: # include <limits.h>
! 17030: #else
! 17031: # include <assert.h>
! 17032: #endif
! 17033:
! 17034: #undef $ac_func
1.25 millert 17035:
1.27 ! millert 17036: /* Override any GCC internal prototype to avoid an error.
! 17037: Use char because int might match the return type of a GCC
! 17038: builtin and then its argument prototype would still apply. */
1.23 millert 17039: #ifdef __cplusplus
17040: extern "C"
17041: #endif
1.27 ! millert 17042: char $ac_func ();
! 17043: /* The GNU C library defines this for functions which it implements
! 17044: to always fail with ENOSYS. Some functions are actually named
! 17045: something starting with __ and the normal name is an alias. */
! 17046: #if defined __stub_$ac_func || defined __stub___$ac_func
! 17047: choke me
! 17048: #endif
! 17049:
1.23 millert 17050: int
17051: main ()
17052: {
1.27 ! millert 17053: return $ac_func ();
1.23 millert 17054: ;
17055: return 0;
1.1 millert 17056: }
1.9 millert 17057: _ACEOF
1.23 millert 17058: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17059: if { (ac_try="$ac_link"
! 17060: case "(($ac_try" in
! 17061: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17062: *) ac_try_echo=$ac_try;;
! 17063: esac
! 17064: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17065: (eval "$ac_link") 2>conftest.er1
1.9 millert 17066: ac_status=$?
1.25 millert 17067: grep -v '^ *+' conftest.er1 >conftest.err
17068: rm -f conftest.er1
17069: cat conftest.err >&5
1.16 millert 17070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17071: (exit $ac_status); } && {
! 17072: test -z "$ac_c_werror_flag" ||
! 17073: test ! -s conftest.err
! 17074: } && test -s conftest$ac_exeext &&
! 17075: $as_test_x conftest$ac_exeext; then
! 17076: eval "$as_ac_var=yes"
1.1 millert 17077: else
1.23 millert 17078: echo "$as_me: failed program was:" >&5
1.16 millert 17079: sed 's/^/| /' conftest.$ac_ext >&5
17080:
1.27 ! millert 17081: eval "$as_ac_var=no"
1.23 millert 17082: fi
1.27 ! millert 17083:
! 17084: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17085: conftest$ac_exeext conftest.$ac_ext
1.1 millert 17086: fi
1.27 ! millert 17087: ac_res=`eval echo '${'$as_ac_var'}'`
! 17088: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 17089: echo "${ECHO_T}$ac_res" >&6; }
! 17090: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 17091: cat >>confdefs.h <<_ACEOF
! 17092: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17093: _ACEOF
! 17094:
1.25 millert 17095: else
1.27 ! millert 17096: NEED_SNPRINTF=1
! 17097: fi
! 17098: done
! 17099:
! 17100: if test X"$ac_cv_type_struct_timespec" != X"no"; then
! 17101: { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
! 17102: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
! 17103: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.23 millert 17104: echo $ECHO_N "(cached) $ECHO_C" >&6
17105: else
1.27 ! millert 17106: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17107: /* confdefs.h. */
17108: _ACEOF
17109: cat confdefs.h >>conftest.$ac_ext
17110: cat >>conftest.$ac_ext <<_ACEOF
17111: /* end confdefs.h. */
1.27 ! millert 17112: $ac_includes_default
1.9 millert 17113: int
17114: main ()
17115: {
1.27 ! millert 17116: static struct stat ac_aggr;
! 17117: if (ac_aggr.st_mtim)
! 17118: return 0;
1.9 millert 17119: ;
17120: return 0;
17121: }
17122: _ACEOF
1.27 ! millert 17123: rm -f conftest.$ac_objext
! 17124: if { (ac_try="$ac_compile"
! 17125: case "(($ac_try" in
! 17126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17127: *) ac_try_echo=$ac_try;;
! 17128: esac
! 17129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17130: (eval "$ac_compile") 2>conftest.er1
1.9 millert 17131: ac_status=$?
1.25 millert 17132: grep -v '^ *+' conftest.er1 >conftest.err
17133: rm -f conftest.er1
17134: cat conftest.err >&5
1.16 millert 17135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17136: (exit $ac_status); } && {
! 17137: test -z "$ac_c_werror_flag" ||
! 17138: test ! -s conftest.err
! 17139: } && test -s conftest.$ac_objext; then
! 17140: ac_cv_member_struct_stat_st_mtim=yes
1.23 millert 17141: else
17142: echo "$as_me: failed program was:" >&5
17143: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 17144:
1.27 ! millert 17145: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17146: /* confdefs.h. */
17147: _ACEOF
17148: cat confdefs.h >>conftest.$ac_ext
17149: cat >>conftest.$ac_ext <<_ACEOF
17150: /* end confdefs.h. */
1.27 ! millert 17151: $ac_includes_default
1.23 millert 17152: int
17153: main ()
17154: {
1.27 ! millert 17155: static struct stat ac_aggr;
! 17156: if (sizeof ac_aggr.st_mtim)
! 17157: return 0;
1.23 millert 17158: ;
17159: return 0;
17160: }
1.9 millert 17161: _ACEOF
1.27 ! millert 17162: rm -f conftest.$ac_objext
! 17163: if { (ac_try="$ac_compile"
! 17164: case "(($ac_try" in
! 17165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17166: *) ac_try_echo=$ac_try;;
! 17167: esac
! 17168: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17169: (eval "$ac_compile") 2>conftest.er1
1.9 millert 17170: ac_status=$?
1.25 millert 17171: grep -v '^ *+' conftest.er1 >conftest.err
17172: rm -f conftest.er1
17173: cat conftest.err >&5
1.16 millert 17174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17175: (exit $ac_status); } && {
! 17176: test -z "$ac_c_werror_flag" ||
! 17177: test ! -s conftest.err
! 17178: } && test -s conftest.$ac_objext; then
! 17179: ac_cv_member_struct_stat_st_mtim=yes
1.1 millert 17180: else
1.23 millert 17181: echo "$as_me: failed program was:" >&5
1.16 millert 17182: sed 's/^/| /' conftest.$ac_ext >&5
17183:
1.27 ! millert 17184: ac_cv_member_struct_stat_st_mtim=no
1.25 millert 17185: fi
17186:
1.27 ! millert 17187: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 17188: fi
17189:
1.27 ! millert 17190: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 17191: fi
1.27 ! millert 17192: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
! 17193: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
! 17194: if test $ac_cv_member_struct_stat_st_mtim = yes; then
! 17195: cat >>confdefs.h <<\_ACEOF
! 17196: #define HAVE_ST_MTIM 1
! 17197: _ACEOF
1.25 millert 17198:
1.27 ! millert 17199: else
! 17200: { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
! 17201: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
! 17202: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9 millert 17203: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17204: else
1.9 millert 17205: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17206: /* confdefs.h. */
17207: _ACEOF
17208: cat confdefs.h >>conftest.$ac_ext
17209: cat >>conftest.$ac_ext <<_ACEOF
17210: /* end confdefs.h. */
1.27 ! millert 17211: $ac_includes_default
1.23 millert 17212: int
17213: main ()
17214: {
1.27 ! millert 17215: static struct stat ac_aggr;
! 17216: if (ac_aggr.st_mtimespec)
! 17217: return 0;
1.23 millert 17218: ;
17219: return 0;
1.1 millert 17220: }
1.9 millert 17221: _ACEOF
1.27 ! millert 17222: rm -f conftest.$ac_objext
! 17223: if { (ac_try="$ac_compile"
! 17224: case "(($ac_try" in
! 17225: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17226: *) ac_try_echo=$ac_try;;
! 17227: esac
! 17228: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17229: (eval "$ac_compile") 2>conftest.er1
1.9 millert 17230: ac_status=$?
1.25 millert 17231: grep -v '^ *+' conftest.er1 >conftest.err
17232: rm -f conftest.er1
17233: cat conftest.err >&5
1.16 millert 17234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17235: (exit $ac_status); } && {
! 17236: test -z "$ac_c_werror_flag" ||
! 17237: test ! -s conftest.err
! 17238: } && test -s conftest.$ac_objext; then
! 17239: ac_cv_member_struct_stat_st_mtimespec=yes
1.1 millert 17240: else
1.23 millert 17241: echo "$as_me: failed program was:" >&5
1.16 millert 17242: sed 's/^/| /' conftest.$ac_ext >&5
17243:
1.27 ! millert 17244: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17245: /* confdefs.h. */
17246: _ACEOF
17247: cat confdefs.h >>conftest.$ac_ext
17248: cat >>conftest.$ac_ext <<_ACEOF
17249: /* end confdefs.h. */
1.27 ! millert 17250: $ac_includes_default
1.9 millert 17251: int
17252: main ()
17253: {
1.27 ! millert 17254: static struct stat ac_aggr;
! 17255: if (sizeof ac_aggr.st_mtimespec)
! 17256: return 0;
1.9 millert 17257: ;
17258: return 0;
17259: }
17260: _ACEOF
1.27 ! millert 17261: rm -f conftest.$ac_objext
! 17262: if { (ac_try="$ac_compile"
! 17263: case "(($ac_try" in
! 17264: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17265: *) ac_try_echo=$ac_try;;
! 17266: esac
! 17267: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17268: (eval "$ac_compile") 2>conftest.er1
1.9 millert 17269: ac_status=$?
1.25 millert 17270: grep -v '^ *+' conftest.er1 >conftest.err
17271: rm -f conftest.er1
17272: cat conftest.err >&5
1.16 millert 17273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17274: (exit $ac_status); } && {
! 17275: test -z "$ac_c_werror_flag" ||
! 17276: test ! -s conftest.err
! 17277: } && test -s conftest.$ac_objext; then
! 17278: ac_cv_member_struct_stat_st_mtimespec=yes
1.16 millert 17279: else
17280: echo "$as_me: failed program was:" >&5
17281: sed 's/^/| /' conftest.$ac_ext >&5
17282:
1.27 ! millert 17283: ac_cv_member_struct_stat_st_mtimespec=no
! 17284: fi
! 17285:
! 17286: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 17287: fi
! 17288:
! 17289: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 17290: fi
! 17291: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
! 17292: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
! 17293: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
! 17294: cat >>confdefs.h <<\_ACEOF
! 17295: #define HAVE_ST_MTIMESPEC 1
! 17296: _ACEOF
! 17297:
1.16 millert 17298: fi
1.27 ! millert 17299:
1.16 millert 17300: fi
1.27 ! millert 17301:
! 17302: { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
! 17303: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
! 17304: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17305: /* confdefs.h. */
17306: _ACEOF
17307: cat confdefs.h >>conftest.$ac_ext
17308: cat >>conftest.$ac_ext <<_ACEOF
17309: /* end confdefs.h. */
1.27 ! millert 17310: #include <sys/types.h>
! 17311: #include <sys/time.h>
1.16 millert 17312: int
17313: main ()
17314: {
1.27 ! millert 17315: struct timespec ts1, ts2;
! 17316: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
! 17317: #ifndef timespecsub
! 17318: #error missing timespecsub
! 17319: #endif
! 17320: timespecsub(&ts1, &ts2);
1.16 millert 17321: ;
17322: return 0;
17323: }
17324: _ACEOF
1.27 ! millert 17325: rm -f conftest.$ac_objext
! 17326: if { (ac_try="$ac_compile"
! 17327: case "(($ac_try" in
! 17328: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17329: *) ac_try_echo=$ac_try;;
! 17330: esac
! 17331: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17332: (eval "$ac_compile") 2>conftest.er1
1.16 millert 17333: ac_status=$?
1.25 millert 17334: grep -v '^ *+' conftest.er1 >conftest.err
17335: rm -f conftest.er1
17336: cat conftest.err >&5
1.16 millert 17337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17338: (exit $ac_status); } && {
! 17339: test -z "$ac_c_werror_flag" ||
! 17340: test ! -s conftest.err
! 17341: } && test -s conftest.$ac_objext; then
! 17342: cat >>confdefs.h <<\_ACEOF
! 17343: #define HAVE_TIMESPECSUB2 1
! 17344: _ACEOF
! 17345:
! 17346: { echo "$as_me:$LINENO: result: yes" >&5
! 17347: echo "${ECHO_T}yes" >&6; }
1.1 millert 17348: else
1.9 millert 17349: echo "$as_me: failed program was:" >&5
1.16 millert 17350: sed 's/^/| /' conftest.$ac_ext >&5
17351:
1.27 ! millert 17352: { echo "$as_me:$LINENO: result: no" >&5
! 17353: echo "${ECHO_T}no" >&6; }
1.1 millert 17354: fi
1.27 ! millert 17355:
! 17356: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 17357: fi
1.25 millert 17358: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17359: /* confdefs.h. */
17360: _ACEOF
17361: cat confdefs.h >>conftest.$ac_ext
17362: cat >>conftest.$ac_ext <<_ACEOF
17363: /* end confdefs.h. */
1.27 ! millert 17364: #include <sys/types.h>
! 17365: #include <$ac_header_dirent>
1.16 millert 17366: int
17367: main ()
17368: {
1.27 ! millert 17369: DIR d; (void)dirfd(&d);
1.9 millert 17370: ;
17371: return 0;
17372: }
17373: _ACEOF
17374: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17375: if { (ac_try="$ac_link"
! 17376: case "(($ac_try" in
! 17377: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17378: *) ac_try_echo=$ac_try;;
! 17379: esac
! 17380: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17381: (eval "$ac_link") 2>conftest.er1
1.9 millert 17382: ac_status=$?
1.25 millert 17383: grep -v '^ *+' conftest.er1 >conftest.err
17384: rm -f conftest.er1
17385: cat conftest.err >&5
1.16 millert 17386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17387: (exit $ac_status); } && {
! 17388: test -z "$ac_c_werror_flag" ||
! 17389: test ! -s conftest.err
! 17390: } && test -s conftest$ac_exeext &&
! 17391: $as_test_x conftest$ac_exeext; then
! 17392: cat >>confdefs.h <<\_ACEOF
! 17393: #define HAVE_DIRFD 1
! 17394: _ACEOF
! 17395:
1.9 millert 17396: else
17397: echo "$as_me: failed program was:" >&5
1.16 millert 17398: sed 's/^/| /' conftest.$ac_ext >&5
17399:
1.27 ! millert 17400: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17401: /* confdefs.h. */
17402: _ACEOF
17403: cat confdefs.h >>conftest.$ac_ext
17404: cat >>conftest.$ac_ext <<_ACEOF
17405: /* end confdefs.h. */
1.27 ! millert 17406: #include <sys/types.h>
! 17407: #include <$ac_header_dirent>
1.16 millert 17408: int
17409: main ()
17410: {
1.27 ! millert 17411: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9 millert 17412: ;
17413: return 0;
17414: }
17415: _ACEOF
17416: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17417: if { (ac_try="$ac_link"
! 17418: case "(($ac_try" in
! 17419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17420: *) ac_try_echo=$ac_try;;
! 17421: esac
! 17422: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17423: (eval "$ac_link") 2>conftest.er1
1.9 millert 17424: ac_status=$?
1.25 millert 17425: grep -v '^ *+' conftest.er1 >conftest.err
17426: rm -f conftest.er1
17427: cat conftest.err >&5
1.16 millert 17428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17429: (exit $ac_status); } && {
! 17430: test -z "$ac_c_werror_flag" ||
! 17431: test ! -s conftest.err
! 17432: } && test -s conftest$ac_exeext &&
! 17433: $as_test_x conftest$ac_exeext; then
! 17434: cat >>confdefs.h <<\_ACEOF
! 17435: #define HAVE_DD_FD 1
! 17436: _ACEOF
! 17437:
1.9 millert 17438: else
17439: echo "$as_me: failed program was:" >&5
1.16 millert 17440: sed 's/^/| /' conftest.$ac_ext >&5
17441:
1.25 millert 17442:
1.9 millert 17443: fi
1.25 millert 17444:
1.27 ! millert 17445: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17446: conftest$ac_exeext conftest.$ac_ext
1.1 millert 17447: fi
17448:
1.27 ! millert 17449: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17450: conftest$ac_exeext conftest.$ac_ext
! 17451: if test -n "$NEED_SNPRINTF"; then
! 17452: case " $LIBOBJS " in
! 17453: *" snprintf.$ac_objext "* ) ;;
! 17454: *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
! 17455: ;;
! 17456: esac
1.1 millert 17457:
1.25 millert 17458: fi
1.27 ! millert 17459: { echo "$as_me:$LINENO: checking for socket" >&5
! 17460: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
! 17461: if test "${ac_cv_func_socket+set}" = set; then
1.9 millert 17462: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17463: else
1.9 millert 17464: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17465: /* confdefs.h. */
17466: _ACEOF
17467: cat confdefs.h >>conftest.$ac_ext
17468: cat >>conftest.$ac_ext <<_ACEOF
17469: /* end confdefs.h. */
1.27 ! millert 17470: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25 millert 17471: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 ! millert 17472: #define socket innocuous_socket
1.25 millert 17473:
1.1 millert 17474: /* System header to define __stub macros and hopefully few prototypes,
1.27 ! millert 17475: which can conflict with char socket (); below.
1.16 millert 17476: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477: <limits.h> exists even on freestanding compilers. */
1.25 millert 17478:
1.16 millert 17479: #ifdef __STDC__
17480: # include <limits.h>
17481: #else
17482: # include <assert.h>
17483: #endif
1.25 millert 17484:
1.27 ! millert 17485: #undef socket
1.25 millert 17486:
1.27 ! millert 17487: /* Override any GCC internal prototype to avoid an error.
! 17488: Use char because int might match the return type of a GCC
! 17489: builtin and then its argument prototype would still apply. */
1.9 millert 17490: #ifdef __cplusplus
17491: extern "C"
17492: #endif
1.27 ! millert 17493: char socket ();
1.1 millert 17494: /* The GNU C library defines this for functions which it implements
17495: to always fail with ENOSYS. Some functions are actually named
17496: something starting with __ and the normal name is an alias. */
1.27 ! millert 17497: #if defined __stub_socket || defined __stub___socket
1.1 millert 17498: choke me
17499: #endif
17500:
1.16 millert 17501: int
17502: main ()
17503: {
1.27 ! millert 17504: return socket ();
1.9 millert 17505: ;
17506: return 0;
17507: }
17508: _ACEOF
17509: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17510: if { (ac_try="$ac_link"
! 17511: case "(($ac_try" in
! 17512: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17513: *) ac_try_echo=$ac_try;;
! 17514: esac
! 17515: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17516: (eval "$ac_link") 2>conftest.er1
1.13 millert 17517: ac_status=$?
1.25 millert 17518: grep -v '^ *+' conftest.er1 >conftest.err
17519: rm -f conftest.er1
17520: cat conftest.err >&5
1.16 millert 17521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17522: (exit $ac_status); } && {
! 17523: test -z "$ac_c_werror_flag" ||
! 17524: test ! -s conftest.err
! 17525: } && test -s conftest$ac_exeext &&
! 17526: $as_test_x conftest$ac_exeext; then
! 17527: ac_cv_func_socket=yes
1.13 millert 17528: else
17529: echo "$as_me: failed program was:" >&5
1.16 millert 17530: sed 's/^/| /' conftest.$ac_ext >&5
17531:
1.27 ! millert 17532: ac_cv_func_socket=no
1.13 millert 17533: fi
1.27 ! millert 17534:
! 17535: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17536: conftest$ac_exeext conftest.$ac_ext
1.13 millert 17537: fi
1.27 ! millert 17538: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
! 17539: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
! 17540: if test $ac_cv_func_socket = yes; then
1.25 millert 17541: :
17542: else
1.27 ! millert 17543: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 17544: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
! 17545: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13 millert 17546: echo $ECHO_N "(cached) $ECHO_C" >&6
17547: else
1.25 millert 17548: ac_check_lib_save_LIBS=$LIBS
17549: LIBS="-lsocket $LIBS"
17550: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17551: /* confdefs.h. */
17552: _ACEOF
17553: cat confdefs.h >>conftest.$ac_ext
17554: cat >>conftest.$ac_ext <<_ACEOF
17555: /* end confdefs.h. */
1.25 millert 17556:
1.27 ! millert 17557: /* Override any GCC internal prototype to avoid an error.
! 17558: Use char because int might match the return type of a GCC
! 17559: builtin and then its argument prototype would still apply. */
1.13 millert 17560: #ifdef __cplusplus
17561: extern "C"
17562: #endif
1.27 ! millert 17563: char socket ();
1.16 millert 17564: int
17565: main ()
17566: {
1.27 ! millert 17567: return socket ();
1.13 millert 17568: ;
17569: return 0;
17570: }
17571: _ACEOF
17572: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17573: if { (ac_try="$ac_link"
! 17574: case "(($ac_try" in
! 17575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17576: *) ac_try_echo=$ac_try;;
! 17577: esac
! 17578: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17579: (eval "$ac_link") 2>conftest.er1
1.9 millert 17580: ac_status=$?
1.25 millert 17581: grep -v '^ *+' conftest.er1 >conftest.err
17582: rm -f conftest.er1
17583: cat conftest.err >&5
1.16 millert 17584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17585: (exit $ac_status); } && {
! 17586: test -z "$ac_c_werror_flag" ||
! 17587: test ! -s conftest.err
! 17588: } && test -s conftest$ac_exeext &&
! 17589: $as_test_x conftest$ac_exeext; then
! 17590: ac_cv_lib_socket_socket=yes
1.9 millert 17591: else
17592: echo "$as_me: failed program was:" >&5
1.16 millert 17593: sed 's/^/| /' conftest.$ac_ext >&5
17594:
1.27 ! millert 17595: ac_cv_lib_socket_socket=no
1.9 millert 17596: fi
1.27 ! millert 17597:
! 17598: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17599: conftest$ac_exeext conftest.$ac_ext
17600: LIBS=$ac_check_lib_save_LIBS
1.9 millert 17601: fi
1.27 ! millert 17602: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
! 17603: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
! 17604: if test $ac_cv_lib_socket_socket = yes; then
1.25 millert 17605: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17606: else
1.27 ! millert 17607: { echo "$as_me:$LINENO: checking for socket in -linet" >&5
! 17608: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
! 17609: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9 millert 17610: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17611: else
1.25 millert 17612: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 17613: LIBS="-linet $LIBS"
1.25 millert 17614: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17615: /* confdefs.h. */
17616: _ACEOF
17617: cat confdefs.h >>conftest.$ac_ext
17618: cat >>conftest.$ac_ext <<_ACEOF
17619: /* end confdefs.h. */
1.25 millert 17620:
1.27 ! millert 17621: /* Override any GCC internal prototype to avoid an error.
! 17622: Use char because int might match the return type of a GCC
! 17623: builtin and then its argument prototype would still apply. */
1.9 millert 17624: #ifdef __cplusplus
17625: extern "C"
1.1 millert 17626: #endif
1.27 ! millert 17627: char socket ();
1.16 millert 17628: int
17629: main ()
17630: {
1.27 ! millert 17631: return socket ();
1.9 millert 17632: ;
17633: return 0;
17634: }
17635: _ACEOF
17636: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17637: if { (ac_try="$ac_link"
! 17638: case "(($ac_try" in
! 17639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17640: *) ac_try_echo=$ac_try;;
! 17641: esac
! 17642: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17643: (eval "$ac_link") 2>conftest.er1
1.9 millert 17644: ac_status=$?
1.25 millert 17645: grep -v '^ *+' conftest.er1 >conftest.err
17646: rm -f conftest.er1
17647: cat conftest.err >&5
1.16 millert 17648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17649: (exit $ac_status); } && {
! 17650: test -z "$ac_c_werror_flag" ||
! 17651: test ! -s conftest.err
! 17652: } && test -s conftest$ac_exeext &&
! 17653: $as_test_x conftest$ac_exeext; then
! 17654: ac_cv_lib_inet_socket=yes
1.23 millert 17655: else
17656: echo "$as_me: failed program was:" >&5
17657: sed 's/^/| /' conftest.$ac_ext >&5
17658:
1.27 ! millert 17659: ac_cv_lib_inet_socket=no
1.23 millert 17660: fi
1.27 ! millert 17661:
! 17662: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17663: conftest$ac_exeext conftest.$ac_ext
17664: LIBS=$ac_check_lib_save_LIBS
1.23 millert 17665: fi
1.27 ! millert 17666: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
! 17667: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
! 17668: if test $ac_cv_lib_inet_socket = yes; then
! 17669: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23 millert 17670: else
1.27 ! millert 17671: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
! 17672: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
! 17673: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 17674: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
! 17675: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23 millert 17676: echo $ECHO_N "(cached) $ECHO_C" >&6
17677: else
17678: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 17679: LIBS="-lsocket -lnsl $LIBS"
1.23 millert 17680: cat >conftest.$ac_ext <<_ACEOF
17681: /* confdefs.h. */
17682: _ACEOF
17683: cat confdefs.h >>conftest.$ac_ext
17684: cat >>conftest.$ac_ext <<_ACEOF
17685: /* end confdefs.h. */
17686:
1.27 ! millert 17687: /* Override any GCC internal prototype to avoid an error.
! 17688: Use char because int might match the return type of a GCC
! 17689: builtin and then its argument prototype would still apply. */
1.23 millert 17690: #ifdef __cplusplus
17691: extern "C"
17692: #endif
1.27 ! millert 17693: char socket ();
1.23 millert 17694: int
17695: main ()
17696: {
1.27 ! millert 17697: return socket ();
1.23 millert 17698: ;
17699: return 0;
17700: }
17701: _ACEOF
17702: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17703: if { (ac_try="$ac_link"
! 17704: case "(($ac_try" in
! 17705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17706: *) ac_try_echo=$ac_try;;
! 17707: esac
! 17708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17709: (eval "$ac_link") 2>conftest.er1
1.23 millert 17710: ac_status=$?
1.25 millert 17711: grep -v '^ *+' conftest.er1 >conftest.err
17712: rm -f conftest.er1
17713: cat conftest.err >&5
1.23 millert 17714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17715: (exit $ac_status); } && {
! 17716: test -z "$ac_c_werror_flag" ||
! 17717: test ! -s conftest.err
! 17718: } && test -s conftest$ac_exeext &&
! 17719: $as_test_x conftest$ac_exeext; then
! 17720: ac_cv_lib_socket_socket_lnsl=yes
1.23 millert 17721: else
17722: echo "$as_me: failed program was:" >&5
17723: sed 's/^/| /' conftest.$ac_ext >&5
17724:
1.27 ! millert 17725: ac_cv_lib_socket_socket_lnsl=no
1.23 millert 17726: fi
1.27 ! millert 17727:
! 17728: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17729: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17730: LIBS=$ac_check_lib_save_LIBS
17731: fi
1.27 ! millert 17732: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
! 17733: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
! 17734: if test $ac_cv_lib_socket_socket_lnsl = yes; then
! 17735: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23 millert 17736: fi
1.16 millert 17737:
1.23 millert 17738: fi
17739:
17740: fi
1.1 millert 17741:
17742: fi
17743:
1.27 ! millert 17744: { echo "$as_me:$LINENO: checking for inet_addr" >&5
! 17745: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
! 17746: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9 millert 17747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17748: else
1.9 millert 17749: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17750: /* confdefs.h. */
17751: _ACEOF
17752: cat confdefs.h >>conftest.$ac_ext
17753: cat >>conftest.$ac_ext <<_ACEOF
17754: /* end confdefs.h. */
1.27 ! millert 17755: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
! 17756: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17757: #define inet_addr innocuous_inet_addr
! 17758:
! 17759: /* System header to define __stub macros and hopefully few prototypes,
! 17760: which can conflict with char inet_addr (); below.
! 17761: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17762: <limits.h> exists even on freestanding compilers. */
! 17763:
! 17764: #ifdef __STDC__
! 17765: # include <limits.h>
! 17766: #else
! 17767: # include <assert.h>
! 17768: #endif
! 17769:
! 17770: #undef inet_addr
! 17771:
! 17772: /* Override any GCC internal prototype to avoid an error.
! 17773: Use char because int might match the return type of a GCC
! 17774: builtin and then its argument prototype would still apply. */
! 17775: #ifdef __cplusplus
! 17776: extern "C"
! 17777: #endif
! 17778: char inet_addr ();
! 17779: /* The GNU C library defines this for functions which it implements
! 17780: to always fail with ENOSYS. Some functions are actually named
! 17781: something starting with __ and the normal name is an alias. */
! 17782: #if defined __stub_inet_addr || defined __stub___inet_addr
! 17783: choke me
! 17784: #endif
! 17785:
1.16 millert 17786: int
17787: main ()
17788: {
1.27 ! millert 17789: return inet_addr ();
1.9 millert 17790: ;
17791: return 0;
17792: }
17793: _ACEOF
17794: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17795: if { (ac_try="$ac_link"
! 17796: case "(($ac_try" in
! 17797: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17798: *) ac_try_echo=$ac_try;;
! 17799: esac
! 17800: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17801: (eval "$ac_link") 2>conftest.er1
1.9 millert 17802: ac_status=$?
1.25 millert 17803: grep -v '^ *+' conftest.er1 >conftest.err
17804: rm -f conftest.er1
17805: cat conftest.err >&5
1.16 millert 17806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17807: (exit $ac_status); } && {
! 17808: test -z "$ac_c_werror_flag" ||
! 17809: test ! -s conftest.err
! 17810: } && test -s conftest$ac_exeext &&
! 17811: $as_test_x conftest$ac_exeext; then
! 17812: ac_cv_func_inet_addr=yes
1.9 millert 17813: else
17814: echo "$as_me: failed program was:" >&5
1.16 millert 17815: sed 's/^/| /' conftest.$ac_ext >&5
17816:
1.27 ! millert 17817: ac_cv_func_inet_addr=no
1.9 millert 17818: fi
1.27 ! millert 17819:
! 17820: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17821: conftest$ac_exeext conftest.$ac_ext
1.9 millert 17822: fi
1.27 ! millert 17823: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
! 17824: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
! 17825: if test $ac_cv_func_inet_addr = yes; then
! 17826: :
! 17827: else
! 17828: { echo "$as_me:$LINENO: checking for __inet_addr" >&5
! 17829: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
! 17830: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9 millert 17831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17832: else
1.9 millert 17833: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17834: /* confdefs.h. */
17835: _ACEOF
17836: cat confdefs.h >>conftest.$ac_ext
17837: cat >>conftest.$ac_ext <<_ACEOF
17838: /* end confdefs.h. */
1.27 ! millert 17839: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
! 17840: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17841: #define __inet_addr innocuous___inet_addr
! 17842:
! 17843: /* System header to define __stub macros and hopefully few prototypes,
! 17844: which can conflict with char __inet_addr (); below.
! 17845: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17846: <limits.h> exists even on freestanding compilers. */
! 17847:
! 17848: #ifdef __STDC__
! 17849: # include <limits.h>
1.16 millert 17850: #else
1.27 ! millert 17851: # include <assert.h>
! 17852: #endif
! 17853:
! 17854: #undef __inet_addr
! 17855:
! 17856: /* Override any GCC internal prototype to avoid an error.
! 17857: Use char because int might match the return type of a GCC
! 17858: builtin and then its argument prototype would still apply. */
! 17859: #ifdef __cplusplus
! 17860: extern "C"
! 17861: #endif
! 17862: char __inet_addr ();
! 17863: /* The GNU C library defines this for functions which it implements
! 17864: to always fail with ENOSYS. Some functions are actually named
! 17865: something starting with __ and the normal name is an alias. */
! 17866: #if defined __stub___inet_addr || defined __stub_____inet_addr
! 17867: choke me
1.1 millert 17868: #endif
17869:
1.16 millert 17870: int
17871: main ()
17872: {
1.27 ! millert 17873: return __inet_addr ();
1.9 millert 17874: ;
17875: return 0;
17876: }
17877: _ACEOF
17878: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 17879: if { (ac_try="$ac_link"
! 17880: case "(($ac_try" in
! 17881: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17882: *) ac_try_echo=$ac_try;;
! 17883: esac
! 17884: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17885: (eval "$ac_link") 2>conftest.er1
1.9 millert 17886: ac_status=$?
1.25 millert 17887: grep -v '^ *+' conftest.er1 >conftest.err
17888: rm -f conftest.er1
17889: cat conftest.err >&5
1.16 millert 17890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 17891: (exit $ac_status); } && {
! 17892: test -z "$ac_c_werror_flag" ||
! 17893: test ! -s conftest.err
! 17894: } && test -s conftest$ac_exeext &&
! 17895: $as_test_x conftest$ac_exeext; then
! 17896: ac_cv_func___inet_addr=yes
1.9 millert 17897: else
17898: echo "$as_me: failed program was:" >&5
1.16 millert 17899: sed 's/^/| /' conftest.$ac_ext >&5
17900:
1.27 ! millert 17901: ac_cv_func___inet_addr=no
1.9 millert 17902: fi
1.27 ! millert 17903:
! 17904: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17905: conftest$ac_exeext conftest.$ac_ext
1.9 millert 17906: fi
1.27 ! millert 17907: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
! 17908: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
! 17909: if test $ac_cv_func___inet_addr = yes; then
! 17910: :
1.25 millert 17911: else
1.27 ! millert 17912: { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
! 17913: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
! 17914: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25 millert 17915: echo $ECHO_N "(cached) $ECHO_C" >&6
17916: else
1.27 ! millert 17917: ac_check_lib_save_LIBS=$LIBS
! 17918: LIBS="-lnsl $LIBS"
! 17919: cat >conftest.$ac_ext <<_ACEOF
1.25 millert 17920: /* confdefs.h. */
17921: _ACEOF
17922: cat confdefs.h >>conftest.$ac_ext
17923: cat >>conftest.$ac_ext <<_ACEOF
17924: /* end confdefs.h. */
1.27 ! millert 17925:
! 17926: /* Override any GCC internal prototype to avoid an error.
! 17927: Use char because int might match the return type of a GCC
! 17928: builtin and then its argument prototype would still apply. */
! 17929: #ifdef __cplusplus
! 17930: extern "C"
1.25 millert 17931: #endif
1.27 ! millert 17932: char inet_addr ();
! 17933: int
! 17934: main ()
! 17935: {
! 17936: return inet_addr ();
! 17937: ;
! 17938: return 0;
! 17939: }
1.16 millert 17940: _ACEOF
1.27 ! millert 17941: rm -f conftest.$ac_objext conftest$ac_exeext
! 17942: if { (ac_try="$ac_link"
! 17943: case "(($ac_try" in
! 17944: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17945: *) ac_try_echo=$ac_try;;
! 17946: esac
! 17947: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17948: (eval "$ac_link") 2>conftest.er1
! 17949: ac_status=$?
! 17950: grep -v '^ *+' conftest.er1 >conftest.err
! 17951: rm -f conftest.er1
! 17952: cat conftest.err >&5
! 17953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17954: (exit $ac_status); } && {
! 17955: test -z "$ac_c_werror_flag" ||
! 17956: test ! -s conftest.err
! 17957: } && test -s conftest$ac_exeext &&
! 17958: $as_test_x conftest$ac_exeext; then
! 17959: ac_cv_lib_nsl_inet_addr=yes
1.25 millert 17960: else
1.27 ! millert 17961: echo "$as_me: failed program was:" >&5
! 17962: sed 's/^/| /' conftest.$ac_ext >&5
! 17963:
! 17964: ac_cv_lib_nsl_inet_addr=no
1.1 millert 17965: fi
17966:
1.27 ! millert 17967: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17968: conftest$ac_exeext conftest.$ac_ext
! 17969: LIBS=$ac_check_lib_save_LIBS
1.25 millert 17970: fi
1.27 ! millert 17971: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
! 17972: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
! 17973: if test $ac_cv_lib_nsl_inet_addr = yes; then
! 17974: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
! 17975: else
! 17976: { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
! 17977: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
! 17978: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9 millert 17979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17980: else
1.27 ! millert 17981: ac_check_lib_save_LIBS=$LIBS
! 17982: LIBS="-linet $LIBS"
! 17983: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17984: /* confdefs.h. */
17985: _ACEOF
17986: cat confdefs.h >>conftest.$ac_ext
17987: cat >>conftest.$ac_ext <<_ACEOF
17988: /* end confdefs.h. */
1.25 millert 17989:
1.27 ! millert 17990: /* Override any GCC internal prototype to avoid an error.
! 17991: Use char because int might match the return type of a GCC
! 17992: builtin and then its argument prototype would still apply. */
1.9 millert 17993: #ifdef __cplusplus
17994: extern "C"
17995: #endif
1.27 ! millert 17996: char inet_addr ();
1.16 millert 17997: int
17998: main ()
17999: {
1.27 ! millert 18000: return inet_addr ();
1.9 millert 18001: ;
18002: return 0;
18003: }
18004: _ACEOF
18005: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18006: if { (ac_try="$ac_link"
! 18007: case "(($ac_try" in
! 18008: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18009: *) ac_try_echo=$ac_try;;
! 18010: esac
! 18011: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18012: (eval "$ac_link") 2>conftest.er1
1.9 millert 18013: ac_status=$?
1.25 millert 18014: grep -v '^ *+' conftest.er1 >conftest.err
18015: rm -f conftest.er1
18016: cat conftest.err >&5
1.16 millert 18017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18018: (exit $ac_status); } && {
! 18019: test -z "$ac_c_werror_flag" ||
! 18020: test ! -s conftest.err
! 18021: } && test -s conftest$ac_exeext &&
! 18022: $as_test_x conftest$ac_exeext; then
! 18023: ac_cv_lib_inet_inet_addr=yes
1.9 millert 18024: else
18025: echo "$as_me: failed program was:" >&5
1.16 millert 18026: sed 's/^/| /' conftest.$ac_ext >&5
18027:
1.27 ! millert 18028: ac_cv_lib_inet_inet_addr=no
1.9 millert 18029: fi
1.27 ! millert 18030:
! 18031: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18032: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 18033: LIBS=$ac_check_lib_save_LIBS
1.9 millert 18034: fi
1.27 ! millert 18035: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
! 18036: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
! 18037: if test $ac_cv_lib_inet_inet_addr = yes; then
! 18038: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
! 18039: else
! 18040: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
! 18041: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
! 18042: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
! 18043: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
! 18044: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23 millert 18045: echo $ECHO_N "(cached) $ECHO_C" >&6
18046: else
1.27 ! millert 18047: ac_check_lib_save_LIBS=$LIBS
! 18048: LIBS="-lsocket -lnsl $LIBS"
! 18049: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 18050: /* confdefs.h. */
18051: _ACEOF
18052: cat confdefs.h >>conftest.$ac_ext
18053: cat >>conftest.$ac_ext <<_ACEOF
18054: /* end confdefs.h. */
18055:
1.27 ! millert 18056: /* Override any GCC internal prototype to avoid an error.
! 18057: Use char because int might match the return type of a GCC
! 18058: builtin and then its argument prototype would still apply. */
! 18059: #ifdef __cplusplus
! 18060: extern "C"
! 18061: #endif
! 18062: char inet_addr ();
1.25 millert 18063: int
18064: main ()
18065: {
1.27 ! millert 18066: return inet_addr ();
! 18067: ;
! 18068: return 0;
1.25 millert 18069: }
1.23 millert 18070: _ACEOF
1.27 ! millert 18071: rm -f conftest.$ac_objext conftest$ac_exeext
! 18072: if { (ac_try="$ac_link"
! 18073: case "(($ac_try" in
! 18074: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18075: *) ac_try_echo=$ac_try;;
! 18076: esac
! 18077: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18078: (eval "$ac_link") 2>conftest.er1
1.23 millert 18079: ac_status=$?
1.27 ! millert 18080: grep -v '^ *+' conftest.er1 >conftest.err
! 18081: rm -f conftest.er1
! 18082: cat conftest.err >&5
1.23 millert 18083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18084: (exit $ac_status); } && {
! 18085: test -z "$ac_c_werror_flag" ||
! 18086: test ! -s conftest.err
! 18087: } && test -s conftest$ac_exeext &&
! 18088: $as_test_x conftest$ac_exeext; then
! 18089: ac_cv_lib_socket_inet_addr_lnsl=yes
1.23 millert 18090: else
1.27 ! millert 18091: echo "$as_me: failed program was:" >&5
1.23 millert 18092: sed 's/^/| /' conftest.$ac_ext >&5
18093:
1.27 ! millert 18094: ac_cv_lib_socket_inet_addr_lnsl=no
1.23 millert 18095: fi
1.27 ! millert 18096:
! 18097: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18098: conftest$ac_exeext conftest.$ac_ext
! 18099: LIBS=$ac_check_lib_save_LIBS
1.23 millert 18100: fi
1.27 ! millert 18101: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
! 18102: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
! 18103: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
! 18104: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23 millert 18105: fi
1.25 millert 18106:
1.27 ! millert 18107: fi
1.16 millert 18108:
1.27 ! millert 18109: fi
1.25 millert 18110:
1.23 millert 18111: fi
1.16 millert 18112:
1.9 millert 18113: fi
1.23 millert 18114:
1.27 ! millert 18115: { echo "$as_me:$LINENO: checking for syslog" >&5
! 18116: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
! 18117: if test "${ac_cv_func_syslog+set}" = set; then
1.9 millert 18118: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18119: else
1.9 millert 18120: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18121: /* confdefs.h. */
18122: _ACEOF
18123: cat confdefs.h >>conftest.$ac_ext
18124: cat >>conftest.$ac_ext <<_ACEOF
18125: /* end confdefs.h. */
1.27 ! millert 18126: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25 millert 18127: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 ! millert 18128: #define syslog innocuous_syslog
1.25 millert 18129:
1.16 millert 18130: /* System header to define __stub macros and hopefully few prototypes,
1.27 ! millert 18131: which can conflict with char syslog (); below.
1.16 millert 18132: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18133: <limits.h> exists even on freestanding compilers. */
1.25 millert 18134:
1.16 millert 18135: #ifdef __STDC__
18136: # include <limits.h>
18137: #else
18138: # include <assert.h>
18139: #endif
1.25 millert 18140:
1.27 ! millert 18141: #undef syslog
1.25 millert 18142:
1.27 ! millert 18143: /* Override any GCC internal prototype to avoid an error.
! 18144: Use char because int might match the return type of a GCC
! 18145: builtin and then its argument prototype would still apply. */
1.9 millert 18146: #ifdef __cplusplus
18147: extern "C"
18148: #endif
1.27 ! millert 18149: char syslog ();
1.1 millert 18150: /* The GNU C library defines this for functions which it implements
18151: to always fail with ENOSYS. Some functions are actually named
18152: something starting with __ and the normal name is an alias. */
1.27 ! millert 18153: #if defined __stub_syslog || defined __stub___syslog
1.1 millert 18154: choke me
18155: #endif
18156:
1.16 millert 18157: int
18158: main ()
18159: {
1.27 ! millert 18160: return syslog ();
1.9 millert 18161: ;
18162: return 0;
18163: }
18164: _ACEOF
18165: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18166: if { (ac_try="$ac_link"
! 18167: case "(($ac_try" in
! 18168: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18169: *) ac_try_echo=$ac_try;;
! 18170: esac
! 18171: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18172: (eval "$ac_link") 2>conftest.er1
1.9 millert 18173: ac_status=$?
1.25 millert 18174: grep -v '^ *+' conftest.er1 >conftest.err
18175: rm -f conftest.er1
18176: cat conftest.err >&5
1.16 millert 18177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18178: (exit $ac_status); } && {
! 18179: test -z "$ac_c_werror_flag" ||
! 18180: test ! -s conftest.err
! 18181: } && test -s conftest$ac_exeext &&
! 18182: $as_test_x conftest$ac_exeext; then
! 18183: ac_cv_func_syslog=yes
1.9 millert 18184: else
18185: echo "$as_me: failed program was:" >&5
1.16 millert 18186: sed 's/^/| /' conftest.$ac_ext >&5
18187:
1.27 ! millert 18188: ac_cv_func_syslog=no
1.9 millert 18189: fi
1.27 ! millert 18190:
! 18191: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18192: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18193: fi
1.27 ! millert 18194: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
! 18195: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
! 18196: if test $ac_cv_func_syslog = yes; then
! 18197: :
1.23 millert 18198: else
1.27 ! millert 18199: { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
! 18200: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
! 18201: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9 millert 18202: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18203: else
1.27 ! millert 18204: ac_check_lib_save_LIBS=$LIBS
! 18205: LIBS="-lsocket $LIBS"
! 18206: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18207: /* confdefs.h. */
18208: _ACEOF
18209: cat confdefs.h >>conftest.$ac_ext
18210: cat >>conftest.$ac_ext <<_ACEOF
18211: /* end confdefs.h. */
1.25 millert 18212:
1.27 ! millert 18213: /* Override any GCC internal prototype to avoid an error.
! 18214: Use char because int might match the return type of a GCC
! 18215: builtin and then its argument prototype would still apply. */
! 18216: #ifdef __cplusplus
! 18217: extern "C"
! 18218: #endif
! 18219: char syslog ();
1.25 millert 18220: int
18221: main ()
1.16 millert 18222: {
1.27 ! millert 18223: return syslog ();
1.25 millert 18224: ;
18225: return 0;
1.9 millert 18226: }
18227: _ACEOF
1.25 millert 18228: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18229: if { (ac_try="$ac_link"
! 18230: case "(($ac_try" in
! 18231: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18232: *) ac_try_echo=$ac_try;;
! 18233: esac
! 18234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18235: (eval "$ac_link") 2>conftest.er1
1.25 millert 18236: ac_status=$?
18237: grep -v '^ *+' conftest.er1 >conftest.err
18238: rm -f conftest.er1
18239: cat conftest.err >&5
18240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18241: (exit $ac_status); } && {
! 18242: test -z "$ac_c_werror_flag" ||
! 18243: test ! -s conftest.err
! 18244: } && test -s conftest$ac_exeext &&
! 18245: $as_test_x conftest$ac_exeext; then
! 18246: ac_cv_lib_socket_syslog=yes
1.25 millert 18247: else
18248: echo "$as_me: failed program was:" >&5
18249: sed 's/^/| /' conftest.$ac_ext >&5
18250:
1.27 ! millert 18251: ac_cv_lib_socket_syslog=no
1.25 millert 18252: fi
1.27 ! millert 18253:
! 18254: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18255: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 18256: LIBS=$ac_check_lib_save_LIBS
1.25 millert 18257: fi
1.27 ! millert 18258: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
! 18259: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
! 18260: if test $ac_cv_lib_socket_syslog = yes; then
! 18261: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
! 18262: else
! 18263: { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
! 18264: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
! 18265: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
! 18266: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18267: else
! 18268: ac_check_lib_save_LIBS=$LIBS
! 18269: LIBS="-lnsl $LIBS"
! 18270: cat >conftest.$ac_ext <<_ACEOF
! 18271: /* confdefs.h. */
! 18272: _ACEOF
! 18273: cat confdefs.h >>conftest.$ac_ext
! 18274: cat >>conftest.$ac_ext <<_ACEOF
! 18275: /* end confdefs.h. */
1.25 millert 18276:
1.27 ! millert 18277: /* Override any GCC internal prototype to avoid an error.
! 18278: Use char because int might match the return type of a GCC
! 18279: builtin and then its argument prototype would still apply. */
! 18280: #ifdef __cplusplus
! 18281: extern "C"
! 18282: #endif
! 18283: char syslog ();
! 18284: int
! 18285: main ()
! 18286: {
! 18287: return syslog ();
! 18288: ;
! 18289: return 0;
! 18290: }
1.25 millert 18291: _ACEOF
1.27 ! millert 18292: rm -f conftest.$ac_objext conftest$ac_exeext
! 18293: if { (ac_try="$ac_link"
! 18294: case "(($ac_try" in
! 18295: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18296: *) ac_try_echo=$ac_try;;
1.25 millert 18297: esac
1.27 ! millert 18298: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18299: (eval "$ac_link") 2>conftest.er1
1.9 millert 18300: ac_status=$?
1.25 millert 18301: grep -v '^ *+' conftest.er1 >conftest.err
18302: rm -f conftest.er1
18303: cat conftest.err >&5
1.16 millert 18304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18305: (exit $ac_status); } && {
! 18306: test -z "$ac_c_werror_flag" ||
! 18307: test ! -s conftest.err
! 18308: } && test -s conftest$ac_exeext &&
! 18309: $as_test_x conftest$ac_exeext; then
! 18310: ac_cv_lib_nsl_syslog=yes
1.9 millert 18311: else
18312: echo "$as_me: failed program was:" >&5
1.16 millert 18313: sed 's/^/| /' conftest.$ac_ext >&5
18314:
1.27 ! millert 18315: ac_cv_lib_nsl_syslog=no
! 18316: fi
1.25 millert 18317:
1.27 ! millert 18318: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18319: conftest$ac_exeext conftest.$ac_ext
! 18320: LIBS=$ac_check_lib_save_LIBS
! 18321: fi
! 18322: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
! 18323: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
! 18324: if test $ac_cv_lib_nsl_syslog = yes; then
! 18325: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
! 18326: else
! 18327: { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
! 18328: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
! 18329: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9 millert 18330: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18331: else
1.27 ! millert 18332: ac_check_lib_save_LIBS=$LIBS
! 18333: LIBS="-linet $LIBS"
1.25 millert 18334: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 18335: /* confdefs.h. */
18336: _ACEOF
18337: cat confdefs.h >>conftest.$ac_ext
18338: cat >>conftest.$ac_ext <<_ACEOF
18339: /* end confdefs.h. */
1.27 ! millert 18340:
! 18341: /* Override any GCC internal prototype to avoid an error.
! 18342: Use char because int might match the return type of a GCC
! 18343: builtin and then its argument prototype would still apply. */
! 18344: #ifdef __cplusplus
! 18345: extern "C"
! 18346: #endif
! 18347: char syslog ();
! 18348: int
! 18349: main ()
! 18350: {
! 18351: return syslog ();
! 18352: ;
! 18353: return 0;
! 18354: }
1.23 millert 18355: _ACEOF
1.27 ! millert 18356: rm -f conftest.$ac_objext conftest$ac_exeext
! 18357: if { (ac_try="$ac_link"
! 18358: case "(($ac_try" in
! 18359: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18360: *) ac_try_echo=$ac_try;;
! 18361: esac
! 18362: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18363: (eval "$ac_link") 2>conftest.er1
1.23 millert 18364: ac_status=$?
1.25 millert 18365: grep -v '^ *+' conftest.er1 >conftest.err
18366: rm -f conftest.er1
18367: cat conftest.err >&5
1.23 millert 18368: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18369: (exit $ac_status); } && {
! 18370: test -z "$ac_c_werror_flag" ||
! 18371: test ! -s conftest.err
! 18372: } && test -s conftest$ac_exeext &&
! 18373: $as_test_x conftest$ac_exeext; then
! 18374: ac_cv_lib_inet_syslog=yes
1.1 millert 18375: else
1.23 millert 18376: echo "$as_me: failed program was:" >&5
18377: sed 's/^/| /' conftest.$ac_ext >&5
18378:
1.27 ! millert 18379: ac_cv_lib_inet_syslog=no
! 18380: fi
! 18381:
! 18382: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18383: conftest$ac_exeext conftest.$ac_ext
! 18384: LIBS=$ac_check_lib_save_LIBS
! 18385: fi
! 18386: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
! 18387: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
! 18388: if test $ac_cv_lib_inet_syslog = yes; then
! 18389: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
! 18390: fi
! 18391:
! 18392: fi
! 18393:
! 18394: fi
! 18395:
1.25 millert 18396: fi
18397:
1.27 ! millert 18398: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
! 18399: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
! 18400: # for constant arguments. Useless!
! 18401: { echo "$as_me:$LINENO: checking for working alloca.h" >&5
! 18402: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
! 18403: if test "${ac_cv_working_alloca_h+set}" = set; then
! 18404: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18405: else
! 18406: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18407: /* confdefs.h. */
18408: _ACEOF
18409: cat confdefs.h >>conftest.$ac_ext
18410: cat >>conftest.$ac_ext <<_ACEOF
18411: /* end confdefs.h. */
1.27 ! millert 18412: #include <alloca.h>
! 18413: int
! 18414: main ()
! 18415: {
! 18416: char *p = (char *) alloca (2 * sizeof (int));
! 18417: if (p) return 0;
! 18418: ;
! 18419: return 0;
! 18420: }
1.9 millert 18421: _ACEOF
1.27 ! millert 18422: rm -f conftest.$ac_objext conftest$ac_exeext
! 18423: if { (ac_try="$ac_link"
! 18424: case "(($ac_try" in
! 18425: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18426: *) ac_try_echo=$ac_try;;
! 18427: esac
! 18428: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18429: (eval "$ac_link") 2>conftest.er1
1.9 millert 18430: ac_status=$?
1.25 millert 18431: grep -v '^ *+' conftest.er1 >conftest.err
18432: rm -f conftest.er1
18433: cat conftest.err >&5
1.16 millert 18434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18435: (exit $ac_status); } && {
! 18436: test -z "$ac_c_werror_flag" ||
! 18437: test ! -s conftest.err
! 18438: } && test -s conftest$ac_exeext &&
! 18439: $as_test_x conftest$ac_exeext; then
! 18440: ac_cv_working_alloca_h=yes
1.1 millert 18441: else
1.23 millert 18442: echo "$as_me: failed program was:" >&5
1.16 millert 18443: sed 's/^/| /' conftest.$ac_ext >&5
18444:
1.27 ! millert 18445: ac_cv_working_alloca_h=no
1.25 millert 18446: fi
18447:
1.27 ! millert 18448: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18449: conftest$ac_exeext conftest.$ac_ext
1.1 millert 18450: fi
1.27 ! millert 18451: { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
! 18452: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
! 18453: if test $ac_cv_working_alloca_h = yes; then
! 18454:
! 18455: cat >>confdefs.h <<\_ACEOF
! 18456: #define HAVE_ALLOCA_H 1
! 18457: _ACEOF
1.25 millert 18458:
1.1 millert 18459: fi
18460:
1.27 ! millert 18461: { echo "$as_me:$LINENO: checking for alloca" >&5
! 18462: echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
! 18463: if test "${ac_cv_func_alloca_works+set}" = set; then
1.9 millert 18464: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18465: else
1.27 ! millert 18466: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18467: /* confdefs.h. */
18468: _ACEOF
18469: cat confdefs.h >>conftest.$ac_ext
18470: cat >>conftest.$ac_ext <<_ACEOF
18471: /* end confdefs.h. */
1.27 ! millert 18472: #ifdef __GNUC__
! 18473: # define alloca __builtin_alloca
! 18474: #else
! 18475: # ifdef _MSC_VER
! 18476: # include <malloc.h>
! 18477: # define alloca _alloca
! 18478: # else
! 18479: # ifdef HAVE_ALLOCA_H
! 18480: # include <alloca.h>
! 18481: # else
! 18482: # ifdef _AIX
! 18483: #pragma alloca
! 18484: # else
! 18485: # ifndef alloca /* predefined by HP cc +Olibcalls */
! 18486: char *alloca ();
! 18487: # endif
! 18488: # endif
! 18489: # endif
! 18490: # endif
! 18491: #endif
1.25 millert 18492:
1.23 millert 18493: int
18494: main ()
18495: {
1.27 ! millert 18496: char *p = (char *) alloca (1);
! 18497: if (p) return 0;
1.23 millert 18498: ;
18499: return 0;
18500: }
1.9 millert 18501: _ACEOF
1.25 millert 18502: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18503: if { (ac_try="$ac_link"
! 18504: case "(($ac_try" in
! 18505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18506: *) ac_try_echo=$ac_try;;
! 18507: esac
! 18508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18509: (eval "$ac_link") 2>conftest.er1
1.9 millert 18510: ac_status=$?
1.25 millert 18511: grep -v '^ *+' conftest.er1 >conftest.err
18512: rm -f conftest.er1
18513: cat conftest.err >&5
1.16 millert 18514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18515: (exit $ac_status); } && {
! 18516: test -z "$ac_c_werror_flag" ||
! 18517: test ! -s conftest.err
! 18518: } && test -s conftest$ac_exeext &&
! 18519: $as_test_x conftest$ac_exeext; then
! 18520: ac_cv_func_alloca_works=yes
1.1 millert 18521: else
1.23 millert 18522: echo "$as_me: failed program was:" >&5
1.16 millert 18523: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 18524:
1.27 ! millert 18525: ac_cv_func_alloca_works=no
1.25 millert 18526: fi
1.27 ! millert 18527:
! 18528: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18529: conftest$ac_exeext conftest.$ac_ext
18530: fi
1.27 ! millert 18531: { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
! 18532: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
! 18533:
! 18534: if test $ac_cv_func_alloca_works = yes; then
! 18535:
! 18536: cat >>confdefs.h <<\_ACEOF
! 18537: #define HAVE_ALLOCA 1
! 18538: _ACEOF
! 18539:
! 18540: else
! 18541: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
! 18542: # that cause trouble. Some versions do not even contain alloca or
! 18543: # contain a buggy version. If you still want to use their alloca,
! 18544: # use ar to extract alloca.o from them instead of compiling alloca.c.
! 18545:
! 18546: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
! 18547:
! 18548: cat >>confdefs.h <<\_ACEOF
! 18549: #define C_ALLOCA 1
! 18550: _ACEOF
! 18551:
! 18552:
! 18553: { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
! 18554: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
! 18555: if test "${ac_cv_os_cray+set}" = set; then
! 18556: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18557: else
! 18558: cat >conftest.$ac_ext <<_ACEOF
! 18559: /* confdefs.h. */
! 18560: _ACEOF
! 18561: cat confdefs.h >>conftest.$ac_ext
! 18562: cat >>conftest.$ac_ext <<_ACEOF
! 18563: /* end confdefs.h. */
! 18564: #if defined CRAY && ! defined CRAY2
! 18565: webecray
! 18566: #else
! 18567: wenotbecray
! 18568: #endif
! 18569:
! 18570: _ACEOF
! 18571: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 18572: $EGREP "webecray" >/dev/null 2>&1; then
! 18573: ac_cv_os_cray=yes
1.25 millert 18574: else
1.27 ! millert 18575: ac_cv_os_cray=no
! 18576: fi
! 18577: rm -f conftest*
1.25 millert 18578:
1.27 ! millert 18579: fi
! 18580: { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
! 18581: echo "${ECHO_T}$ac_cv_os_cray" >&6; }
! 18582: if test $ac_cv_os_cray = yes; then
! 18583: for ac_func in _getb67 GETB67 getb67; do
! 18584: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18585: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 18586: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 18587: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 18588: echo $ECHO_N "(cached) $ECHO_C" >&6
18589: else
1.27 ! millert 18590: cat >conftest.$ac_ext <<_ACEOF
! 18591: /* confdefs.h. */
! 18592: _ACEOF
! 18593: cat confdefs.h >>conftest.$ac_ext
! 18594: cat >>conftest.$ac_ext <<_ACEOF
! 18595: /* end confdefs.h. */
! 18596: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 18597: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18598: #define $ac_func innocuous_$ac_func
! 18599:
! 18600: /* System header to define __stub macros and hopefully few prototypes,
! 18601: which can conflict with char $ac_func (); below.
! 18602: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18603: <limits.h> exists even on freestanding compilers. */
! 18604:
! 18605: #ifdef __STDC__
! 18606: # include <limits.h>
! 18607: #else
! 18608: # include <assert.h>
! 18609: #endif
! 18610:
! 18611: #undef $ac_func
1.25 millert 18612:
1.27 ! millert 18613: /* Override any GCC internal prototype to avoid an error.
! 18614: Use char because int might match the return type of a GCC
! 18615: builtin and then its argument prototype would still apply. */
1.25 millert 18616: #ifdef __cplusplus
18617: extern "C"
18618: #endif
1.27 ! millert 18619: char $ac_func ();
! 18620: /* The GNU C library defines this for functions which it implements
! 18621: to always fail with ENOSYS. Some functions are actually named
! 18622: something starting with __ and the normal name is an alias. */
! 18623: #if defined __stub_$ac_func || defined __stub___$ac_func
! 18624: choke me
! 18625: #endif
! 18626:
1.9 millert 18627: int
18628: main ()
18629: {
1.27 ! millert 18630: return $ac_func ();
1.9 millert 18631: ;
18632: return 0;
18633: }
18634: _ACEOF
1.25 millert 18635: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18636: if { (ac_try="$ac_link"
! 18637: case "(($ac_try" in
! 18638: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18639: *) ac_try_echo=$ac_try;;
! 18640: esac
! 18641: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18642: (eval "$ac_link") 2>conftest.er1
1.9 millert 18643: ac_status=$?
1.25 millert 18644: grep -v '^ *+' conftest.er1 >conftest.err
18645: rm -f conftest.er1
18646: cat conftest.err >&5
1.16 millert 18647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18648: (exit $ac_status); } && {
! 18649: test -z "$ac_c_werror_flag" ||
! 18650: test ! -s conftest.err
! 18651: } && test -s conftest$ac_exeext &&
! 18652: $as_test_x conftest$ac_exeext; then
! 18653: eval "$as_ac_var=yes"
1.9 millert 18654: else
18655: echo "$as_me: failed program was:" >&5
1.16 millert 18656: sed 's/^/| /' conftest.$ac_ext >&5
18657:
1.27 ! millert 18658: eval "$as_ac_var=no"
1.23 millert 18659: fi
1.27 ! millert 18660:
! 18661: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18662: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18663: fi
1.27 ! millert 18664: ac_res=`eval echo '${'$as_ac_var'}'`
! 18665: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 18666: echo "${ECHO_T}$ac_res" >&6; }
! 18667: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 18668:
! 18669: cat >>confdefs.h <<_ACEOF
! 18670: #define CRAY_STACKSEG_END $ac_func
! 18671: _ACEOF
! 18672:
! 18673: break
1.1 millert 18674: fi
18675:
1.27 ! millert 18676: done
1.23 millert 18677: fi
1.16 millert 18678:
1.27 ! millert 18679: { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
! 18680: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
! 18681: if test "${ac_cv_c_stack_direction+set}" = set; then
! 18682: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18683: else
! 18684: if test "$cross_compiling" = yes; then
! 18685: ac_cv_c_stack_direction=0
! 18686: else
! 18687: cat >conftest.$ac_ext <<_ACEOF
1.24 millert 18688: /* confdefs.h. */
18689: _ACEOF
18690: cat confdefs.h >>conftest.$ac_ext
18691: cat >>conftest.$ac_ext <<_ACEOF
18692: /* end confdefs.h. */
1.27 ! millert 18693: $ac_includes_default
! 18694: int
! 18695: find_stack_direction ()
! 18696: {
! 18697: static char *addr = 0;
! 18698: auto char dummy;
! 18699: if (addr == 0)
! 18700: {
! 18701: addr = &dummy;
! 18702: return find_stack_direction ();
! 18703: }
! 18704: else
! 18705: return (&dummy > addr) ? 1 : -1;
! 18706: }
! 18707:
1.24 millert 18708: int
18709: main ()
18710: {
1.27 ! millert 18711: return find_stack_direction () < 0;
1.24 millert 18712: }
18713: _ACEOF
1.27 ! millert 18714: rm -f conftest$ac_exeext
! 18715: if { (ac_try="$ac_link"
! 18716: case "(($ac_try" in
! 18717: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18718: *) ac_try_echo=$ac_try;;
! 18719: esac
! 18720: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18721: (eval "$ac_link") 2>&5
1.24 millert 18722: ac_status=$?
18723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18724: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 18725: { (case "(($ac_try" in
! 18726: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18727: *) ac_try_echo=$ac_try;;
! 18728: esac
! 18729: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18730: (eval "$ac_try") 2>&5
1.24 millert 18731: ac_status=$?
18732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733: (exit $ac_status); }; }; then
1.27 ! millert 18734: ac_cv_c_stack_direction=1
! 18735: else
! 18736: echo "$as_me: program exited with status $ac_status" >&5
! 18737: echo "$as_me: failed program was:" >&5
! 18738: sed 's/^/| /' conftest.$ac_ext >&5
! 18739:
! 18740: ( exit $ac_status )
! 18741: ac_cv_c_stack_direction=-1
! 18742: fi
! 18743: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 18744: fi
! 18745:
! 18746:
! 18747: fi
! 18748: { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
! 18749: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
! 18750:
! 18751: cat >>confdefs.h <<_ACEOF
! 18752: #define STACK_DIRECTION $ac_cv_c_stack_direction
! 18753: _ACEOF
! 18754:
! 18755:
! 18756: fi
! 18757:
! 18758: fi
1.24 millert 18759:
1.27 ! millert 18760: for ac_func in getprogname
! 18761: do
! 18762: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18763: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 18764: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 18765: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 18766: echo $ECHO_N "(cached) $ECHO_C" >&6
1.24 millert 18767: else
1.27 ! millert 18768: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18769: /* confdefs.h. */
18770: _ACEOF
18771: cat confdefs.h >>conftest.$ac_ext
18772: cat >>conftest.$ac_ext <<_ACEOF
18773: /* end confdefs.h. */
1.27 ! millert 18774: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 18775: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18776: #define $ac_func innocuous_$ac_func
! 18777:
! 18778: /* System header to define __stub macros and hopefully few prototypes,
! 18779: which can conflict with char $ac_func (); below.
! 18780: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18781: <limits.h> exists even on freestanding compilers. */
! 18782:
! 18783: #ifdef __STDC__
! 18784: # include <limits.h>
! 18785: #else
! 18786: # include <assert.h>
! 18787: #endif
1.25 millert 18788:
1.27 ! millert 18789: #undef $ac_func
! 18790:
! 18791: /* Override any GCC internal prototype to avoid an error.
! 18792: Use char because int might match the return type of a GCC
! 18793: builtin and then its argument prototype would still apply. */
! 18794: #ifdef __cplusplus
! 18795: extern "C"
! 18796: #endif
! 18797: char $ac_func ();
! 18798: /* The GNU C library defines this for functions which it implements
! 18799: to always fail with ENOSYS. Some functions are actually named
! 18800: something starting with __ and the normal name is an alias. */
! 18801: #if defined __stub_$ac_func || defined __stub___$ac_func
! 18802: choke me
! 18803: #endif
1.25 millert 18804:
1.16 millert 18805: int
18806: main ()
18807: {
1.27 ! millert 18808: return $ac_func ();
1.9 millert 18809: ;
18810: return 0;
18811: }
18812: _ACEOF
18813: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18814: if { (ac_try="$ac_link"
! 18815: case "(($ac_try" in
! 18816: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18817: *) ac_try_echo=$ac_try;;
! 18818: esac
! 18819: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18820: (eval "$ac_link") 2>conftest.er1
1.9 millert 18821: ac_status=$?
1.25 millert 18822: grep -v '^ *+' conftest.er1 >conftest.err
18823: rm -f conftest.er1
18824: cat conftest.err >&5
1.16 millert 18825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18826: (exit $ac_status); } && {
! 18827: test -z "$ac_c_werror_flag" ||
! 18828: test ! -s conftest.err
! 18829: } && test -s conftest$ac_exeext &&
! 18830: $as_test_x conftest$ac_exeext; then
! 18831: eval "$as_ac_var=yes"
1.25 millert 18832: else
18833: echo "$as_me: failed program was:" >&5
18834: sed 's/^/| /' conftest.$ac_ext >&5
18835:
1.27 ! millert 18836: eval "$as_ac_var=no"
1.25 millert 18837: fi
1.27 ! millert 18838:
! 18839: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18840: conftest$ac_exeext conftest.$ac_ext
18841: fi
1.27 ! millert 18842: ac_res=`eval echo '${'$as_ac_var'}'`
! 18843: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 18844: echo "${ECHO_T}$ac_res" >&6; }
! 18845: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 18846: cat >>confdefs.h <<_ACEOF
! 18847: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18848: _ACEOF
1.23 millert 18849:
1.9 millert 18850: else
1.16 millert 18851:
1.27 ! millert 18852: { echo "$as_me:$LINENO: checking for __progname" >&5
! 18853: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
! 18854: if test "${sudo_cv___progname+set}" = set; then
1.25 millert 18855: echo $ECHO_N "(cached) $ECHO_C" >&6
18856: else
1.27 ! millert 18857:
! 18858: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18859: /* confdefs.h. */
18860: _ACEOF
18861: cat confdefs.h >>conftest.$ac_ext
18862: cat >>conftest.$ac_ext <<_ACEOF
18863: /* end confdefs.h. */
1.25 millert 18864:
1.16 millert 18865: int
18866: main ()
18867: {
1.27 ! millert 18868: extern char *__progname; (void)puts(__progname);
1.9 millert 18869: ;
18870: return 0;
18871: }
18872: _ACEOF
18873: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18874: if { (ac_try="$ac_link"
! 18875: case "(($ac_try" in
! 18876: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18877: *) ac_try_echo=$ac_try;;
! 18878: esac
! 18879: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18880: (eval "$ac_link") 2>conftest.er1
1.9 millert 18881: ac_status=$?
1.25 millert 18882: grep -v '^ *+' conftest.er1 >conftest.err
18883: rm -f conftest.er1
18884: cat conftest.err >&5
1.16 millert 18885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18886: (exit $ac_status); } && {
! 18887: test -z "$ac_c_werror_flag" ||
! 18888: test ! -s conftest.err
! 18889: } && test -s conftest$ac_exeext &&
! 18890: $as_test_x conftest$ac_exeext; then
! 18891: sudo_cv___progname=yes
1.9 millert 18892: else
18893: echo "$as_me: failed program was:" >&5
1.16 millert 18894: sed 's/^/| /' conftest.$ac_ext >&5
18895:
1.27 ! millert 18896: sudo_cv___progname=no
1.9 millert 18897: fi
1.27 ! millert 18898:
! 18899: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18900: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18901: fi
1.25 millert 18902:
1.27 ! millert 18903: if test "$sudo_cv___progname" = "yes"; then
! 18904: cat >>confdefs.h <<\_ACEOF
! 18905: #define HAVE___PROGNAME 1
! 18906: _ACEOF
! 18907:
! 18908: else
! 18909: case " $LIBOBJS " in
! 18910: *" getprogname.$ac_objext "* ) ;;
! 18911: *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
! 18912: ;;
! 18913: esac
! 18914:
! 18915: fi
! 18916: { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
! 18917: echo "${ECHO_T}$sudo_cv___progname" >&6; }
! 18918:
! 18919: fi
! 18920: done
! 18921:
! 18922:
! 18923:
! 18924: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
! 18925: for auth in $AUTH_EXCL_DEF; do
! 18926: case $auth in
! 18927: AIX_AUTH) with_aixauth=maybe;;
! 18928: BSD_AUTH) with_bsdauth=maybe;;
! 18929: PAM) with_pam=maybe;;
! 18930: SIA) CHECKSIA=true;;
! 18931: esac
! 18932: done
! 18933: fi
! 18934:
! 18935: if test ${with_pam-"no"} != "no"; then
! 18936: { echo "$as_me:$LINENO: checking for main in -ldl" >&5
! 18937: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
! 18938: if test "${ac_cv_lib_dl_main+set}" = set; then
1.9 millert 18939: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18940: else
1.25 millert 18941: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 18942: LIBS="-ldl $LIBS"
1.25 millert 18943: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18944: /* confdefs.h. */
18945: _ACEOF
18946: cat confdefs.h >>conftest.$ac_ext
18947: cat >>conftest.$ac_ext <<_ACEOF
18948: /* end confdefs.h. */
1.25 millert 18949:
1.1 millert 18950:
1.16 millert 18951: int
18952: main ()
18953: {
1.27 ! millert 18954: return main ();
1.9 millert 18955: ;
18956: return 0;
18957: }
18958: _ACEOF
18959: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 18960: if { (ac_try="$ac_link"
! 18961: case "(($ac_try" in
! 18962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18963: *) ac_try_echo=$ac_try;;
! 18964: esac
! 18965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18966: (eval "$ac_link") 2>conftest.er1
1.9 millert 18967: ac_status=$?
1.25 millert 18968: grep -v '^ *+' conftest.er1 >conftest.err
18969: rm -f conftest.er1
18970: cat conftest.err >&5
1.16 millert 18971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 18972: (exit $ac_status); } && {
! 18973: test -z "$ac_c_werror_flag" ||
! 18974: test ! -s conftest.err
! 18975: } && test -s conftest$ac_exeext &&
! 18976: $as_test_x conftest$ac_exeext; then
! 18977: ac_cv_lib_dl_main=yes
1.25 millert 18978: else
18979: echo "$as_me: failed program was:" >&5
18980: sed 's/^/| /' conftest.$ac_ext >&5
18981:
1.27 ! millert 18982: ac_cv_lib_dl_main=no
1.9 millert 18983: fi
1.27 ! millert 18984:
! 18985: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18986: conftest$ac_exeext conftest.$ac_ext
! 18987: LIBS=$ac_check_lib_save_LIBS
1.9 millert 18988: fi
1.27 ! millert 18989: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
! 18990: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
! 18991: if test $ac_cv_lib_dl_main = yes; then
! 18992: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
1.1 millert 18993: else
1.27 ! millert 18994: SUDO_LIBS="${SUDO_LIBS} -lpam"
1.25 millert 18995: fi
18996:
1.27 ! millert 18997: ac_cv_lib_dl=ac_cv_lib_dl_main
! 18998:
1.25 millert 18999:
19000:
1.27 ! millert 19001: for ac_header in security/pam_appl.h pam/pam_appl.h
! 19002: do
! 19003: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 19004: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 19005: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 19006: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 19007: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 19008: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 19009: fi
1.27 ! millert 19010: ac_res=`eval echo '${'$as_ac_Header'}'`
! 19011: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 19012: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 19013: else
1.27 ! millert 19014: # Is the header compilable?
! 19015: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 19016: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 19017: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19018: /* confdefs.h. */
19019: _ACEOF
19020: cat confdefs.h >>conftest.$ac_ext
19021: cat >>conftest.$ac_ext <<_ACEOF
19022: /* end confdefs.h. */
1.27 ! millert 19023: $ac_includes_default
! 19024: #include <$ac_header>
1.9 millert 19025: _ACEOF
1.25 millert 19026: rm -f conftest.$ac_objext
1.27 ! millert 19027: if { (ac_try="$ac_compile"
! 19028: case "(($ac_try" in
! 19029: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19030: *) ac_try_echo=$ac_try;;
! 19031: esac
! 19032: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19033: (eval "$ac_compile") 2>conftest.er1
1.9 millert 19034: ac_status=$?
1.25 millert 19035: grep -v '^ *+' conftest.er1 >conftest.err
19036: rm -f conftest.er1
19037: cat conftest.err >&5
1.16 millert 19038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19039: (exit $ac_status); } && {
! 19040: test -z "$ac_c_werror_flag" ||
! 19041: test ! -s conftest.err
! 19042: } && test -s conftest.$ac_objext; then
! 19043: ac_header_compiler=yes
1.9 millert 19044: else
19045: echo "$as_me: failed program was:" >&5
1.16 millert 19046: sed 's/^/| /' conftest.$ac_ext >&5
19047:
1.27 ! millert 19048: ac_header_compiler=no
! 19049: fi
1.25 millert 19050:
1.27 ! millert 19051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 19052: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 19053: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 19054:
1.27 ! millert 19055: # Is the header present?
! 19056: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 19057: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 19058: cat >conftest.$ac_ext <<_ACEOF
! 19059: /* confdefs.h. */
1.25 millert 19060: _ACEOF
1.27 ! millert 19061: cat confdefs.h >>conftest.$ac_ext
! 19062: cat >>conftest.$ac_ext <<_ACEOF
! 19063: /* end confdefs.h. */
! 19064: #include <$ac_header>
1.25 millert 19065: _ACEOF
1.27 ! millert 19066: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 19067: case "(($ac_try" in
! 19068: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19069: *) ac_try_echo=$ac_try;;
! 19070: esac
! 19071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19072: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 19073: ac_status=$?
19074: grep -v '^ *+' conftest.er1 >conftest.err
19075: rm -f conftest.er1
19076: cat conftest.err >&5
19077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19078: (exit $ac_status); } >/dev/null && {
! 19079: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 19080: test ! -s conftest.err
! 19081: }; then
! 19082: ac_header_preproc=yes
1.1 millert 19083: else
1.25 millert 19084: echo "$as_me: failed program was:" >&5
19085: sed 's/^/| /' conftest.$ac_ext >&5
19086:
1.27 ! millert 19087: ac_header_preproc=no
! 19088: fi
! 19089:
! 19090: rm -f conftest.err conftest.$ac_ext
! 19091: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 19092: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 19093:
! 19094: # So? What about this header?
! 19095: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 19096: yes:no: )
! 19097: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 19098: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 19099: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 19100: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 19101: ac_header_preproc=yes
! 19102: ;;
! 19103: no:yes:* )
! 19104: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 19105: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 19106: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 19107: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 19108: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 19109: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 19110: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 19111: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 19112: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 19113: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 19114: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 19115: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 19116:
! 19117: ;;
! 19118: esac
! 19119: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 19120: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 19121: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 19122: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19123: else
! 19124: eval "$as_ac_Header=\$ac_header_preproc"
! 19125: fi
! 19126: ac_res=`eval echo '${'$as_ac_Header'}'`
! 19127: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 19128: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 19129:
19130: fi
1.27 ! millert 19131: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 19132: cat >>confdefs.h <<_ACEOF
! 19133: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 19134: _ACEOF
! 19135: with_pam=yes; break
! 19136: fi
! 19137:
! 19138: done
! 19139:
! 19140: if test "$with_pam" = "yes"; then
! 19141: cat >>confdefs.h <<\_ACEOF
! 19142: #define HAVE_PAM 1
! 19143: _ACEOF
1.25 millert 19144:
1.27 ! millert 19145: AUTH_OBJS="$AUTH_OBJS pam.o";
! 19146: AUTH_EXCL=PAM
1.25 millert 19147: fi
1.27 ! millert 19148: fi
! 19149:
! 19150: if test ${with_aixauth-'no'} != "no"; then
! 19151: if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
! 19152: { echo "$as_me:$LINENO: using AIX general authentication" >&5
! 19153: echo "$as_me: using AIX general authentication" >&6;}
! 19154: cat >>confdefs.h <<\_ACEOF
! 19155: #define HAVE_AIXAUTH 1
! 19156: _ACEOF
1.25 millert 19157:
1.27 ! millert 19158: AUTH_OBJS="$AUTH_OBJS aix_auth.o";
! 19159: SUDO_LIBS="${SUDO_LIBS} -ls"
! 19160: AUTH_EXCL=AIX_AUTH
1.25 millert 19161: fi
1.27 ! millert 19162: fi
1.25 millert 19163:
1.27 ! millert 19164: if test ${with_bsdauth-'no'} != "no"; then
! 19165: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 19166: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 19167: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
! 19168: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 19169: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19170: fi
! 19171: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 19172: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
! 19173: else
! 19174: # Is the header compilable?
! 19175: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
! 19176: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
! 19177: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19178: /* confdefs.h. */
19179: _ACEOF
19180: cat confdefs.h >>conftest.$ac_ext
19181: cat >>conftest.$ac_ext <<_ACEOF
19182: /* end confdefs.h. */
1.27 ! millert 19183: $ac_includes_default
! 19184: #include <bsd_auth.h>
1.9 millert 19185: _ACEOF
1.25 millert 19186: rm -f conftest.$ac_objext
1.27 ! millert 19187: if { (ac_try="$ac_compile"
! 19188: case "(($ac_try" in
! 19189: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19190: *) ac_try_echo=$ac_try;;
! 19191: esac
! 19192: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19193: (eval "$ac_compile") 2>conftest.er1
1.9 millert 19194: ac_status=$?
1.25 millert 19195: grep -v '^ *+' conftest.er1 >conftest.err
19196: rm -f conftest.er1
19197: cat conftest.err >&5
1.16 millert 19198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19199: (exit $ac_status); } && {
! 19200: test -z "$ac_c_werror_flag" ||
! 19201: test ! -s conftest.err
! 19202: } && test -s conftest.$ac_objext; then
! 19203: ac_header_compiler=yes
! 19204: else
! 19205: echo "$as_me: failed program was:" >&5
! 19206: sed 's/^/| /' conftest.$ac_ext >&5
! 19207:
! 19208: ac_header_compiler=no
! 19209: fi
1.16 millert 19210:
1.27 ! millert 19211: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 19212: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 19213: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 19214:
1.27 ! millert 19215: # Is the header present?
! 19216: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
! 19217: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.9 millert 19218: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19219: /* confdefs.h. */
19220: _ACEOF
19221: cat confdefs.h >>conftest.$ac_ext
19222: cat >>conftest.$ac_ext <<_ACEOF
19223: /* end confdefs.h. */
1.27 ! millert 19224: #include <bsd_auth.h>
1.9 millert 19225: _ACEOF
1.27 ! millert 19226: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 19227: case "(($ac_try" in
! 19228: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19229: *) ac_try_echo=$ac_try;;
! 19230: esac
! 19231: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19232: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 19233: ac_status=$?
1.25 millert 19234: grep -v '^ *+' conftest.er1 >conftest.err
19235: rm -f conftest.er1
19236: cat conftest.err >&5
1.16 millert 19237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19238: (exit $ac_status); } >/dev/null && {
! 19239: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 19240: test ! -s conftest.err
! 19241: }; then
! 19242: ac_header_preproc=yes
1.9 millert 19243: else
19244: echo "$as_me: failed program was:" >&5
1.16 millert 19245: sed 's/^/| /' conftest.$ac_ext >&5
19246:
1.27 ! millert 19247: ac_header_preproc=no
1.25 millert 19248: fi
19249:
1.27 ! millert 19250: rm -f conftest.err conftest.$ac_ext
! 19251: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 19252: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 19253:
! 19254: # So? What about this header?
! 19255: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 19256: yes:no: )
! 19257: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 19258: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 19259: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
! 19260: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
! 19261: ac_header_preproc=yes
! 19262: ;;
! 19263: no:yes:* )
! 19264: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
! 19265: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
! 19266: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
! 19267: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
! 19268: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
! 19269: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
! 19270: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
! 19271: echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 19272: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
! 19273: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
! 19274: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
! 19275: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.25 millert 19276:
1.27 ! millert 19277: ;;
! 19278: esac
! 19279: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 19280: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
! 19281: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 19282: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 19283: else
1.27 ! millert 19284: ac_cv_header_bsd_auth_h=$ac_header_preproc
! 19285: fi
! 19286: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 19287: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25 millert 19288:
1.1 millert 19289: fi
1.27 ! millert 19290: if test $ac_cv_header_bsd_auth_h = yes; then
! 19291: cat >>confdefs.h <<\_ACEOF
! 19292: #define HAVE_BSD_AUTH_H 1
! 19293: _ACEOF
1.1 millert 19294:
1.27 ! millert 19295: AUTH_OBJS="$AUTH_OBJS bsdauth.o"
! 19296: BSDAUTH_USAGE='[-a auth_type] '
! 19297: AUTH_EXCL=BSD_AUTH
1.25 millert 19298: else
1.27 ! millert 19299: { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
! 19300: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
! 19301: { (exit 1); exit 1; }; }
1.1 millert 19302: fi
19303:
19304:
1.27 ! millert 19305: fi
! 19306:
! 19307: if test ${CHECKSIA-'false'} = "true"; then
1.1 millert 19308:
1.27 ! millert 19309: for ac_func in sia_ses_init
1.25 millert 19310: do
19311: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 19312: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 19313: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 19314: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 19315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19316: else
1.9 millert 19317: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19318: /* confdefs.h. */
19319: _ACEOF
19320: cat confdefs.h >>conftest.$ac_ext
19321: cat >>conftest.$ac_ext <<_ACEOF
19322: /* end confdefs.h. */
1.25 millert 19323: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19324: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19325: #define $ac_func innocuous_$ac_func
19326:
1.1 millert 19327: /* System header to define __stub macros and hopefully few prototypes,
1.25 millert 19328: which can conflict with char $ac_func (); below.
1.16 millert 19329: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19330: <limits.h> exists even on freestanding compilers. */
1.25 millert 19331:
1.16 millert 19332: #ifdef __STDC__
19333: # include <limits.h>
19334: #else
19335: # include <assert.h>
19336: #endif
1.25 millert 19337:
19338: #undef $ac_func
19339:
1.27 ! millert 19340: /* Override any GCC internal prototype to avoid an error.
! 19341: Use char because int might match the return type of a GCC
! 19342: builtin and then its argument prototype would still apply. */
1.9 millert 19343: #ifdef __cplusplus
19344: extern "C"
19345: #endif
1.25 millert 19346: char $ac_func ();
1.1 millert 19347: /* The GNU C library defines this for functions which it implements
19348: to always fail with ENOSYS. Some functions are actually named
19349: something starting with __ and the normal name is an alias. */
1.27 ! millert 19350: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 millert 19351: choke me
19352: #endif
19353:
1.16 millert 19354: int
19355: main ()
19356: {
1.27 ! millert 19357: return $ac_func ();
1.9 millert 19358: ;
19359: return 0;
19360: }
19361: _ACEOF
19362: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 19363: if { (ac_try="$ac_link"
! 19364: case "(($ac_try" in
! 19365: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19366: *) ac_try_echo=$ac_try;;
! 19367: esac
! 19368: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19369: (eval "$ac_link") 2>conftest.er1
1.9 millert 19370: ac_status=$?
1.25 millert 19371: grep -v '^ *+' conftest.er1 >conftest.err
19372: rm -f conftest.er1
19373: cat conftest.err >&5
1.16 millert 19374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19375: (exit $ac_status); } && {
! 19376: test -z "$ac_c_werror_flag" ||
! 19377: test ! -s conftest.err
! 19378: } && test -s conftest$ac_exeext &&
! 19379: $as_test_x conftest$ac_exeext; then
1.25 millert 19380: eval "$as_ac_var=yes"
1.9 millert 19381: else
19382: echo "$as_me: failed program was:" >&5
1.16 millert 19383: sed 's/^/| /' conftest.$ac_ext >&5
19384:
1.27 ! millert 19385: eval "$as_ac_var=no"
1.25 millert 19386: fi
1.27 ! millert 19387:
! 19388: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19389: conftest$ac_exeext conftest.$ac_ext
19390: fi
1.27 ! millert 19391: ac_res=`eval echo '${'$as_ac_var'}'`
! 19392: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 19393: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 19394: if test `eval echo '${'$as_ac_var'}'` = yes; then
19395: cat >>confdefs.h <<_ACEOF
19396: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19397: _ACEOF
1.27 ! millert 19398: found=true
! 19399: else
! 19400: found=false
1.25 millert 19401: fi
19402: done
19403:
1.27 ! millert 19404: if test "$found" = "true"; then
! 19405: AUTH_EXCL=SIA
! 19406: AUTH_OBJS="$AUTH_OBJS sia.o"
! 19407: fi
1.9 millert 19408: fi
1.25 millert 19409:
1.27 ! millert 19410: if test ${with_fwtk-'no'} != "no"; then
! 19411: if test "$with_fwtk" != "yes"; then
! 19412:
! 19413: if test X"$with_rpath" = X"yes"; then
! 19414: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
! 19415: else
! 19416: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
! 19417: fi
! 19418: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 19419: blibpath_add="${blibpath_add}:${with_fwtk}"
! 19420: fi
! 19421:
! 19422: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
! 19423: with_fwtk=yes
! 19424: fi
! 19425: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
! 19426: AUTH_OBJS="$AUTH_OBJS fwtk.o"
1.9 millert 19427: fi
1.25 millert 19428:
1.27 ! millert 19429: if test ${with_SecurID-'no'} != "no"; then
! 19430: if test "$with_SecurID" != "yes"; then
! 19431: :
! 19432: elif test -d /usr/ace/examples; then
! 19433: with_SecurID=/usr/ace/examples
! 19434: else
! 19435: with_SecurID=/usr/ace
! 19436: fi
! 19437: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
! 19438: _LDFLAGS="${LDFLAGS}"
! 19439:
! 19440: if test X"$with_rpath" = X"yes"; then
! 19441: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
! 19442: else
! 19443: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
! 19444: fi
! 19445: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 19446: blibpath_add="${blibpath_add}:${with_SecurID}"
! 19447: fi
! 19448:
! 19449: #
! 19450: # Determine whether to use the new or old SecurID API
! 19451: #
! 19452: { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
! 19453: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
! 19454: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.9 millert 19455: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19456: else
1.9 millert 19457: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 19458: LIBS="-laceclnt
! 19459: -lpthread
! 19460:
! 19461: $LIBS"
1.9 millert 19462: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19463: /* confdefs.h. */
19464: _ACEOF
19465: cat confdefs.h >>conftest.$ac_ext
19466: cat >>conftest.$ac_ext <<_ACEOF
19467: /* end confdefs.h. */
1.9 millert 19468:
1.27 ! millert 19469: /* Override any GCC internal prototype to avoid an error.
! 19470: Use char because int might match the return type of a GCC
! 19471: builtin and then its argument prototype would still apply. */
! 19472: #ifdef __cplusplus
! 19473: extern "C"
! 19474: #endif
! 19475: char SD_Init ();
1.9 millert 19476: int
19477: main ()
19478: {
1.27 ! millert 19479: return SD_Init ();
1.9 millert 19480: ;
19481: return 0;
19482: }
19483: _ACEOF
19484: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 19485: if { (ac_try="$ac_link"
! 19486: case "(($ac_try" in
! 19487: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19488: *) ac_try_echo=$ac_try;;
! 19489: esac
! 19490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19491: (eval "$ac_link") 2>conftest.er1
1.9 millert 19492: ac_status=$?
1.25 millert 19493: grep -v '^ *+' conftest.er1 >conftest.err
19494: rm -f conftest.er1
19495: cat conftest.err >&5
1.16 millert 19496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19497: (exit $ac_status); } && {
! 19498: test -z "$ac_c_werror_flag" ||
! 19499: test ! -s conftest.err
! 19500: } && test -s conftest$ac_exeext &&
! 19501: $as_test_x conftest$ac_exeext; then
! 19502: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.9 millert 19503: else
19504: echo "$as_me: failed program was:" >&5
1.16 millert 19505: sed 's/^/| /' conftest.$ac_ext >&5
19506:
1.27 ! millert 19507: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.9 millert 19508: fi
1.27 ! millert 19509:
! 19510: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19511: conftest$ac_exeext conftest.$ac_ext
1.9 millert 19512: LIBS=$ac_check_lib_save_LIBS
19513: fi
1.27 ! millert 19514: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
! 19515: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
! 19516: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
! 19517:
! 19518: AUTH_OBJS="$AUTH_OBJS securid5.o";
! 19519: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
! 19520:
! 19521:
! 19522:
! 19523: if test X"$with_rpath" = X"yes"; then
! 19524: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
! 19525: else
! 19526: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
! 19527: fi
! 19528: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 19529: blibpath_add="${blibpath_add}:${with_SecurID}"
! 19530: fi
! 19531:
! 19532:
! 19533: else
! 19534:
! 19535: AUTH_OBJS="$AUTH_OBJS securid.o";
! 19536: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
! 19537:
! 19538: fi
! 19539:
! 19540: LDFLAGS="${_LDFLAGS}"
! 19541: fi
! 19542:
! 19543:
! 19544: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
! 19545: for auth in $AUTH_DEF; do
! 19546: case $auth in
! 19547: passwd) : ${with_passwd='maybe'};;
! 19548: esac
! 19549: done
! 19550: fi
! 19551:
! 19552: if test ${with_kerb4-'no'} != "no"; then
! 19553: cat >>confdefs.h <<\_ACEOF
! 19554: #define HAVE_KERB4 1
! 19555: _ACEOF
! 19556:
! 19557: O_LDFLAGS="$LDFLAGS"
! 19558: if test "$with_kerb4" = "yes"; then
! 19559: found=no
! 19560: O_CPPFLAGS="$CPPFLAGS"
! 19561: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
! 19562: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
! 19563: cat >conftest.$ac_ext <<_ACEOF
! 19564: #include <krb.h>
! 19565: _ACEOF
! 19566: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 19567: case "(($ac_try" in
! 19568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19569: *) ac_try_echo=$ac_try;;
! 19570: esac
! 19571: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19572: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 19573: ac_status=$?
! 19574: grep -v '^ *+' conftest.er1 >conftest.err
! 19575: rm -f conftest.er1
! 19576: cat conftest.err >&5
! 19577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19578: (exit $ac_status); } >/dev/null && {
! 19579: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 19580: test ! -s conftest.err
! 19581: }; then
! 19582: found=yes; break
1.1 millert 19583: else
1.27 ! millert 19584: echo "$as_me: failed program was:" >&5
! 19585: sed 's/^/| /' conftest.$ac_ext >&5
! 19586:
! 19587:
1.25 millert 19588: fi
19589:
1.27 ! millert 19590: rm -f conftest.err conftest.$ac_ext
! 19591: done
! 19592: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
! 19593: else
! 19594:
! 19595: if test X"$with_rpath" = X"yes"; then
! 19596: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
! 19597: else
! 19598: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
! 19599: fi
! 19600: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 19601: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
! 19602: fi
1.25 millert 19603:
19604:
1.27 ! millert 19605: if test X"$with_rpath" = X"yes"; then
! 19606: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
! 19607: else
! 19608: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
! 19609: fi
! 19610: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 19611: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
! 19612: fi
1.25 millert 19613:
1.27 ! millert 19614: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
! 19615: if test "${ac_cv_header_krb_h+set}" = set; then
! 19616: { echo "$as_me:$LINENO: checking for krb.h" >&5
! 19617: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
! 19618: if test "${ac_cv_header_krb_h+set}" = set; then
1.9 millert 19619: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 19620: fi
1.27 ! millert 19621: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
! 19622: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.1 millert 19623: else
1.25 millert 19624: # Is the header compilable?
1.27 ! millert 19625: { echo "$as_me:$LINENO: checking krb.h usability" >&5
! 19626: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.9 millert 19627: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19628: /* confdefs.h. */
19629: _ACEOF
19630: cat confdefs.h >>conftest.$ac_ext
19631: cat >>conftest.$ac_ext <<_ACEOF
19632: /* end confdefs.h. */
1.25 millert 19633: $ac_includes_default
1.27 ! millert 19634: #include <krb.h>
1.9 millert 19635: _ACEOF
1.25 millert 19636: rm -f conftest.$ac_objext
1.27 ! millert 19637: if { (ac_try="$ac_compile"
! 19638: case "(($ac_try" in
! 19639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19640: *) ac_try_echo=$ac_try;;
! 19641: esac
! 19642: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19643: (eval "$ac_compile") 2>conftest.er1
1.9 millert 19644: ac_status=$?
1.25 millert 19645: grep -v '^ *+' conftest.er1 >conftest.err
19646: rm -f conftest.er1
19647: cat conftest.err >&5
1.16 millert 19648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19649: (exit $ac_status); } && {
! 19650: test -z "$ac_c_werror_flag" ||
! 19651: test ! -s conftest.err
! 19652: } && test -s conftest.$ac_objext; then
1.25 millert 19653: ac_header_compiler=yes
1.9 millert 19654: else
19655: echo "$as_me: failed program was:" >&5
1.16 millert 19656: sed 's/^/| /' conftest.$ac_ext >&5
19657:
1.27 ! millert 19658: ac_header_compiler=no
1.9 millert 19659: fi
1.27 ! millert 19660:
! 19661: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 19662: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 19663: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 19664:
19665: # Is the header present?
1.27 ! millert 19666: { echo "$as_me:$LINENO: checking krb.h presence" >&5
! 19667: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9 millert 19668: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19669: /* confdefs.h. */
19670: _ACEOF
19671: cat confdefs.h >>conftest.$ac_ext
19672: cat >>conftest.$ac_ext <<_ACEOF
19673: /* end confdefs.h. */
1.27 ! millert 19674: #include <krb.h>
1.9 millert 19675: _ACEOF
1.27 ! millert 19676: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 19677: case "(($ac_try" in
! 19678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19679: *) ac_try_echo=$ac_try;;
! 19680: esac
! 19681: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19682: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 19683: ac_status=$?
1.25 millert 19684: grep -v '^ *+' conftest.er1 >conftest.err
19685: rm -f conftest.er1
19686: cat conftest.err >&5
1.16 millert 19687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19688: (exit $ac_status); } >/dev/null && {
! 19689: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 19690: test ! -s conftest.err
! 19691: }; then
1.25 millert 19692: ac_header_preproc=yes
1.9 millert 19693: else
19694: echo "$as_me: failed program was:" >&5
1.25 millert 19695: sed 's/^/| /' conftest.$ac_ext >&5
19696:
19697: ac_header_preproc=no
19698: fi
1.27 ! millert 19699:
1.25 millert 19700: rm -f conftest.err conftest.$ac_ext
1.27 ! millert 19701: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 19702: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 19703:
19704: # So? What about this header?
19705: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19706: yes:no: )
1.27 ! millert 19707: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 19708: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 19709: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
! 19710: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.25 millert 19711: ac_header_preproc=yes
19712: ;;
19713: no:yes:* )
1.27 ! millert 19714: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
! 19715: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
! 19716: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
! 19717: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
! 19718: { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
! 19719: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
! 19720: { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
! 19721: echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 19722: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
! 19723: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
! 19724: { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
! 19725: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.25 millert 19726:
1.27 ! millert 19727: ;;
! 19728: esac
! 19729: { echo "$as_me:$LINENO: checking for krb.h" >&5
! 19730: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
! 19731: if test "${ac_cv_header_krb_h+set}" = set; then
! 19732: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19733: else
! 19734: ac_cv_header_krb_h=$ac_header_preproc
! 19735: fi
! 19736: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
! 19737: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25 millert 19738:
1.27 ! millert 19739: fi
! 19740: if test $ac_cv_header_krb_h = yes; then
! 19741: found=yes
1.25 millert 19742: else
1.27 ! millert 19743: found=no
1.1 millert 19744: fi
19745:
1.27 ! millert 19746:
! 19747: fi
! 19748: if test X"$found" = X"no"; then
! 19749: { 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
! 19750: 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 19751: fi
1.1 millert 19752:
1.27 ! millert 19753: { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
! 19754: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
! 19755: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 19756: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19757: else
1.27 ! millert 19758: ac_check_lib_save_LIBS=$LIBS
! 19759: LIBS="-ldes $LIBS"
! 19760: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19761: /* confdefs.h. */
19762: _ACEOF
19763: cat confdefs.h >>conftest.$ac_ext
19764: cat >>conftest.$ac_ext <<_ACEOF
19765: /* end confdefs.h. */
1.25 millert 19766:
1.27 ! millert 19767: /* Override any GCC internal prototype to avoid an error.
! 19768: Use char because int might match the return type of a GCC
! 19769: builtin and then its argument prototype would still apply. */
1.9 millert 19770: #ifdef __cplusplus
19771: extern "C"
19772: #endif
1.27 ! millert 19773: char des_cbc_encrypt ();
1.16 millert 19774: int
19775: main ()
19776: {
1.27 ! millert 19777: return des_cbc_encrypt ();
1.9 millert 19778: ;
19779: return 0;
19780: }
19781: _ACEOF
19782: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 19783: if { (ac_try="$ac_link"
! 19784: case "(($ac_try" in
! 19785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19786: *) ac_try_echo=$ac_try;;
! 19787: esac
! 19788: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19789: (eval "$ac_link") 2>conftest.er1
1.9 millert 19790: ac_status=$?
1.25 millert 19791: grep -v '^ *+' conftest.er1 >conftest.err
19792: rm -f conftest.er1
19793: cat conftest.err >&5
1.16 millert 19794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19795: (exit $ac_status); } && {
! 19796: test -z "$ac_c_werror_flag" ||
! 19797: test ! -s conftest.err
! 19798: } && test -s conftest$ac_exeext &&
! 19799: $as_test_x conftest$ac_exeext; then
! 19800: ac_cv_lib_des_des_cbc_encrypt=yes
1.9 millert 19801: else
19802: echo "$as_me: failed program was:" >&5
1.16 millert 19803: sed 's/^/| /' conftest.$ac_ext >&5
19804:
1.27 ! millert 19805: ac_cv_lib_des_des_cbc_encrypt=no
1.25 millert 19806: fi
1.27 ! millert 19807:
! 19808: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19809: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 19810: LIBS=$ac_check_lib_save_LIBS
1.9 millert 19811: fi
1.27 ! millert 19812: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
! 19813: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
! 19814: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
! 19815: K4LIBS="-ldes"
! 19816: else
1.25 millert 19817:
1.27 ! millert 19818: { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
! 19819: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
! 19820: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9 millert 19821: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 19822: else
1.27 ! millert 19823: ac_check_lib_save_LIBS=$LIBS
! 19824: LIBS="-ldes425 $LIBS"
! 19825: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19826: /* confdefs.h. */
19827: _ACEOF
19828: cat confdefs.h >>conftest.$ac_ext
19829: cat >>conftest.$ac_ext <<_ACEOF
19830: /* end confdefs.h. */
1.25 millert 19831:
1.27 ! millert 19832: /* Override any GCC internal prototype to avoid an error.
! 19833: Use char because int might match the return type of a GCC
! 19834: builtin and then its argument prototype would still apply. */
1.9 millert 19835: #ifdef __cplusplus
19836: extern "C"
19837: #endif
1.27 ! millert 19838: char des_cbc_encrypt ();
1.16 millert 19839: int
19840: main ()
19841: {
1.27 ! millert 19842: return des_cbc_encrypt ();
1.9 millert 19843: ;
19844: return 0;
19845: }
19846: _ACEOF
19847: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 19848: if { (ac_try="$ac_link"
! 19849: case "(($ac_try" in
! 19850: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19851: *) ac_try_echo=$ac_try;;
! 19852: esac
! 19853: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19854: (eval "$ac_link") 2>conftest.er1
1.9 millert 19855: ac_status=$?
1.25 millert 19856: grep -v '^ *+' conftest.er1 >conftest.err
19857: rm -f conftest.er1
19858: cat conftest.err >&5
1.16 millert 19859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19860: (exit $ac_status); } && {
! 19861: test -z "$ac_c_werror_flag" ||
! 19862: test ! -s conftest.err
! 19863: } && test -s conftest$ac_exeext &&
! 19864: $as_test_x conftest$ac_exeext; then
! 19865: ac_cv_lib_des425_des_cbc_encrypt=yes
1.9 millert 19866: else
19867: echo "$as_me: failed program was:" >&5
1.16 millert 19868: sed 's/^/| /' conftest.$ac_ext >&5
19869:
1.27 ! millert 19870: ac_cv_lib_des425_des_cbc_encrypt=no
1.25 millert 19871: fi
1.27 ! millert 19872:
! 19873: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19874: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 19875: LIBS=$ac_check_lib_save_LIBS
1.25 millert 19876: fi
1.27 ! millert 19877: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
! 19878: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
! 19879: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
! 19880: K4LIBS="-ldes425"
! 19881: else
! 19882: K4LIBS=""
1.9 millert 19883: fi
1.25 millert 19884:
1.27 ! millert 19885:
1.9 millert 19886: fi
1.25 millert 19887:
1.27 ! millert 19888: { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
! 19889: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
! 19890: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19891: /* confdefs.h. */
19892: _ACEOF
19893: cat confdefs.h >>conftest.$ac_ext
19894: cat >>conftest.$ac_ext <<_ACEOF
19895: /* end confdefs.h. */
1.27 ! millert 19896: #include <krb.h>
1.9 millert 19897: int
19898: main ()
19899: {
1.27 ! millert 19900: const char *tmp = krb4_version;
1.9 millert 19901: ;
19902: return 0;
19903: }
19904: _ACEOF
1.27 ! millert 19905: rm -f conftest.$ac_objext
! 19906: if { (ac_try="$ac_compile"
! 19907: case "(($ac_try" in
! 19908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19909: *) ac_try_echo=$ac_try;;
! 19910: esac
! 19911: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19912: (eval "$ac_compile") 2>conftest.er1
1.9 millert 19913: ac_status=$?
1.25 millert 19914: grep -v '^ *+' conftest.er1 >conftest.err
19915: rm -f conftest.er1
19916: cat conftest.err >&5
1.16 millert 19917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19918: (exit $ac_status); } && {
! 19919: test -z "$ac_c_werror_flag" ||
! 19920: test ! -s conftest.err
! 19921: } && test -s conftest.$ac_objext; then
1.16 millert 19922:
1.27 ! millert 19923: { echo "$as_me:$LINENO: result: yes" >&5
! 19924: echo "${ECHO_T}yes" >&6; }
! 19925: K4LIBS="${K4LIBS} -lcom_err"
! 19926: { echo "$as_me:$LINENO: checking for main in -lroken" >&5
! 19927: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
! 19928: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9 millert 19929: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19930: else
1.9 millert 19931: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 19932: LIBS="-lroken $LIBS"
1.9 millert 19933: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19934: /* confdefs.h. */
19935: _ACEOF
19936: cat confdefs.h >>conftest.$ac_ext
19937: cat >>conftest.$ac_ext <<_ACEOF
19938: /* end confdefs.h. */
1.9 millert 19939:
1.27 ! millert 19940:
1.9 millert 19941: int
19942: main ()
19943: {
1.27 ! millert 19944: return main ();
1.9 millert 19945: ;
19946: return 0;
19947: }
19948: _ACEOF
19949: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 19950: if { (ac_try="$ac_link"
! 19951: case "(($ac_try" in
! 19952: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19953: *) ac_try_echo=$ac_try;;
! 19954: esac
! 19955: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19956: (eval "$ac_link") 2>conftest.er1
1.9 millert 19957: ac_status=$?
1.25 millert 19958: grep -v '^ *+' conftest.er1 >conftest.err
19959: rm -f conftest.er1
19960: cat conftest.err >&5
1.16 millert 19961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 19962: (exit $ac_status); } && {
! 19963: test -z "$ac_c_werror_flag" ||
! 19964: test ! -s conftest.err
! 19965: } && test -s conftest$ac_exeext &&
! 19966: $as_test_x conftest$ac_exeext; then
! 19967: ac_cv_lib_roken_main=yes
1.9 millert 19968: else
19969: echo "$as_me: failed program was:" >&5
1.16 millert 19970: sed 's/^/| /' conftest.$ac_ext >&5
19971:
1.27 ! millert 19972: ac_cv_lib_roken_main=no
1.9 millert 19973: fi
1.27 ! millert 19974:
! 19975: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19976: conftest$ac_exeext conftest.$ac_ext
1.9 millert 19977: LIBS=$ac_check_lib_save_LIBS
19978: fi
1.27 ! millert 19979: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
! 19980: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
! 19981: if test $ac_cv_lib_roken_main = yes; then
! 19982: K4LIBS="${K4LIBS} -lroken"
1.1 millert 19983: fi
19984:
1.27 ! millert 19985:
! 19986: else
! 19987: echo "$as_me: failed program was:" >&5
! 19988: sed 's/^/| /' conftest.$ac_ext >&5
! 19989:
! 19990:
! 19991: { echo "$as_me:$LINENO: result: no" >&5
! 19992: echo "${ECHO_T}no" >&6; }
! 19993:
! 19994:
1.1 millert 19995: fi
19996:
1.27 ! millert 19997: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 19998: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
! 19999: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
! 20000: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
! 20001: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 20002: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20003: else
1.27 ! millert 20004: ac_check_lib_save_LIBS=$LIBS
! 20005: LIBS="-lkrb $K4LIBS $LIBS"
! 20006: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20007: /* confdefs.h. */
20008: _ACEOF
20009: cat confdefs.h >>conftest.$ac_ext
20010: cat >>conftest.$ac_ext <<_ACEOF
20011: /* end confdefs.h. */
1.25 millert 20012:
1.1 millert 20013:
1.16 millert 20014: int
20015: main ()
20016: {
1.27 ! millert 20017: return main ();
1.9 millert 20018: ;
20019: return 0;
20020: }
20021: _ACEOF
20022: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20023: if { (ac_try="$ac_link"
! 20024: case "(($ac_try" in
! 20025: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20026: *) ac_try_echo=$ac_try;;
! 20027: esac
! 20028: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20029: (eval "$ac_link") 2>conftest.er1
1.9 millert 20030: ac_status=$?
1.25 millert 20031: grep -v '^ *+' conftest.er1 >conftest.err
20032: rm -f conftest.er1
20033: cat conftest.err >&5
1.16 millert 20034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20035: (exit $ac_status); } && {
! 20036: test -z "$ac_c_werror_flag" ||
! 20037: test ! -s conftest.err
! 20038: } && test -s conftest$ac_exeext &&
! 20039: $as_test_x conftest$ac_exeext; then
! 20040: eval "$as_ac_Lib=yes"
1.9 millert 20041: else
20042: echo "$as_me: failed program was:" >&5
1.16 millert 20043: sed 's/^/| /' conftest.$ac_ext >&5
20044:
1.27 ! millert 20045: eval "$as_ac_Lib=no"
1.9 millert 20046: fi
1.27 ! millert 20047:
! 20048: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20049: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 20050: LIBS=$ac_check_lib_save_LIBS
1.9 millert 20051: fi
1.27 ! millert 20052: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 20053: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 20054: echo "${ECHO_T}$ac_res" >&6; }
! 20055: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
! 20056: K4LIBS="-lkrb $K4LIBS"
! 20057: else
! 20058:
! 20059: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
! 20060: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
! 20061: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
! 20062: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 20063: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20064: else
1.9 millert 20065: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 20066: LIBS="-lkrb4 $K4LIBS $LIBS"
1.9 millert 20067: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20068: /* confdefs.h. */
20069: _ACEOF
20070: cat confdefs.h >>conftest.$ac_ext
20071: cat >>conftest.$ac_ext <<_ACEOF
20072: /* end confdefs.h. */
1.9 millert 20073:
1.27 ! millert 20074:
1.9 millert 20075: int
20076: main ()
20077: {
1.27 ! millert 20078: return main ();
1.9 millert 20079: ;
20080: return 0;
20081: }
20082: _ACEOF
20083: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20084: if { (ac_try="$ac_link"
! 20085: case "(($ac_try" in
! 20086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20087: *) ac_try_echo=$ac_try;;
! 20088: esac
! 20089: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20090: (eval "$ac_link") 2>conftest.er1
1.9 millert 20091: ac_status=$?
1.25 millert 20092: grep -v '^ *+' conftest.er1 >conftest.err
20093: rm -f conftest.er1
20094: cat conftest.err >&5
1.16 millert 20095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20096: (exit $ac_status); } && {
! 20097: test -z "$ac_c_werror_flag" ||
! 20098: test ! -s conftest.err
! 20099: } && test -s conftest$ac_exeext &&
! 20100: $as_test_x conftest$ac_exeext; then
! 20101: eval "$as_ac_Lib=yes"
1.9 millert 20102: else
20103: echo "$as_me: failed program was:" >&5
1.16 millert 20104: sed 's/^/| /' conftest.$ac_ext >&5
20105:
1.27 ! millert 20106: eval "$as_ac_Lib=no"
1.9 millert 20107: fi
1.27 ! millert 20108:
! 20109: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20110: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20111: LIBS=$ac_check_lib_save_LIBS
20112: fi
1.27 ! millert 20113: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 20114: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 20115: echo "${ECHO_T}$ac_res" >&6; }
! 20116: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
! 20117: K4LIBS="-lkrb4 $K4LIBS"
1.1 millert 20118: else
1.27 ! millert 20119: K4LIBS="-lkrb $K4LIBS"
! 20120: { 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
! 20121: 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;}
! 20122:
! 20123: fi
! 20124:
! 20125:
! 20126: fi
! 20127:
! 20128: LDFLAGS="$O_LDFLAGS"
! 20129: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
! 20130: AUTH_OBJS="$AUTH_OBJS kerb4.o"
! 20131: fi
! 20132:
! 20133: if test ${with_kerb5-'no'} != "no"; then
! 20134: # Extract the first word of "krb5-config", so it can be a program name with args.
! 20135: set dummy krb5-config; ac_word=$2
! 20136: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 20137: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 20138: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9 millert 20139: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20140: else
1.27 ! millert 20141: if test -n "$KRB5CONFIG"; then
! 20142: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
! 20143: else
! 20144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 20145: for as_dir in $PATH
! 20146: do
! 20147: IFS=$as_save_IFS
! 20148: test -z "$as_dir" && as_dir=.
! 20149: for ac_exec_ext in '' $ac_executable_extensions; do
! 20150: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 20151: ac_cv_prog_KRB5CONFIG="yes"
! 20152: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 20153: break 2
! 20154: fi
! 20155: done
! 20156: done
! 20157: IFS=$as_save_IFS
! 20158:
! 20159: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
! 20160: fi
! 20161: fi
! 20162: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
! 20163: if test -n "$KRB5CONFIG"; then
! 20164: { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
! 20165: echo "${ECHO_T}$KRB5CONFIG" >&6; }
! 20166: else
! 20167: { echo "$as_me:$LINENO: result: no" >&5
! 20168: echo "${ECHO_T}no" >&6; }
! 20169: fi
! 20170:
! 20171:
! 20172: if test -n "$KRB5CONFIG"; then
! 20173: cat >>confdefs.h <<\_ACEOF
! 20174: #define HAVE_KERB5 1
! 20175: _ACEOF
! 20176:
! 20177: AUTH_OBJS="$AUTH_OBJS kerb5.o"
! 20178: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
! 20179: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
! 20180: { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
! 20181: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
! 20182: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20183: /* confdefs.h. */
20184: _ACEOF
20185: cat confdefs.h >>conftest.$ac_ext
20186: cat >>conftest.$ac_ext <<_ACEOF
20187: /* end confdefs.h. */
1.27 ! millert 20188: #include <krb5.h>
1.9 millert 20189: int
20190: main ()
20191: {
1.27 ! millert 20192: const char *tmp = heimdal_version;
1.9 millert 20193: ;
20194: return 0;
20195: }
20196: _ACEOF
1.27 ! millert 20197: rm -f conftest.$ac_objext
! 20198: if { (ac_try="$ac_compile"
! 20199: case "(($ac_try" in
! 20200: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20201: *) ac_try_echo=$ac_try;;
! 20202: esac
! 20203: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20204: (eval "$ac_compile") 2>conftest.er1
1.9 millert 20205: ac_status=$?
1.25 millert 20206: grep -v '^ *+' conftest.er1 >conftest.err
20207: rm -f conftest.er1
20208: cat conftest.err >&5
1.16 millert 20209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20210: (exit $ac_status); } && {
! 20211: test -z "$ac_c_werror_flag" ||
! 20212: test ! -s conftest.err
! 20213: } && test -s conftest.$ac_objext; then
! 20214:
! 20215: { echo "$as_me:$LINENO: result: yes" >&5
! 20216: echo "${ECHO_T}yes" >&6; }
! 20217: cat >>confdefs.h <<\_ACEOF
! 20218: #define HAVE_HEIMDAL 1
! 20219: _ACEOF
! 20220:
! 20221:
! 20222: else
! 20223: echo "$as_me: failed program was:" >&5
! 20224: sed 's/^/| /' conftest.$ac_ext >&5
! 20225:
! 20226:
! 20227: { echo "$as_me:$LINENO: result: no" >&5
! 20228: echo "${ECHO_T}no" >&6; }
! 20229:
! 20230:
! 20231: fi
! 20232:
! 20233: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 20234: fi
! 20235: fi
! 20236: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
! 20237: cat >>confdefs.h <<\_ACEOF
! 20238: #define HAVE_KERB5 1
! 20239: _ACEOF
! 20240:
! 20241: if test "$with_kerb5" = "yes"; then
! 20242: found=no
! 20243: O_CPPFLAGS="$CPPFLAGS"
! 20244: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
! 20245: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
! 20246: cat >conftest.$ac_ext <<_ACEOF
! 20247: #include <krb5.h>
! 20248: _ACEOF
! 20249: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 20250: case "(($ac_try" in
! 20251: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20252: *) ac_try_echo=$ac_try;;
! 20253: esac
! 20254: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20255: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 20256: ac_status=$?
1.27 ! millert 20257: grep -v '^ *+' conftest.er1 >conftest.err
! 20258: rm -f conftest.er1
! 20259: cat conftest.err >&5
1.25 millert 20260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20261: (exit $ac_status); } >/dev/null && {
! 20262: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 20263: test ! -s conftest.err
! 20264: }; then
! 20265: found=yes; break
1.9 millert 20266: else
20267: echo "$as_me: failed program was:" >&5
1.16 millert 20268: sed 's/^/| /' conftest.$ac_ext >&5
20269:
1.27 ! millert 20270:
1.9 millert 20271: fi
1.27 ! millert 20272:
! 20273: rm -f conftest.err conftest.$ac_ext
! 20274: done
! 20275: if test X"$found" = X"no"; then
! 20276: CPPFLAGS="$O_CPPFLAGS"
! 20277: { 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
! 20278: 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;}
! 20279: fi
! 20280: else
! 20281:
! 20282: if test X"$with_rpath" = X"yes"; then
! 20283: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
! 20284: else
! 20285: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
! 20286: fi
! 20287: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 20288: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
! 20289: fi
! 20290:
! 20291: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
! 20292: fi
! 20293:
! 20294: { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
! 20295: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
! 20296: cat >conftest.$ac_ext <<_ACEOF
! 20297: /* confdefs.h. */
! 20298: _ACEOF
! 20299: cat confdefs.h >>conftest.$ac_ext
! 20300: cat >>conftest.$ac_ext <<_ACEOF
! 20301: /* end confdefs.h. */
! 20302: #include <krb5.h>
! 20303: int
! 20304: main ()
! 20305: {
! 20306: const char *tmp = heimdal_version;
! 20307: ;
! 20308: return 0;
! 20309: }
! 20310: _ACEOF
! 20311: rm -f conftest.$ac_objext
! 20312: if { (ac_try="$ac_compile"
! 20313: case "(($ac_try" in
! 20314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20315: *) ac_try_echo=$ac_try;;
! 20316: esac
! 20317: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20318: (eval "$ac_compile") 2>conftest.er1
! 20319: ac_status=$?
! 20320: grep -v '^ *+' conftest.er1 >conftest.err
! 20321: rm -f conftest.er1
! 20322: cat conftest.err >&5
! 20323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20324: (exit $ac_status); } && {
! 20325: test -z "$ac_c_werror_flag" ||
! 20326: test ! -s conftest.err
! 20327: } && test -s conftest.$ac_objext; then
! 20328:
! 20329: { echo "$as_me:$LINENO: result: yes" >&5
! 20330: echo "${ECHO_T}yes" >&6; }
! 20331: cat >>confdefs.h <<\_ACEOF
! 20332: #define HAVE_HEIMDAL 1
1.25 millert 20333: _ACEOF
1.27 ! millert 20334:
! 20335: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
! 20336: { echo "$as_me:$LINENO: checking for main in -lroken" >&5
! 20337: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
! 20338: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9 millert 20339: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20340: else
1.9 millert 20341: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 20342: LIBS="-lroken $LIBS"
1.9 millert 20343: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20344: /* confdefs.h. */
20345: _ACEOF
20346: cat confdefs.h >>conftest.$ac_ext
20347: cat >>conftest.$ac_ext <<_ACEOF
20348: /* end confdefs.h. */
1.9 millert 20349:
1.27 ! millert 20350:
1.25 millert 20351: int
20352: main ()
20353: {
1.27 ! millert 20354: return main ();
1.25 millert 20355: ;
20356: return 0;
20357: }
20358: _ACEOF
20359: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20360: if { (ac_try="$ac_link"
! 20361: case "(($ac_try" in
! 20362: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20363: *) ac_try_echo=$ac_try;;
! 20364: esac
! 20365: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20366: (eval "$ac_link") 2>conftest.er1
1.25 millert 20367: ac_status=$?
20368: grep -v '^ *+' conftest.er1 >conftest.err
20369: rm -f conftest.er1
20370: cat conftest.err >&5
20371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20372: (exit $ac_status); } && {
! 20373: test -z "$ac_c_werror_flag" ||
! 20374: test ! -s conftest.err
! 20375: } && test -s conftest$ac_exeext &&
! 20376: $as_test_x conftest$ac_exeext; then
! 20377: ac_cv_lib_roken_main=yes
1.25 millert 20378: else
20379: echo "$as_me: failed program was:" >&5
20380: sed 's/^/| /' conftest.$ac_ext >&5
20381:
1.27 ! millert 20382: ac_cv_lib_roken_main=no
1.25 millert 20383: fi
1.27 ! millert 20384:
! 20385: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20386: conftest$ac_exeext conftest.$ac_ext
20387: LIBS=$ac_check_lib_save_LIBS
20388: fi
1.27 ! millert 20389: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
! 20390: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
! 20391: if test $ac_cv_lib_roken_main = yes; then
! 20392: SUDO_LIBS="${SUDO_LIBS} -lroken"
1.25 millert 20393: fi
20394:
20395:
1.27 ! millert 20396: else
! 20397: echo "$as_me: failed program was:" >&5
! 20398: sed 's/^/| /' conftest.$ac_ext >&5
! 20399:
! 20400:
! 20401: { echo "$as_me:$LINENO: result: no" >&5
! 20402: echo "${ECHO_T}no" >&6; }
! 20403: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
1.25 millert 20404:
20405:
20406: fi
20407:
1.27 ! millert 20408: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 20409: AUTH_OBJS="$AUTH_OBJS kerb5.o"
! 20410: _LIBS="$LIBS"
! 20411: LIBS="${LIBS} ${SUDO_LIBS}"
1.25 millert 20412:
20413:
1.27 ! millert 20414: for ac_func in krb5_verify_user krb5_init_secure_context
1.25 millert 20415: do
20416: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 20417: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20418: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 20419: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 20420: echo $ECHO_N "(cached) $ECHO_C" >&6
20421: else
20422: cat >conftest.$ac_ext <<_ACEOF
20423: /* confdefs.h. */
20424: _ACEOF
20425: cat confdefs.h >>conftest.$ac_ext
20426: cat >>conftest.$ac_ext <<_ACEOF
20427: /* end confdefs.h. */
20428: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20429: For example, HP-UX 11i <limits.h> declares gettimeofday. */
20430: #define $ac_func innocuous_$ac_func
20431:
20432: /* System header to define __stub macros and hopefully few prototypes,
20433: which can conflict with char $ac_func (); below.
20434: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20435: <limits.h> exists even on freestanding compilers. */
20436:
20437: #ifdef __STDC__
20438: # include <limits.h>
20439: #else
20440: # include <assert.h>
20441: #endif
20442:
20443: #undef $ac_func
20444:
1.27 ! millert 20445: /* Override any GCC internal prototype to avoid an error.
! 20446: Use char because int might match the return type of a GCC
! 20447: builtin and then its argument prototype would still apply. */
1.25 millert 20448: #ifdef __cplusplus
20449: extern "C"
20450: #endif
20451: char $ac_func ();
20452: /* The GNU C library defines this for functions which it implements
20453: to always fail with ENOSYS. Some functions are actually named
20454: something starting with __ and the normal name is an alias. */
1.27 ! millert 20455: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 20456: choke me
20457: #endif
20458:
1.9 millert 20459: int
20460: main ()
20461: {
1.27 ! millert 20462: return $ac_func ();
1.9 millert 20463: ;
20464: return 0;
20465: }
20466: _ACEOF
20467: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20468: if { (ac_try="$ac_link"
! 20469: case "(($ac_try" in
! 20470: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20471: *) ac_try_echo=$ac_try;;
! 20472: esac
! 20473: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20474: (eval "$ac_link") 2>conftest.er1
1.9 millert 20475: ac_status=$?
1.25 millert 20476: grep -v '^ *+' conftest.er1 >conftest.err
20477: rm -f conftest.er1
20478: cat conftest.err >&5
1.16 millert 20479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20480: (exit $ac_status); } && {
! 20481: test -z "$ac_c_werror_flag" ||
! 20482: test ! -s conftest.err
! 20483: } && test -s conftest$ac_exeext &&
! 20484: $as_test_x conftest$ac_exeext; then
1.25 millert 20485: eval "$as_ac_var=yes"
1.9 millert 20486: else
20487: echo "$as_me: failed program was:" >&5
1.16 millert 20488: sed 's/^/| /' conftest.$ac_ext >&5
20489:
1.27 ! millert 20490: eval "$as_ac_var=no"
1.25 millert 20491: fi
1.27 ! millert 20492:
! 20493: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20494: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20495: fi
1.27 ! millert 20496: ac_res=`eval echo '${'$as_ac_var'}'`
! 20497: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 20498: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 20499: if test `eval echo '${'$as_ac_var'}'` = yes; then
20500: cat >>confdefs.h <<_ACEOF
20501: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20502: _ACEOF
20503:
1.9 millert 20504: fi
1.25 millert 20505: done
20506:
1.27 ! millert 20507: LIBS="$_LIBS"
1.1 millert 20508: fi
20509:
1.27 ! millert 20510: if test ${with_logincap-'no'} = "yes"; then
! 20511: case "$OS" in
! 20512: freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
! 20513: ;;
! 20514: esac
1.1 millert 20515: fi
20516:
1.27 ! millert 20517: if test ${with_AFS-'no'} = "yes"; then
1.25 millert 20518:
20519: # looks like the "standard" place for AFS libs is /usr/afsws/lib
20520: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
20521: for i in $AFSLIBDIRS; do
20522: if test -d ${i}; then
20523:
20524: if test X"$with_rpath" = X"yes"; then
20525: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
20526: else
20527: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
20528: fi
20529: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20530: blibpath_add="${blibpath_add}:$i"
20531: fi
20532:
20533: FOUND_AFSLIBDIR=true
20534: fi
20535: done
20536: if test -z "$FOUND_AFSLIBDIR"; then
20537: { 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
20538: 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;}
20539: fi
20540:
20541: # Order is important here. Note that we build AFS_LIBS from right to left
20542: # since AFS_LIBS may be initialized with BSD compat libs that must go last
20543: AFS_LIBS="-laudit ${AFS_LIBS}"
20544: for i in $AFSLIBDIRS; do
20545: if test -f ${i}/util.a; then
20546: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
20547: FOUND_UTIL_A=true
20548: break;
20549: fi
20550: done
20551: if test -z "$FOUND_UTIL_A"; then
20552: AFS_LIBS="-lutil ${AFS_LIBS}"
20553: fi
20554: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
20555:
20556: # AFS includes may live in /usr/include on some machines...
20557: for i in /usr/afsws/include; do
20558: if test -d ${i}; then
20559: CPPFLAGS="${CPPFLAGS} -I${i}"
20560: FOUND_AFSINCDIR=true
20561: fi
20562: done
20563:
20564: if test -z "$FOUND_AFSLIBDIR"; then
20565: { 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
20566: 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;}
20567: fi
1.27 ! millert 20568:
! 20569: AUTH_OBJS="$AUTH_OBJS afs.o"
1.1 millert 20570: fi
20571:
1.27 ! millert 20572: if test ${with_DCE-'no'} = "yes"; then
1.25 millert 20573: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
20574: SUDO_LIBS="${SUDO_LIBS} -ldce"
1.27 ! millert 20575: AUTH_OBJS="$AUTH_OBJS dce.o"
1.1 millert 20576: fi
20577:
1.27 ! millert 20578: if test ${with_skey-'no'} = "yes"; then
1.25 millert 20579: O_LDFLAGS="$LDFLAGS"
20580: if test "$with_skey" != "yes"; then
20581: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
20582:
20583: if test X"$with_rpath" = X"yes"; then
20584: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
20585: else
20586: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
20587: fi
20588: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20589: blibpath_add="${blibpath_add}:${with_skey}/lib"
20590: fi
20591:
20592:
20593: if test X"$with_rpath" = X"yes"; then
20594: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
20595: else
20596: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
20597: fi
20598: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20599: blibpath_add="${blibpath_add}:${with_skey}/lib"
20600: fi
20601:
20602: cat >conftest.$ac_ext <<_ACEOF
20603: #include <skey.h>
1.16 millert 20604: _ACEOF
1.27 ! millert 20605: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 20606: case "(($ac_try" in
! 20607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20608: *) ac_try_echo=$ac_try;;
! 20609: esac
! 20610: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20611: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 20612: ac_status=$?
1.25 millert 20613: grep -v '^ *+' conftest.er1 >conftest.err
20614: rm -f conftest.er1
20615: cat conftest.err >&5
1.16 millert 20616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20617: (exit $ac_status); } >/dev/null && {
! 20618: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 20619: test ! -s conftest.err
! 20620: }; then
1.25 millert 20621: found=yes
20622: else
20623: echo "$as_me: failed program was:" >&5
20624: sed 's/^/| /' conftest.$ac_ext >&5
20625:
20626: found=no
20627: fi
1.27 ! millert 20628:
1.25 millert 20629: rm -f conftest.err conftest.$ac_ext
20630: else
20631: found=no
20632: O_CPPFLAGS="$CPPFLAGS"
20633: for dir in "" "/usr/local" "/usr/contrib"; do
20634: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
20635: cat >conftest.$ac_ext <<_ACEOF
20636: #include <skey.h>
20637: _ACEOF
1.27 ! millert 20638: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 20639: case "(($ac_try" in
! 20640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20641: *) ac_try_echo=$ac_try;;
! 20642: esac
! 20643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20644: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 20645: ac_status=$?
1.25 millert 20646: grep -v '^ *+' conftest.er1 >conftest.err
20647: rm -f conftest.er1
20648: cat conftest.err >&5
1.16 millert 20649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20650: (exit $ac_status); } >/dev/null && {
! 20651: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 20652: test ! -s conftest.err
! 20653: }; then
1.25 millert 20654: found=yes; break
1.9 millert 20655: else
20656: echo "$as_me: failed program was:" >&5
1.16 millert 20657: sed 's/^/| /' conftest.$ac_ext >&5
20658:
1.25 millert 20659:
1.9 millert 20660: fi
1.27 ! millert 20661:
1.25 millert 20662: rm -f conftest.err conftest.$ac_ext
20663: done
20664: if test "$found" = "no" -o -z "$dir"; then
20665: CPPFLAGS="$O_CPPFLAGS"
20666: else
20667:
20668: if test X"$with_rpath" = X"yes"; then
20669: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
20670: else
20671: LDFLAGS="${LDFLAGS} -L${dir}/lib"
20672: fi
20673: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20674: blibpath_add="${blibpath_add}:${dir}/lib"
20675: fi
1.1 millert 20676:
20677:
1.25 millert 20678: if test X"$with_rpath" = X"yes"; then
20679: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
20680: else
20681: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
20682: fi
20683: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20684: blibpath_add="${blibpath_add}:${dir}/lib"
20685: fi
1.1 millert 20686:
1.25 millert 20687: fi
20688: fi
20689: if test "$found" = "no"; then
20690: { 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
20691: 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;}
20692: fi
1.27 ! millert 20693: { echo "$as_me:$LINENO: checking for main in -lskey" >&5
! 20694: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
1.25 millert 20695: if test "${ac_cv_lib_skey_main+set}" = set; then
1.9 millert 20696: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20697: else
1.25 millert 20698: ac_check_lib_save_LIBS=$LIBS
20699: LIBS="-lskey $LIBS"
20700: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20701: /* confdefs.h. */
20702: _ACEOF
20703: cat confdefs.h >>conftest.$ac_ext
20704: cat >>conftest.$ac_ext <<_ACEOF
20705: /* end confdefs.h. */
1.25 millert 20706:
1.1 millert 20707:
1.9 millert 20708: int
20709: main ()
20710: {
1.27 ! millert 20711: return main ();
1.9 millert 20712: ;
20713: return 0;
20714: }
20715: _ACEOF
20716: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20717: if { (ac_try="$ac_link"
! 20718: case "(($ac_try" in
! 20719: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20720: *) ac_try_echo=$ac_try;;
! 20721: esac
! 20722: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20723: (eval "$ac_link") 2>conftest.er1
1.9 millert 20724: ac_status=$?
1.25 millert 20725: grep -v '^ *+' conftest.er1 >conftest.err
20726: rm -f conftest.er1
20727: cat conftest.err >&5
1.16 millert 20728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20729: (exit $ac_status); } && {
! 20730: test -z "$ac_c_werror_flag" ||
! 20731: test ! -s conftest.err
! 20732: } && test -s conftest$ac_exeext &&
! 20733: $as_test_x conftest$ac_exeext; then
1.25 millert 20734: ac_cv_lib_skey_main=yes
1.1 millert 20735: else
1.9 millert 20736: echo "$as_me: failed program was:" >&5
1.16 millert 20737: sed 's/^/| /' conftest.$ac_ext >&5
20738:
1.27 ! millert 20739: ac_cv_lib_skey_main=no
1.18 millert 20740: fi
20741:
1.27 ! millert 20742: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20743: conftest$ac_exeext conftest.$ac_ext
! 20744: LIBS=$ac_check_lib_save_LIBS
! 20745: fi
! 20746: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
! 20747: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
! 20748: if test $ac_cv_lib_skey_main = yes; then
! 20749: found=yes
! 20750: else
! 20751: { 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
! 20752: 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;}
! 20753: fi
1.18 millert 20754:
1.27 ! millert 20755: { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
! 20756: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
! 20757: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.18 millert 20758: echo $ECHO_N "(cached) $ECHO_C" >&6
20759: else
1.25 millert 20760: ac_check_lib_save_LIBS=$LIBS
1.27 ! millert 20761: LIBS="-lskey $LIBS"
1.25 millert 20762: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 20763: /* confdefs.h. */
20764: _ACEOF
20765: cat confdefs.h >>conftest.$ac_ext
20766: cat >>conftest.$ac_ext <<_ACEOF
20767: /* end confdefs.h. */
20768:
1.27 ! millert 20769: /* Override any GCC internal prototype to avoid an error.
! 20770: Use char because int might match the return type of a GCC
! 20771: builtin and then its argument prototype would still apply. */
1.25 millert 20772: #ifdef __cplusplus
20773: extern "C"
20774: #endif
1.27 ! millert 20775: char skeyaccess ();
1.18 millert 20776: int
20777: main ()
20778: {
1.27 ! millert 20779: return skeyaccess ();
1.18 millert 20780: ;
20781: return 0;
20782: }
20783: _ACEOF
20784: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20785: if { (ac_try="$ac_link"
! 20786: case "(($ac_try" in
! 20787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20788: *) ac_try_echo=$ac_try;;
! 20789: esac
! 20790: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20791: (eval "$ac_link") 2>conftest.er1
1.18 millert 20792: ac_status=$?
1.25 millert 20793: grep -v '^ *+' conftest.er1 >conftest.err
20794: rm -f conftest.er1
20795: cat conftest.err >&5
1.18 millert 20796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20797: (exit $ac_status); } && {
! 20798: test -z "$ac_c_werror_flag" ||
! 20799: test ! -s conftest.err
! 20800: } && test -s conftest$ac_exeext &&
! 20801: $as_test_x conftest$ac_exeext; then
! 20802: ac_cv_lib_skey_skeyaccess=yes
1.18 millert 20803: else
20804: echo "$as_me: failed program was:" >&5
20805: sed 's/^/| /' conftest.$ac_ext >&5
20806:
1.27 ! millert 20807: ac_cv_lib_skey_skeyaccess=no
1.25 millert 20808: fi
1.27 ! millert 20809:
! 20810: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20811: conftest$ac_exeext conftest.$ac_ext
20812: LIBS=$ac_check_lib_save_LIBS
1.18 millert 20813: fi
1.27 ! millert 20814: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
! 20815: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
! 20816: if test $ac_cv_lib_skey_skeyaccess = yes; then
! 20817: cat >>confdefs.h <<\_ACEOF
! 20818: #define HAVE_SKEYACCESS 1
! 20819: _ACEOF
1.25 millert 20820:
1.27 ! millert 20821: fi
1.25 millert 20822:
1.27 ! millert 20823: LDFLAGS="$O_LDFLAGS"
! 20824: SUDO_LIBS="${SUDO_LIBS} -lskey"
! 20825: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.18 millert 20826: fi
20827:
1.27 ! millert 20828: if test ${with_opie-'no'} = "yes"; then
! 20829: O_LDFLAGS="$LDFLAGS"
! 20830: if test "$with_opie" != "yes"; then
! 20831: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.18 millert 20832:
1.25 millert 20833: if test X"$with_rpath" = X"yes"; then
1.27 ! millert 20834: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.18 millert 20835: else
1.27 ! millert 20836: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25 millert 20837: fi
1.27 ! millert 20838: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 20839: blibpath_add="${blibpath_add}:${with_opie}/lib"
1.18 millert 20840: fi
20841:
20842:
1.17 millert 20843: if test X"$with_rpath" = X"yes"; then
1.27 ! millert 20844: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.1 millert 20845: else
1.27 ! millert 20846: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25 millert 20847: fi
20848: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.27 ! millert 20849: blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25 millert 20850: fi
20851:
1.27 ! millert 20852: cat >conftest.$ac_ext <<_ACEOF
! 20853: #include <opie.h>
1.25 millert 20854: _ACEOF
1.27 ! millert 20855: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 20856: case "(($ac_try" in
! 20857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20858: *) ac_try_echo=$ac_try;;
! 20859: esac
! 20860: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20861: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 20862: ac_status=$?
1.25 millert 20863: grep -v '^ *+' conftest.er1 >conftest.err
20864: rm -f conftest.er1
20865: cat conftest.err >&5
1.16 millert 20866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20867: (exit $ac_status); } >/dev/null && {
! 20868: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 20869: test ! -s conftest.err
! 20870: }; then
! 20871: found=yes
1.9 millert 20872: else
20873: echo "$as_me: failed program was:" >&5
1.16 millert 20874: sed 's/^/| /' conftest.$ac_ext >&5
20875:
1.27 ! millert 20876: found=no
1.9 millert 20877: fi
1.17 millert 20878:
1.27 ! millert 20879: rm -f conftest.err conftest.$ac_ext
! 20880: else
! 20881: found=no
! 20882: O_CPPFLAGS="$CPPFLAGS"
! 20883: for dir in "" "/usr/local" "/usr/contrib"; do
! 20884: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
! 20885: cat >conftest.$ac_ext <<_ACEOF
! 20886: #include <opie.h>
1.17 millert 20887: _ACEOF
1.27 ! millert 20888: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 20889: case "(($ac_try" in
! 20890: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20891: *) ac_try_echo=$ac_try;;
! 20892: esac
! 20893: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20894: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.17 millert 20895: ac_status=$?
20896: grep -v '^ *+' conftest.er1 >conftest.err
20897: rm -f conftest.er1
20898: cat conftest.err >&5
20899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20900: (exit $ac_status); } >/dev/null && {
! 20901: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 20902: test ! -s conftest.err
! 20903: }; then
! 20904: found=yes; break
1.5 millert 20905: else
1.17 millert 20906: echo "$as_me: failed program was:" >&5
20907: sed 's/^/| /' conftest.$ac_ext >&5
20908:
1.5 millert 20909:
20910: fi
20911:
1.27 ! millert 20912: rm -f conftest.err conftest.$ac_ext
! 20913: done
! 20914: if test "$found" = "no" -o -z "$dir"; then
! 20915: CPPFLAGS="$O_CPPFLAGS"
! 20916: else
1.17 millert 20917:
1.25 millert 20918: if test X"$with_rpath" = X"yes"; then
1.27 ! millert 20919: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.25 millert 20920: else
1.27 ! millert 20921: LDFLAGS="${LDFLAGS} -L${dir}/lib"
1.25 millert 20922: fi
1.27 ! millert 20923: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 20924: blibpath_add="${blibpath_add}:${dir}/lib"
1.25 millert 20925: fi
1.17 millert 20926:
20927:
1.25 millert 20928: if test X"$with_rpath" = X"yes"; then
1.27 ! millert 20929: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.25 millert 20930: else
1.27 ! millert 20931: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
1.25 millert 20932: fi
1.27 ! millert 20933: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 20934: blibpath_add="${blibpath_add}:${dir}/lib"
1.25 millert 20935: fi
1.17 millert 20936:
1.27 ! millert 20937: fi
! 20938: fi
! 20939: if test "$found" = "no"; then
! 20940: { 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
! 20941: 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 20942: fi
1.27 ! millert 20943: { echo "$as_me:$LINENO: checking for main in -lopie" >&5
! 20944: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
! 20945: if test "${ac_cv_lib_opie_main+set}" = set; then
! 20946: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20947: else
! 20948: ac_check_lib_save_LIBS=$LIBS
! 20949: LIBS="-lopie $LIBS"
! 20950: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 20951: /* confdefs.h. */
20952: _ACEOF
20953: cat confdefs.h >>conftest.$ac_ext
20954: cat >>conftest.$ac_ext <<_ACEOF
20955: /* end confdefs.h. */
1.27 ! millert 20956:
! 20957:
1.17 millert 20958: int
20959: main ()
20960: {
1.27 ! millert 20961: return main ();
1.17 millert 20962: ;
20963: return 0;
20964: }
20965: _ACEOF
20966: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 20967: if { (ac_try="$ac_link"
! 20968: case "(($ac_try" in
! 20969: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20970: *) ac_try_echo=$ac_try;;
! 20971: esac
! 20972: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20973: (eval "$ac_link") 2>conftest.er1
1.17 millert 20974: ac_status=$?
1.25 millert 20975: grep -v '^ *+' conftest.er1 >conftest.err
20976: rm -f conftest.er1
20977: cat conftest.err >&5
1.17 millert 20978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 20979: (exit $ac_status); } && {
! 20980: test -z "$ac_c_werror_flag" ||
! 20981: test ! -s conftest.err
! 20982: } && test -s conftest$ac_exeext &&
! 20983: $as_test_x conftest$ac_exeext; then
! 20984: ac_cv_lib_opie_main=yes
1.17 millert 20985: else
20986: echo "$as_me: failed program was:" >&5
20987: sed 's/^/| /' conftest.$ac_ext >&5
20988:
1.27 ! millert 20989: ac_cv_lib_opie_main=no
1.17 millert 20990: fi
1.27 ! millert 20991:
! 20992: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20993: conftest$ac_exeext conftest.$ac_ext
1.27 ! millert 20994: LIBS=$ac_check_lib_save_LIBS
! 20995: fi
! 20996: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
! 20997: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
! 20998: if test $ac_cv_lib_opie_main = yes; then
! 20999: found=yes
! 21000: else
! 21001: { 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
! 21002: 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;}
! 21003: fi
! 21004:
! 21005: LDFLAGS="$O_LDFLAGS"
! 21006: SUDO_LIBS="${SUDO_LIBS} -lopie"
! 21007: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
! 21008: fi
! 21009:
! 21010: if test ${with_passwd-'no'} != "no"; then
! 21011: if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
! 21012: { echo "$as_me:$LINENO: checking for library containing crypt" >&5
! 21013: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
! 21014: if test "${ac_cv_search_crypt+set}" = set; then
! 21015: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21016: else
! 21017: ac_func_search_save_LIBS=$LIBS
! 21018: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 21019: /* confdefs.h. */
21020: _ACEOF
21021: cat confdefs.h >>conftest.$ac_ext
21022: cat >>conftest.$ac_ext <<_ACEOF
21023: /* end confdefs.h. */
1.27 ! millert 21024:
! 21025: /* Override any GCC internal prototype to avoid an error.
! 21026: Use char because int might match the return type of a GCC
! 21027: builtin and then its argument prototype would still apply. */
! 21028: #ifdef __cplusplus
! 21029: extern "C"
! 21030: #endif
! 21031: char crypt ();
1.17 millert 21032: int
21033: main ()
21034: {
1.27 ! millert 21035: return crypt ();
1.17 millert 21036: ;
21037: return 0;
21038: }
21039: _ACEOF
1.27 ! millert 21040: for ac_lib in '' crypt crypt_d ufc; do
! 21041: if test -z "$ac_lib"; then
! 21042: ac_res="none required"
! 21043: else
! 21044: ac_res=-l$ac_lib
! 21045: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 21046: fi
! 21047: rm -f conftest.$ac_objext conftest$ac_exeext
! 21048: if { (ac_try="$ac_link"
! 21049: case "(($ac_try" in
! 21050: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21051: *) ac_try_echo=$ac_try;;
! 21052: esac
! 21053: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21054: (eval "$ac_link") 2>conftest.er1
1.17 millert 21055: ac_status=$?
1.25 millert 21056: grep -v '^ *+' conftest.er1 >conftest.err
21057: rm -f conftest.er1
21058: cat conftest.err >&5
1.17 millert 21059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 21060: (exit $ac_status); } && {
! 21061: test -z "$ac_c_werror_flag" ||
! 21062: test ! -s conftest.err
! 21063: } && test -s conftest$ac_exeext &&
! 21064: $as_test_x conftest$ac_exeext; then
! 21065: ac_cv_search_crypt=$ac_res
1.17 millert 21066: else
21067: echo "$as_me: failed program was:" >&5
21068: sed 's/^/| /' conftest.$ac_ext >&5
21069:
1.25 millert 21070:
1.27 ! millert 21071: fi
1.25 millert 21072:
1.27 ! millert 21073: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21074: conftest$ac_exeext
! 21075: if test "${ac_cv_search_crypt+set}" = set; then
! 21076: break
! 21077: fi
! 21078: done
! 21079: if test "${ac_cv_search_crypt+set}" = set; then
! 21080: :
! 21081: else
! 21082: ac_cv_search_crypt=no
! 21083: fi
! 21084: rm conftest.$ac_ext
! 21085: LIBS=$ac_func_search_save_LIBS
! 21086: fi
! 21087: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
! 21088: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
! 21089: ac_res=$ac_cv_search_crypt
! 21090: if test "$ac_res" != no; then
! 21091: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 21092: test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17 millert 21093: fi
1.25 millert 21094:
1.27 ! millert 21095: fi
1.25 millert 21096:
1.27 ! millert 21097: if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
! 21098: _LIBS="$LIBS"
! 21099: LIBS="$LIBS $shadow_libs"
! 21100: found=no
1.17 millert 21101:
1.27 ! millert 21102: for ac_func in $shadow_funcs
1.25 millert 21103: do
21104: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 ! millert 21105: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21106: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21107: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17 millert 21108: echo $ECHO_N "(cached) $ECHO_C" >&6
21109: else
1.25 millert 21110: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 21111: /* confdefs.h. */
21112: _ACEOF
21113: cat confdefs.h >>conftest.$ac_ext
21114: cat >>conftest.$ac_ext <<_ACEOF
21115: /* end confdefs.h. */
1.25 millert 21116: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117: For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118: #define $ac_func innocuous_$ac_func
21119:
21120: /* System header to define __stub macros and hopefully few prototypes,
21121: which can conflict with char $ac_func (); below.
21122: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123: <limits.h> exists even on freestanding compilers. */
21124:
21125: #ifdef __STDC__
21126: # include <limits.h>
21127: #else
21128: # include <assert.h>
21129: #endif
1.17 millert 21130:
1.25 millert 21131: #undef $ac_func
21132:
1.27 ! millert 21133: /* Override any GCC internal prototype to avoid an error.
! 21134: Use char because int might match the return type of a GCC
! 21135: builtin and then its argument prototype would still apply. */
1.25 millert 21136: #ifdef __cplusplus
21137: extern "C"
21138: #endif
21139: char $ac_func ();
21140: /* The GNU C library defines this for functions which it implements
21141: to always fail with ENOSYS. Some functions are actually named
21142: something starting with __ and the normal name is an alias. */
1.27 ! millert 21143: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 21144: choke me
21145: #endif
1.17 millert 21146:
21147: int
21148: main ()
21149: {
1.27 ! millert 21150: return $ac_func ();
1.17 millert 21151: ;
21152: return 0;
21153: }
21154: _ACEOF
21155: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 ! millert 21156: if { (ac_try="$ac_link"
! 21157: case "(($ac_try" in
! 21158: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21159: *) ac_try_echo=$ac_try;;
! 21160: esac
! 21161: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21162: (eval "$ac_link") 2>conftest.er1
1.17 millert 21163: ac_status=$?
1.25 millert 21164: grep -v '^ *+' conftest.er1 >conftest.err
21165: rm -f conftest.er1
21166: cat conftest.err >&5
1.17 millert 21167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 ! millert 21168: (exit $ac_status); } && {
! 21169: test -z "$ac_c_werror_flag" ||
! 21170: test ! -s conftest.err
! 21171: } && test -s conftest$ac_exeext &&
! 21172: $as_test_x conftest$ac_exeext; then
1.25 millert 21173: eval "$as_ac_var=yes"
1.17 millert 21174: else
21175: echo "$as_me: failed program was:" >&5
21176: sed 's/^/| /' conftest.$ac_ext >&5
21177:
1.27 ! millert 21178: eval "$as_ac_var=no"
1.17 millert 21179: fi
1.27 ! millert 21180:
! 21181: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 21182: conftest$ac_exeext conftest.$ac_ext
1.17 millert 21183: fi
1.27 ! millert 21184: ac_res=`eval echo '${'$as_ac_var'}'`
! 21185: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21186: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 21187: if test `eval echo '${'$as_ac_var'}'` = yes; then
21188: cat >>confdefs.h <<_ACEOF
21189: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21190: _ACEOF
1.27 ! millert 21191: found=yes
1.17 millert 21192: fi
1.27 ! millert 21193: done
1.17 millert 21194:
1.27 ! millert 21195: if test "$found" = "yes"; then
! 21196: SUDO_LIBS="$SUDO_LIBS $shadow_libs"
! 21197: elif test -n "$shadow_libs_optional"; then
! 21198: LIBS="$LIBS $shadow_libs_optional"
1.17 millert 21199:
1.27 ! millert 21200: for ac_func in $shadow_funcs
! 21201: do
! 21202: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 21203: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21204: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21205: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 21206: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21207: else
! 21208: cat >conftest.$ac_ext <<_ACEOF
! 21209: /* confdefs.h. */
! 21210: _ACEOF
! 21211: cat confdefs.h >>conftest.$ac_ext
! 21212: cat >>conftest.$ac_ext <<_ACEOF
! 21213: /* end confdefs.h. */
! 21214: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21215: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21216: #define $ac_func innocuous_$ac_func
1.17 millert 21217:
1.27 ! millert 21218: /* System header to define __stub macros and hopefully few prototypes,
! 21219: which can conflict with char $ac_func (); below.
! 21220: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 21221: <limits.h> exists even on freestanding compilers. */
1.17 millert 21222:
1.27 ! millert 21223: #ifdef __STDC__
! 21224: # include <limits.h>
! 21225: #else
! 21226: # include <assert.h>
! 21227: #endif
1.19 millert 21228:
1.27 ! millert 21229: #undef $ac_func
1.17 millert 21230:
1.27 ! millert 21231: /* Override any GCC internal prototype to avoid an error.
! 21232: Use char because int might match the return type of a GCC
! 21233: builtin and then its argument prototype would still apply. */
! 21234: #ifdef __cplusplus
! 21235: extern "C"
! 21236: #endif
! 21237: char $ac_func ();
! 21238: /* The GNU C library defines this for functions which it implements
! 21239: to always fail with ENOSYS. Some functions are actually named
! 21240: something starting with __ and the normal name is an alias. */
! 21241: #if defined __stub_$ac_func || defined __stub___$ac_func
! 21242: choke me
! 21243: #endif
1.17 millert 21244:
1.27 ! millert 21245: int
! 21246: main ()
! 21247: {
! 21248: return $ac_func ();
! 21249: ;
! 21250: return 0;
! 21251: }
1.17 millert 21252: _ACEOF
1.27 ! millert 21253: rm -f conftest.$ac_objext conftest$ac_exeext
! 21254: if { (ac_try="$ac_link"
! 21255: case "(($ac_try" in
! 21256: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21257: *) ac_try_echo=$ac_try;;
! 21258: esac
! 21259: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21260: (eval "$ac_link") 2>conftest.er1
! 21261: ac_status=$?
! 21262: grep -v '^ *+' conftest.er1 >conftest.err
! 21263: rm -f conftest.er1
! 21264: cat conftest.err >&5
! 21265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21266: (exit $ac_status); } && {
! 21267: test -z "$ac_c_werror_flag" ||
! 21268: test ! -s conftest.err
! 21269: } && test -s conftest$ac_exeext &&
! 21270: $as_test_x conftest$ac_exeext; then
! 21271: eval "$as_ac_var=yes"
! 21272: else
! 21273: echo "$as_me: failed program was:" >&5
! 21274: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 21275:
1.27 ! millert 21276: eval "$as_ac_var=no"
! 21277: fi
1.25 millert 21278:
1.27 ! millert 21279: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21280: conftest$ac_exeext conftest.$ac_ext
! 21281: fi
! 21282: ac_res=`eval echo '${'$as_ac_var'}'`
! 21283: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21284: echo "${ECHO_T}$ac_res" >&6; }
! 21285: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 21286: cat >>confdefs.h <<_ACEOF
! 21287: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 21288: _ACEOF
! 21289: found=yes
1.17 millert 21290: fi
1.27 ! millert 21291: done
1.25 millert 21292:
1.27 ! millert 21293: if test "$found" = "yes"; then
! 21294: SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
! 21295: fi
! 21296: fi
! 21297: if test "$found" = "yes"; then
! 21298: case "$shadow_funcs" in
! 21299: *getprpwnam*) SECUREWARE=1;;
! 21300: esac
! 21301: test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
! 21302: else
! 21303: LIBS="$_LIBS"
! 21304: fi
! 21305: CHECKSHADOW=false
! 21306: fi
! 21307: if test "$CHECKSHADOW" = "true"; then
! 21308: { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
! 21309: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
! 21310: if test "${ac_cv_search_getspnam+set}" = set; then
! 21311: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 21312: else
1.27 ! millert 21313: ac_func_search_save_LIBS=$LIBS
! 21314: cat >conftest.$ac_ext <<_ACEOF
! 21315: /* confdefs.h. */
! 21316: _ACEOF
! 21317: cat confdefs.h >>conftest.$ac_ext
! 21318: cat >>conftest.$ac_ext <<_ACEOF
! 21319: /* end confdefs.h. */
1.25 millert 21320:
1.27 ! millert 21321: /* Override any GCC internal prototype to avoid an error.
! 21322: Use char because int might match the return type of a GCC
! 21323: builtin and then its argument prototype would still apply. */
! 21324: #ifdef __cplusplus
! 21325: extern "C"
! 21326: #endif
! 21327: char getspnam ();
! 21328: int
! 21329: main ()
! 21330: {
! 21331: return getspnam ();
! 21332: ;
! 21333: return 0;
! 21334: }
! 21335: _ACEOF
! 21336: for ac_lib in '' gen; do
! 21337: if test -z "$ac_lib"; then
! 21338: ac_res="none required"
1.25 millert 21339: else
1.27 ! millert 21340: ac_res=-l$ac_lib
! 21341: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.25 millert 21342: fi
1.27 ! millert 21343: rm -f conftest.$ac_objext conftest$ac_exeext
! 21344: if { (ac_try="$ac_link"
! 21345: case "(($ac_try" in
! 21346: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21347: *) ac_try_echo=$ac_try;;
! 21348: esac
! 21349: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21350: (eval "$ac_link") 2>conftest.er1
! 21351: ac_status=$?
! 21352: grep -v '^ *+' conftest.er1 >conftest.err
! 21353: rm -f conftest.er1
! 21354: cat conftest.err >&5
! 21355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21356: (exit $ac_status); } && {
! 21357: test -z "$ac_c_werror_flag" ||
! 21358: test ! -s conftest.err
! 21359: } && test -s conftest$ac_exeext &&
! 21360: $as_test_x conftest$ac_exeext; then
! 21361: ac_cv_search_getspnam=$ac_res
! 21362: else
! 21363: echo "$as_me: failed program was:" >&5
! 21364: sed 's/^/| /' conftest.$ac_ext >&5
! 21365:
1.25 millert 21366:
1.17 millert 21367: fi
21368:
1.27 ! millert 21369: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21370: conftest$ac_exeext
! 21371: if test "${ac_cv_search_getspnam+set}" = set; then
! 21372: break
! 21373: fi
! 21374: done
! 21375: if test "${ac_cv_search_getspnam+set}" = set; then
! 21376: :
1.25 millert 21377: else
1.27 ! millert 21378: ac_cv_search_getspnam=no
! 21379: fi
! 21380: rm conftest.$ac_ext
! 21381: LIBS=$ac_func_search_save_LIBS
1.25 millert 21382: fi
1.27 ! millert 21383: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
! 21384: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
! 21385: ac_res=$ac_cv_search_getspnam
! 21386: if test "$ac_res" != no; then
! 21387: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 21388: cat >>confdefs.h <<\_ACEOF
! 21389: #define HAVE_GETSPNAM 1
! 21390: _ACEOF
! 21391: CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17 millert 21392: fi
21393:
1.27 ! millert 21394: fi
! 21395: if test "$CHECKSHADOW" = "true"; then
! 21396: { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
! 21397: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
! 21398: if test "${ac_cv_search_getprpwnam+set}" = set; then
! 21399: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21400: else
! 21401: ac_func_search_save_LIBS=$LIBS
! 21402: cat >conftest.$ac_ext <<_ACEOF
! 21403: /* confdefs.h. */
! 21404: _ACEOF
! 21405: cat confdefs.h >>conftest.$ac_ext
! 21406: cat >>conftest.$ac_ext <<_ACEOF
! 21407: /* end confdefs.h. */
1.17 millert 21408:
1.27 ! millert 21409: /* Override any GCC internal prototype to avoid an error.
! 21410: Use char because int might match the return type of a GCC
! 21411: builtin and then its argument prototype would still apply. */
! 21412: #ifdef __cplusplus
! 21413: extern "C"
! 21414: #endif
! 21415: char getprpwnam ();
! 21416: int
! 21417: main ()
! 21418: {
! 21419: return getprpwnam ();
! 21420: ;
! 21421: return 0;
1.23 millert 21422: }
1.27 ! millert 21423: _ACEOF
! 21424: for ac_lib in '' sec security prot; do
! 21425: if test -z "$ac_lib"; then
! 21426: ac_res="none required"
! 21427: else
! 21428: ac_res=-l$ac_lib
! 21429: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 21430: fi
! 21431: rm -f conftest.$ac_objext conftest$ac_exeext
! 21432: if { (ac_try="$ac_link"
! 21433: case "(($ac_try" in
! 21434: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21435: *) ac_try_echo=$ac_try;;
! 21436: esac
! 21437: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21438: (eval "$ac_link") 2>conftest.er1
! 21439: ac_status=$?
! 21440: grep -v '^ *+' conftest.er1 >conftest.err
! 21441: rm -f conftest.er1
! 21442: cat conftest.err >&5
! 21443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21444: (exit $ac_status); } && {
! 21445: test -z "$ac_c_werror_flag" ||
! 21446: test ! -s conftest.err
! 21447: } && test -s conftest$ac_exeext &&
! 21448: $as_test_x conftest$ac_exeext; then
! 21449: ac_cv_search_getprpwnam=$ac_res
! 21450: else
! 21451: echo "$as_me: failed program was:" >&5
! 21452: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 21453:
21454:
1.27 ! millert 21455: fi
1.23 millert 21456:
1.27 ! millert 21457: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21458: conftest$ac_exeext
! 21459: if test "${ac_cv_search_getprpwnam+set}" = set; then
! 21460: break
! 21461: fi
! 21462: done
! 21463: if test "${ac_cv_search_getprpwnam+set}" = set; then
! 21464: :
1.23 millert 21465: else
1.27 ! millert 21466: ac_cv_search_getprpwnam=no
! 21467: fi
! 21468: rm conftest.$ac_ext
! 21469: LIBS=$ac_func_search_save_LIBS
1.23 millert 21470: fi
1.27 ! millert 21471: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
! 21472: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
! 21473: ac_res=$ac_cv_search_getprpwnam
! 21474: if test "$ac_res" != no; then
! 21475: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 21476: cat >>confdefs.h <<\_ACEOF
! 21477: #define HAVE_GETPRPWNAM 1
! 21478: _ACEOF
! 21479: CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.23 millert 21480: fi
1.25 millert 21481:
1.27 ! millert 21482: fi
! 21483: if test -n "$SECUREWARE"; then
1.25 millert 21484:
21485:
21486:
1.27 ! millert 21487: for ac_func in bigcrypt set_auth_parameters initprivs
! 21488: do
! 21489: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 21490: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21491: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21492: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 21493: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21494: else
! 21495: cat >conftest.$ac_ext <<_ACEOF
! 21496: /* confdefs.h. */
! 21497: _ACEOF
! 21498: cat confdefs.h >>conftest.$ac_ext
! 21499: cat >>conftest.$ac_ext <<_ACEOF
! 21500: /* end confdefs.h. */
! 21501: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21502: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21503: #define $ac_func innocuous_$ac_func
1.25 millert 21504:
1.27 ! millert 21505: /* System header to define __stub macros and hopefully few prototypes,
! 21506: which can conflict with char $ac_func (); below.
! 21507: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 21508: <limits.h> exists even on freestanding compilers. */
1.25 millert 21509:
1.27 ! millert 21510: #ifdef __STDC__
! 21511: # include <limits.h>
! 21512: #else
! 21513: # include <assert.h>
! 21514: #endif
1.25 millert 21515:
1.27 ! millert 21516: #undef $ac_func
1.23 millert 21517:
1.27 ! millert 21518: /* Override any GCC internal prototype to avoid an error.
! 21519: Use char because int might match the return type of a GCC
! 21520: builtin and then its argument prototype would still apply. */
! 21521: #ifdef __cplusplus
! 21522: extern "C"
! 21523: #endif
! 21524: char $ac_func ();
! 21525: /* The GNU C library defines this for functions which it implements
! 21526: to always fail with ENOSYS. Some functions are actually named
! 21527: something starting with __ and the normal name is an alias. */
! 21528: #if defined __stub_$ac_func || defined __stub___$ac_func
! 21529: choke me
! 21530: #endif
1.23 millert 21531:
1.27 ! millert 21532: int
! 21533: main ()
1.25 millert 21534: {
1.27 ! millert 21535: return $ac_func ();
! 21536: ;
! 21537: return 0;
! 21538: }
1.23 millert 21539: _ACEOF
1.27 ! millert 21540: rm -f conftest.$ac_objext conftest$ac_exeext
! 21541: if { (ac_try="$ac_link"
! 21542: case "(($ac_try" in
! 21543: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21544: *) ac_try_echo=$ac_try;;
! 21545: esac
! 21546: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21547: (eval "$ac_link") 2>conftest.er1
! 21548: ac_status=$?
! 21549: grep -v '^ *+' conftest.er1 >conftest.err
! 21550: rm -f conftest.er1
! 21551: cat conftest.err >&5
! 21552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21553: (exit $ac_status); } && {
! 21554: test -z "$ac_c_werror_flag" ||
! 21555: test ! -s conftest.err
! 21556: } && test -s conftest$ac_exeext &&
! 21557: $as_test_x conftest$ac_exeext; then
! 21558: eval "$as_ac_var=yes"
! 21559: else
! 21560: echo "$as_me: failed program was:" >&5
! 21561: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 21562:
1.27 ! millert 21563: eval "$as_ac_var=no"
1.17 millert 21564: fi
1.23 millert 21565:
1.27 ! millert 21566: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21567: conftest$ac_exeext conftest.$ac_ext
1.25 millert 21568: fi
1.27 ! millert 21569: ac_res=`eval echo '${'$as_ac_var'}'`
! 21570: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21571: echo "${ECHO_T}$ac_res" >&6; }
! 21572: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 21573: cat >>confdefs.h <<_ACEOF
! 21574: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 21575: _ACEOF
1.17 millert 21576:
21577: fi
1.27 ! millert 21578: done
1.17 millert 21579:
1.27 ! millert 21580: AUTH_OBJS="$AUTH_OBJS secureware.o"
! 21581: fi
1.25 millert 21582: fi
1.17 millert 21583:
1.27 ! millert 21584: if test ${with_ldap-'no'} != "no"; then
! 21585: _LDFLAGS="$LDFLAGS"
! 21586: if test "$with_ldap" != "yes"; then
1.17 millert 21587:
1.27 ! millert 21588: if test X"$with_rpath" = X"yes"; then
! 21589: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 21590: else
! 21591: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
! 21592: fi
! 21593: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21594: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 21595: fi
1.17 millert 21596:
21597:
1.27 ! millert 21598: if test X"$with_rpath" = X"yes"; then
! 21599: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 21600: else
! 21601: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
! 21602: fi
! 21603: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21604: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 21605: fi
1.17 millert 21606:
1.27 ! millert 21607: CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
! 21608: with_ldap=yes
! 21609: fi
! 21610: SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17 millert 21611:
1.27 ! millert 21612: { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
! 21613: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
! 21614: LDAP_LIBS=""
! 21615: _LIBS="$LIBS"
! 21616: found=no
! 21617: for l in -lldap -llber '-lssl -lcrypto'; do
! 21618: LIBS="${LIBS} $l"
! 21619: LDAP_LIBS="${LDAP_LIBS} $l"
! 21620: cat >conftest.$ac_ext <<_ACEOF
! 21621: /* confdefs.h. */
1.25 millert 21622: _ACEOF
1.27 ! millert 21623: cat confdefs.h >>conftest.$ac_ext
! 21624: cat >>conftest.$ac_ext <<_ACEOF
! 21625: /* end confdefs.h. */
! 21626: #include <sys/types.h>
! 21627: #include <lber.h>
! 21628: #include <ldap.h>
! 21629: int
! 21630: main ()
! 21631: {
! 21632: (void)ldap_init(0, 0)
! 21633: ;
! 21634: return 0;
! 21635: }
1.25 millert 21636: _ACEOF
1.27 ! millert 21637: rm -f conftest.$ac_objext conftest$ac_exeext
! 21638: if { (ac_try="$ac_link"
! 21639: case "(($ac_try" in
! 21640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21641: *) ac_try_echo=$ac_try;;
! 21642: esac
! 21643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21644: (eval "$ac_link") 2>conftest.er1
! 21645: ac_status=$?
! 21646: grep -v '^ *+' conftest.er1 >conftest.err
! 21647: rm -f conftest.er1
! 21648: cat conftest.err >&5
! 21649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21650: (exit $ac_status); } && {
! 21651: test -z "$ac_c_werror_flag" ||
! 21652: test ! -s conftest.err
! 21653: } && test -s conftest$ac_exeext &&
! 21654: $as_test_x conftest$ac_exeext; then
! 21655: found=yes; break
! 21656: else
! 21657: echo "$as_me: failed program was:" >&5
! 21658: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 21659:
1.25 millert 21660:
1.17 millert 21661: fi
21662:
1.27 ! millert 21663: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21664: conftest$ac_exeext conftest.$ac_ext
! 21665: done
! 21666: if test "$found" = "no"; then
! 21667: LDAP_LIBS=" -lldap"
! 21668: { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
! 21669: echo "${ECHO_T}not found, using -lldap" >&6; }
! 21670: else
! 21671: { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
! 21672: echo "${ECHO_T}$LDAP_LIBS" >&6; }
! 21673: fi
! 21674: { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
! 21675: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
! 21676: cat >conftest.$ac_ext <<_ACEOF
! 21677: /* confdefs.h. */
1.17 millert 21678: _ACEOF
1.27 ! millert 21679: cat confdefs.h >>conftest.$ac_ext
! 21680: cat >>conftest.$ac_ext <<_ACEOF
! 21681: /* end confdefs.h. */
! 21682: #include <sys/types.h>
! 21683: #include <ldap.h>
! 21684: int
! 21685: main ()
! 21686: {
! 21687: (void)ldap_init(0, 0)
! 21688: ;
! 21689: return 0;
! 21690: }
1.25 millert 21691: _ACEOF
1.27 ! millert 21692: rm -f conftest.$ac_objext conftest$ac_exeext
! 21693: if { (ac_try="$ac_link"
! 21694: case "(($ac_try" in
! 21695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21696: *) ac_try_echo=$ac_try;;
! 21697: esac
! 21698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21699: (eval "$ac_link") 2>conftest.er1
! 21700: ac_status=$?
! 21701: grep -v '^ *+' conftest.er1 >conftest.err
! 21702: rm -f conftest.er1
! 21703: cat conftest.err >&5
! 21704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21705: (exit $ac_status); } && {
! 21706: test -z "$ac_c_werror_flag" ||
! 21707: test ! -s conftest.err
! 21708: } && test -s conftest$ac_exeext &&
! 21709: $as_test_x conftest$ac_exeext; then
! 21710: { echo "$as_me:$LINENO: result: no" >&5
! 21711: echo "${ECHO_T}no" >&6; }
! 21712: else
! 21713: echo "$as_me: failed program was:" >&5
! 21714: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 21715:
1.1 millert 21716:
1.27 ! millert 21717: { echo "$as_me:$LINENO: result: yes" >&5
! 21718: echo "${ECHO_T}yes" >&6; }
! 21719: cat >>confdefs.h <<\_ACEOF
! 21720: #define HAVE_LBER_H 1
! 21721: _ACEOF
1.1 millert 21722:
1.25 millert 21723: fi
21724:
1.27 ! millert 21725: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21726: conftest$ac_exeext conftest.$ac_ext
1.1 millert 21727:
21728:
21729:
1.27 ! millert 21730: for ac_func in ldap_initialize ldap_start_tls_s
! 21731: do
! 21732: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 21733: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21734: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21735: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 21736: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21737: else
! 21738: cat >conftest.$ac_ext <<_ACEOF
! 21739: /* confdefs.h. */
1.16 millert 21740: _ACEOF
1.27 ! millert 21741: cat confdefs.h >>conftest.$ac_ext
! 21742: cat >>conftest.$ac_ext <<_ACEOF
! 21743: /* end confdefs.h. */
! 21744: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21745: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21746: #define $ac_func innocuous_$ac_func
1.16 millert 21747:
1.27 ! millert 21748: /* System header to define __stub macros and hopefully few prototypes,
! 21749: which can conflict with char $ac_func (); below.
! 21750: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 21751: <limits.h> exists even on freestanding compilers. */
1.16 millert 21752:
1.27 ! millert 21753: #ifdef __STDC__
! 21754: # include <limits.h>
! 21755: #else
! 21756: # include <assert.h>
! 21757: #endif
1.25 millert 21758:
1.27 ! millert 21759: #undef $ac_func
1.25 millert 21760:
1.27 ! millert 21761: /* Override any GCC internal prototype to avoid an error.
! 21762: Use char because int might match the return type of a GCC
! 21763: builtin and then its argument prototype would still apply. */
! 21764: #ifdef __cplusplus
! 21765: extern "C"
! 21766: #endif
! 21767: char $ac_func ();
! 21768: /* The GNU C library defines this for functions which it implements
! 21769: to always fail with ENOSYS. Some functions are actually named
! 21770: something starting with __ and the normal name is an alias. */
! 21771: #if defined __stub_$ac_func || defined __stub___$ac_func
! 21772: choke me
! 21773: #endif
1.16 millert 21774:
1.27 ! millert 21775: int
! 21776: main ()
1.25 millert 21777: {
1.27 ! millert 21778: return $ac_func ();
! 21779: ;
! 21780: return 0;
1.25 millert 21781: }
1.27 ! millert 21782: _ACEOF
! 21783: rm -f conftest.$ac_objext conftest$ac_exeext
! 21784: if { (ac_try="$ac_link"
! 21785: case "(($ac_try" in
! 21786: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21787: *) ac_try_echo=$ac_try;;
! 21788: esac
! 21789: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21790: (eval "$ac_link") 2>conftest.er1
! 21791: ac_status=$?
! 21792: grep -v '^ *+' conftest.er1 >conftest.err
! 21793: rm -f conftest.er1
! 21794: cat conftest.err >&5
! 21795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21796: (exit $ac_status); } && {
! 21797: test -z "$ac_c_werror_flag" ||
! 21798: test ! -s conftest.err
! 21799: } && test -s conftest$ac_exeext &&
! 21800: $as_test_x conftest$ac_exeext; then
! 21801: eval "$as_ac_var=yes"
! 21802: else
! 21803: echo "$as_me: failed program was:" >&5
! 21804: sed 's/^/| /' conftest.$ac_ext >&5
1.16 millert 21805:
1.27 ! millert 21806: eval "$as_ac_var=no"
! 21807: fi
1.17 millert 21808:
1.27 ! millert 21809: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21810: conftest$ac_exeext conftest.$ac_ext
! 21811: fi
! 21812: ac_res=`eval echo '${'$as_ac_var'}'`
! 21813: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21814: echo "${ECHO_T}$ac_res" >&6; }
! 21815: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 21816: cat >>confdefs.h <<_ACEOF
! 21817: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 21818: _ACEOF
1.17 millert 21819:
1.27 ! millert 21820: fi
! 21821: done
1.17 millert 21822:
21823:
1.27 ! millert 21824: SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
! 21825: LIBS="$_LIBS"
! 21826: LDFLAGS="$_LDFLAGS"
! 21827: # XXX - OpenLDAP has deprecated ldap_get_values()
! 21828: CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
! 21829: fi
1.17 millert 21830:
1.27 ! millert 21831: if test -n "$blibpath"; then
! 21832: if test -n "$blibpath_add"; then
! 21833: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
! 21834: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
! 21835: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17 millert 21836: fi
1.27 ! millert 21837: fi
! 21838:
! 21839: { echo "$as_me:$LINENO: checking for log file location" >&5
! 21840: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
! 21841: if test -n "$with_logpath"; then
! 21842: { echo "$as_me:$LINENO: result: $with_logpath" >&5
! 21843: echo "${ECHO_T}$with_logpath" >&6; }
! 21844: cat >>confdefs.h <<EOF
! 21845: #define _PATH_SUDO_LOGFILE "$with_logpath"
! 21846: EOF
1.17 millert 21847:
1.27 ! millert 21848: elif test -d "/var/log"; then
! 21849: { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
! 21850: echo "${ECHO_T}/var/log/sudo.log" >&6; }
! 21851: cat >>confdefs.h <<\EOF
! 21852: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
! 21853: EOF
1.17 millert 21854:
1.27 ! millert 21855: elif test -d "/var/adm"; then
! 21856: { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
! 21857: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
! 21858: cat >>confdefs.h <<\EOF
! 21859: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
! 21860: EOF
1.17 millert 21861:
1.27 ! millert 21862: elif test -d "/usr/adm"; then
! 21863: { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
! 21864: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
! 21865: cat >>confdefs.h <<\EOF
! 21866: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
! 21867: EOF
1.23 millert 21868:
21869: else
1.27 ! millert 21870: { echo "$as_me:$LINENO: result: unknown" >&5
! 21871: echo "${ECHO_T}unknown" >&6; }
1.23 millert 21872: fi
21873:
1.27 ! millert 21874: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
! 21875: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
! 21876: if test -n "$with_timedir"; then
! 21877: { echo "$as_me:$LINENO: result: $with_timedir" >&5
! 21878: echo "${ECHO_T}$with_timedir" >&6; }
! 21879: cat >>confdefs.h <<EOF
! 21880: #define _PATH_SUDO_TIMEDIR "$with_timedir"
! 21881: EOF
1.23 millert 21882:
1.27 ! millert 21883: timedir="$with_timedir"
! 21884: elif test -d "/var/run"; then
! 21885: { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
! 21886: echo "${ECHO_T}/var/run/sudo" >&6; }
! 21887: cat >>confdefs.h <<\EOF
! 21888: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
! 21889: EOF
1.23 millert 21890:
1.27 ! millert 21891: timedir="/var/run/sudo"
! 21892: elif test -d "/var/adm"; then
! 21893: { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
! 21894: echo "${ECHO_T}/var/adm/sudo" >&6; }
! 21895: cat >>confdefs.h <<\EOF
! 21896: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
! 21897: EOF
1.23 millert 21898:
1.27 ! millert 21899: timedir="/var/adm/sudo"
! 21900: else
! 21901: { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
! 21902: echo "${ECHO_T}/usr/adm/sudo" >&6; }
! 21903: cat >>confdefs.h <<\EOF
! 21904: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
! 21905: EOF
1.23 millert 21906:
1.27 ! millert 21907: timedir="/usr/adm/sudo"
! 21908: fi
1.23 millert 21909:
21910:
1.27 ! millert 21911: case "$with_passwd" in
! 21912: yes|maybe)
! 21913: AUTH_OBJS="$AUTH_OBJS passwd.o"
! 21914: ;;
! 21915: *)
! 21916: cat >>confdefs.h <<\_ACEOF
! 21917: #define WITHOUT_PASSWD 1
1.23 millert 21918: _ACEOF
1.25 millert 21919:
1.27 ! millert 21920: if test -z "$AUTH_OBJS"; then
! 21921: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
! 21922: echo "$as_me: error: no authentication methods defined." >&2;}
! 21923: { (exit 1); exit 1; }; }
! 21924: fi
! 21925: ;;
! 21926: esac
! 21927: AUTH_OBJS=${AUTH_OBJS# }
! 21928: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 21929: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
! 21930: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25 millert 21931:
1.27 ! millert 21932: if test -n "$LIBS"; then
! 21933: L="$LIBS"
! 21934: LIBS=
! 21935: for l in ${L}; do
! 21936: dupe=0
! 21937: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
! 21938: test $l = $sl && dupe=1
! 21939: done
! 21940: test $dupe = 0 && LIBS="${LIBS} $l"
! 21941: done
! 21942: fi
1.23 millert 21943:
1.27 ! millert 21944: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23 millert 21945:
1.27 ! millert 21946: if test "$with_noexec" != "no"; then
! 21947: PROGS="${PROGS} sudo_noexec.la"
! 21948: INSTALL_NOEXEC="install-noexec"
1.23 millert 21949:
1.27 ! millert 21950: oexec_prefix="$exec_prefix"
! 21951: if test "$exec_prefix" = '$(prefix)'; then
! 21952: if test "$prefix" = "NONE"; then
! 21953: exec_prefix="$ac_default_prefix"
! 21954: else
! 21955: exec_prefix="$prefix"
! 21956: fi
! 21957: fi
! 21958: eval noexec_file="$with_noexec"
1.23 millert 21959:
1.27 ! millert 21960: cat >>confdefs.h <<_ACEOF
! 21961: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16 millert 21962: _ACEOF
1.23 millert 21963:
1.27 ! millert 21964: exec_prefix="$oexec_prefix"
! 21965: fi
! 21966:
! 21967: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
! 21968:
! 21969: cat >confcache <<\_ACEOF
! 21970: # This file is a shell script that caches the results of configure
! 21971: # tests run on this system so they can be shared between configure
! 21972: # scripts and configure runs, see configure's option --config-cache.
! 21973: # It is not useful on other systems. If it contains results you don't
! 21974: # want to keep, you may remove or edit it.
! 21975: #
! 21976: # config.status only pays attention to the cache file if you give it
! 21977: # the --recheck option to rerun configure.
1.25 millert 21978: #
1.27 ! millert 21979: # `ac_cv_env_foo' variables (set or unset) will be overridden when
! 21980: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 21981: # following values.
1.16 millert 21982:
1.23 millert 21983: _ACEOF
1.17 millert 21984:
1.27 ! millert 21985: # The following way of writing the cache mishandles newlines in values,
! 21986: # but we know of no workaround that is simple, portable, and efficient.
! 21987: # So, we kill variables containing newlines.
! 21988: # Ultrix sh set writes to stderr and can't be redirected directly,
! 21989: # and sets the high bit in the cache file unless we assign to the vars.
! 21990: (
! 21991: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 21992: eval ac_val=\$$ac_var
! 21993: case $ac_val in #(
! 21994: *${as_nl}*)
! 21995: case $ac_var in #(
! 21996: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 21997: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 21998: esac
! 21999: case $ac_var in #(
! 22000: _ | IFS | as_nl) ;; #(
! 22001: *) $as_unset $ac_var ;;
! 22002: esac ;;
! 22003: esac
! 22004: done
1.1 millert 22005:
1.27 ! millert 22006: (set) 2>&1 |
! 22007: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 22008: *${as_nl}ac_space=\ *)
! 22009: # `set' does not quote correctly, so add quotes (double-quote
! 22010: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 22011: sed -n \
! 22012: "s/'/'\\\\''/g;
! 22013: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 22014: ;; #(
! 22015: *)
! 22016: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 22017: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
! 22018: ;;
! 22019: esac |
! 22020: sort
! 22021: ) |
! 22022: sed '
! 22023: /^ac_cv_env_/b end
! 22024: t clear
! 22025: :clear
! 22026: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 22027: t end
! 22028: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 22029: :end' >>confcache
! 22030: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 22031: if test -w "$cache_file"; then
! 22032: test "x$cache_file" != "x/dev/null" &&
! 22033: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 22034: echo "$as_me: updating cache $cache_file" >&6;}
! 22035: cat confcache >$cache_file
1.25 millert 22036: else
1.27 ! millert 22037: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 22038: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25 millert 22039: fi
1.27 ! millert 22040: fi
! 22041: rm -f confcache
1.1 millert 22042:
1.27 ! millert 22043: test "x$prefix" = xNONE && prefix=$ac_default_prefix
! 22044: # Let make expand exec_prefix.
! 22045: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1 millert 22046:
1.27 ! millert 22047: DEFS=-DHAVE_CONFIG_H
1.1 millert 22048:
1.27 ! millert 22049: ac_libobjs=
! 22050: ac_ltlibobjs=
! 22051: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 22052: # 1. Remove the extension, and $U if already installed.
! 22053: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 22054: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 22055: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 22056: # will be set to the directory where LIBOBJS objects are built.
! 22057: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 22058: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
! 22059: done
! 22060: LIBOBJS=$ac_libobjs
1.1 millert 22061:
1.27 ! millert 22062: LTLIBOBJS=$ac_ltlibobjs
1.1 millert 22063:
22064:
22065:
1.27 ! millert 22066: : ${CONFIG_STATUS=./config.status}
! 22067: ac_clean_files_save=$ac_clean_files
! 22068: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 22069: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 22070: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 22071: cat >$CONFIG_STATUS <<_ACEOF
! 22072: #! $SHELL
! 22073: # Generated by $as_me.
! 22074: # Run this file to recreate the current configuration.
! 22075: # Compiler output produced by configure, useful for debugging
! 22076: # configure, is in config.log if it exists.
1.1 millert 22077:
1.27 ! millert 22078: debug=false
! 22079: ac_cs_recheck=false
! 22080: ac_cs_silent=false
! 22081: SHELL=\${CONFIG_SHELL-$SHELL}
! 22082: _ACEOF
1.23 millert 22083:
1.27 ! millert 22084: cat >>$CONFIG_STATUS <<\_ACEOF
! 22085: ## --------------------- ##
! 22086: ## M4sh Initialization. ##
! 22087: ## --------------------- ##
1.23 millert 22088:
1.27 ! millert 22089: # Be more Bourne compatible
! 22090: DUALCASE=1; export DUALCASE # for MKS sh
! 22091: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 22092: emulate sh
! 22093: NULLCMD=:
! 22094: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 22095: # is contrary to our usage. Disable this feature.
! 22096: alias -g '${1+"$@"}'='"$@"'
! 22097: setopt NO_GLOB_SUBST
! 22098: else
! 22099: case `(set -o) 2>/dev/null` in
! 22100: *posix*) set -o posix ;;
! 22101: esac
1.25 millert 22102:
1.27 ! millert 22103: fi
1.25 millert 22104:
1.9 millert 22105:
22106:
1.1 millert 22107:
1.27 ! millert 22108: # PATH needs CR
! 22109: # Avoid depending upon Character Ranges.
! 22110: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 22111: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 22112: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 22113: as_cr_digits='0123456789'
! 22114: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 millert 22115:
1.27 ! millert 22116: # The user is always right.
! 22117: if test "${PATH_SEPARATOR+set}" != set; then
! 22118: echo "#! /bin/sh" >conf$$.sh
! 22119: echo "exit 0" >>conf$$.sh
! 22120: chmod +x conf$$.sh
! 22121: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 22122: PATH_SEPARATOR=';'
! 22123: else
! 22124: PATH_SEPARATOR=:
! 22125: fi
! 22126: rm -f conf$$.sh
! 22127: fi
1.1 millert 22128:
1.27 ! millert 22129: # Support unset when possible.
! 22130: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 22131: as_unset=unset
! 22132: else
! 22133: as_unset=false
! 22134: fi
1.1 millert 22135:
1.16 millert 22136:
1.27 ! millert 22137: # IFS
! 22138: # We need space, tab and new line, in precisely that order. Quoting is
! 22139: # there to prevent editors from complaining about space-tab.
! 22140: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 22141: # splitting by setting IFS to empty value.)
! 22142: as_nl='
! 22143: '
! 22144: IFS=" "" $as_nl"
1.16 millert 22145:
1.27 ! millert 22146: # Find who we are. Look in the path if we contain no directory separator.
! 22147: case $0 in
! 22148: *[\\/]* ) as_myself=$0 ;;
! 22149: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 22150: for as_dir in $PATH
! 22151: do
! 22152: IFS=$as_save_IFS
! 22153: test -z "$as_dir" && as_dir=.
! 22154: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 22155: done
! 22156: IFS=$as_save_IFS
1.16 millert 22157:
1.27 ! millert 22158: ;;
! 22159: esac
! 22160: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 22161: # in which case we are not to be found in the path.
! 22162: if test "x$as_myself" = x; then
! 22163: as_myself=$0
! 22164: fi
! 22165: if test ! -f "$as_myself"; then
! 22166: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 22167: { (exit 1); exit 1; }
! 22168: fi
1.16 millert 22169:
1.27 ! millert 22170: # Work around bugs in pre-3.0 UWIN ksh.
! 22171: for as_var in ENV MAIL MAILPATH
! 22172: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 22173: done
! 22174: PS1='$ '
! 22175: PS2='> '
! 22176: PS4='+ '
1.9 millert 22177:
1.27 ! millert 22178: # NLS nuisances.
! 22179: for as_var in \
! 22180: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 22181: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 22182: LC_TELEPHONE LC_TIME
! 22183: do
! 22184: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 22185: eval $as_var=C; export $as_var
! 22186: else
! 22187: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 22188: fi
! 22189: done
1.9 millert 22190:
1.27 ! millert 22191: # Required to use basename.
! 22192: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 22193: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 22194: as_expr=expr
! 22195: else
! 22196: as_expr=false
! 22197: fi
1.16 millert 22198:
1.27 ! millert 22199: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 22200: as_basename=basename
! 22201: else
! 22202: as_basename=false
! 22203: fi
1.9 millert 22204:
1.16 millert 22205:
1.27 ! millert 22206: # Name of the executable.
! 22207: as_me=`$as_basename -- "$0" ||
! 22208: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 22209: X"$0" : 'X\(//\)$' \| \
! 22210: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 22211: echo X/"$0" |
! 22212: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 22213: s//\1/
! 22214: q
! 22215: }
! 22216: /^X\/\(\/\/\)$/{
! 22217: s//\1/
! 22218: q
! 22219: }
! 22220: /^X\/\(\/\).*/{
! 22221: s//\1/
! 22222: q
! 22223: }
! 22224: s/.*/./; q'`
1.16 millert 22225:
1.27 ! millert 22226: # CDPATH.
! 22227: $as_unset CDPATH
1.16 millert 22228:
22229:
22230:
1.27 ! millert 22231: as_lineno_1=$LINENO
! 22232: as_lineno_2=$LINENO
! 22233: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 22234: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16 millert 22235:
1.27 ! millert 22236: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 22237: # uniformly replaced by the line number. The first 'sed' inserts a
! 22238: # line-number line after each line using $LINENO; the second 'sed'
! 22239: # does the real work. The second script uses 'N' to pair each
! 22240: # line-number line with the line containing $LINENO, and appends
! 22241: # trailing '-' during substitution so that $LINENO is not a special
! 22242: # case at line end.
! 22243: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 22244: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 22245: # E. McMahon (1931-1989) for sed's syntax. :-)
! 22246: sed -n '
! 22247: p
! 22248: /[$]LINENO/=
! 22249: ' <$as_myself |
! 22250: sed '
! 22251: s/[$]LINENO.*/&-/
! 22252: t lineno
! 22253: b
! 22254: :lineno
! 22255: N
! 22256: :loop
! 22257: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
! 22258: t loop
! 22259: s/-\n.*//
! 22260: ' >$as_me.lineno &&
! 22261: chmod +x "$as_me.lineno" ||
! 22262: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 22263: { (exit 1); exit 1; }; }
1.16 millert 22264:
1.27 ! millert 22265: # Don't try to exec as it changes $[0], causing all sort of problems
! 22266: # (the dirname of $[0] is not the place where we might find the
! 22267: # original and so on. Autoconf is especially sensitive to this).
! 22268: . "./$as_me.lineno"
! 22269: # Exit status is that of the last command.
! 22270: exit
! 22271: }
1.16 millert 22272:
22273:
1.27 ! millert 22274: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 22275: as_dirname=dirname
! 22276: else
! 22277: as_dirname=false
! 22278: fi
1.16 millert 22279:
1.27 ! millert 22280: ECHO_C= ECHO_N= ECHO_T=
! 22281: case `echo -n x` in
! 22282: -n*)
! 22283: case `echo 'x\c'` in
! 22284: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 22285: *) ECHO_C='\c';;
! 22286: esac;;
! 22287: *)
! 22288: ECHO_N='-n';;
! 22289: esac
1.16 millert 22290:
1.27 ! millert 22291: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 22292: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 22293: as_expr=expr
! 22294: else
! 22295: as_expr=false
! 22296: fi
1.16 millert 22297:
1.27 ! millert 22298: rm -f conf$$ conf$$.exe conf$$.file
! 22299: if test -d conf$$.dir; then
! 22300: rm -f conf$$.dir/conf$$.file
! 22301: else
! 22302: rm -f conf$$.dir
! 22303: mkdir conf$$.dir
! 22304: fi
! 22305: echo >conf$$.file
! 22306: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 22307: as_ln_s='ln -s'
! 22308: # ... but there are two gotchas:
! 22309: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 22310: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 22311: # In both cases, we have to default to `cp -p'.
! 22312: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 22313: as_ln_s='cp -p'
! 22314: elif ln conf$$.file conf$$ 2>/dev/null; then
! 22315: as_ln_s=ln
! 22316: else
! 22317: as_ln_s='cp -p'
! 22318: fi
! 22319: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 22320: rmdir conf$$.dir 2>/dev/null
1.16 millert 22321:
1.27 ! millert 22322: if mkdir -p . 2>/dev/null; then
! 22323: as_mkdir_p=:
! 22324: else
! 22325: test -d ./-p && rmdir ./-p
! 22326: as_mkdir_p=false
! 22327: fi
1.16 millert 22328:
1.27 ! millert 22329: if test -x / >/dev/null 2>&1; then
! 22330: as_test_x='test -x'
! 22331: else
! 22332: if ls -dL / >/dev/null 2>&1; then
! 22333: as_ls_L_option=L
! 22334: else
! 22335: as_ls_L_option=
! 22336: fi
! 22337: as_test_x='
! 22338: eval sh -c '\''
! 22339: if test -d "$1"; then
! 22340: test -d "$1/.";
! 22341: else
! 22342: case $1 in
! 22343: -*)set "./$1";;
! 22344: esac;
! 22345: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 22346: ???[sx]*):;;*)false;;esac;fi
! 22347: '\'' sh
! 22348: '
! 22349: fi
! 22350: as_executable_p=$as_test_x
1.16 millert 22351:
1.27 ! millert 22352: # Sed expression to map a string onto a valid CPP name.
! 22353: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 22354:
1.27 ! millert 22355: # Sed expression to map a string onto a valid variable name.
! 22356: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 22357:
1.9 millert 22358:
1.27 ! millert 22359: exec 6>&1
1.9 millert 22360:
1.27 ! millert 22361: # Save the log message, to keep $[0] and so on meaningful, and to
! 22362: # report actual input values of CONFIG_FILES etc. instead of their
! 22363: # values after options handling.
! 22364: ac_log="
! 22365: This file was extended by sudo $as_me 1.6.9, which was
! 22366: generated by GNU Autoconf 2.61. Invocation command line was
1.9 millert 22367:
1.27 ! millert 22368: CONFIG_FILES = $CONFIG_FILES
! 22369: CONFIG_HEADERS = $CONFIG_HEADERS
! 22370: CONFIG_LINKS = $CONFIG_LINKS
! 22371: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 22372: $ $0 $@
1.16 millert 22373:
1.27 ! millert 22374: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 22375: "
1.9 millert 22376:
1.27 ! millert 22377: _ACEOF
1.16 millert 22378:
1.27 ! millert 22379: cat >>$CONFIG_STATUS <<_ACEOF
! 22380: # Files that config.status was made for.
! 22381: config_files="$ac_config_files"
! 22382: config_headers="$ac_config_headers"
1.9 millert 22383:
1.27 ! millert 22384: _ACEOF
1.9 millert 22385:
1.27 ! millert 22386: cat >>$CONFIG_STATUS <<\_ACEOF
! 22387: ac_cs_usage="\
! 22388: \`$as_me' instantiates files from templates according to the
! 22389: current configuration.
1.9 millert 22390:
1.27 ! millert 22391: Usage: $0 [OPTIONS] [FILE]...
1.9 millert 22392:
1.27 ! millert 22393: -h, --help print this help, then exit
! 22394: -V, --version print version number and configuration settings, then exit
! 22395: -q, --quiet do not print progress messages
! 22396: -d, --debug don't remove temporary files
! 22397: --recheck update $as_me by reconfiguring in the same conditions
! 22398: --file=FILE[:TEMPLATE]
! 22399: instantiate the configuration file FILE
! 22400: --header=FILE[:TEMPLATE]
! 22401: instantiate the configuration header FILE
1.9 millert 22402:
1.27 ! millert 22403: Configuration files:
! 22404: $config_files
1.16 millert 22405:
1.27 ! millert 22406: Configuration headers:
! 22407: $config_headers
1.16 millert 22408:
1.27 ! millert 22409: Report bugs to <bug-autoconf@gnu.org>."
1.16 millert 22410:
1.27 ! millert 22411: _ACEOF
! 22412: cat >>$CONFIG_STATUS <<_ACEOF
! 22413: ac_cs_version="\\
! 22414: sudo config.status 1.6.9
! 22415: configured by $0, generated by GNU Autoconf 2.61,
! 22416: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9 millert 22417:
1.27 ! millert 22418: Copyright (C) 2006 Free Software Foundation, Inc.
! 22419: This config.status script is free software; the Free Software Foundation
! 22420: gives unlimited permission to copy, distribute and modify it."
1.9 millert 22421:
1.27 ! millert 22422: ac_pwd='$ac_pwd'
! 22423: srcdir='$srcdir'
! 22424: _ACEOF
1.9 millert 22425:
1.27 ! millert 22426: cat >>$CONFIG_STATUS <<\_ACEOF
! 22427: # If no file are specified by the user, then we need to provide default
! 22428: # value. By we need to know if files were specified by the user.
! 22429: ac_need_defaults=:
! 22430: while test $# != 0
! 22431: do
! 22432: case $1 in
! 22433: --*=*)
! 22434: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 22435: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
! 22436: ac_shift=:
! 22437: ;;
! 22438: *)
! 22439: ac_option=$1
! 22440: ac_optarg=$2
! 22441: ac_shift=shift
! 22442: ;;
! 22443: esac
1.9 millert 22444:
1.27 ! millert 22445: case $ac_option in
! 22446: # Handling of the options.
! 22447: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 22448: ac_cs_recheck=: ;;
! 22449: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 22450: echo "$ac_cs_version"; exit ;;
! 22451: --debug | --debu | --deb | --de | --d | -d )
! 22452: debug=: ;;
! 22453: --file | --fil | --fi | --f )
! 22454: $ac_shift
! 22455: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
! 22456: ac_need_defaults=false;;
! 22457: --header | --heade | --head | --hea )
! 22458: $ac_shift
! 22459: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
! 22460: ac_need_defaults=false;;
! 22461: --he | --h)
! 22462: # Conflict between --help and --header
! 22463: { echo "$as_me: error: ambiguous option: $1
! 22464: Try \`$0 --help' for more information." >&2
! 22465: { (exit 1); exit 1; }; };;
! 22466: --help | --hel | -h )
! 22467: echo "$ac_cs_usage"; exit ;;
! 22468: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 22469: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 22470: ac_cs_silent=: ;;
1.9 millert 22471:
1.27 ! millert 22472: # This is an error.
! 22473: -*) { echo "$as_me: error: unrecognized option: $1
! 22474: Try \`$0 --help' for more information." >&2
! 22475: { (exit 1); exit 1; }; } ;;
1.9 millert 22476:
1.27 ! millert 22477: *) ac_config_targets="$ac_config_targets $1"
! 22478: ac_need_defaults=false ;;
1.9 millert 22479:
1.27 ! millert 22480: esac
! 22481: shift
! 22482: done
1.9 millert 22483:
1.27 ! millert 22484: ac_configure_extra_args=
1.9 millert 22485:
1.27 ! millert 22486: if $ac_cs_silent; then
! 22487: exec 6>/dev/null
! 22488: ac_configure_extra_args="$ac_configure_extra_args --silent"
! 22489: fi
1.9 millert 22490:
1.27 ! millert 22491: _ACEOF
! 22492: cat >>$CONFIG_STATUS <<_ACEOF
! 22493: if \$ac_cs_recheck; then
! 22494: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 22495: CONFIG_SHELL=$SHELL
! 22496: export CONFIG_SHELL
! 22497: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 22498: fi
1.9 millert 22499:
1.27 ! millert 22500: _ACEOF
! 22501: cat >>$CONFIG_STATUS <<\_ACEOF
! 22502: exec 5>>config.log
! 22503: {
! 22504: echo
! 22505: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 22506: ## Running $as_me. ##
! 22507: _ASBOX
! 22508: echo "$ac_log"
! 22509: } >&5
1.9 millert 22510:
1.27 ! millert 22511: _ACEOF
! 22512: cat >>$CONFIG_STATUS <<_ACEOF
! 22513: _ACEOF
1.9 millert 22514:
1.27 ! millert 22515: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 22516:
1.27 ! millert 22517: # Handling of arguments.
! 22518: for ac_config_target in $ac_config_targets
! 22519: do
! 22520: case $ac_config_target in
! 22521: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
! 22522: "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
! 22523: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 22524: "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
! 22525: "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
! 22526: "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.9 millert 22527:
1.27 ! millert 22528: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 22529: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 22530: { (exit 1); exit 1; }; };;
! 22531: esac
! 22532: done
1.9 millert 22533:
22534:
1.27 ! millert 22535: # If the user did not use the arguments to specify the items to instantiate,
! 22536: # then the envvar interface is used. Set only those that are not.
! 22537: # We use the long form for the default assignment because of an extremely
! 22538: # bizarre bug on SunOS 4.1.3.
! 22539: if $ac_need_defaults; then
! 22540: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 22541: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 22542: fi
1.9 millert 22543:
1.27 ! millert 22544: # Have a temporary directory for convenience. Make it in the build tree
! 22545: # simply because there is no reason against having it here, and in addition,
! 22546: # creating and moving files from /tmp can sometimes cause problems.
! 22547: # Hook for its removal unless debugging.
! 22548: # Note that there is a small window in which the directory will not be cleaned:
! 22549: # after its creation but before its name has been assigned to `$tmp'.
! 22550: $debug ||
! 22551: {
! 22552: tmp=
! 22553: trap 'exit_status=$?
! 22554: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 22555: ' 0
! 22556: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 22557: }
! 22558: # Create a (secure) tmp directory for tmp files.
1.9 millert 22559:
1.27 ! millert 22560: {
! 22561: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
! 22562: test -n "$tmp" && test -d "$tmp"
! 22563: } ||
! 22564: {
! 22565: tmp=./conf$$-$RANDOM
! 22566: (umask 077 && mkdir "$tmp")
! 22567: } ||
! 22568: {
! 22569: echo "$me: cannot create a temporary directory in ." >&2
! 22570: { (exit 1); exit 1; }
! 22571: }
1.9 millert 22572:
1.27 ! millert 22573: #
! 22574: # Set up the sed scripts for CONFIG_FILES section.
! 22575: #
1.16 millert 22576:
1.27 ! millert 22577: # No need to generate the scripts if there are no CONFIG_FILES.
! 22578: # This happens for instance when ./config.status config.h
! 22579: if test -n "$CONFIG_FILES"; then
1.16 millert 22580:
1.27 ! millert 22581: _ACEOF
1.16 millert 22582:
22583:
1.1 millert 22584:
1.27 ! millert 22585: ac_delim='%!_!# '
! 22586: for ac_last_try in false false false false false :; do
! 22587: cat >conf$$subs.sed <<_ACEOF
! 22588: SHELL!$SHELL$ac_delim
! 22589: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 22590: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 22591: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 22592: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 22593: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 22594: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 22595: exec_prefix!$exec_prefix$ac_delim
! 22596: prefix!$prefix$ac_delim
! 22597: program_transform_name!$program_transform_name$ac_delim
! 22598: bindir!$bindir$ac_delim
! 22599: sbindir!$sbindir$ac_delim
! 22600: libexecdir!$libexecdir$ac_delim
! 22601: datarootdir!$datarootdir$ac_delim
! 22602: datadir!$datadir$ac_delim
! 22603: sysconfdir!$sysconfdir$ac_delim
! 22604: sharedstatedir!$sharedstatedir$ac_delim
! 22605: localstatedir!$localstatedir$ac_delim
! 22606: includedir!$includedir$ac_delim
! 22607: oldincludedir!$oldincludedir$ac_delim
! 22608: docdir!$docdir$ac_delim
! 22609: infodir!$infodir$ac_delim
! 22610: htmldir!$htmldir$ac_delim
! 22611: dvidir!$dvidir$ac_delim
! 22612: pdfdir!$pdfdir$ac_delim
! 22613: psdir!$psdir$ac_delim
! 22614: libdir!$libdir$ac_delim
! 22615: localedir!$localedir$ac_delim
! 22616: mandir!$mandir$ac_delim
! 22617: DEFS!$DEFS$ac_delim
! 22618: ECHO_C!$ECHO_C$ac_delim
! 22619: ECHO_N!$ECHO_N$ac_delim
! 22620: ECHO_T!$ECHO_T$ac_delim
! 22621: LIBS!$LIBS$ac_delim
! 22622: build_alias!$build_alias$ac_delim
! 22623: host_alias!$host_alias$ac_delim
! 22624: target_alias!$target_alias$ac_delim
! 22625: LIBTOOL!$LIBTOOL$ac_delim
! 22626: CFLAGS!$CFLAGS$ac_delim
! 22627: PROGS!$PROGS$ac_delim
! 22628: CPPFLAGS!$CPPFLAGS$ac_delim
! 22629: LDFLAGS!$LDFLAGS$ac_delim
! 22630: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
! 22631: SUDO_OBJS!$SUDO_OBJS$ac_delim
! 22632: SUDO_LIBS!$SUDO_LIBS$ac_delim
! 22633: NET_LIBS!$NET_LIBS$ac_delim
! 22634: AFS_LIBS!$AFS_LIBS$ac_delim
! 22635: OSDEFS!$OSDEFS$ac_delim
! 22636: AUTH_OBJS!$AUTH_OBJS$ac_delim
! 22637: MANTYPE!$MANTYPE$ac_delim
! 22638: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
! 22639: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
! 22640: SUDOERS_UID!$SUDOERS_UID$ac_delim
! 22641: SUDOERS_GID!$SUDOERS_GID$ac_delim
! 22642: DEV!$DEV$ac_delim
! 22643: mansectsu!$mansectsu$ac_delim
! 22644: mansectform!$mansectform$ac_delim
! 22645: mansrcdir!$mansrcdir$ac_delim
! 22646: NOEXECDIR!$NOEXECDIR$ac_delim
! 22647: noexec_file!$noexec_file$ac_delim
! 22648: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
! 22649: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
! 22650: timedir!$timedir$ac_delim
! 22651: timeout!$timeout$ac_delim
! 22652: password_timeout!$password_timeout$ac_delim
! 22653: sudo_umask!$sudo_umask$ac_delim
! 22654: passprompt!$passprompt$ac_delim
! 22655: long_otp_prompt!$long_otp_prompt$ac_delim
! 22656: lecture!$lecture$ac_delim
! 22657: logfac!$logfac$ac_delim
! 22658: goodpri!$goodpri$ac_delim
! 22659: badpri!$badpri$ac_delim
! 22660: loglen!$loglen$ac_delim
! 22661: ignore_dot!$ignore_dot$ac_delim
! 22662: mail_no_user!$mail_no_user$ac_delim
! 22663: mail_no_host!$mail_no_host$ac_delim
! 22664: mail_no_perms!$mail_no_perms$ac_delim
! 22665: mailto!$mailto$ac_delim
! 22666: mailsub!$mailsub$ac_delim
! 22667: badpass_message!$badpass_message$ac_delim
! 22668: fqdn!$fqdn$ac_delim
! 22669: runas_default!$runas_default$ac_delim
! 22670: env_editor!$env_editor$ac_delim
! 22671: passwd_tries!$passwd_tries$ac_delim
! 22672: tty_tickets!$tty_tickets$ac_delim
! 22673: insults!$insults$ac_delim
! 22674: root_sudo!$root_sudo$ac_delim
! 22675: path_info!$path_info$ac_delim
! 22676: EGREPPROG!$EGREPPROG$ac_delim
! 22677: CC!$CC$ac_delim
! 22678: ac_ct_CC!$ac_ct_CC$ac_delim
! 22679: EXEEXT!$EXEEXT$ac_delim
! 22680: OBJEXT!$OBJEXT$ac_delim
! 22681: CPP!$CPP$ac_delim
! 22682: build!$build$ac_delim
! 22683: build_cpu!$build_cpu$ac_delim
! 22684: build_vendor!$build_vendor$ac_delim
! 22685: _ACEOF
1.9 millert 22686:
1.27 ! millert 22687: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
! 22688: break
! 22689: elif $ac_last_try; then
! 22690: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 22691: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 22692: { (exit 1); exit 1; }; }
! 22693: else
! 22694: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 22695: fi
! 22696: done
1.9 millert 22697:
1.27 ! millert 22698: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 22699: if test -n "$ac_eof"; then
! 22700: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 22701: ac_eof=`expr $ac_eof + 1`
! 22702: fi
1.16 millert 22703:
1.27 ! millert 22704: cat >>$CONFIG_STATUS <<_ACEOF
! 22705: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 22706: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 22707: _ACEOF
! 22708: sed '
! 22709: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 22710: s/^/s,@/; s/!/@,|#_!!_#|/
! 22711: :n
! 22712: t n
! 22713: s/'"$ac_delim"'$/,g/; t
! 22714: s/$/\\/; p
! 22715: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 22716: ' >>$CONFIG_STATUS <conf$$subs.sed
! 22717: rm -f conf$$subs.sed
! 22718: cat >>$CONFIG_STATUS <<_ACEOF
! 22719: CEOF$ac_eof
! 22720: _ACEOF
1.1 millert 22721:
22722:
1.27 ! millert 22723: ac_delim='%!_!# '
! 22724: for ac_last_try in false false false false false :; do
! 22725: cat >conf$$subs.sed <<_ACEOF
! 22726: build_os!$build_os$ac_delim
! 22727: host!$host$ac_delim
! 22728: host_cpu!$host_cpu$ac_delim
! 22729: host_vendor!$host_vendor$ac_delim
! 22730: host_os!$host_os$ac_delim
! 22731: target!$target$ac_delim
! 22732: target_cpu!$target_cpu$ac_delim
! 22733: target_vendor!$target_vendor$ac_delim
! 22734: target_os!$target_os$ac_delim
! 22735: SED!$SED$ac_delim
! 22736: GREP!$GREP$ac_delim
! 22737: EGREP!$EGREP$ac_delim
! 22738: LN_S!$LN_S$ac_delim
! 22739: ECHO!$ECHO$ac_delim
! 22740: AR!$AR$ac_delim
! 22741: RANLIB!$RANLIB$ac_delim
! 22742: STRIP!$STRIP$ac_delim
! 22743: UNAMEPROG!$UNAMEPROG$ac_delim
! 22744: TRPROG!$TRPROG$ac_delim
! 22745: NROFFPROG!$NROFFPROG$ac_delim
! 22746: YACC!$YACC$ac_delim
! 22747: YFLAGS!$YFLAGS$ac_delim
! 22748: LIBOBJS!$LIBOBJS$ac_delim
! 22749: ALLOCA!$ALLOCA$ac_delim
! 22750: KRB5CONFIG!$KRB5CONFIG$ac_delim
! 22751: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 22752: _ACEOF
1.9 millert 22753:
1.27 ! millert 22754: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
! 22755: break
! 22756: elif $ac_last_try; then
! 22757: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 22758: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 22759: { (exit 1); exit 1; }; }
! 22760: else
! 22761: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 22762: fi
! 22763: done
1.1 millert 22764:
1.27 ! millert 22765: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 22766: if test -n "$ac_eof"; then
! 22767: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 22768: ac_eof=`expr $ac_eof + 1`
! 22769: fi
1.9 millert 22770:
1.27 ! millert 22771: cat >>$CONFIG_STATUS <<_ACEOF
! 22772: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
! 22773: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 22774: _ACEOF
! 22775: sed '
! 22776: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 22777: s/^/s,@/; s/!/@,|#_!!_#|/
! 22778: :n
! 22779: t n
! 22780: s/'"$ac_delim"'$/,g/; t
! 22781: s/$/\\/; p
! 22782: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 22783: ' >>$CONFIG_STATUS <conf$$subs.sed
! 22784: rm -f conf$$subs.sed
! 22785: cat >>$CONFIG_STATUS <<_ACEOF
! 22786: :end
! 22787: s/|#_!!_#|//g
! 22788: CEOF$ac_eof
! 22789: _ACEOF
1.1 millert 22790:
22791:
1.27 ! millert 22792: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 22793: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 22794: # trailing colons and then remove the whole line if VPATH becomes empty
! 22795: # (actually we leave an empty line to preserve line numbers).
! 22796: if test "x$srcdir" = x.; then
! 22797: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 22798: s/:*\$(srcdir):*/:/
! 22799: s/:*\${srcdir}:*/:/
! 22800: s/:*@srcdir@:*/:/
! 22801: s/^\([^=]*=[ ]*\):*/\1/
! 22802: s/:*$//
! 22803: s/^[^=]*=[ ]*$//
! 22804: }'
! 22805: fi
1.1 millert 22806:
1.27 ! millert 22807: cat >>$CONFIG_STATUS <<\_ACEOF
! 22808: fi # test -n "$CONFIG_FILES"
1.16 millert 22809:
22810:
1.27 ! millert 22811: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
! 22812: do
! 22813: case $ac_tag in
! 22814: :[FHLC]) ac_mode=$ac_tag; continue;;
! 22815: esac
! 22816: case $ac_mode$ac_tag in
! 22817: :[FHL]*:*);;
! 22818: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 22819: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 22820: { (exit 1); exit 1; }; };;
! 22821: :[FH]-) ac_tag=-:-;;
! 22822: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 22823: esac
! 22824: ac_save_IFS=$IFS
! 22825: IFS=:
! 22826: set x $ac_tag
! 22827: IFS=$ac_save_IFS
! 22828: shift
! 22829: ac_file=$1
! 22830: shift
1.16 millert 22831:
1.27 ! millert 22832: case $ac_mode in
! 22833: :L) ac_source=$1;;
! 22834: :[FH])
! 22835: ac_file_inputs=
! 22836: for ac_f
! 22837: do
! 22838: case $ac_f in
! 22839: -) ac_f="$tmp/stdin";;
! 22840: *) # Look for the file first in the build tree, then in the source tree
! 22841: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 22842: # because $ac_f cannot contain `:'.
! 22843: test -f "$ac_f" ||
! 22844: case $ac_f in
! 22845: [\\/$]*) false;;
! 22846: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 22847: esac ||
! 22848: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 22849: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 22850: { (exit 1); exit 1; }; };;
! 22851: esac
! 22852: ac_file_inputs="$ac_file_inputs $ac_f"
! 22853: done
1.1 millert 22854:
1.27 ! millert 22855: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 22856: # use $as_me), people would be surprised to read:
! 22857: # /* config.h. Generated by config.status. */
! 22858: configure_input="Generated from "`IFS=:
! 22859: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 22860: if test x"$ac_file" != x-; then
! 22861: configure_input="$ac_file. $configure_input"
! 22862: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 22863: echo "$as_me: creating $ac_file" >&6;}
! 22864: fi
1.1 millert 22865:
1.27 ! millert 22866: case $ac_tag in
! 22867: *:-:* | *:-) cat >"$tmp/stdin";;
! 22868: esac
! 22869: ;;
! 22870: esac
1.1 millert 22871:
1.27 ! millert 22872: ac_dir=`$as_dirname -- "$ac_file" ||
! 22873: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22874: X"$ac_file" : 'X\(//\)[^/]' \| \
! 22875: X"$ac_file" : 'X\(//\)$' \| \
! 22876: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 22877: echo X"$ac_file" |
! 22878: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22879: s//\1/
! 22880: q
! 22881: }
! 22882: /^X\(\/\/\)[^/].*/{
! 22883: s//\1/
! 22884: q
! 22885: }
! 22886: /^X\(\/\/\)$/{
! 22887: s//\1/
! 22888: q
! 22889: }
! 22890: /^X\(\/\).*/{
! 22891: s//\1/
! 22892: q
! 22893: }
! 22894: s/.*/./; q'`
! 22895: { as_dir="$ac_dir"
! 22896: case $as_dir in #(
! 22897: -*) as_dir=./$as_dir;;
! 22898: esac
! 22899: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
! 22900: as_dirs=
! 22901: while :; do
! 22902: case $as_dir in #(
! 22903: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 22904: *) as_qdir=$as_dir;;
! 22905: esac
! 22906: as_dirs="'$as_qdir' $as_dirs"
! 22907: as_dir=`$as_dirname -- "$as_dir" ||
! 22908: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22909: X"$as_dir" : 'X\(//\)[^/]' \| \
! 22910: X"$as_dir" : 'X\(//\)$' \| \
! 22911: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 22912: echo X"$as_dir" |
! 22913: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22914: s//\1/
! 22915: q
! 22916: }
! 22917: /^X\(\/\/\)[^/].*/{
! 22918: s//\1/
! 22919: q
! 22920: }
! 22921: /^X\(\/\/\)$/{
! 22922: s//\1/
! 22923: q
! 22924: }
! 22925: /^X\(\/\).*/{
! 22926: s//\1/
! 22927: q
! 22928: }
! 22929: s/.*/./; q'`
! 22930: test -d "$as_dir" && break
! 22931: done
! 22932: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 22933: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 22934: echo "$as_me: error: cannot create directory $as_dir" >&2;}
! 22935: { (exit 1); exit 1; }; }; }
! 22936: ac_builddir=.
1.9 millert 22937:
1.27 ! millert 22938: case "$ac_dir" in
! 22939: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 22940: *)
! 22941: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 22942: # A ".." for each directory in $ac_dir_suffix.
! 22943: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 22944: case $ac_top_builddir_sub in
! 22945: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 22946: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 22947: esac ;;
! 22948: esac
! 22949: ac_abs_top_builddir=$ac_pwd
! 22950: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 22951: # for backward compatibility:
! 22952: ac_top_builddir=$ac_top_build_prefix
1.1 millert 22953:
1.27 ! millert 22954: case $srcdir in
! 22955: .) # We are building in place.
! 22956: ac_srcdir=.
! 22957: ac_top_srcdir=$ac_top_builddir_sub
! 22958: ac_abs_top_srcdir=$ac_pwd ;;
! 22959: [\\/]* | ?:[\\/]* ) # Absolute name.
! 22960: ac_srcdir=$srcdir$ac_dir_suffix;
! 22961: ac_top_srcdir=$srcdir
! 22962: ac_abs_top_srcdir=$srcdir ;;
! 22963: *) # Relative name.
! 22964: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 22965: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 22966: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 22967: esac
! 22968: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 millert 22969:
22970:
1.27 ! millert 22971: case $ac_mode in
! 22972: :F)
! 22973: #
! 22974: # CONFIG_FILE
! 22975: #
1.1 millert 22976:
1.27 ! millert 22977: _ACEOF
1.1 millert 22978:
1.27 ! millert 22979: cat >>$CONFIG_STATUS <<\_ACEOF
! 22980: # If the template does not know about datarootdir, expand it.
! 22981: # FIXME: This hack should be removed a few years after 2.60.
! 22982: ac_datarootdir_hack=; ac_datarootdir_seen=
! 22983:
! 22984: case `sed -n '/datarootdir/ {
! 22985: p
! 22986: q
! 22987: }
! 22988: /@datadir@/p
! 22989: /@docdir@/p
! 22990: /@infodir@/p
! 22991: /@localedir@/p
! 22992: /@mandir@/p
! 22993: ' $ac_file_inputs` in
! 22994: *datarootdir*) ac_datarootdir_seen=yes;;
! 22995: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 22996: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 22997: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 22998: _ACEOF
! 22999: cat >>$CONFIG_STATUS <<_ACEOF
! 23000: ac_datarootdir_hack='
! 23001: s&@datadir@&$datadir&g
! 23002: s&@docdir@&$docdir&g
! 23003: s&@infodir@&$infodir&g
! 23004: s&@localedir@&$localedir&g
! 23005: s&@mandir@&$mandir&g
! 23006: s&\\\${datarootdir}&$datarootdir&g' ;;
! 23007: esac
! 23008: _ACEOF
1.1 millert 23009:
1.27 ! millert 23010: # Neutralize VPATH when `$srcdir' = `.'.
! 23011: # Shell code in configure.ac might set extrasub.
! 23012: # FIXME: do we really want to maintain this feature?
! 23013: cat >>$CONFIG_STATUS <<_ACEOF
! 23014: sed "$ac_vpsub
! 23015: $extrasub
! 23016: _ACEOF
! 23017: cat >>$CONFIG_STATUS <<\_ACEOF
! 23018: :t
! 23019: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 23020: s&@configure_input@&$configure_input&;t t
! 23021: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 23022: s&@srcdir@&$ac_srcdir&;t t
! 23023: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 23024: s&@top_srcdir@&$ac_top_srcdir&;t t
! 23025: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 23026: s&@builddir@&$ac_builddir&;t t
! 23027: s&@abs_builddir@&$ac_abs_builddir&;t t
! 23028: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 23029: $ac_datarootdir_hack
! 23030: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
! 23031:
! 23032: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 23033: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 23034: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 23035: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 23036: which seems to be undefined. Please make sure it is defined." >&5
! 23037: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 23038: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 millert 23039:
1.27 ! millert 23040: rm -f "$tmp/stdin"
! 23041: case $ac_file in
! 23042: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 23043: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25 millert 23044: esac
1.27 ! millert 23045: ;;
! 23046: :H)
! 23047: #
! 23048: # CONFIG_HEADER
! 23049: #
! 23050: _ACEOF
! 23051:
! 23052: # Transform confdefs.h into a sed script `conftest.defines', that
! 23053: # substitutes the proper values into config.h.in to produce config.h.
! 23054: rm -f conftest.defines conftest.tail
! 23055: # First, append a space to every undef/define line, to ease matching.
! 23056: echo 's/$/ /' >conftest.defines
! 23057: # Then, protect against being on the right side of a sed subst, or in
! 23058: # an unquoted here document, in config.status. If some macros were
! 23059: # called several times there might be several #defines for the same
! 23060: # symbol, which is useless. But do not sort them, since the last
! 23061: # AC_DEFINE must be honored.
! 23062: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 23063: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 23064: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 23065: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 23066: # just an empty string.
! 23067: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 23068: ac_dB='\\)[ (].*,\\1define\\2'
! 23069: ac_dC=' '
! 23070: ac_dD=' ,'
1.1 millert 23071:
1.27 ! millert 23072: uniq confdefs.h |
! 23073: sed -n '
! 23074: t rset
! 23075: :rset
! 23076: s/^[ ]*#[ ]*define[ ][ ]*//
! 23077: t ok
! 23078: d
! 23079: :ok
! 23080: s/[\\&,]/\\&/g
! 23081: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 23082: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 23083: ' >>conftest.defines
1.1 millert 23084:
1.27 ! millert 23085: # Remove the space that was appended to ease matching.
! 23086: # Then replace #undef with comments. This is necessary, for
! 23087: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 23088: # on some systems where configure will not decide to define it.
! 23089: # (The regexp can be short, since the line contains either #define or #undef.)
! 23090: echo 's/ $//
! 23091: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 23092:
! 23093: # Break up conftest.defines:
! 23094: ac_max_sed_lines=50
! 23095:
! 23096: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 23097: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 23098: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 23099: # et cetera.
! 23100: ac_in='$ac_file_inputs'
! 23101: ac_out='"$tmp/out1"'
! 23102: ac_nxt='"$tmp/out2"'
1.1 millert 23103:
1.27 ! millert 23104: while :
! 23105: do
! 23106: # Write a here document:
! 23107: cat >>$CONFIG_STATUS <<_ACEOF
! 23108: # First, check the format of the line:
! 23109: cat >"\$tmp/defines.sed" <<\\CEOF
! 23110: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 23111: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 23112: b
! 23113: :def
! 23114: _ACEOF
! 23115: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
! 23116: echo 'CEOF
! 23117: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 23118: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 23119: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 23120: grep . conftest.tail >/dev/null || break
! 23121: rm -f conftest.defines
! 23122: mv conftest.tail conftest.defines
! 23123: done
! 23124: rm -f conftest.defines conftest.tail
1.9 millert 23125:
1.27 ! millert 23126: echo "ac_result=$ac_in" >>$CONFIG_STATUS
! 23127: cat >>$CONFIG_STATUS <<\_ACEOF
! 23128: if test x"$ac_file" != x-; then
! 23129: echo "/* $configure_input */" >"$tmp/config.h"
! 23130: cat "$ac_result" >>"$tmp/config.h"
! 23131: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
! 23132: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 23133: echo "$as_me: $ac_file is unchanged" >&6;}
! 23134: else
! 23135: rm -f $ac_file
! 23136: mv "$tmp/config.h" $ac_file
! 23137: fi
! 23138: else
! 23139: echo "/* $configure_input */"
! 23140: cat "$ac_result"
! 23141: fi
! 23142: rm -f "$tmp/out12"
! 23143: # Compute $ac_file's index in $config_headers.
! 23144: _am_stamp_count=1
! 23145: for _am_header in $config_headers :; do
! 23146: case $_am_header in
! 23147: $ac_file | $ac_file:* )
! 23148: break ;;
! 23149: * )
! 23150: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
! 23151: esac
! 23152: done
! 23153: echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
! 23154: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23155: X$ac_file : 'X\(//\)[^/]' \| \
! 23156: X$ac_file : 'X\(//\)$' \| \
! 23157: X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
! 23158: echo X$ac_file |
! 23159: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 23160: s//\1/
! 23161: q
! 23162: }
! 23163: /^X\(\/\/\)[^/].*/{
! 23164: s//\1/
! 23165: q
! 23166: }
! 23167: /^X\(\/\/\)$/{
! 23168: s//\1/
! 23169: q
! 23170: }
! 23171: /^X\(\/\).*/{
! 23172: s//\1/
! 23173: q
! 23174: }
! 23175: s/.*/./; q'`/stamp-h$_am_stamp_count
! 23176: ;;
1.9 millert 23177:
23178:
1.25 millert 23179: esac
1.1 millert 23180:
1.27 ! millert 23181: done # for ac_tag
! 23182:
1.1 millert 23183:
1.9 millert 23184: { (exit 0); exit 0; }
1.16 millert 23185: _ACEOF
1.1 millert 23186: chmod +x $CONFIG_STATUS
1.9 millert 23187: ac_clean_files=$ac_clean_files_save
1.1 millert 23188:
1.16 millert 23189:
1.9 millert 23190: # configure is writing to config.log, and then calls config.status.
23191: # config.status does its own redirection, appending to config.log.
23192: # Unfortunately, on DOS this fails, as config.log is still kept open
23193: # by configure, so config.status won't be able to write to it; its
23194: # output is simply discarded. So we exec the FD to /dev/null,
23195: # effectively closing config.log, so it can be properly (re)opened and
23196: # appended to by config.status. When coming back to configure, we
23197: # need to make the FD available again.
23198: if test "$no_create" != yes; then
23199: ac_cs_success=:
1.16 millert 23200: ac_config_status_args=
23201: test "$silent" = yes &&
23202: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 23203: exec 5>/dev/null
1.16 millert 23204: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 23205: exec 5>>config.log
23206: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23207: # would make configure fail if this is the last instruction.
23208: $ac_cs_success || { (exit 1); exit 1; }
23209: fi
1.1 millert 23210:
1.16 millert 23211:
1.1 millert 23212: if test "$with_pam" = "yes"; then
23213: case $host in
23214: *-*-linux*)
1.17 millert 23215: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23216: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 23217: ;;
23218: esac
23219: fi
1.23 millert 23220:
23221:
23222:
23223:
23224:
23225:
23226:
23227:
23228:
23229:
23230:
23231:
23232:
23233:
23234:
23235:
23236:
23237:
23238:
23239:
23240:
23241:
23242:
23243:
23244:
23245:
23246:
23247:
23248:
23249:
23250:
23251:
23252:
23253:
23254:
23255:
23256:
23257:
23258:
23259:
23260:
23261:
23262:
23263:
23264:
23265:
23266:
23267:
23268:
23269:
23270:
23271:
23272:
23273:
23274:
23275:
23276:
23277:
23278:
23279:
23280:
23281:
23282:
23283:
23284:
23285:
23286:
23287:
23288:
23289:
23290:
23291:
23292:
23293:
23294:
23295:
23296:
23297:
23298:
23299:
23300:
23301:
23302:
23303:
23304:
23305:
23306:
23307:
23308:
23309:
23310:
23311:
23312:
23313:
23314:
23315:
23316:
23317:
23318:
23319:
23320:
23321:
23322:
23323:
23324:
23325:
23326:
23327:
23328:
23329:
23330:
23331:
23332:
23333:
23334:
23335:
23336:
23337:
23338:
23339:
23340:
23341:
23342:
23343:
1.16 millert 23344:
23345:
23346:
23347:
23348:
23349:
23350:
23351:
23352:
23353:
23354:
23355:
23356:
23357:
1.9 millert 23358: