2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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
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
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
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 \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
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
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
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
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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
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'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
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
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.
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
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
658 SHELL="$CONFIG_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"
667 # maybe with a smaller string...
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
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+"$@"}
683 # Oops. We lost completely, so just stick with echo.
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.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 exec 7<&0 </dev/null 6>&1
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`
712 ac_default_prefix=/usr/local
714 ac_config_libobj_dir=.
720 SHELL=${CONFIG_SHELL-/bin/sh}
722 # Identity of this package.
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
897 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
996 cache_file=config.cache ;;
998 -datadir | --datadir | --datadi | --datad)
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1010 -disable-* | --disable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=\$ac_optarg ;;
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 htmldir=$ac_optarg ;;
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1081 -libdir | --libdir | --libdi | --libd)
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
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)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1172 -psdir | --psdir | --psdi | --psd | --ps)
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1200 -site=* | --site=* | --sit=*)
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242 eval with_$ac_package=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264 { (exit 1); exit 1; }; }
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272 { (exit 1); exit 1; }; }
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 { echo "$as_me: error: missing argument to $ac_option" >&2
1290 { (exit 1); exit 1; }; }
1293 # Be sure to have absolute directory names.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305 { (exit 1); exit 1; }; }
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 { echo "$as_me: error: Working directory cannot be determined" >&2
1336 { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 { echo "$as_me: error: pwd does not report name of working directory" >&2
1339 { (exit 1); exit 1; }; }
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$0" : 'X\(//\)[^/]' \| \
1349 X"$0" : 'X\(//\)$' \| \
1350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379 { (exit 1); exit 1; }; }
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384 { (exit 1); exit 1; }; }
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of sudo 1.6.9:";;
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-authentication
1484 Do not require authentication by default
1485 --disable-root-mailer Don't run the mailer as root, run as the user
1486 --disable-setreuid Don't try to use the setreuid() function
1487 --disable-setresuid Don't try to use the setresuid() function
1488 --disable-shadow Never use shadow passwords
1489 --disable-root-sudo Don't allow root to run sudo
1490 --enable-log-host Log the hostname in the log file
1491 --enable-noargs-shell If sudo is given no arguments run a shell
1492 --enable-shell-sets-home
1493 set $HOME to target user in shell mode
1494 --disable-path-info Print 'command not allowed' not 'command not found'
1495 --enable-static[=PKGS] build static libraries [default=no]
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --disable-sia Disable SIA on Digital UNIX
1501 --disable-pam-session Disable PAM session support
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-otp-only deprecated
1507 --with-alertmail deprecated
1508 --with-CC C compiler to use
1509 --with-rpath pass -R flag in addition to -L for lib paths
1510 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1511 --with-incpath additional places to look for include files
1512 --with-libpath additional places to look for libraries
1513 --with-libraries additional libraries to link with
1514 --with-devel add development options
1515 --with-efence link with -lefence for malloc() debugging
1516 --with-csops add CSOps standard options
1517 --without-passwd don't use passwd/shadow file for authentication
1518 --with-skey=DIR enable S/Key support
1519 --with-opie=DIR enable OPIE support
1520 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1521 --with-SecurID[=DIR] enable SecurID support
1522 --with-fwtk[=DIR] enable FWTK AuthSRV support
1523 --with-kerb4[=DIR] enable Kerberos IV support
1524 --with-kerb5[=DIR] enable Kerberos V support
1525 --with-aixauth enable AIX general authentication support
1526 --with-pam enable PAM support
1527 --with-AFS enable AFS support
1528 --with-DCE enable DCE support
1529 --with-logincap enable BSD login class support
1530 --with-bsdauth enable BSD authentication support
1531 --with-project enable Solaris project support
1532 --without-lecture don't print lecture for first-time sudoer
1533 --with-logging log via syslog, file, or both
1534 --with-logfac syslog facility to log with (default is "local2")
1535 --with-goodpri syslog priority for commands (def is "notice")
1536 --with-badpri syslog priority for failures (def is "alert")
1537 --with-logpath path to the sudo log file
1538 --with-loglen maximum length of a log file line (default is 80)
1539 --with-ignore-dot ignore '.' in the PATH
1540 --without-mail-if-no-user do not send mail if user not in sudoers
1541 --with-mail-if-no-host send mail if user in sudoers but not for this host
1542 --with-mail-if-noperms send mail if user not allowed to run command
1543 --with-mailto who should get sudo mail (default is "root")
1544 --with-mailsubject subject of sudo mail
1545 --with-passprompt default password prompt
1546 --with-badpass-message message the user sees when the password is wrong
1547 --with-fqdn expect fully qualified hosts in sudoers
1548 --with-timedir path to the sudo timestamp dir
1549 --with-sendmail=path set path to sendmail
1550 --without-sendmail do not send mail at all
1551 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1552 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1553 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1554 --with-umask umask with which the prog should run (default is 022)
1555 --without-umask Preserves the umask of the user invoking sudo.
1556 --with-runas-default User to run commands as (default is "root")
1557 --with-exempt=group no passwd needed for users in this group
1558 --with-editor=path Default editor for visudo (defaults to vi)
1559 --with-env-editor Use the environment variable EDITOR for visudo
1560 --with-passwd-tries number of tries to enter password (default is 3)
1561 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1562 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1563 --with-tty-tickets use a different ticket file for each tty
1564 --with-insults insult the user for entering an incorrect password
1565 --with-all-insults include all the sudo insult sets
1566 --with-classic-insults include the insults from the "classic" sudo
1567 --with-csops-insults include CSOps insults
1568 --with-hal-insults include 2001-like insults
1569 --with-goons-insults include the insults from the "Goon Show"
1570 --with-ldap[=DIR] enable LDAP support
1571 --with-ldap-conf-file path to LDAP configuration file
1572 --with-ldap-secret-file path to LDAP secret password file
1573 --with-pc-insults replace politically incorrect insults with less offensive ones
1574 --with-secure-path override the user's path with a built-in one
1575 --without-interfaces don't try to read the ip addr of ether interfaces
1576 --with-stow properly handle GNU stow packaging
1577 --with-selinux enable SELinux support
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1581 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1593 the first program found out of: `bison -y', `byacc', `yacc'.
1594 YFLAGS The list of arguments that will be passed by default to $YACC.
1595 This script will default YFLAGS to the empty string to avoid a
1596 default value of `-d' given by some make applications.
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" || continue
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1628 .) # We are building in place.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1661 sudo configure 1.6.9
1662 generated by GNU Autoconf 2.61
1664 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by sudo $as_me 1.6.9, which was
1676 generated by GNU Autoconf 2.61. Invocation command line was
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_must_keep_next=false
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 -* ) ac_must_keep_next=true ;;
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1829 for ac_var in $ac_subst_vars
1831 eval ac_val=\$$ac_var
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 echo "$ac_var='\''$ac_val'\''"
1839 if test -n "$ac_subst_files"; then
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1846 for ac_var in $ac_subst_files
1848 eval ac_val=\$$ac_var
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 echo "$ac_var='\''$ac_val'\''"
1857 if test -s confdefs.h; then
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875 for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1883 # Predefined preprocessor variables.
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
1923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1931 if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 echo "$as_me: loading cache $cache_file" >&6;}
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 echo "$as_me: creating cache $cache_file" >&6;}
1948 # Check that the precious variables saved in the cache have kept the same
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1971 echo "$as_me: former value: $ac_old_val" >&2;}
1972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1973 echo "$as_me: current value: $ac_new_val" >&2;}
1974 ac_cache_corrupted=:
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 *) ac_arg=$ac_var=$ac_new_val ;;
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 ac_config_headers="$ac_config_headers config.h pathnames.h"
2030 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2031 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2092 passprompt="Password:"
2104 mailsub='*** SECURITY information for %h ***'
2105 badpass_message='Sorry, try again.'
2118 : ${SUDOERS_MODE='0440'}
2119 : ${SUDOERS_UID='0'}
2120 : ${SUDOERS_GID='0'}
2136 shadow_libs_optional=
2138 if test X"$prefix" = X"NONE"; then
2139 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2141 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2143 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2144 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2145 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2149 # Check whether --with-otp-only was given.
2150 if test "${with_otp_only+set}" = set; then
2151 withval=$with_otp_only; case $with_otp_only in
2152 yes) with_passwd="no"
2153 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2154 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2161 # Check whether --with-alertmail was given.
2162 if test "${with_alertmail+set}" = set; then
2163 withval=$with_alertmail; case $with_alertmail in
2164 *) with_mailto="$with_alertmail"
2165 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2166 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2174 # Check whether --with-CC was given.
2175 if test "${with_CC+set}" = set; then
2176 withval=$with_CC; case $with_CC in
2177 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2178 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2179 { (exit 1); exit 1; }; }
2181 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2182 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2183 { (exit 1); exit 1; }; }
2192 # Check whether --with-rpath was given.
2193 if test "${with_rpath+set}" = set; then
2194 withval=$with_rpath; case $with_rpath in
2196 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2197 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2198 { (exit 1); exit 1; }; }
2205 # Check whether --with-blibpath was given.
2206 if test "${with_blibpath+set}" = set; then
2207 withval=$with_blibpath; case $with_blibpath in
2209 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2210 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2217 # Check whether --with-incpath was given.
2218 if test "${with_incpath+set}" = set; then
2219 withval=$with_incpath; case $with_incpath in
2220 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2221 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2222 { (exit 1); exit 1; }; }
2224 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2225 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2226 { (exit 1); exit 1; }; }
2228 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2229 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2230 for i in ${with_incpath}; do
2231 CPPFLAGS="${CPPFLAGS} -I${i}"
2239 # Check whether --with-libpath was given.
2240 if test "${with_libpath+set}" = set; then
2241 withval=$with_libpath; case $with_libpath in
2242 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2243 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2244 { (exit 1); exit 1; }; }
2246 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2247 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2248 { (exit 1); exit 1; }; }
2250 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2251 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2258 # Check whether --with-libraries was given.
2259 if test "${with_libraries+set}" = set; then
2260 withval=$with_libraries; case $with_libraries in
2261 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2262 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2263 { (exit 1); exit 1; }; }
2265 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2266 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2267 { (exit 1); exit 1; }; }
2269 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2270 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2277 # Check whether --with-devel was given.
2278 if test "${with_devel+set}" = set; then
2279 withval=$with_devel; case $with_devel in
2280 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2281 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2282 PROGS="${PROGS} testsudoers"
2283 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2287 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2288 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2295 # Check whether --with-efence was given.
2296 if test "${with_efence+set}" = set; then
2297 withval=$with_efence; case $with_efence in
2298 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2299 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2300 LIBS="${LIBS} -lefence"
2301 if test -f /usr/local/lib/libefence.a; then
2302 with_libpath="${with_libpath} /usr/local/lib"
2306 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2307 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2314 # Check whether --with-csops was given.
2315 if test "${with_csops+set}" = set; then
2316 withval=$with_csops; case $with_csops in
2317 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2318 echo "$as_me: Adding CSOps standard options" >&6;}
2322 with_classic_insults=yes
2323 with_csops_insults=yes
2326 : ${mansectform='5'}
2329 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2330 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2337 # Check whether --with-passwd was given.
2338 if test "${with_passwd+set}" = set; then
2339 withval=$with_passwd; case $with_passwd in
2340 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2341 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2342 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2343 echo "${ECHO_T}$with_passwd" >&6; }
2345 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2347 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2348 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2349 { (exit 1); exit 1; }; }
2356 # Check whether --with-skey was given.
2357 if test "${with_skey+set}" = set; then
2358 withval=$with_skey; case $with_skey in
2361 *) cat >>confdefs.h <<\_ACEOF
2365 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2366 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2367 { echo "$as_me:$LINENO: result: yes" >&5
2368 echo "${ECHO_T}yes" >&6; }
2369 AUTH_REG="$AUTH_REG S/Key"
2376 # Check whether --with-opie was given.
2377 if test "${with_opie+set}" = set; then
2378 withval=$with_opie; case $with_opie in
2381 *) cat >>confdefs.h <<\_ACEOF
2385 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2386 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2387 { echo "$as_me:$LINENO: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6; }
2389 AUTH_REG="$AUTH_REG NRL_OPIE"
2396 # Check whether --with-long-otp-prompt was given.
2397 if test "${with_long_otp_prompt+set}" = set; then
2398 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2399 yes) cat >>confdefs.h <<\_ACEOF
2400 #define LONG_OTP_PROMPT 1
2403 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2404 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2405 { echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6; }
2409 no) long_otp_prompt=off
2411 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2412 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2413 { (exit 1); exit 1; }; }
2420 # Check whether --with-SecurID was given.
2421 if test "${with_SecurID+set}" = set; then
2422 withval=$with_SecurID; case $with_SecurID in
2423 no) with_SecurID="";;
2424 *) cat >>confdefs.h <<\_ACEOF
2425 #define HAVE_SECURID 1
2428 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2429 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432 AUTH_EXCL="$AUTH_EXCL SecurID"
2439 # Check whether --with-fwtk was given.
2440 if test "${with_fwtk+set}" = set; then
2441 withval=$with_fwtk; case $with_fwtk in
2443 *) cat >>confdefs.h <<\_ACEOF
2447 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2448 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2449 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2451 AUTH_EXCL="$AUTH_EXCL FWTK"
2458 # Check whether --with-kerb4 was given.
2459 if test "${with_kerb4+set}" = set; then
2460 withval=$with_kerb4; case $with_kerb4 in
2462 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2463 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2464 { echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6; }
2466 AUTH_REG="$AUTH_REG kerb4"
2473 # Check whether --with-kerb5 was given.
2474 if test "${with_kerb5+set}" = set; then
2475 withval=$with_kerb5; case $with_kerb5 in
2477 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2478 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2479 { echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6; }
2481 AUTH_REG="$AUTH_REG kerb5"
2488 # Check whether --with-aixauth was given.
2489 if test "${with_aixauth+set}" = set; then
2490 withval=$with_aixauth; case $with_aixauth in
2491 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2493 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2494 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2495 { (exit 1); exit 1; }; }
2502 # Check whether --with-pam was given.
2503 if test "${with_pam+set}" = set; then
2504 withval=$with_pam; case $with_pam in
2505 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2507 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2508 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2509 { (exit 1); exit 1; }; }
2516 # Check whether --with-AFS was given.
2517 if test "${with_AFS+set}" = set; then
2518 withval=$with_AFS; case $with_AFS in
2519 yes) cat >>confdefs.h <<\_ACEOF
2523 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2524 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2525 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2527 AUTH_REG="$AUTH_REG AFS"
2530 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2531 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2532 { (exit 1); exit 1; }; }
2539 # Check whether --with-DCE was given.
2540 if test "${with_DCE+set}" = set; then
2541 withval=$with_DCE; case $with_DCE in
2542 yes) cat >>confdefs.h <<\_ACEOF
2546 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2547 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2548 { echo "$as_me:$LINENO: result: yes" >&5
2549 echo "${ECHO_T}yes" >&6; }
2550 AUTH_REG="$AUTH_REG DCE"
2553 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2554 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2555 { (exit 1); exit 1; }; }
2562 # Check whether --with-logincap was given.
2563 if test "${with_logincap+set}" = set; then
2564 withval=$with_logincap; case $with_logincap in
2566 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2567 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2568 { (exit 1); exit 1; }; }
2575 # Check whether --with-bsdauth was given.
2576 if test "${with_bsdauth+set}" = set; then
2577 withval=$with_bsdauth; case $with_bsdauth in
2578 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2580 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2581 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2582 { (exit 1); exit 1; }; }
2589 # Check whether --with-project was given.
2590 if test "${with_project+set}" = set; then
2591 withval=$with_project; case $with_project in
2594 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2595 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2596 { (exit 1); exit 1; }; }
2602 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2603 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2605 # Check whether --with-lecture was given.
2606 if test "${with_lecture+set}" = set; then
2607 withval=$with_lecture; case $with_lecture in
2608 yes|short|always) lecture=once
2610 no|none|never) lecture=never
2612 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2613 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2614 { (exit 1); exit 1; }; }
2619 if test "$lecture" = "once"; then
2620 { echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6; }
2623 cat >>confdefs.h <<\_ACEOF
2624 #define NO_LECTURE 1
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2631 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2632 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2634 # Check whether --with-logging was given.
2635 if test "${with_logging+set}" = set; then
2636 withval=$with_logging; case $with_logging in
2637 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2638 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2639 { (exit 1); exit 1; }; }
2641 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2642 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2643 { (exit 1); exit 1; }; }
2645 syslog) cat >>confdefs.h <<\_ACEOF
2646 #define LOGGING SLOG_SYSLOG
2649 { echo "$as_me:$LINENO: result: syslog" >&5
2650 echo "${ECHO_T}syslog" >&6; }
2652 file) cat >>confdefs.h <<\_ACEOF
2653 #define LOGGING SLOG_FILE
2656 { echo "$as_me:$LINENO: result: file" >&5
2657 echo "${ECHO_T}file" >&6; }
2659 both) cat >>confdefs.h <<\_ACEOF
2660 #define LOGGING SLOG_BOTH
2663 { echo "$as_me:$LINENO: result: both" >&5
2664 echo "${ECHO_T}both" >&6; }
2666 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2667 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2668 { (exit 1); exit 1; }; }
2672 cat >>confdefs.h <<\_ACEOF
2673 #define LOGGING SLOG_SYSLOG
2675 { echo "$as_me:$LINENO: result: syslog" >&5
2676 echo "${ECHO_T}syslog" >&6; }
2680 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2681 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2683 # Check whether --with-logfac was given.
2684 if test "${with_logfac+set}" = set; then
2685 withval=$with_logfac; case $with_logfac in
2686 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2687 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2688 { (exit 1); exit 1; }; }
2690 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2691 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2692 { (exit 1); exit 1; }; }
2694 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2696 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2697 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2698 { (exit 1); exit 1; }; }
2704 cat >>confdefs.h <<_ACEOF
2705 #define LOGFAC "$logfac"
2708 { echo "$as_me:$LINENO: result: $logfac" >&5
2709 echo "${ECHO_T}$logfac" >&6; }
2711 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2712 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2714 # Check whether --with-goodpri was given.
2715 if test "${with_goodpri+set}" = set; then
2716 withval=$with_goodpri; case $with_goodpri in
2717 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2718 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2719 { (exit 1); exit 1; }; }
2721 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2722 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2723 { (exit 1); exit 1; }; }
2725 alert|crit|debug|emerg|err|info|notice|warning)
2726 goodpri=$with_goodpri
2728 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2729 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2730 { (exit 1); exit 1; }; }
2736 cat >>confdefs.h <<_ACEOF
2737 #define PRI_SUCCESS "$goodpri"
2740 { echo "$as_me:$LINENO: result: $goodpri" >&5
2741 echo "${ECHO_T}$goodpri" >&6; }
2743 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2744 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2746 # Check whether --with-badpri was given.
2747 if test "${with_badpri+set}" = set; then
2748 withval=$with_badpri; case $with_badpri in
2749 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2750 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2751 { (exit 1); exit 1; }; }
2753 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2754 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2755 { (exit 1); exit 1; }; }
2757 alert|crit|debug|emerg|err|info|notice|warning)
2760 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2761 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2762 { (exit 1); exit 1; }; }
2768 cat >>confdefs.h <<_ACEOF
2769 #define PRI_FAILURE "$badpri"
2772 { echo "$as_me:$LINENO: result: $badpri" >&5
2773 echo "${ECHO_T}$badpri" >&6; }
2776 # Check whether --with-logpath was given.
2777 if test "${with_logpath+set}" = set; then
2778 withval=$with_logpath; case $with_logpath in
2779 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2780 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2781 { (exit 1); exit 1; }; }
2783 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2784 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2785 { (exit 1); exit 1; }; }
2791 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2792 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2794 # Check whether --with-loglen was given.
2795 if test "${with_loglen+set}" = set; then
2796 withval=$with_loglen; case $with_loglen in
2797 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2798 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2799 { (exit 1); exit 1; }; }
2801 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2802 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2803 { (exit 1); exit 1; }; }
2805 [0-9]*) loglen=$with_loglen
2807 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2808 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2809 { (exit 1); exit 1; }; }
2815 cat >>confdefs.h <<_ACEOF
2816 #define MAXLOGFILELEN $loglen
2819 { echo "$as_me:$LINENO: result: $loglen" >&5
2820 echo "${ECHO_T}$loglen" >&6; }
2822 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2823 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2825 # Check whether --with-ignore-dot was given.
2826 if test "${with_ignore_dot+set}" = set; then
2827 withval=$with_ignore_dot; case $with_ignore_dot in
2832 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2833 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2834 { (exit 1); exit 1; }; }
2839 if test "$ignore_dot" = "on"; then
2840 cat >>confdefs.h <<\_ACEOF
2841 #define IGNORE_DOT_PATH 1
2844 { echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6; }
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2851 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2852 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2854 # Check whether --with-mail-if-no-user was given.
2855 if test "${with_mail_if_no_user+set}" = set; then
2856 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2857 yes) mail_no_user=on
2859 no) mail_no_user=off
2861 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2862 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2863 { (exit 1); exit 1; }; }
2868 if test "$mail_no_user" = "on"; then
2869 cat >>confdefs.h <<\_ACEOF
2870 #define SEND_MAIL_WHEN_NO_USER 1
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874 echo "${ECHO_T}yes" >&6; }
2876 { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2880 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2881 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2883 # Check whether --with-mail-if-no-host was given.
2884 if test "${with_mail_if_no_host+set}" = set; then
2885 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2886 yes) mail_no_host=on
2888 no) mail_no_host=off
2890 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2891 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2892 { (exit 1); exit 1; }; }
2897 if test "$mail_no_host" = "on"; then
2898 cat >>confdefs.h <<\_ACEOF
2899 #define SEND_MAIL_WHEN_NO_HOST 1
2902 { echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6; }
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2909 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2910 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2912 # Check whether --with-mail-if-noperms was given.
2913 if test "${with_mail_if_noperms+set}" = set; then
2914 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2915 yes) mail_noperms=on
2917 no) mail_noperms=off
2919 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2920 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2921 { (exit 1); exit 1; }; }
2926 if test "$mail_noperms" = "on"; then
2927 cat >>confdefs.h <<\_ACEOF
2928 #define SEND_MAIL_WHEN_NOT_OK 1
2931 { echo "$as_me:$LINENO: result: yes" >&5
2932 echo "${ECHO_T}yes" >&6; }
2934 { echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6; }
2938 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2939 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2941 # Check whether --with-mailto was given.
2942 if test "${with_mailto+set}" = set; then
2943 withval=$with_mailto; case $with_mailto in
2944 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2945 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2946 { (exit 1); exit 1; }; }
2948 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2949 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2950 { (exit 1); exit 1; }; }
2952 *) mailto=$with_mailto
2958 cat >>confdefs.h <<_ACEOF
2959 #define MAILTO "$mailto"
2962 { echo "$as_me:$LINENO: result: $mailto" >&5
2963 echo "${ECHO_T}$mailto" >&6; }
2966 # Check whether --with-mailsubject was given.
2967 if test "${with_mailsubject+set}" = set; then
2968 withval=$with_mailsubject; case $with_mailsubject in
2969 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2970 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2971 { (exit 1); exit 1; }; }
2973 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2974 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2976 *) mailsub="$with_mailsubject"
2977 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2978 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2980 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2986 cat >>confdefs.h <<_ACEOF
2987 #define MAILSUBJECT "$mailsub"
2991 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2992 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2994 # Check whether --with-passprompt was given.
2995 if test "${with_passprompt+set}" = set; then
2996 withval=$with_passprompt; case $with_passprompt in
2997 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2998 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2999 { (exit 1); exit 1; }; }
3001 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3002 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3004 *) passprompt="$with_passprompt"
3008 { echo "$as_me:$LINENO: result: $passprompt" >&5
3009 echo "${ECHO_T}$passprompt" >&6; }
3011 cat >>confdefs.h <<_ACEOF
3012 #define PASSPROMPT "$passprompt"
3016 { echo "$as_me:$LINENO: checking for bad password message" >&5
3017 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3019 # Check whether --with-badpass-message was given.
3020 if test "${with_badpass_message+set}" = set; then
3021 withval=$with_badpass_message; case $with_badpass_message in
3022 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3023 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3024 { (exit 1); exit 1; }; }
3026 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3027 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3029 *) badpass_message="$with_badpass_message"
3035 cat >>confdefs.h <<_ACEOF
3036 #define INCORRECT_PASSWORD "$badpass_message"
3039 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3040 echo "${ECHO_T}$badpass_message" >&6; }
3042 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3043 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3045 # Check whether --with-fqdn was given.
3046 if test "${with_fqdn+set}" = set; then
3047 withval=$with_fqdn; case $with_fqdn in
3052 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3053 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3054 { (exit 1); exit 1; }; }
3059 if test "$fqdn" = "on"; then
3060 cat >>confdefs.h <<\_ACEOF
3064 { echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6; }
3067 { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3072 # Check whether --with-timedir was given.
3073 if test "${with_timedir+set}" = set; then
3074 withval=$with_timedir; case $with_timedir in
3075 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3076 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3077 { (exit 1); exit 1; }; }
3079 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3080 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3081 { (exit 1); exit 1; }; }
3088 # Check whether --with-sendmail was given.
3089 if test "${with_sendmail+set}" = set; then
3090 withval=$with_sendmail; case $with_sendmail in
3091 yes) with_sendmail=""
3094 *) cat >>confdefs.h <<EOF
3095 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3104 # Check whether --with-sudoers-mode was given.
3105 if test "${with_sudoers_mode+set}" = set; then
3106 withval=$with_sudoers_mode; case $with_sudoers_mode in
3107 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3108 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3109 { (exit 1); exit 1; }; }
3111 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3112 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3113 { (exit 1); exit 1; }; }
3115 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3117 0*) SUDOERS_MODE=$with_sudoers_mode
3119 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3120 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3121 { (exit 1); exit 1; }; }
3128 # Check whether --with-sudoers-uid was given.
3129 if test "${with_sudoers_uid+set}" = set; then
3130 withval=$with_sudoers_uid; case $with_sudoers_uid in
3131 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3132 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3133 { (exit 1); exit 1; }; }
3135 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3136 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3137 { (exit 1); exit 1; }; }
3139 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3141 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3142 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3143 { (exit 1); exit 1; }; }
3150 # Check whether --with-sudoers-gid was given.
3151 if test "${with_sudoers_gid+set}" = set; then
3152 withval=$with_sudoers_gid; case $with_sudoers_gid in
3153 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3154 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3155 { (exit 1); exit 1; }; }
3157 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3158 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3159 { (exit 1); exit 1; }; }
3161 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3163 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3164 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3165 { (exit 1); exit 1; }; }
3171 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3172 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3174 # Check whether --with-umask was given.
3175 if test "${with_umask+set}" = set; then
3176 withval=$with_umask; case $with_umask in
3177 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3178 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3179 { (exit 1); exit 1; }; }
3183 [0-9]*) sudo_umask=$with_umask
3185 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3186 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3187 { (exit 1); exit 1; }; }
3193 cat >>confdefs.h <<_ACEOF
3194 #define SUDO_UMASK $sudo_umask
3197 if test "$sudo_umask" = "0777"; then
3198 { echo "$as_me:$LINENO: result: user" >&5
3199 echo "${ECHO_T}user" >&6; }
3201 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3202 echo "${ECHO_T}$sudo_umask" >&6; }
3205 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3206 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3208 # Check whether --with-runas-default was given.
3209 if test "${with_runas_default+set}" = set; then
3210 withval=$with_runas_default; case $with_runas_default in
3211 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3212 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3213 { (exit 1); exit 1; }; }
3215 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3216 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3217 { (exit 1); exit 1; }; }
3219 *) runas_default="$with_runas_default"
3225 cat >>confdefs.h <<_ACEOF
3226 #define RUNAS_DEFAULT "$runas_default"
3229 { echo "$as_me:$LINENO: result: $runas_default" >&5
3230 echo "${ECHO_T}$runas_default" >&6; }
3233 # Check whether --with-exempt was given.
3234 if test "${with_exempt+set}" = set; then
3235 withval=$with_exempt; case $with_exempt in
3236 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3237 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3238 { (exit 1); exit 1; }; }
3240 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3241 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3242 { (exit 1); exit 1; }; }
3245 cat >>confdefs.h <<_ACEOF
3246 #define EXEMPTGROUP "$with_exempt"
3249 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3250 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3251 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3252 echo "${ECHO_T}$with_exempt" >&6; }
3258 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3259 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3261 # Check whether --with-editor was given.
3262 if test "${with_editor+set}" = set; then
3263 withval=$with_editor; case $with_editor in
3264 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3265 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3266 { (exit 1); exit 1; }; }
3268 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3269 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3270 { (exit 1); exit 1; }; }
3273 cat >>confdefs.h <<_ACEOF
3274 #define EDITOR "$with_editor"
3277 { echo "$as_me:$LINENO: result: $with_editor" >&5
3278 echo "${ECHO_T}$with_editor" >&6; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define EDITOR _PATH_VI
3285 { echo "$as_me:$LINENO: result: vi" >&5
3286 echo "${ECHO_T}vi" >&6; }
3290 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3291 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3293 # Check whether --with-env-editor was given.
3294 if test "${with_env_editor+set}" = set; then
3295 withval=$with_env_editor; case $with_env_editor in
3300 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3301 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3302 { (exit 1); exit 1; }; }
3307 if test "$env_editor" = "on"; then
3308 cat >>confdefs.h <<\_ACEOF
3309 #define ENV_EDITOR 1
3312 { echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6; }
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3319 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3320 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3322 # Check whether --with-passwd-tries was given.
3323 if test "${with_passwd_tries+set}" = set; then
3324 withval=$with_passwd_tries; case $with_passwd_tries in
3326 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3327 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3328 { (exit 1); exit 1; }; }
3330 [1-9]*) passwd_tries=$with_passwd_tries
3332 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3333 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3334 { (exit 1); exit 1; }; }
3340 cat >>confdefs.h <<_ACEOF
3341 #define TRIES_FOR_PASSWORD $passwd_tries
3344 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3345 echo "${ECHO_T}$passwd_tries" >&6; }
3347 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3348 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3350 # Check whether --with-timeout was given.
3351 if test "${with_timeout+set}" = set; then
3352 withval=$with_timeout; case $with_timeout in
3356 [0-9]*) timeout=$with_timeout
3358 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3359 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3360 { (exit 1); exit 1; }; }
3366 cat >>confdefs.h <<_ACEOF
3367 #define TIMEOUT $timeout
3370 { echo "$as_me:$LINENO: result: $timeout" >&5
3371 echo "${ECHO_T}$timeout" >&6; }
3373 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3374 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3376 # Check whether --with-password-timeout was given.
3377 if test "${with_password_timeout+set}" = set; then
3378 withval=$with_password_timeout; case $with_password_timeout in
3380 no) password_timeout=0
3382 [0-9]*) password_timeout=$with_password_timeout
3384 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3385 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3386 { (exit 1); exit 1; }; }
3392 cat >>confdefs.h <<_ACEOF
3393 #define PASSWORD_TIMEOUT $password_timeout
3396 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3397 echo "${ECHO_T}$password_timeout" >&6; }
3399 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3400 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3402 # Check whether --with-tty-tickets was given.
3403 if test "${with_tty_tickets+set}" = set; then
3404 withval=$with_tty_tickets; case $with_tty_tickets in
3409 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3410 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3411 { (exit 1); exit 1; }; }
3416 if test "$tty_tickets" = "on"; then
3417 cat >>confdefs.h <<\_ACEOF
3418 #define USE_TTY_TICKETS 1
3421 { echo "$as_me:$LINENO: result: yes" >&5
3422 echo "${ECHO_T}yes" >&6; }
3424 { echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6; }
3428 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3429 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3431 # Check whether --with-insults was given.
3432 if test "${with_insults+set}" = set; then
3433 withval=$with_insults; case $with_insults in
3435 with_classic_insults=yes
3436 with_csops_insults=yes
3440 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3441 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3442 { (exit 1); exit 1; }; }
3447 if test "$insults" = "on"; then
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_INSULTS 1
3452 { echo "$as_me:$LINENO: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6; }
3455 { echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6; }
3460 # Check whether --with-all-insults was given.
3461 if test "${with_all_insults+set}" = set; then
3462 withval=$with_all_insults; case $with_all_insults in
3463 yes) with_classic_insults=yes
3464 with_csops_insults=yes
3465 with_hal_insults=yes
3466 with_goons_insults=yes
3469 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3470 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3471 { (exit 1); exit 1; }; }
3478 # Check whether --with-classic-insults was given.
3479 if test "${with_classic_insults+set}" = set; then
3480 withval=$with_classic_insults; case $with_classic_insults in
3481 yes) cat >>confdefs.h <<\_ACEOF
3482 #define CLASSIC_INSULTS 1
3487 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3488 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3489 { (exit 1); exit 1; }; }
3496 # Check whether --with-csops-insults was given.
3497 if test "${with_csops_insults+set}" = set; then
3498 withval=$with_csops_insults; case $with_csops_insults in
3499 yes) cat >>confdefs.h <<\_ACEOF
3500 #define CSOPS_INSULTS 1
3505 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3506 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3507 { (exit 1); exit 1; }; }
3514 # Check whether --with-hal-insults was given.
3515 if test "${with_hal_insults+set}" = set; then
3516 withval=$with_hal_insults; case $with_hal_insults in
3517 yes) cat >>confdefs.h <<\_ACEOF
3518 #define HAL_INSULTS 1
3523 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3524 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3525 { (exit 1); exit 1; }; }
3532 # Check whether --with-goons-insults was given.
3533 if test "${with_goons_insults+set}" = set; then
3534 withval=$with_goons_insults; case $with_goons_insults in
3535 yes) cat >>confdefs.h <<\_ACEOF
3536 #define GOONS_INSULTS 1
3541 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3542 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3543 { (exit 1); exit 1; }; }
3550 # Check whether --with-ldap was given.
3551 if test "${with_ldap+set}" = set; then
3552 withval=$with_ldap; case $with_ldap in
3554 *) cat >>confdefs.h <<\_ACEOF
3558 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3559 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3560 { echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6; }
3567 # Check whether --with-ldap-conf-file was given.
3568 if test "${with_ldap_conf_file+set}" = set; then
3569 withval=$with_ldap_conf_file;
3570 cat >>confdefs.h <<_ACEOF
3571 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3577 # Check whether --with-ldap-secret-file was given.
3578 if test "${with_ldap_secret_file+set}" = set; then
3579 withval=$with_ldap_secret_file;
3580 cat >>confdefs.h <<_ACEOF
3581 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3588 # Check whether --with-pc-insults was given.
3589 if test "${with_pc_insults+set}" = set; then
3590 withval=$with_pc_insults; case $with_pc_insults in
3591 yes) cat >>confdefs.h <<\_ACEOF
3592 #define PC_INSULTS 1
3597 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3598 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3599 { (exit 1); exit 1; }; }
3605 if test "$insults" = "on"; then
3606 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3607 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3609 test "$with_goons_insults" = "yes" && i="goons ${i}"
3610 test "$with_hal_insults" = "yes" && i="hal ${i}"
3611 test "$with_csops_insults" = "yes" && i="csops ${i}"
3612 test "$with_classic_insults" = "yes" && i="classic ${i}"
3613 { echo "$as_me:$LINENO: result: $i" >&5
3614 echo "${ECHO_T}$i" >&6; }
3617 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3618 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3620 # Check whether --with-secure-path was given.
3621 if test "${with_secure_path+set}" = set; then
3622 withval=$with_secure_path; case $with_secure_path in
3623 yes) cat >>confdefs.h <<_ACEOF
3624 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3627 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3628 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3630 no) { echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6; }
3633 *) cat >>confdefs.h <<_ACEOF
3634 #define SECURE_PATH "$with_secure_path"
3637 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3638 echo "${ECHO_T}$with_secure_path" >&6; }
3642 { echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6; }
3647 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3648 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3650 # Check whether --with-interfaces was given.
3651 if test "${with_interfaces+set}" = set; then
3652 withval=$with_interfaces; case $with_interfaces in
3653 yes) { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3656 no) cat >>confdefs.h <<\_ACEOF
3657 #define STUB_LOAD_INTERFACES 1
3660 { echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6; }
3663 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3664 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3665 { (exit 1); exit 1; }; }
3669 { echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6; }
3674 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3675 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3677 # Check whether --with-stow was given.
3678 if test "${with_stow+set}" = set; then
3679 withval=$with_stow; case $with_stow in
3680 yes) { echo "$as_me:$LINENO: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6; }
3682 cat >>confdefs.h <<\_ACEOF
3687 no) { echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6; }
3690 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3691 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3692 { (exit 1); exit 1; }; }
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3702 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3703 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3704 # Check whether --enable-authentication was given.
3705 if test "${enable_authentication+set}" = set; then
3706 enableval=$enable_authentication; case "$enableval" in
3707 yes) { echo "$as_me:$LINENO: result: yes" >&5
3708 echo "${ECHO_T}yes" >&6; }
3710 no) { echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6; }
3712 cat >>confdefs.h <<\_ACEOF
3713 #define NO_AUTHENTICATION 1
3717 *) { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3720 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3730 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3731 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3732 # Check whether --enable-root-mailer was given.
3733 if test "${enable_root_mailer+set}" = set; then
3734 enableval=$enable_root_mailer; case "$enableval" in
3735 yes) { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3738 no) { echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6; }
3740 cat >>confdefs.h <<\_ACEOF
3741 #define NO_ROOT_MAILER 1
3745 *) { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3748 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3753 { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3758 # Check whether --enable-setreuid was given.
3759 if test "${enable_setreuid+set}" = set; then
3760 enableval=$enable_setreuid; case "$enableval" in
3761 no) SKIP_SETREUID=yes
3769 # Check whether --enable-setresuid was given.
3770 if test "${enable_setresuid+set}" = set; then
3771 enableval=$enable_setresuid; case "$enableval" in
3772 no) SKIP_SETRESUID=yes
3780 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3781 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3782 # Check whether --enable-shadow was given.
3783 if test "${enable_shadow+set}" = set; then
3784 enableval=$enable_shadow; case "$enableval" in
3785 yes) { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3788 no) { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3792 *) { echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6; }
3794 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3795 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3805 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3806 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3807 # Check whether --enable-root-sudo was given.
3808 if test "${enable_root_sudo+set}" = set; then
3809 enableval=$enable_root_sudo; case "$enableval" in
3810 yes) { echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6; }
3813 no) cat >>confdefs.h <<\_ACEOF
3814 #define NO_ROOT_SUDO 1
3817 { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3821 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3822 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3823 { (exit 1); exit 1; }; }
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3833 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3834 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3835 # Check whether --enable-log-host was given.
3836 if test "${enable_log_host+set}" = set; then
3837 enableval=$enable_log_host; case "$enableval" in
3838 yes) { echo "$as_me:$LINENO: result: yes" >&5
3839 echo "${ECHO_T}yes" >&6; }
3840 cat >>confdefs.h <<\_ACEOF
3841 #define HOST_IN_LOG 1
3845 no) { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3848 *) { echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6; }
3850 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3851 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3856 { echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6; }
3861 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3862 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3863 # Check whether --enable-noargs-shell was given.
3864 if test "${enable_noargs_shell+set}" = set; then
3865 enableval=$enable_noargs_shell; case "$enableval" in
3866 yes) { echo "$as_me:$LINENO: result: yes" >&5
3867 echo "${ECHO_T}yes" >&6; }
3868 cat >>confdefs.h <<\_ACEOF
3869 #define SHELL_IF_NO_ARGS 1
3873 no) { echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6; }
3876 *) { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3878 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3879 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3884 { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3889 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3890 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3891 # Check whether --enable-shell-sets-home was given.
3892 if test "${enable_shell_sets_home+set}" = set; then
3893 enableval=$enable_shell_sets_home; case "$enableval" in
3894 yes) { echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6; }
3896 cat >>confdefs.h <<\_ACEOF
3897 #define SHELL_SETS_HOME 1
3901 no) { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3904 *) { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3906 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3907 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3912 { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3917 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3918 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3919 # Check whether --enable-path_info was given.
3920 if test "${enable_path_info+set}" = set; then
3921 enableval=$enable_path_info; case "$enableval" in
3922 yes) { echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6; }
3925 no) { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3927 cat >>confdefs.h <<\_ACEOF
3928 #define DONT_LEAK_PATH_INFO 1
3933 *) { echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6; }
3935 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3936 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3941 { echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6; }
3947 # Check whether --with-selinux was given.
3948 if test "${with_selinux+set}" = set; then
3949 withval=$with_selinux; case $with_selinux in
3950 yes) cat >>confdefs.h <<\_ACEOF
3951 #define HAVE_SELINUX 1
3954 SUDO_LIBS="${SUDO_LIBS} -lselinux"
3955 SUDO_OBJS="${SUDO_OBJS} selinux.o"
3956 PROGS="${PROGS} sesh"
3961 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
3962 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
3963 { (exit 1); exit 1; }; }
3969 # Extract the first word of "egrep", so it can be a program name with args.
3970 set dummy egrep; ac_word=$2
3971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3973 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$EGREPPROG"; then
3977 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_EGREPPROG="egrep"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 EGREPPROG=$ac_cv_prog_EGREPPROG
3997 if test -n "$EGREPPROG"; then
3998 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3999 echo "${ECHO_T}$EGREPPROG" >&6; }
4001 { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4006 if test -z "$EGREPPROG"; then
4007 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4008 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4009 { (exit 1); exit 1; }; }
4012 if test "$with_devel" != "yes"; then
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4026 if test "${ac_cv_prog_CC+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$CC"; then
4051 { echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6; }
4054 { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4060 if test -z "$ac_cv_prog_CC"; then
4062 # Extract the first word of "gcc", so it can be a program name with args.
4063 set dummy gcc; ac_word=$2
4064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 if test -n "$ac_ct_CC"; then
4070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_ac_ct_CC="gcc"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4090 if test -n "$ac_ct_CC"; then
4091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4092 echo "${ECHO_T}$ac_ct_CC" >&6; }
4094 { echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6; }
4098 if test "x$ac_ct_CC" = x; then
4101 case $cross_compiling:$ac_tool_warned in
4103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&5
4106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4107 whose name does not start with the host triplet. If you think this
4108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4109 ac_tool_warned=yes ;;
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 if test -n "$CC"; then
4148 { echo "$as_me:$LINENO: result: $CC" >&5
4149 echo "${ECHO_T}$CC" >&6; }
4151 { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4158 if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4193 if test $# != 0; then
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4204 if test -n "$CC"; then
4205 { echo "$as_me:$LINENO: result: $CC" >&5
4206 echo "${ECHO_T}$CC" >&6; }
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_CC+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 { echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6; }
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4255 test -n "$CC" && break
4258 if test -z "$CC"; then
4260 for ac_prog in cl.exe
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4292 echo "${ECHO_T}$ac_ct_CC" >&6; }
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4299 test -n "$ac_ct_CC" && break
4302 if test "x$ac_ct_CC" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4322 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4323 See \`config.log' for more details." >&5
4324 echo "$as_me: error: no acceptable C compiler found in \$PATH
4325 See \`config.log' for more details." >&2;}
4326 { (exit 1); exit 1; }; }
4328 # Provide some information about the compiler.
4329 echo "$as_me:$LINENO: checking for C compiler version" >&5
4330 ac_compiler=`set X $ac_compile; echo $2`
4331 { (ac_try="$ac_compiler --version >&5"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compiler --version >&5") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }
4341 { (ac_try="$ac_compiler -v >&5"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compiler -v >&5") 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }
4351 { (ac_try="$ac_compiler -V >&5"
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_compiler -V >&5") 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4377 ac_clean_files_save=$ac_clean_files
4378 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4379 # Try to create an executable without -o first, disregard a.out.
4380 # It will help us diagnose broken compilers, and finding out an intuition
4382 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4383 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4384 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4386 # List of possible output files, starting from the most likely.
4387 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4388 # only as a last resort. b.out is created by i960 compilers.
4389 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4391 # The IRIX 6 linker writes into existing files which may not be
4392 # executable, retaining their permissions. Remove them first so a
4393 # subsequent execution test works.
4395 for ac_file in $ac_files
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4404 if { (ac_try="$ac_link_default"
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_link_default") 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; then
4414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4417 # so that the user can short-circuit this test for compilers unknown to
4419 for ac_file in $ac_files ''
4421 test -f "$ac_file" || continue
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4426 # We found the default executable, but exeext='' is most
4430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434 # We set ac_cv_exeext here because the later test for it is not
4435 # safe: cross compilers may not add the suffix if given an `-o'
4436 # argument, so we may need to know it at that point already.
4437 # Even if this section looks crufty: it has the advantage of
4444 test "$ac_cv_exeext" = no && ac_cv_exeext=
4450 { echo "$as_me:$LINENO: result: $ac_file" >&5
4451 echo "${ECHO_T}$ac_file" >&6; }
4452 if test -z "$ac_file"; then
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&5
4458 echo "$as_me: error: C compiler cannot create executables
4459 See \`config.log' for more details." >&2;}
4460 { (exit 77); exit 77; }; }
4463 ac_exeext=$ac_cv_exeext
4465 # Check that the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472 if { ac_try='./$ac_file'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 if test "$cross_compiling" = maybe; then
4487 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&5
4490 echo "$as_me: error: cannot run C compiled programs.
4491 If you meant to cross compile, use \`--host'.
4492 See \`config.log' for more details." >&2;}
4493 { (exit 1); exit 1; }; }
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4500 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4501 ac_clean_files=$ac_clean_files_save
4502 # Check that the compiler produces executables we can run. If not, either
4503 # the compiler is broken, or we cross compile.
4504 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4506 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4507 echo "${ECHO_T}$cross_compiling" >&6; }
4509 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4511 if { (ac_try="$ac_link"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_link") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
4521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4523 # work properly (i.e., refer to `conftest.exe'), while it won't with
4525 for ac_file in conftest.exe conftest conftest.*; do
4526 test -f "$ac_file" || continue
4528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4529 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4535 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4538 See \`config.log' for more details." >&2;}
4539 { (exit 1); exit 1; }; }
4542 rm -f conftest$ac_cv_exeext
4543 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4544 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4546 rm -f conftest.$ac_ext
4547 EXEEXT=$ac_cv_exeext
4549 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4550 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4551 if test "${ac_cv_objext+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 cat >conftest.$ac_ext <<_ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4569 rm -f conftest.o conftest.obj
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
4580 for ac_file in conftest.o conftest.obj conftest.*; do
4581 test -f "$ac_file" || continue;
4583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4584 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; }
4599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4602 echo "${ECHO_T}$ac_cv_objext" >&6; }
4603 OBJEXT=$ac_cv_objext
4605 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4659 GCC=`test $ac_compiler_gnu = yes && echo yes`
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_cc_g+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 ac_save_c_werror_flag=$ac_c_werror_flag
4668 ac_c_werror_flag=yes
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4763 rm -f conftest.$ac_objext
4764 if { (ac_try="$ac_compile"
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_compile") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } && {
4777 test -z "$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4779 } && test -s conftest.$ac_objext; then
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4808 if test "$GCC" = yes; then
4814 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4815 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_cc_c89+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_cv_prog_cc_c89=no
4821 cat >conftest.$ac_ext <<_ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4829 #include <sys/types.h>
4830 #include <sys/stat.h>
4831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4832 struct buf { int x; };
4833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834 static char *e (p, i)
4840 static char *f (char * (*g) (char **, int), char **p, ...)
4845 s = g (p, va_arg (v,int));
4850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4851 function prototypes and stuff, but not '\xHH' hex character constants.
4852 These don't provoke an error unfortunately, instead are silently treated
4853 as 'x'. The following induces an error, until -std is added to get
4854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4855 array size at least. It's necessary to write '\x00'==0 to get something
4856 that's true only with -std. */
4857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860 inside strings and character constants. */
4862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4864 int test (int i, double x);
4865 struct s1 {int (*f) (int a);};
4866 struct s2 {int (*f) (double a);};
4867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881 CC="$ac_save_CC $ac_arg"
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_cv_prog_cc_c89=$ac_arg
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f core conftest.err conftest.$ac_objext
4908 test "x$ac_cv_prog_cc_c89" != "xno" && break
4910 rm -f conftest.$ac_ext
4915 case "x$ac_cv_prog_cc_c89" in
4917 { echo "$as_me:$LINENO: result: none needed" >&5
4918 echo "${ECHO_T}none needed" >&6; } ;;
4920 { echo "$as_me:$LINENO: result: unsupported" >&5
4921 echo "${ECHO_T}unsupported" >&6; } ;;
4923 CC="$CC $ac_cv_prog_cc_c89"
4924 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4925 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4937 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4938 if test "${ac_cv_search_strerror+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_func_search_save_LIBS=$LIBS
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 /* Override any GCC internal prototype to avoid an error.
4950 Use char because int might match the return type of a GCC
4951 builtin and then its argument prototype would still apply. */
4964 for ac_lib in '' cposix; do
4965 if test -z "$ac_lib"; then
4966 ac_res="none required"
4969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
4989 ac_cv_search_strerror=$ac_res
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4999 if test "${ac_cv_search_strerror+set}" = set; then
5003 if test "${ac_cv_search_strerror+set}" = set; then
5006 ac_cv_search_strerror=no
5009 LIBS=$ac_func_search_save_LIBS
5011 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5012 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5013 ac_res=$ac_cv_search_strerror
5014 if test "$ac_res" != no; then
5015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5020 ac_cpp='$CPP $CPPFLAGS'
5021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5025 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5026 # On Suns, sometimes $CPP names a directory.
5027 if test -n "$CPP" && test -d "$CPP"; then
5030 if test -z "$CPP"; then
5031 if test "${ac_cv_prog_CPP+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 # Double quotes because CPP needs to be expanded
5035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5038 for ac_c_preproc_warn_flag in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 # Broken: fails on valid input.
5084 rm -f conftest.err conftest.$ac_ext
5086 # OK, works on sane cases. Now check whether nonexistent headers
5087 # can be detected and how.
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <ac_nonexistent.h>
5096 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5112 # Broken: success on invalid input.
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 # Passes both tests.
5123 rm -f conftest.err conftest.$ac_ext
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then
5140 { echo "$as_me:$LINENO: result: $CPP" >&5
5141 echo "${ECHO_T}$CPP" >&6; }
5143 for ac_c_preproc_warn_flag in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat >conftest.$ac_ext <<_ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5158 # include <limits.h>
5160 # include <assert.h>
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 # Broken: fails on valid input.
5189 rm -f conftest.err conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } >/dev/null && {
5214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5217 # Broken: success on invalid input.
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 # Passes both tests.
5228 rm -f conftest.err conftest.$ac_ext
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5236 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5239 See \`config.log' for more details." >&2;}
5240 { (exit 1); exit 1; }; }
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5252 if test -f "$ac_dir/install-sh"; then
5254 ac_install_sh="$ac_aux_dir/install-sh -c"
5256 elif test -f "$ac_dir/install.sh"; then
5258 ac_install_sh="$ac_aux_dir/install.sh -c"
5260 elif test -f "$ac_dir/shtool"; then
5262 ac_install_sh="$ac_aux_dir/shtool install -c"
5266 if test -z "$ac_aux_dir"; then
5267 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5268 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5269 { (exit 1); exit 1; }; }
5272 # These three variables are undocumented and unsupported,
5273 # and are intended to be withdrawn in a future Autoconf release.
5274 # They can cause serious problems if a builder's source tree is in a directory
5275 # whose full name contains unusual characters.
5276 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5277 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5278 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5281 # Make sure we can run config.sub.
5282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5283 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5284 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5285 { (exit 1); exit 1; }; }
5287 { echo "$as_me:$LINENO: checking build system type" >&5
5288 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5289 if test "${ac_cv_build+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 ac_build_alias=$build_alias
5293 test "x$ac_build_alias" = x &&
5294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5295 test "x$ac_build_alias" = x &&
5296 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5297 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5298 { (exit 1); exit 1; }; }
5299 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5300 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5301 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5302 { (exit 1); exit 1; }; }
5305 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5306 echo "${ECHO_T}$ac_cv_build" >&6; }
5307 case $ac_cv_build in
5309 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5310 echo "$as_me: error: invalid value of canonical build" >&2;}
5311 { (exit 1); exit 1; }; };;
5314 ac_save_IFS=$IFS; IFS='-'
5320 # Remember, the first character of IFS is used to create $*,
5321 # except with old shells:
5324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5327 { echo "$as_me:$LINENO: checking host system type" >&5
5328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5329 if test "${ac_cv_host+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 if test "x$host_alias" = x; then
5333 ac_cv_host=$ac_cv_build
5335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5338 { (exit 1); exit 1; }; }
5342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5343 echo "${ECHO_T}$ac_cv_host" >&6; }
5346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5347 echo "$as_me: error: invalid value of canonical host" >&2;}
5348 { (exit 1); exit 1; }; };;
5351 ac_save_IFS=$IFS; IFS='-'
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5364 { echo "$as_me:$LINENO: checking target system type" >&5
5365 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5366 if test "${ac_cv_target+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test "x$target_alias" = x; then
5370 ac_cv_target=$ac_cv_host
5372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5373 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5374 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5375 { (exit 1); exit 1; }; }
5379 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5380 echo "${ECHO_T}$ac_cv_target" >&6; }
5381 case $ac_cv_target in
5383 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5384 echo "$as_me: error: invalid value of canonical target" >&2;}
5385 { (exit 1); exit 1; }; };;
5387 target=$ac_cv_target
5388 ac_save_IFS=$IFS; IFS='-'
5394 # Remember, the first character of IFS is used to create $*,
5395 # except with old shells:
5398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5401 # The aliases save the names the user supplied, while $host etc.
5402 # will get canonicalized.
5403 test -n "$target_alias" &&
5404 test "$program_prefix$program_suffix$program_transform_name" = \
5406 program_prefix=${target_alias}-
5407 # Check whether --enable-static was given.
5408 if test "${enable_static+set}" = set; then
5409 enableval=$enable_static; p=${PACKAGE-default}
5411 yes) enable_static=yes ;;
5412 no) enable_static=no ;;
5415 # Look at the argument we got. We use all the common list separators.
5416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5417 for pkg in $enableval; do
5419 if test "X$pkg" = "X$p"; then
5432 # Check whether --enable-shared was given.
5433 if test "${enable_shared+set}" = set; then
5434 enableval=$enable_shared; p=${PACKAGE-default}
5436 yes) enable_shared=yes ;;
5437 no) enable_shared=no ;;
5440 # Look at the argument we got. We use all the common list separators.
5441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5442 for pkg in $enableval; do
5444 if test "X$pkg" = "X$p"; then
5456 # Check whether --enable-fast-install was given.
5457 if test "${enable_fast_install+set}" = set; then
5458 enableval=$enable_fast_install; p=${PACKAGE-default}
5460 yes) enable_fast_install=yes ;;
5461 no) enable_fast_install=no ;;
5463 enable_fast_install=no
5464 # Look at the argument we got. We use all the common list separators.
5465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5466 for pkg in $enableval; do
5468 if test "X$pkg" = "X$p"; then
5469 enable_fast_install=yes
5476 enable_fast_install=yes
5480 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5481 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5482 if test "${lt_cv_path_SED+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 # Loop through the user's path and test for sed and gsed.
5486 # Then use that list of sed's as ones to test for truncation.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for lt_ac_prog in sed gsed; do
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5495 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5503 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5504 # along with /bin/sed that truncates output.
5505 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5506 test ! -f $lt_ac_sed && continue
5507 cat /dev/null > conftest.in
5509 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5510 # Check for GNU sed and select it if it is found.
5511 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5512 lt_cv_path_SED=$lt_ac_sed
5516 cat conftest.in conftest.in >conftest.tmp
5517 mv conftest.tmp conftest.in
5518 cp conftest.in conftest.nl
5520 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5521 cmp -s conftest.out conftest.nl || break
5522 # 10000 chars as input seems more than enough
5523 test $lt_ac_count -gt 10 && break
5524 lt_ac_count=`expr $lt_ac_count + 1`
5525 if test $lt_ac_count -gt $lt_ac_max; then
5526 lt_ac_max=$lt_ac_count
5527 lt_cv_path_SED=$lt_ac_sed
5536 { echo "$as_me:$LINENO: result: $SED" >&5
5537 echo "${ECHO_T}$SED" >&6; }
5539 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5540 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5541 if test "${ac_cv_path_GREP+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 # Extract the first word of "grep ggrep" to use in msg output
5545 if test -z "$GREP"; then
5546 set dummy grep ggrep; ac_prog_name=$2
5547 if test "${ac_cv_path_GREP+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 ac_path_GREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556 test -z "$as_dir" && as_dir=.
5557 for ac_prog in grep ggrep; do
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5561 # Check for GNU ac_path_GREP and select it if it is found.
5562 # Check for GNU $ac_path_GREP
5563 case `"$ac_path_GREP" --version 2>&1` in
5565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 echo 'GREP' >> "conftest.nl"
5575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 ac_count=`expr $ac_count + 1`
5578 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_GREP="$ac_path_GREP"
5581 ac_path_GREP_max=$ac_count
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590 $ac_path_GREP_found && break 3
5600 GREP="$ac_cv_path_GREP"
5601 if test -z "$GREP"; then
5602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5603 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5604 { (exit 1); exit 1; }; }
5608 ac_cv_path_GREP=$GREP
5613 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5614 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5615 GREP="$ac_cv_path_GREP"
5618 { echo "$as_me:$LINENO: checking for egrep" >&5
5619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5620 if test "${ac_cv_path_EGREP+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5624 then ac_cv_path_EGREP="$GREP -E"
5626 # Extract the first word of "egrep" to use in msg output
5627 if test -z "$EGREP"; then
5628 set dummy egrep; ac_prog_name=$2
5629 if test "${ac_cv_path_EGREP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 ac_path_EGREP_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in egrep; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5643 # Check for GNU ac_path_EGREP and select it if it is found.
5644 # Check for GNU $ac_path_EGREP
5645 case `"$ac_path_EGREP" --version 2>&1` in
5647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 echo 'EGREP' >> "conftest.nl"
5657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 ac_count=`expr $ac_count + 1`
5660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_EGREP="$ac_path_EGREP"
5663 ac_path_EGREP_max=$ac_count
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5672 $ac_path_EGREP_found && break 3
5682 EGREP="$ac_cv_path_EGREP"
5683 if test -z "$EGREP"; then
5684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5686 { (exit 1); exit 1; }; }
5690 ac_cv_path_EGREP=$EGREP
5696 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5697 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5698 EGREP="$ac_cv_path_EGREP"
5702 # Check whether --with-gnu-ld was given.
5703 if test "${with_gnu_ld+set}" = set; then
5704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 if test "$GCC" = yes; then
5711 # Check if gcc -print-prog-name=ld gives a path.
5712 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5713 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5716 # gcc leaves a trailing carriage return which upsets mingw
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722 # Accept absolute paths.
5724 re_direlt='/[^/][^/]*/\.\./'
5725 # Canonicalize the pathname of ld
5726 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5727 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5728 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5730 test -z "$LD" && LD="$ac_prog"
5733 # If it fails, then pretend we aren't using GCC.
5737 # If it is relative, then search for the first ld in PATH.
5741 elif test "$with_gnu_ld" = yes; then
5742 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5743 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5745 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5746 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5748 if test "${lt_cv_path_LD+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 if test -z "$LD"; then
5752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5753 for ac_dir in $PATH; do
5755 test -z "$ac_dir" && ac_dir=.
5756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5757 lt_cv_path_LD="$ac_dir/$ac_prog"
5758 # Check to see if the program is GNU ld. I'd rather use --version,
5759 # but apparently some variants of GNU ld only accept -v.
5760 # Break only if it was the GNU/non-GNU ld that we prefer.
5761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5762 *GNU* | *'with BFD'*)
5763 test "$with_gnu_ld" != no && break
5766 test "$with_gnu_ld" != yes && break
5773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778 if test -n "$LD"; then
5779 { echo "$as_me:$LINENO: result: $LD" >&5
5780 echo "${ECHO_T}$LD" >&6; }
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5785 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5786 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5787 { (exit 1); exit 1; }; }
5788 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5789 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5790 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5794 case `$LD -v 2>&1 </dev/null` in
5795 *GNU* | *'with BFD'*)
5796 lt_cv_prog_gnu_ld=yes
5799 lt_cv_prog_gnu_ld=no
5803 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5804 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5805 with_gnu_ld=$lt_cv_prog_gnu_ld
5808 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5809 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5810 if test "${lt_cv_ld_reload_flag+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 lt_cv_ld_reload_flag='-r'
5815 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5816 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5817 reload_flag=$lt_cv_ld_reload_flag
5818 case $reload_flag in
5820 *) reload_flag=" $reload_flag" ;;
5822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5825 if test "$GCC" = yes; then
5826 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5828 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5834 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5835 if test "${lt_cv_path_NM+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 if test -n "$NM"; then
5839 # Let the user override the test.
5842 lt_nm_to_check="${ac_tool_prefix}nm"
5843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5844 lt_nm_to_check="$lt_nm_to_check nm"
5846 for lt_tmp_nm in $lt_nm_to_check; do
5847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5850 test -z "$ac_dir" && ac_dir=.
5851 tmp_nm="$ac_dir/$lt_tmp_nm"
5852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5853 # Check to see if the nm accepts a BSD-compat flag.
5854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5855 # nm: unknown option "B" ignored
5856 # Tru64's nm complains that /dev/null is an invalid object file
5857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5858 */dev/null* | *'Invalid file or object type'*)
5859 lt_cv_path_NM="$tmp_nm -B"
5863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5865 lt_cv_path_NM="$tmp_nm -p"
5869 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5870 continue # so that we can try to find one that supports BSD flags
5879 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5882 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5883 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5886 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5887 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5889 if test "$LN_S" = "ln -s"; then
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891 echo "${ECHO_T}yes" >&6; }
5893 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5894 echo "${ECHO_T}no, using $LN_S" >&6; }
5897 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5898 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5899 if test "${lt_cv_deplibs_check_method+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 lt_cv_file_magic_cmd='$MAGIC_CMD'
5903 lt_cv_file_magic_test_file=
5904 lt_cv_deplibs_check_method='unknown'
5905 # Need to set the preceding variable on all platforms that support
5906 # interlibrary dependencies.
5907 # 'none' -- dependencies not supported.
5908 # `unknown' -- same as none, but documents that we really don't know.
5909 # 'pass_all' -- all dependencies passed with no checks.
5910 # 'test_compile' -- check by making test program.
5911 # 'file_magic [[regex]]' -- check by looking for files in library path
5912 # which responds to the $file_magic_cmd with a given extended regex.
5913 # If you have `file' or equivalent on your system and you're not sure
5914 # whether `pass_all' will *always* work, you probably want this one.
5918 lt_cv_deplibs_check_method=pass_all
5922 lt_cv_deplibs_check_method=pass_all
5926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5927 lt_cv_file_magic_cmd='/usr/bin/file -L'
5928 lt_cv_file_magic_test_file=/shlib/libc.so
5932 # func_win32_libid is a shell function defined in ltmain.sh
5933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5934 lt_cv_file_magic_cmd='func_win32_libid'
5938 # Base MSYS/MinGW do not provide the 'file' command needed by
5939 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5940 # unless we find 'file', for example because we are cross-compiling.
5941 if ( file / ) >/dev/null 2>&1; then
5942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5943 lt_cv_file_magic_cmd='func_win32_libid'
5945 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5946 lt_cv_file_magic_cmd='$OBJDUMP -f'
5950 darwin* | rhapsody*)
5951 lt_cv_deplibs_check_method=pass_all
5954 freebsd* | dragonfly*)
5955 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5958 # Not sure whether the presence of OpenBSD here was a mistake.
5959 # Let's accept both of them until this is cleared up.
5960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961 lt_cv_file_magic_cmd=/usr/bin/file
5962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5966 lt_cv_deplibs_check_method=pass_all
5971 lt_cv_deplibs_check_method=pass_all
5974 hpux10.20* | hpux11*)
5975 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5982 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]'
5983 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5993 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5997 irix5* | irix6* | nonstopux*)
5999 *-32|*"-32 ") libmagic=32-bit;;
6000 *-n32|*"-n32 ") libmagic=N32;;
6001 *-64|*"-64 ") libmagic=64-bit;;
6002 *) libmagic=never-match;;
6004 lt_cv_deplibs_check_method=pass_all
6007 # This must be Linux ELF.
6008 linux* | k*bsd*-gnu)
6009 lt_cv_deplibs_check_method=pass_all
6013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022 lt_cv_file_magic_cmd=/usr/bin/file
6023 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6027 lt_cv_deplibs_check_method=unknown
6031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6038 osf3* | osf4* | osf5*)
6039 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6047 lt_cv_deplibs_check_method=pass_all
6051 case $host_vendor in
6053 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]'
6054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6057 lt_cv_deplibs_check_method=pass_all
6060 lt_cv_file_magic_cmd='/bin/file'
6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6064 lt_cv_file_magic_cmd='/bin/file'
6065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6066 lt_cv_file_magic_test_file=/lib/libc.so
6069 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_deplibs_check_method=pass_all
6077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6078 lt_cv_deplibs_check_method=pass_all
6083 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6084 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6085 file_magic_cmd=$lt_cv_file_magic_cmd
6086 deplibs_check_method=$lt_cv_deplibs_check_method
6087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6092 # If no C compiler was specified, use CC.
6095 # If no C compiler flags were specified, use CFLAGS.
6096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6098 # Allow CC to be a program name with arguments.
6101 # Check whether --enable-libtool-lock was given.
6102 if test "${enable_libtool_lock+set}" = set; then
6103 enableval=$enable_libtool_lock;
6106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6108 # Some flags need to be propagated to the compiler or linker for good
6112 # Find out which ABI we are using.
6113 echo 'int i;' > conftest.$ac_ext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; then
6119 case `/usr/bin/file conftest.$ac_objext` in
6131 # Find out which ABI we are using.
6132 echo '#line 6132 "configure"' > conftest.$ac_ext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; then
6138 if test "$lt_cv_prog_gnu_ld" = yes; then
6139 case `/usr/bin/file conftest.$ac_objext` in
6141 LD="${LD-ld} -melf32bsmip"
6144 LD="${LD-ld} -melf32bmipn32"
6147 LD="${LD-ld} -melf64bmip"
6151 case `/usr/bin/file conftest.$ac_objext` in
6167 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6168 s390*-*linux*|sparc*-*linux*)
6169 # Find out which ABI we are using.
6170 echo 'int i;' > conftest.$ac_ext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; then
6176 case `/usr/bin/file conftest.o` in
6179 x86_64-*kfreebsd*-gnu)
6180 LD="${LD-ld} -m elf_i386_fbsd"
6183 LD="${LD-ld} -m elf_i386"
6185 ppc64-*linux*|powerpc64-*linux*)
6186 LD="${LD-ld} -m elf32ppclinux"
6189 LD="${LD-ld} -m elf_s390"
6192 LD="${LD-ld} -m elf32_sparc"
6198 x86_64-*kfreebsd*-gnu)
6199 LD="${LD-ld} -m elf_x86_64_fbsd"
6202 LD="${LD-ld} -m elf_x86_64"
6204 ppc*-*linux*|powerpc*-*linux*)
6205 LD="${LD-ld} -m elf64ppc"
6208 LD="${LD-ld} -m elf64_s390"
6211 LD="${LD-ld} -m elf64_sparc"
6221 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6222 SAVE_CFLAGS="$CFLAGS"
6223 CFLAGS="$CFLAGS -belf"
6224 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6225 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6226 if test "${lt_cv_cc_needs_belf+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (ac_try="$ac_link"
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest$ac_exeext &&
6267 $as_test_x conftest$ac_exeext; then
6268 lt_cv_cc_needs_belf=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 lt_cv_cc_needs_belf=no
6276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6277 conftest$ac_exeext conftest.$ac_ext
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6286 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6289 CFLAGS="$SAVE_CFLAGS"
6293 # Find out which ABI we are using.
6294 echo 'int i;' > conftest.$ac_ext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; then
6300 case `/usr/bin/file conftest.o` in
6302 case $lt_cv_prog_gnu_ld in
6303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6305 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6319 need_locks="$enable_libtool_lock"
6323 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6324 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6325 if test "${ac_cv_header_stdc+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compile") 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } && {
6361 test -z "$ac_c_werror_flag" ||
6362 test ! -s conftest.err
6363 } && test -s conftest.$ac_objext; then
6364 ac_cv_header_stdc=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_header_stdc=no
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 if test $ac_cv_header_stdc = yes; then
6375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386 $EGREP "memchr" >/dev/null 2>&1; then
6389 ac_cv_header_stdc=no
6395 if test $ac_cv_header_stdc = yes; then
6396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "free" >/dev/null 2>&1; then
6410 ac_cv_header_stdc=no
6416 if test $ac_cv_header_stdc = yes; then
6417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418 if test "$cross_compiling" = yes; then
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6429 #if ((' ' & 0x0FF) == 0x020)
6430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6433 # define ISLOWER(c) \
6434 (('a' <= (c) && (c) <= 'i') \
6435 || ('j' <= (c) && (c) <= 'r') \
6436 || ('s' <= (c) && (c) <= 'z'))
6437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6445 for (i = 0; i < 256; i++)
6446 if (XOR (islower (i), ISLOWER (i))
6447 || toupper (i) != TOUPPER (i))
6452 rm -f conftest$ac_exeext
6453 if { (ac_try="$ac_link"
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_link") 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6474 echo "$as_me: program exited with status $ac_status" >&5
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_header_stdc=no
6481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6488 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6489 if test $ac_cv_header_stdc = yes; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define STDC_HEADERS 1
6497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6508 inttypes.h stdint.h unistd.h
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 cat >conftest.$ac_ext <<_ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6524 #include <$ac_header>
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest.$ac_objext; then
6543 eval "$as_ac_Header=yes"
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 eval "$as_ac_Header=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_res=`eval echo '${'$as_ac_Header'}'`
6554 { echo "$as_me:$LINENO: result: $ac_res" >&5
6555 echo "${ECHO_T}$ac_res" >&6; }
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 for ac_header in dlfcn.h
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_res=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6580 # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_header_compiler=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_compiler=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <$ac_header>
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null && {
6645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6648 ac_header_preproc=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_header_preproc=no
6656 rm -f conftest.err conftest.$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 eval "$as_ac_Header=\$ac_header_preproc"
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6708 # find the maximum length of command line arguments
6709 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6710 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6711 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 # On DJGPP, this test can blow up pretty badly due to problems in libc
6720 # (any single argument exceeding 2000 bytes causes a buffer overrun
6721 # during glob expansion). Even if it were fixed, the result of this
6722 # check would be larger than it should be.
6723 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6727 # Under GNU Hurd, this test is not required because there is
6728 # no limit to the length of command line arguments.
6729 # Libtool will interpret -1 as no limit whatsoever
6730 lt_cv_sys_max_cmd_len=-1;
6734 # On Win9x/ME, this test blows up -- it succeeds, but takes
6735 # about 5 minutes as the teststring grows exponentially.
6736 # Worse, since 9x/ME are not pre-emptively multitasking,
6737 # you end up with a "frozen" computer, even though with patience
6738 # the test eventually succeeds (with a max line length of 256k).
6739 # Instead, let's just punt: use the minimum linelength reported by
6740 # all of the supported platforms: 8192 (on NT/2K/XP).
6741 lt_cv_sys_max_cmd_len=8192;
6745 # On AmigaOS with pdksh, this test takes hours, literally.
6746 # So we just punt and use a minimum line length of 8192.
6747 lt_cv_sys_max_cmd_len=8192;
6750 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6751 # This has been around since 386BSD, at least. Likely further.
6752 if test -x /sbin/sysctl; then
6753 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6754 elif test -x /usr/sbin/sysctl; then
6755 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6757 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6759 # And add a safety zone
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6765 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6766 lt_cv_sys_max_cmd_len=196608
6770 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6771 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6772 # nice to cause kernel panics so lets avoid the loop below.
6773 # First set a reasonable default.
6774 lt_cv_sys_max_cmd_len=16384
6776 if test -x /sbin/sysconfig; then
6777 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6778 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6783 lt_cv_sys_max_cmd_len=102400
6785 sysv5* | sco5v6* | sysv4.2uw2*)
6786 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6787 if test -n "$kargmax"; then
6788 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6790 lt_cv_sys_max_cmd_len=32768
6794 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6795 if test -n "$lt_cv_sys_max_cmd_len"; then
6796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6800 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6801 = "XX$teststring") >/dev/null 2>&1 &&
6802 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6803 lt_cv_sys_max_cmd_len=$new_result &&
6804 test $i != 17 # 1/2 MB should be enough
6807 teststring=$teststring$teststring
6810 # Add a significant safety factor because C++ compilers can tack on massive
6811 # amounts of additional arguments before passing them to the linker.
6812 # It appears as though 1/2 is a usable value.
6813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6820 if test -n $lt_cv_sys_max_cmd_len ; then
6821 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6822 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6824 { echo "$as_me:$LINENO: result: none" >&5
6825 echo "${ECHO_T}none" >&6; }
6832 # Check for command to grab the raw symbol name followed by C symbol from nm.
6833 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6834 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6835 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 # These are sane defaults that work on at least a few old systems.
6840 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6842 # Character class describing NM global symbol codes.
6843 symcode='[BCDEGRST]'
6845 # Regexp to match symbols that can be accessed directly from C.
6846 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6848 # Transform an extracted symbol line into a proper C declaration
6849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6851 # Transform an extracted symbol line into symbol name and symbol address
6852 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'"
6854 # Define system-specific variables.
6859 cygwin* | mingw* | pw32*)
6860 symcode='[ABCDGISTW]'
6862 hpux*) # Its linker distinguishes data from code symbols
6863 if test "$host_cpu" = ia64; then
6864 symcode='[ABCDEGRST]'
6866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6867 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'"
6869 linux* | k*bsd*-gnu)
6870 if test "$host_cpu" = ia64; then
6871 symcode='[ABCDGIRSTW]'
6872 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6873 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'"
6877 symcode='[BCDEGRST]'
6880 symcode='[BCDEGQRST]'
6891 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6899 # Handle CRLF in mingw tool chain
6903 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6907 # If we're using GNU nm, then use its standard symbol codes.
6908 case `$NM -V 2>&1` in
6909 *GNU* | *'with BFD'*)
6910 symcode='[ABCDGIRSTW]' ;;
6913 # Try without a prefix undercore, then with it.
6914 for ac_symprfx in "" "_"; do
6916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6917 symxfrm="\\1 $ac_symprfx\\2 \\2"
6919 # Write the raw and C identifiers.
6920 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6922 # Check to see that the pipe works correctly.
6926 cat > conftest.$ac_ext <<EOF
6931 void nm_test_func(){}
6935 int main(){nm_test_var='a';nm_test_func();return(0);}
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; then
6943 # Now try to grab the symbols.
6945 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && test -s "$nlist"; then
6950 # Try sorting and uniquifying the output.
6951 if sort "$nlist" | uniq > "$nlist"T; then
6952 mv -f "$nlist"T "$nlist"
6957 # Make sure that we snagged all the symbols we need.
6958 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6959 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6960 cat <<EOF > conftest.$ac_ext
6966 # Now generate the symbol file.
6967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6969 cat <<EOF >> conftest.$ac_ext
6970 #if defined (__STDC__) && __STDC__
6971 # define lt_ptr_t void *
6973 # define lt_ptr_t char *
6977 /* The mapping between symbol names and symbols. */
6982 lt_preloaded_symbols[] =
6985 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6986 cat <<\EOF >> conftest.$ac_ext
6994 # Now try linking the two files.
6995 mv conftest.$ac_objext conftstm.$ac_objext
6996 lt_save_LIBS="$LIBS"
6997 lt_save_CFLAGS="$CFLAGS"
6998 LIBS="conftstm.$ac_objext"
6999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7007 LIBS="$lt_save_LIBS"
7008 CFLAGS="$lt_save_CFLAGS"
7010 echo "cannot find nm_test_func in $nlist" >&5
7013 echo "cannot find nm_test_var in $nlist" >&5
7016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7019 echo "$progname: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 rm -rf conftest* conftst*
7024 # Do not use the global_symbol_pipe unless it works.
7025 if test "$pipe_works" = yes; then
7028 lt_cv_sys_global_symbol_pipe=
7034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7035 lt_cv_sys_global_symbol_to_cdecl=
7037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7038 { echo "$as_me:$LINENO: result: failed" >&5
7039 echo "${ECHO_T}failed" >&6; }
7041 { echo "$as_me:$LINENO: result: ok" >&5
7042 echo "${ECHO_T}ok" >&6; }
7045 { echo "$as_me:$LINENO: checking for objdir" >&5
7046 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7047 if test "${lt_cv_objdir+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 rm -f .libs 2>/dev/null
7051 mkdir .libs 2>/dev/null
7052 if test -d .libs; then
7055 # MS-DOS does not allow filenames that begin with a dot.
7058 rmdir .libs 2>/dev/null
7060 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7061 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7062 objdir=$lt_cv_objdir
7070 # AIX sometimes has problems with the GCC collect2 program. For some
7071 # reason, if we set the COLLECT_NAMES environment variable, the problems
7072 # vanish in a puff of smoke.
7073 if test "X${COLLECT_NAMES+set}" != Xset; then
7075 export COLLECT_NAMES
7080 # Sed substitution that helps us do robust quoting. It backslashifies
7081 # metacharacters that are still active within double-quoted strings.
7082 Xsed='sed -e 1s/^X//'
7083 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7085 # Same as above, but do not quote variable references.
7086 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7088 # Sed substitution to delay expansion of an escaped shell variable in a
7089 # double_quote_subst'ed string.
7090 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7092 # Sed substitution to avoid accidental globbing in evaled expressions
7093 no_glob_subst='s/\*/\\\*/g'
7099 default_ofile=libtool
7100 can_build_shared=yes
7102 # All known linkers require a `.a' archive for static linking (except MSVC,
7103 # which needs '.lib').
7105 ltmain="$ac_aux_dir/ltmain.sh"
7106 ofile="$default_ofile"
7107 with_gnu_ld="$lt_cv_prog_gnu_ld"
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}ar; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_prog_AR+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 if test -n "$AR"; then
7118 ac_cv_prog_AR="$AR" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_AR="${ac_tool_prefix}ar"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 if test -n "$AR"; then
7139 { echo "$as_me:$LINENO: result: $AR" >&5
7140 echo "${ECHO_T}$AR" >&6; }
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7148 if test -z "$ac_cv_prog_AR"; then
7150 # Extract the first word of "ar", so it can be a program name with args.
7151 set dummy ar; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$ac_ct_AR"; then
7158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_AR="ar"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178 if test -n "$ac_ct_AR"; then
7179 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7180 echo "${ECHO_T}$ac_ct_AR" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7186 if test "x$ac_ct_AR" = x; then
7189 case $cross_compiling:$ac_tool_warned in
7191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7192 whose name does not start with the host triplet. If you think this
7193 configuration is useful to you, please write to autoconf@gnu.org." >&5
7194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7195 whose name does not start with the host triplet. If you think this
7196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7197 ac_tool_warned=yes ;;
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_prog_RANLIB+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 if test -n "$RANLIB"; then
7214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 RANLIB=$ac_cv_prog_RANLIB
7234 if test -n "$RANLIB"; then
7235 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7236 echo "${ECHO_T}$RANLIB" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7244 if test -z "$ac_cv_prog_RANLIB"; then
7245 ac_ct_RANLIB=$RANLIB
7246 # Extract the first word of "ranlib", so it can be a program name with args.
7247 set dummy ranlib; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 if test -n "$ac_ct_RANLIB"; then
7254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_ac_ct_RANLIB="ranlib"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274 if test -n "$ac_ct_RANLIB"; then
7275 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7276 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7278 { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7282 if test "x$ac_ct_RANLIB" = x; then
7285 case $cross_compiling:$ac_tool_warned in
7287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7288 whose name does not start with the host triplet. If you think this
7289 configuration is useful to you, please write to autoconf@gnu.org." >&5
7290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7291 whose name does not start with the host triplet. If you think this
7292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7293 ac_tool_warned=yes ;;
7295 RANLIB=$ac_ct_RANLIB
7298 RANLIB="$ac_cv_prog_RANLIB"
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}strip; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_prog_STRIP+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$STRIP"; then
7310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 STRIP=$ac_cv_prog_STRIP
7330 if test -n "$STRIP"; then
7331 { echo "$as_me:$LINENO: result: $STRIP" >&5
7332 echo "${ECHO_T}$STRIP" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7340 if test -z "$ac_cv_prog_STRIP"; then
7342 # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$ac_ct_STRIP"; then
7350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_ac_ct_STRIP="strip"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7372 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7378 if test "x$ac_ct_STRIP" = x; then
7381 case $cross_compiling:$ac_tool_warned in
7383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7384 whose name does not start with the host triplet. If you think this
7385 configuration is useful to you, please write to autoconf@gnu.org." >&5
7386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7387 whose name does not start with the host triplet. If you think this
7388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7389 ac_tool_warned=yes ;;
7394 STRIP="$ac_cv_prog_STRIP"
7399 old_CFLAGS="$CFLAGS"
7401 # Set sane defaults for various variables
7402 test -z "$AR" && AR=ar
7403 test -z "$AR_FLAGS" && AR_FLAGS=cru
7404 test -z "$AS" && AS=as
7405 test -z "$CC" && CC=cc
7406 test -z "$LTCC" && LTCC=$CC
7407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7408 test -z "$DLLTOOL" && DLLTOOL=dlltool
7409 test -z "$LD" && LD=ld
7410 test -z "$LN_S" && LN_S="ln -s"
7411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7412 test -z "$NM" && NM=nm
7413 test -z "$SED" && SED=sed
7414 test -z "$OBJDUMP" && OBJDUMP=objdump
7415 test -z "$RANLIB" && RANLIB=:
7416 test -z "$STRIP" && STRIP=:
7417 test -z "$ac_objext" && ac_objext=o
7419 # Determine commands to create old-style static archives.
7420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7421 old_postinstall_cmds='chmod 644 $oldlib'
7422 old_postuninstall_cmds=
7424 if test -n "$RANLIB"; then
7427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7436 for cc_temp in $compiler""; do
7438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7444 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7447 # Only perform the check for file, if the check method requires it
7448 case $deplibs_check_method in
7450 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7451 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7452 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7453 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7461 lt_save_MAGIC_CMD="$MAGIC_CMD"
7462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7464 for ac_dir in $ac_dummy; do
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f $ac_dir/${ac_tool_prefix}file; then
7468 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7469 if test -n "$file_magic_test_file"; then
7470 case $deplibs_check_method in
7472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7475 $EGREP "$file_magic_regex" > /dev/null; then
7480 *** Warning: the command libtool uses to detect shared libraries,
7481 *** $file_magic_cmd, produces output that libtool cannot recognize.
7482 *** The result is that libtool may fail to recognize shared libraries
7483 *** as such. This will affect the creation of libtool libraries that
7484 *** depend on shared libraries, but programs linked with such libtool
7485 *** libraries will work regardless of this problem. Nevertheless, you
7486 *** may want to report the problem to your system manager and/or to
7487 *** bug-libtool@gnu.org
7497 MAGIC_CMD="$lt_save_MAGIC_CMD"
7502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503 if test -n "$MAGIC_CMD"; then
7504 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7505 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7507 { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7511 if test -z "$lt_cv_path_MAGIC_CMD"; then
7512 if test -n "$ac_tool_prefix"; then
7513 { echo "$as_me:$LINENO: checking for file" >&5
7514 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7523 lt_save_MAGIC_CMD="$MAGIC_CMD"
7524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7526 for ac_dir in $ac_dummy; do
7528 test -z "$ac_dir" && ac_dir=.
7529 if test -f $ac_dir/file; then
7530 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7531 if test -n "$file_magic_test_file"; then
7532 case $deplibs_check_method in
7534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7537 $EGREP "$file_magic_regex" > /dev/null; then
7542 *** Warning: the command libtool uses to detect shared libraries,
7543 *** $file_magic_cmd, produces output that libtool cannot recognize.
7544 *** The result is that libtool may fail to recognize shared libraries
7545 *** as such. This will affect the creation of libtool libraries that
7546 *** depend on shared libraries, but programs linked with such libtool
7547 *** libraries will work regardless of this problem. Nevertheless, you
7548 *** may want to report the problem to your system manager and/or to
7549 *** bug-libtool@gnu.org
7559 MAGIC_CMD="$lt_save_MAGIC_CMD"
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if test -n "$MAGIC_CMD"; then
7566 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7567 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7584 rhapsody* | darwin*)
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 if test -n "$DSYMUTIL"; then
7594 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7614 if test -n "$DSYMUTIL"; then
7615 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7616 echo "${ECHO_T}$DSYMUTIL" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7624 if test -z "$ac_cv_prog_DSYMUTIL"; then
7625 ac_ct_DSYMUTIL=$DSYMUTIL
7626 # Extract the first word of "dsymutil", so it can be a program name with args.
7627 set dummy dsymutil; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 if test -n "$ac_ct_DSYMUTIL"; then
7634 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7654 if test -n "$ac_ct_DSYMUTIL"; then
7655 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7656 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7662 if test "x$ac_ct_DSYMUTIL" = x; then
7665 case $cross_compiling:$ac_tool_warned in
7667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7668 whose name does not start with the host triplet. If you think this
7669 configuration is useful to you, please write to autoconf@gnu.org." >&5
7670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7671 whose name does not start with the host triplet. If you think this
7672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7673 ac_tool_warned=yes ;;
7675 DSYMUTIL=$ac_ct_DSYMUTIL
7678 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7681 if test -n "$ac_tool_prefix"; then
7682 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 if test -n "$NMEDIT"; then
7690 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 NMEDIT=$ac_cv_prog_NMEDIT
7710 if test -n "$NMEDIT"; then
7711 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7712 echo "${ECHO_T}$NMEDIT" >&6; }
7714 { echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6; }
7720 if test -z "$ac_cv_prog_NMEDIT"; then
7721 ac_ct_NMEDIT=$NMEDIT
7722 # Extract the first word of "nmedit", so it can be a program name with args.
7723 set dummy nmedit; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 if test -n "$ac_ct_NMEDIT"; then
7730 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7750 if test -n "$ac_ct_NMEDIT"; then
7751 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7752 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7754 { echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6; }
7758 if test "x$ac_ct_NMEDIT" = x; then
7761 case $cross_compiling:$ac_tool_warned in
7763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7764 whose name does not start with the host triplet. If you think this
7765 configuration is useful to you, please write to autoconf@gnu.org." >&5
7766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7767 whose name does not start with the host triplet. If you think this
7768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7769 ac_tool_warned=yes ;;
7771 NMEDIT=$ac_ct_NMEDIT
7774 NMEDIT="$ac_cv_prog_NMEDIT"
7778 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7779 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7780 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 lt_cv_apple_cc_single_mod=no
7784 if test -z "${LT_MULTI_MODULE}"; then
7785 # By default we will add the -single_module flag. You can override
7786 # by either setting the environment variable LT_MULTI_MODULE
7787 # non-empty at configure time, or by adding -multi_module to the
7789 echo "int foo(void){return 1;}" > conftest.c
7790 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7791 -dynamiclib ${wl}-single_module conftest.c
7792 if test -f libconftest.dylib; then
7793 lt_cv_apple_cc_single_mod=yes
7794 rm -rf libconftest.dylib*
7799 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7800 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7801 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7802 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 lt_cv_ld_exported_symbols_list=no
7807 save_LDFLAGS=$LDFLAGS
7808 echo "_main" > conftest.sym
7809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_link") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest$ac_exeext &&
7842 $as_test_x conftest$ac_exeext; then
7843 lt_cv_ld_exported_symbols_list=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 lt_cv_ld_exported_symbols_list=no
7851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7852 conftest$ac_exeext conftest.$ac_ext
7853 LDFLAGS="$save_LDFLAGS"
7856 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7857 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7859 rhapsody* | darwin1.[0123])
7860 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7862 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7864 # if running on 10.5 or later, the deployment target defaults
7865 # to the OS version, if on x86, and 10.4, the deployment
7866 # target defaults to 10.4. Don't you love it?
7867 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7868 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7869 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7871 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7877 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7878 _lt_dar_single_mod='$single_module'
7880 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7881 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7883 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7885 if test "$DSYMUTIL" != ":"; then
7886 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7897 # Check whether --enable-libtool-lock was given.
7898 if test "${enable_libtool_lock+set}" = set; then
7899 enableval=$enable_libtool_lock;
7902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7905 # Check whether --with-pic was given.
7906 if test "${with_pic+set}" = set; then
7907 withval=$with_pic; pic_mode="$withval"
7912 test -z "$pic_mode" && pic_mode=default
7914 # Use C for the default configuration in the libtool script
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 # Source file extension for C test sources.
7927 # Object file extension for compiled C test sources.
7931 # Code to be used in simple compile tests
7932 lt_simple_compile_test_code="int some_variable = 0;"
7934 # Code to be used in simple link tests
7935 lt_simple_link_test_code='int main(){return(0);}'
7938 # If no C compiler was specified, use CC.
7941 # If no C compiler flags were specified, use CFLAGS.
7942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7944 # Allow CC to be a program name with arguments.
7948 # save warnings/boilerplate of simple test code
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_compiler_boilerplate=`cat conftest.err`
7955 ac_outfile=conftest.$ac_objext
7956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7958 _lt_linker_boilerplate=`cat conftest.err`
7963 ## There is no encapsulation within the following macros, do not change
7964 ## the running order or otherwise move them around unless you know exactly
7965 ## what you are doing...
7967 lt_prog_compiler_no_builtin_flag=
7969 if test "$GCC" = yes; then
7970 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 lt_cv_prog_compiler_rtti_exceptions=no
7979 ac_outfile=conftest.$ac_objext
7980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981 lt_compiler_flag="-fno-rtti -fno-exceptions"
7982 # Insert the option either (1) after the last *FLAGS variable, or
7983 # (2) before a word containing "conftest.", or (3) at the end.
7984 # Note that $ac_compile itself does not contain backslashes and begins
7985 # with a dollar sign (not a hyphen), so the echo should work correctly.
7986 # The option is referenced via a variable to avoid confusing sed.
7987 lt_compile=`echo "$ac_compile" | $SED \
7988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990 -e 's:$: $lt_compiler_flag:'`
7991 (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992 (eval "$lt_compile" 2>conftest.err)
7994 cat conftest.err >&5
7995 echo "$as_me:7995: \$? = $ac_status" >&5
7996 if (exit $ac_status) && test -s "$ac_outfile"; then
7997 # The compiler can only warn and ignore the option if not recognized
7998 # So say no if there are warnings other than the usual output.
7999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002 lt_cv_prog_compiler_rtti_exceptions=yes
8008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8012 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8019 lt_prog_compiler_wl=
8020 lt_prog_compiler_pic=
8021 lt_prog_compiler_static=
8023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8026 if test "$GCC" = yes; then
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_static='-static'
8032 # All AIX code is PIC.
8033 if test "$host_cpu" = ia64; then
8034 # AIX 5 now supports IA64 processor
8035 lt_prog_compiler_static='-Bstatic'
8040 # FIXME: we need at least 68020 code to build shared libraries, but
8041 # adding the `-m68020' flag to GCC prevents building anything better,
8043 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8047 # PIC is the default for these OSes.
8050 mingw* | cygwin* | pw32* | os2*)
8051 # This hack is so that the source file can tell whether it is being
8052 # built for inclusion in a dll (and should export symbols for example).
8053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8054 # (--disable-auto-import) libraries
8055 lt_prog_compiler_pic='-DDLL_EXPORT'
8058 darwin* | rhapsody*)
8059 # PIC is the default on this platform
8060 # Common symbols not allowed in MH_DYLIB files
8061 lt_prog_compiler_pic='-fno-common'
8065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8066 # Instead, we relocate shared libraries at runtime.
8070 # Just because we use GCC doesn't mean we suddenly get shared libraries
8071 # on systems that don't support them.
8072 lt_prog_compiler_can_build_shared=no
8077 if test -d /usr/nec; then
8078 lt_prog_compiler_pic=-Kconform_pic
8083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8090 lt_prog_compiler_pic='-fPIC'
8096 lt_prog_compiler_pic='-fPIC'
8100 # PORTME Check for flag to pass linker flags through the system compiler.
8103 lt_prog_compiler_wl='-Wl,'
8104 if test "$host_cpu" = ia64; then
8105 # AIX 5 now supports IA64 processor
8106 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8112 # PIC is the default on this platform
8113 # Common symbols not allowed in MH_DYLIB files
8114 case $cc_basename in
8116 lt_prog_compiler_pic='-qnocommon'
8117 lt_prog_compiler_wl='-Wl,'
8122 mingw* | cygwin* | pw32* | os2*)
8123 # This hack is so that the source file can tell whether it is being
8124 # built for inclusion in a dll (and should export symbols for example).
8125 lt_prog_compiler_pic='-DDLL_EXPORT'
8128 hpux9* | hpux10* | hpux11*)
8129 lt_prog_compiler_wl='-Wl,'
8130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8137 lt_prog_compiler_pic='+Z'
8140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8141 lt_prog_compiler_static='${wl}-a ${wl}archive'
8144 irix5* | irix6* | nonstopux*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC (with -KPIC) is the default.
8147 lt_prog_compiler_static='-non_shared'
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-Bstatic'
8155 linux* | k*bsd*-gnu)
8156 case $cc_basename in
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-static'
8162 pgcc* | pgf77* | pgf90* | pgf95*)
8163 # Portland Group compilers (*not* the Pentium gcc compiler,
8164 # which looks to be a dead project)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-fpic'
8167 lt_prog_compiler_static='-Bstatic'
8170 lt_prog_compiler_wl='-Wl,'
8171 # All Alpha code is PIC.
8172 lt_prog_compiler_static='-non_shared'
8175 case `$CC -V 2>&1 | sed 5q` in
8178 lt_prog_compiler_pic='-KPIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 lt_prog_compiler_wl='-Wl,'
8183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 lt_prog_compiler_wl=''
8193 osf3* | osf4* | osf5*)
8194 lt_prog_compiler_wl='-Wl,'
8195 # All OSF/1 code is PIC.
8196 lt_prog_compiler_static='-non_shared'
8200 lt_prog_compiler_static='-non_shared'
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 case $cc_basename in
8208 lt_prog_compiler_wl='-Qoption ld ';;
8210 lt_prog_compiler_wl='-Wl,';;
8215 lt_prog_compiler_wl='-Qoption ld '
8216 lt_prog_compiler_pic='-PIC'
8217 lt_prog_compiler_static='-Bstatic'
8220 sysv4 | sysv4.2uw2* | sysv4.3*)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8227 if test -d /usr/nec ;then
8228 lt_prog_compiler_pic='-Kconform_pic'
8229 lt_prog_compiler_static='-Bstatic'
8233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8234 lt_prog_compiler_wl='-Wl,'
8235 lt_prog_compiler_pic='-KPIC'
8236 lt_prog_compiler_static='-Bstatic'
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_can_build_shared=no
8245 lt_prog_compiler_pic='-pic'
8246 lt_prog_compiler_static='-Bstatic'
8250 lt_prog_compiler_can_build_shared=no
8255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8256 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8259 # Check to make sure the PIC flag actually works.
8261 if test -n "$lt_prog_compiler_pic"; then
8263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8265 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 lt_cv_prog_compiler_pic_works=no
8269 ac_outfile=conftest.$ac_objext
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8272 # Insert the option either (1) after the last *FLAGS variable, or
8273 # (2) before a word containing "conftest.", or (3) at the end.
8274 # Note that $ac_compile itself does not contain backslashes and begins
8275 # with a dollar sign (not a hyphen), so the echo should work correctly.
8276 # The option is referenced via a variable to avoid confusing sed.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>conftest.err)
8284 cat conftest.err >&5
8285 echo "$as_me:8285: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s "$ac_outfile"; then
8287 # The compiler can only warn and ignore the option if not recognized
8288 # So say no if there are warnings other than the usual output.
8289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8292 lt_cv_prog_compiler_pic_works=yes
8298 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8299 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8301 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8302 case $lt_prog_compiler_pic in
8304 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8307 lt_prog_compiler_pic=
8308 lt_prog_compiler_can_build_shared=no
8313 # For platforms which do not support PIC, -DPIC is meaningless:
8315 lt_prog_compiler_pic=
8318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8323 # Check to make sure the static flag actually works.
8325 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8328 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 lt_cv_prog_compiler_static_works=no
8332 save_LDFLAGS="$LDFLAGS"
8333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8336 # The linker can only warn and ignore the option if not recognized
8337 # So say no if there are warnings
8338 if test -s conftest.err; then
8339 # Append any errors to the config.log.
8340 cat conftest.err 1>&5
8341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8343 if diff conftest.exp conftest.er2 >/dev/null; then
8344 lt_cv_prog_compiler_static_works=yes
8347 lt_cv_prog_compiler_static_works=yes
8351 LDFLAGS="$save_LDFLAGS"
8354 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8355 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8357 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8360 lt_prog_compiler_static=
8364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8366 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 lt_cv_prog_compiler_c_o=no
8370 $rm -r conftest 2>/dev/null
8374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376 lt_compiler_flag="-o out/conftest2.$ac_objext"
8377 # Insert the option either (1) after the last *FLAGS variable, or
8378 # (2) before a word containing "conftest.", or (3) at the end.
8379 # Note that $ac_compile itself does not contain backslashes and begins
8380 # with a dollar sign (not a hyphen), so the echo should work correctly.
8381 lt_compile=`echo "$ac_compile" | $SED \
8382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8384 -e 's:$: $lt_compiler_flag:'`
8385 (eval echo "\"\$as_me:8385: $lt_compile\"" >&5)
8386 (eval "$lt_compile" 2>out/conftest.err)
8388 cat out/conftest.err >&5
8389 echo "$as_me:8389: \$? = $ac_status" >&5
8390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8392 # The compiler can only warn and ignore the option if not recognized
8393 # So say no if there are warnings
8394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8397 lt_cv_prog_compiler_c_o=yes
8402 # SGI C++ compiler will create directory out/ii_files/ for
8403 # template instantiation
8404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8405 $rm out/* && rmdir out
8411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8415 hard_links="nottested"
8416 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8417 # do not overwrite the value of need_locks provided by the user
8418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424 ln conftest.a conftest.b 2>&5 || hard_links=no
8425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8426 { echo "$as_me:$LINENO: result: $hard_links" >&5
8427 echo "${ECHO_T}$hard_links" >&6; }
8428 if test "$hard_links" = no; then
8429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8441 allow_undefined_flag=
8442 enable_shared_with_static_runtimes=no
8444 archive_expsym_cmds=
8445 old_archive_From_new_cmds=
8446 old_archive_from_expsyms_cmds=
8447 export_dynamic_flag_spec=
8448 whole_archive_flag_spec=
8449 thread_safe_flag_spec=
8450 hardcode_libdir_flag_spec=
8451 hardcode_libdir_flag_spec_ld=
8452 hardcode_libdir_separator=
8455 hardcode_shlibpath_var=unsupported
8456 link_all_deplibs=unknown
8457 hardcode_automatic=no
8460 always_export_symbols=no
8461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8462 # include_expsyms should be a list of space-separated symbols to be *always*
8463 # included in the symbol list
8465 # exclude_expsyms can be an extended regexp of symbols to exclude
8466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8468 # as well as any symbol that contains `d'.
8469 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8471 # platforms (ab)use it in PIC code, but their linkers get confused if
8472 # the symbol is explicitly referenced. Since portable code cannot
8473 # rely on this symbol name, it's probably fine to never include it in
8474 # preloaded symbol tables.
8475 # Exclude shared library initialization/finalization symbols.
8476 extract_expsyms_cmds=
8477 # Just being paranoid about ensuring that cc_basename is set.
8478 for cc_temp in $compiler""; do
8480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8489 cygwin* | mingw* | pw32*)
8490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8491 # When not using gcc, we currently assume that we are using
8492 # Microsoft Visual C++.
8493 if test "$GCC" != yes; then
8498 # we just hope/assume this is gcc and not c89 (= MSVC++)
8507 if test "$with_gnu_ld" = yes; then
8508 # If archive_cmds runs LD, not CC, wlarc should be empty
8511 # Set some defaults for GNU ld with shared library support. These
8512 # are reset later if shared libraries are not supported. Putting them
8513 # here allows them to be overridden if necessary.
8514 runpath_var=LD_RUN_PATH
8515 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8516 export_dynamic_flag_spec='${wl}--export-dynamic'
8517 # ancient GNU ld didn't support --whole-archive et. al.
8518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8519 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8521 whole_archive_flag_spec=
8523 supports_anon_versioning=no
8524 case `$LD -v 2>/dev/null` in
8525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8528 *\ 2.11.*) ;; # other 2.11 versions
8529 *) supports_anon_versioning=yes ;;
8532 # See if GNU ld supports shared libraries.
8535 # On AIX/PPC, the GNU linker is very broken
8536 if test "$host_cpu" != ia64; then
8540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8541 *** to be unable to reliably create shared libraries on AIX.
8542 *** Therefore, libtool is disabling shared libraries support. If you
8543 *** really care for shared libraries, you may want to modify your PATH
8544 *** so that a non-GNU linker is found, and then restart.
8551 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)'
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 hardcode_minus_L=yes
8555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8556 # that the semantics of dynamic libraries on AmigaOS, at least up
8557 # to version 4, is to share data among multiple programs linked
8558 # with the same dynamic library. Since this doesn't match the
8559 # behavior of shared libraries on other platforms, we can't use
8565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8566 allow_undefined_flag=unsupported
8567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568 # support --undefined. This deserves some investigation. FIXME
8569 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575 cygwin* | mingw* | pw32*)
8576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577 # as there is no search path for DLLs.
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 allow_undefined_flag=unsupported
8580 always_export_symbols=no
8581 enable_shared_with_static_runtimes=yes
8582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586 # If the export-symbols file already is a .def file (1st line
8587 # is EXPORTS), use it as is; otherwise, prepend...
8588 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589 cp $export_symbols $output_objdir/$soname.def;
8591 echo EXPORTS > $output_objdir/$soname.def;
8592 cat $export_symbols >> $output_objdir/$soname.def;
8594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8602 hardcode_shlibpath_var=no
8603 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604 export_dynamic_flag_spec='${wl}-E'
8605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606 # Instead, shared libraries are loaded at an image base (0x10000000 by
8607 # default) and relocated if they conflict, which is a slow very memory
8608 # consuming and fragmenting process. To avoid this, we pick a random,
8609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612 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'
8615 gnu* | linux* | k*bsd*-gnu)
8616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8618 case $cc_basename,$host_cpu in
8619 pgcc*) # Portland Group C compiler
8620 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'
8621 tmp_addflag=' $pic_flag'
8623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8624 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'
8625 tmp_addflag=' $pic_flag -Mnomain' ;;
8626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8627 tmp_addflag=' -i_dynamic' ;;
8628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8629 tmp_addflag=' -i_dynamic -nofor_main' ;;
8630 ifc* | ifort*) # Intel Fortran compiler
8631 tmp_addflag=' -nofor_main' ;;
8633 case `$CC -V 2>&1 | sed 5q` in
8634 *Sun\ C*) # Sun C 5.9
8635 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'
8636 tmp_sharedflag='-G' ;;
8637 *Sun\ F*) # Sun Fortran 8.3
8638 tmp_sharedflag='-G' ;;
8640 tmp_sharedflag='-shared' ;;
8642 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 if test $supports_anon_versioning = yes; then
8645 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8647 $echo "local: *; };" >> $output_objdir/$libname.ver~
8648 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8671 *** create shared libraries on Solaris systems. Therefore, libtool
8672 *** is disabling shared libraries support. We urge you to upgrade GNU
8673 *** binutils to release 2.9.1 or newer. Another option is to modify
8674 *** your PATH or compiler configuration so that the native linker is
8675 *** used, and then restart.
8678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8687 case `$LD -v 2>&1` in
8688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8693 *** reliably create shared libraries on SCO systems. Therefore, libtool
8694 *** is disabling shared libraries support. We urge you to upgrade GNU
8695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8696 *** your PATH or compiler configuration so that the native linker is
8697 *** used, and then restart.
8702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_shlibpath_var=no
8721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 if test "$ld_shlibs" = no; then
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 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'
8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8745 hardcode_minus_L=yes
8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8749 hardcode_direct=unsupported
8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8764 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'
8766 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'
8768 aix_use_runtimelinking=no
8770 # Test if we are trying to use run time linking or normal
8771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772 # need to do runtime linking.
8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8774 for ld_flag in $LDFLAGS; do
8775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776 aix_use_runtimelinking=yes
8783 exp_sym_flag='-bexport'
8784 no_entry_flag='-bnoentry'
8787 # When large executables or shared objects are built, AIX ld can
8788 # have problems creating the table of contents. If linking a library
8789 # or program results in "error TOC overflow" add -mminimal-toc to
8790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795 hardcode_libdir_separator=':'
8796 link_all_deplibs=yes
8798 if test "$GCC" = yes; then
8799 case $host_os in aix4.[012]|aix4.[012].*)
8800 # We only want to do this on AIX 4.2 and lower, the check
8801 # below for broken collect2 doesn't work under 4.3+
8802 collect2name=`${CC} -print-prog-name=collect2`
8803 if test -f "$collect2name" && \
8804 strings "$collect2name" | grep resolve_lib_name >/dev/null
8806 # We have reworked collect2
8809 # We have old collect2
8810 hardcode_direct=unsupported
8811 # It fails to find uninstalled libraries when the uninstalled
8812 # path is not listed in the libpath. Setting hardcode_minus_L
8813 # to unsupported forces relinking
8814 hardcode_minus_L=yes
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 hardcode_libdir_separator=
8820 shared_flag='-shared'
8821 if test "$aix_use_runtimelinking" = yes; then
8822 shared_flag="$shared_flag "'${wl}-G'
8826 if test "$host_cpu" = ia64; then
8827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8828 # chokes on -Wl,-G. The following line is correct:
8831 if test "$aix_use_runtimelinking" = yes; then
8832 shared_flag='${wl}-G'
8834 shared_flag='${wl}-bM:SRE'
8839 # It seems that -bexpall does not export symbols beginning with
8840 # underscore (_), so it is better to generate a list of symbols to export.
8841 always_export_symbols=yes
8842 if test "$aix_use_runtimelinking" = yes; then
8843 # Warning - without using the other runtime loading flags (-brtl),
8844 # -berok will link without error, but may produce a broken library.
8845 allow_undefined_flag='-berok'
8846 # Determine the default libpath from the value encoded in an empty executable.
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (ac_try="$ac_link"
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_link") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest$ac_exeext &&
8879 $as_test_x conftest$ac_exeext; then
8881 lt_aix_libpath_sed='
8882 /Import File Strings/,/^$/ {
8888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$aix_libpath"; then
8891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8901 conftest$ac_exeext conftest.$ac_ext
8902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8905 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"
8907 if test "$host_cpu" = ia64; then
8908 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8909 allow_undefined_flag="-z nodefs"
8910 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"
8912 # Determine the default libpath from the value encoded in an empty executable.
8913 cat >conftest.$ac_ext <<_ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext &&
8945 $as_test_x conftest$ac_exeext; then
8947 lt_aix_libpath_sed='
8948 /Import File Strings/,/^$/ {
8954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 # Check for a 64-bit object if we didn't find anything.
8956 if test -z "$aix_libpath"; then
8957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971 # Warning - without using the other run time loading flags,
8972 # -berok will link without error, but may produce a broken library.
8973 no_undefined_flag=' ${wl}-bernotok'
8974 allow_undefined_flag=' ${wl}-berok'
8975 # Exported symbols can be pulled into shared objects from archives
8976 whole_archive_flag_spec='$convenience'
8977 archive_cmds_need_lc=yes
8978 # This is similar to how AIX traditionally builds its shared libraries.
8979 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'
8985 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)'
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8988 # see comment about different semantics on the GNU ld section
8993 export_dynamic_flag_spec=-rdynamic
8996 cygwin* | mingw* | pw32*)
8997 # When not using gcc, we currently assume that we are using
8998 # Microsoft Visual C++.
8999 # hardcode_libdir_flag_spec is actually meaningless, as there is
9000 # no search path for DLLs.
9001 hardcode_libdir_flag_spec=' '
9002 allow_undefined_flag=unsupported
9003 # Tell ltmain to make .lib files, not .a files.
9005 # Tell ltmain to make .dll files, not .so files.
9007 # FIXME: Setting linknames here is a bad hack.
9008 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9009 # The linker will automatically build a .lib file if we build a DLL.
9010 old_archive_From_new_cmds='true'
9011 # FIXME: Should let the user specify the lib program.
9012 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9013 fix_srcfile_path='`cygpath -w "$srcfile"`'
9014 enable_shared_with_static_runtimes=yes
9017 darwin* | rhapsody*)
9019 rhapsody* | darwin1.[012])
9020 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9024 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9026 case ${MACOSX_DEPLOYMENT_TARGET} in
9028 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9031 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9037 archive_cmds_need_lc=no
9039 hardcode_automatic=yes
9040 hardcode_shlibpath_var=unsupported
9041 whole_archive_flag_spec=''
9042 link_all_deplibs=yes
9043 if test "$GCC" = yes ; then
9044 output_verbose_link_cmd='echo'
9045 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9046 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9047 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9048 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9050 case $cc_basename in
9052 output_verbose_link_cmd='echo'
9053 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9054 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9056 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}'
9057 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}'
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
9076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077 # support. Future versions do this automatically, but an explicit c++rt0.o
9078 # does not break anything, and helps significantly (at the cost of a little
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_shlibpath_var=no
9087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_minus_L=yes
9092 hardcode_shlibpath_var=no
9095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096 freebsd* | dragonfly*)
9097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9100 hardcode_shlibpath_var=no
9104 if test "$GCC" = yes; then
9105 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'
9107 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'
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 export_dynamic_flag_spec='${wl}-E'
9120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125 if test "$with_gnu_ld" = no; then
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_separator=:
9130 export_dynamic_flag_spec='${wl}-E'
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9170 hardcode_libdir_flag_spec_ld='+b $libdir'
9172 hardcode_shlibpath_var=no
9176 export_dynamic_flag_spec='${wl}-E'
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 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'
9190 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'
9191 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 hardcode_libdir_separator=:
9195 link_all_deplibs=yes
9199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9202 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9204 hardcode_libdir_flag_spec='-R$libdir'
9206 hardcode_shlibpath_var=no
9210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 hardcode_libdir_separator=:
9214 hardcode_shlibpath_var=no
9218 if test -f /usr/libexec/ld.so; then
9220 hardcode_shlibpath_var=no
9221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225 export_dynamic_flag_spec='${wl}-E'
9228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_libdir_flag_spec='-R$libdir'
9233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244 hardcode_libdir_flag_spec='-L$libdir'
9245 hardcode_minus_L=yes
9246 allow_undefined_flag=unsupported
9247 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'
9248 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9252 if test "$GCC" = yes; then
9253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9254 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'
9256 allow_undefined_flag=' -expect_unresolved \*'
9257 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'
9259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9260 hardcode_libdir_separator=:
9263 osf4* | osf5*) # as osf3* with the addition of -msym flag
9264 if test "$GCC" = yes; then
9265 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9266 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'
9267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 allow_undefined_flag=' -expect_unresolved \*'
9270 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'
9271 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9272 $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'
9274 # Both c and cxx compiler support -rpath directly
9275 hardcode_libdir_flag_spec='-rpath $libdir'
9277 hardcode_libdir_separator=:
9281 no_undefined_flag=' -z text'
9282 if test "$GCC" = yes; then
9284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9293 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_shlibpath_var=no
9296 solaris2.[0-5] | solaris2.[0-5].*) ;;
9298 # The compiler driver will combine and reorder linker options,
9299 # but understands `-z linker_flag'. GCC discards it without `$wl',
9300 # but is careful enough not to reorder.
9301 # Supported since Solaris 2.6 (maybe 2.5.1?)
9302 if test "$GCC" = yes; then
9303 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9305 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9309 link_all_deplibs=yes
9313 if test "x$host_vendor" = xsequent; then
9314 # Use $CC to link under sequent, because it throws in some extra .o
9315 # files that make .init and .fini sections work.
9316 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_minus_L=yes
9323 hardcode_shlibpath_var=no
9327 case $host_vendor in
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_direct=yes # is this really true???
9333 ## LD is ld it makes a PLAMLIB
9334 ## CC just makes a GrossModule.
9335 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9336 reload_cmds='$CC -r -o $output$reload_objs'
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9344 runpath_var='LD_RUN_PATH'
9345 hardcode_shlibpath_var=no
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_shlibpath_var=no
9351 export_dynamic_flag_spec='-Bexport'
9355 if test -d /usr/nec; then
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_shlibpath_var=no
9358 runpath_var=LD_RUN_PATH
9359 hardcode_runpath_var=yes
9364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9365 no_undefined_flag='${wl}-z,text'
9366 archive_cmds_need_lc=no
9367 hardcode_shlibpath_var=no
9368 runpath_var='LD_RUN_PATH'
9370 if test "$GCC" = yes; then
9371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 sysv5* | sco3.2v5* | sco5v6*)
9380 # Note: We can NOT use -z defs as we might desire, because we do not
9381 # link with -lc, and that would cause any symbols used from libc to
9382 # always be unresolved, which means just about no library would
9383 # ever link correctly. If we're not using GNU ld we use -z text
9384 # though, which does catch some bad symbols but isn't as heavy-handed
9386 no_undefined_flag='${wl}-z,text'
9387 allow_undefined_flag='${wl}-z,nodefs'
9388 archive_cmds_need_lc=no
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9391 hardcode_libdir_separator=':'
9392 link_all_deplibs=yes
9393 export_dynamic_flag_spec='${wl}-Bexport'
9394 runpath_var='LD_RUN_PATH'
9396 if test "$GCC" = yes; then
9397 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 hardcode_shlibpath_var=no
9417 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9418 echo "${ECHO_T}$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9422 # Do we need to explicitly link libc?
9424 case "x$archive_cmds_need_lc" in
9426 # Assume -lc should be added
9427 archive_cmds_need_lc=yes
9429 if test "$enable_shared" = yes && test "$GCC" = yes; then
9430 case $archive_cmds in
9432 # FIXME: we may have to deal with multi-command sequences.
9435 # Test whether the compiler implicitly links with -lc since on some
9436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9437 # to ld, don't add -lc before -lgcc.
9438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444 (eval $ac_compile) 2>&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } 2>conftest.err; then
9450 libobjs=conftest.$ac_objext
9452 wl=$lt_prog_compiler_wl
9453 pic_flag=$lt_prog_compiler_pic
9459 lt_save_allow_undefined_flag=$allow_undefined_flag
9460 allow_undefined_flag=
9461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9462 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }
9467 archive_cmds_need_lc=no
9469 archive_cmds_need_lc=yes
9471 allow_undefined_flag=$lt_save_allow_undefined_flag
9473 cat conftest.err 1>&5
9476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9477 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9487 libname_spec='lib$name'
9495 shlibpath_overrides_runpath=unknown
9497 dynamic_linker="$host_os ld.so"
9498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9500 if test "$GCC" = yes; then
9502 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9503 *) lt_awk_arg="/^libraries:/" ;;
9505 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9506 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9507 # if the path contains ";" then we assume it to be the separator
9508 # otherwise default to the standard path separator (i.e. ":") - it is
9509 # assumed that no part of a normal pathname contains ";" but that should
9510 # okay in the real world where ";" in dirpaths is itself problematic.
9511 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9513 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9515 # Ok, now we have the path, separated by spaces, we can step through it
9516 # and add multilib dir if necessary.
9517 lt_tmp_lt_search_path_spec=
9518 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9519 for lt_sys_path in $lt_search_path_spec; do
9520 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9523 test -d "$lt_sys_path" && \
9524 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9527 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9528 BEGIN {RS=" "; FS="/|\n";} {
9531 for (lt_i = NF; lt_i > 0; lt_i--) {
9532 if ($lt_i != "" && $lt_i != ".") {
9533 if ($lt_i == "..") {
9536 if (lt_count == 0) {
9537 lt_foo="/" $lt_i lt_foo;
9544 if (lt_foo != "") { lt_freq[lt_foo]++; }
9545 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9547 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9552 hardcode_into_libs=no
9554 # when you set need_version to no, make sure it does not cause -set_version
9555 # flags to be left without arguments
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9562 shlibpath_var=LIBPATH
9564 # AIX 3 has no versioning support, so we append a major version to the name.
9565 soname_spec='${libname}${release}${shared_ext}$major'
9572 hardcode_into_libs=yes
9573 if test "$host_cpu" = ia64; then
9574 # AIX 5 supports IA64
9575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9576 shlibpath_var=LD_LIBRARY_PATH
9578 # With GCC up to 2.95.x, collect2 would create an import file
9579 # for dependence libraries. The import file would start with
9580 # the line `#! .'. This would cause the generated library to
9581 # depend on `.', always an invalid library. This was fixed in
9582 # development snapshots of GCC prior to 3.0.
9584 aix4 | aix4.[01] | aix4.[01].*)
9585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9587 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9595 # soname into executable. Probably we can add versioning support to
9596 # collect2, so additional links can be useful in future.
9597 if test "$aix_use_runtimelinking" = yes; then
9598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9599 # instead of lib<name>.a to let people know that these are not
9600 # typical AIX shared libraries.
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 # We preserve .a as extension for shared libraries through AIX4.2
9604 # and later when we are not doing run time linking.
9605 library_names_spec='${libname}${release}.a $libname.a'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LIBPATH
9613 library_names_spec='$libname.ixlibrary $libname.a'
9614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9615 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'
9619 library_names_spec='${libname}${shared_ext}'
9620 dynamic_linker="$host_os ld.so"
9621 shlibpath_var=LIBRARY_PATH
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9633 # the default ld.so.conf also contains /usr/contrib/lib and
9634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9635 # libtool to hard-code these into programs
9638 cygwin* | mingw* | pw32*)
9639 version_type=windows
9644 case $GCC,$host_os in
9645 yes,cygwin* | yes,mingw* | yes,pw32*)
9646 library_names_spec='$libname.dll.a'
9647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9648 postinstall_cmds='base_file=`basename \${file}`~
9649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9650 dldir=$destdir/`dirname \$dlpath`~
9651 test -d \$dldir || mkdir -p \$dldir~
9652 $install_prog $dir/$dlname \$dldir/$dlname~
9653 chmod a+x \$dldir/$dlname'
9654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9655 dlpath=$dir/\$dldll~
9657 shlibpath_overrides_runpath=yes
9661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9663 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9666 # MinGW DLLs use traditional 'lib' prefix
9667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9669 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9670 # It is most probably a Windows format PATH printed by
9671 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9672 # path with ; separators, and with drive letters. We can handle the
9673 # drive letters (cygwin fileutils understands them), so leave them,
9674 # especially as we might pass files found there to a mingw objdump,
9675 # which wouldn't understand a cygwinified path. Ahh.
9676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9682 # pw32 DLLs use 'pw' prefix rather than 'lib'
9683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9692 dynamic_linker='Win32 ld.exe'
9693 # FIXME: first we should search . and the directory the executable is in
9697 darwin* | rhapsody*)
9698 dynamic_linker="$host_os dyld"
9702 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9703 soname_spec='${libname}${release}${major}$shared_ext'
9704 shlibpath_overrides_runpath=yes
9705 shlibpath_var=DYLD_LIBRARY_PATH
9706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9708 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LD_LIBRARY_PATH
9725 freebsd* | dragonfly*)
9726 # DragonFly does not have aout. When/if they implement a new
9727 # versioning mechanism, adjust this.
9728 if test -x /usr/bin/objformat; then
9729 objformat=`/usr/bin/objformat`
9732 freebsd[123]*) objformat=aout ;;
9736 version_type=freebsd-$objformat
9737 case $version_type in
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9748 shlibpath_var=LD_LIBRARY_PATH
9751 shlibpath_overrides_runpath=yes
9753 freebsd3.[01]* | freebsdelf3.[01]*)
9754 shlibpath_overrides_runpath=yes
9755 hardcode_into_libs=yes
9757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9759 shlibpath_overrides_runpath=no
9760 hardcode_into_libs=yes
9762 *) # from 4.6 on, and DragonFly
9763 shlibpath_overrides_runpath=yes
9764 hardcode_into_libs=yes
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 hardcode_into_libs=yes
9779 hpux9* | hpux10* | hpux11*)
9780 # Give a soname corresponding to the major version so that dld.sl refuses to
9781 # link against other versions.
9788 hardcode_into_libs=yes
9789 dynamic_linker="$host_os dld.so"
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9794 if test "X$HPUX_IA64_MODE" = X32; then
9795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9803 hardcode_into_libs=yes
9804 dynamic_linker="$host_os dld.sl"
9805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814 dynamic_linker="$host_os dld.sl"
9815 shlibpath_var=SHLIB_PATH
9816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9822 postinstall_cmds='chmod 555 $lib'
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=no
9834 hardcode_into_libs=yes
9837 irix5* | irix6* | nonstopux*)
9839 nonstopux*) version_type=nonstopux ;;
9841 if test "$lt_cv_prog_gnu_ld" = yes; then
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9852 irix5* | nonstopux*)
9856 case $LD in # libtool.m4 will add one of these switches to LD
9857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9858 libsuff= shlibsuff= libmagic=32-bit;;
9859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9860 libsuff=32 shlibsuff=N32 libmagic=N32;;
9861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9863 *) libsuff= shlibsuff= libmagic=never-match;;
9867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9868 shlibpath_overrides_runpath=no
9869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9871 hardcode_into_libs=yes
9874 # No shared lib support for Linux oldld, aout, or coff.
9875 linux*oldld* | linux*aout* | linux*coff*)
9879 # This must be Linux ELF.
9880 linux* | k*bsd*-gnu)
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=no
9889 # This implies no fast_install, which is unacceptable.
9890 # Some rework will be needed to allow for fast_install
9891 # before this can be enabled.
9892 hardcode_into_libs=yes
9894 # Append ld.so.conf contents to the search path
9895 if test -f /etc/ld.so.conf; then
9896 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' ' '`
9897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9900 # We used to test for /lib/ld.so.1 and disable shared libraries on
9901 # powerpc, because MkLinux only supported shared libraries with the
9902 # GNU dynamic linker. Since this was broken with cross compilers,
9903 # most powerpc-linux boxes support dynamic linking these days and
9904 # people can always --disable-shared, the test was removed, and we
9905 # assume the GNU/Linux dynamic linker is in use.
9906 dynamic_linker='GNU/Linux ld.so'
9913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9916 dynamic_linker='NetBSD (a.out) ld.so'
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 dynamic_linker='NetBSD ld.elf_so'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 shlibpath_overrides_runpath=yes
9924 hardcode_into_libs=yes
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 shlibpath_overrides_runpath=yes
9946 sys_lib_dlsearch_path_spec="/usr/lib"
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9954 openbsd2.[89] | openbsd2.[89].*)
9955 shlibpath_overrides_runpath=no
9958 shlibpath_overrides_runpath=yes
9962 shlibpath_overrides_runpath=yes
9967 libname_spec='$name'
9970 library_names_spec='$libname${shared_ext} $libname.a'
9971 dynamic_linker='OS/2 ld.exe'
9972 shlibpath_var=LIBPATH
9975 osf3* | osf4* | osf5*)
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes
9998 hardcode_into_libs=yes
9999 # ldd complains unless libraries are executable
10000 postinstall_cmds='chmod +x $lib'
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10009 if test "$with_gnu_ld" = yes; then
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 case $host_vendor in
10022 shlibpath_overrides_runpath=no
10024 export_dynamic_flag_spec='${wl}-Blargedynsym'
10025 runpath_var=LD_RUN_PATH
10033 shlibpath_overrides_runpath=no
10034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10040 if test -d /usr/nec ;then
10042 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10043 soname_spec='$libname${shared_ext}.$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10049 version_type=freebsd-elf
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 hardcode_into_libs=yes
10056 if test "$with_gnu_ld" = yes; then
10057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10058 shlibpath_overrides_runpath=no
10060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10061 shlibpath_overrides_runpath=yes
10064 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10068 sys_lib_dlsearch_path_spec='/usr/lib'
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10082 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10083 echo "${ECHO_T}$dynamic_linker" >&6; }
10084 test "$dynamic_linker" = no && can_build_shared=no
10086 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10099 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10102 if test "$GCC" = yes; then
10103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10109 if test -n "$hardcode_libdir_flag_spec" || \
10110 test -n "$runpath_var" || \
10111 test "X$hardcode_automatic" = "Xyes" ; then
10113 # We can hardcode non-existent directories.
10114 if test "$hardcode_direct" != no &&
10115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10116 # have to relink, otherwise we might link with an installed library
10117 # when we should be linking with a yet-to-be-installed one
10118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10119 test "$hardcode_minus_L" != no; then
10120 # Linking always hardcodes the temporary library directory.
10121 hardcode_action=relink
10123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10124 hardcode_action=immediate
10127 # We cannot hardcode anything, or else we can only hardcode existing
10129 hardcode_action=unsupported
10131 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10132 echo "${ECHO_T}$hardcode_action" >&6; }
10134 if test "$hardcode_action" = relink; then
10135 # Fast installation is not supported
10136 enable_fast_install=no
10137 elif test "$shlibpath_overrides_runpath" = yes ||
10138 test "$enable_shared" = no; then
10139 # Fast installation is not necessary
10140 enable_fast_install=needless
10145 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10150 { echo "$as_me:$LINENO: result: yes" >&5
10151 echo "${ECHO_T}yes" >&6; }
10153 # FIXME - insert some real tests, host_os isn't really good enough
10156 if test -n "$STRIP" ; then
10157 striplib="$STRIP -x"
10158 old_striplib="$STRIP -S"
10159 { echo "$as_me:$LINENO: result: yes" >&5
10160 echo "${ECHO_T}yes" >&6; }
10162 { echo "$as_me:$LINENO: result: no" >&5
10163 echo "${ECHO_T}no" >&6; }
10167 { echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6; }
10173 if test "x$enable_dlopen" != xyes; then
10174 enable_dlopen=unknown
10175 enable_dlopen_self=unknown
10176 enable_dlopen_self_static=unknown
10183 lt_cv_dlopen="load_add_on"
10185 lt_cv_dlopen_self=yes
10189 lt_cv_dlopen="LoadLibrary"
10194 lt_cv_dlopen="dlopen"
10199 # if libdl is installed we need to link against it
10200 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_check_lib_save_LIBS=$LIBS
10207 cat >conftest.$ac_ext <<_ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_c_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest$ac_exeext &&
10246 $as_test_x conftest$ac_exeext; then
10247 ac_cv_lib_dl_dlopen=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_cv_lib_dl_dlopen=no
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10259 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261 if test $ac_cv_lib_dl_dlopen = yes; then
10262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265 lt_cv_dlopen="dyld"
10267 lt_cv_dlopen_self=yes
10274 { echo "$as_me:$LINENO: checking for shl_load" >&5
10275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10276 if test "${ac_cv_func_shl_load+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287 #define shl_load innocuous_shl_load
10289 /* System header to define __stub macros and hopefully few prototypes,
10290 which can conflict with char shl_load (); below.
10291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292 <limits.h> exists even on freestanding compilers. */
10295 # include <limits.h>
10297 # include <assert.h>
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined __stub_shl_load || defined __stub___shl_load
10319 return shl_load ();
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest$ac_exeext &&
10341 $as_test_x conftest$ac_exeext; then
10342 ac_cv_func_shl_load=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_func_shl_load=no
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351 conftest$ac_exeext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10354 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10355 if test $ac_cv_func_shl_load = yes; then
10356 lt_cv_dlopen="shl_load"
10358 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10359 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 ac_check_lib_save_LIBS=$LIBS
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10382 return shl_load ();
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest$ac_exeext &&
10404 $as_test_x conftest$ac_exeext; then
10405 ac_cv_lib_dld_shl_load=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_cv_lib_dld_shl_load=no
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10419 if test $ac_cv_lib_dld_shl_load = yes; then
10420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10422 { echo "$as_me:$LINENO: checking for dlopen" >&5
10423 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10424 if test "${ac_cv_func_dlopen+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10435 #define dlopen innocuous_dlopen
10437 /* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char dlopen (); below.
10439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440 <limits.h> exists even on freestanding compilers. */
10443 # include <limits.h>
10445 # include <assert.h>
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined __stub_dlopen || defined __stub___dlopen
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_link") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest$ac_exeext &&
10489 $as_test_x conftest$ac_exeext; then
10490 ac_cv_func_dlopen=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_func_dlopen=no
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499 conftest$ac_exeext conftest.$ac_ext
10501 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10502 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10503 if test $ac_cv_func_dlopen = yes; then
10504 lt_cv_dlopen="dlopen"
10506 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 ac_check_lib_save_LIBS=$LIBS
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest$ac_exeext &&
10552 $as_test_x conftest$ac_exeext; then
10553 ac_cv_lib_dl_dlopen=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_cv_lib_dl_dlopen=no
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10567 if test $ac_cv_lib_dl_dlopen = yes; then
10568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10571 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lsvld $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext &&
10616 $as_test_x conftest$ac_exeext; then
10617 ac_cv_lib_svld_dlopen=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_svld_dlopen=no
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10631 if test $ac_cv_lib_svld_dlopen = yes; then
10632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10634 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10635 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_check_lib_save_LIBS=$LIBS
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10658 return dld_link ();
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_link") 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && {
10677 test -z "$ac_c_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest$ac_exeext &&
10680 $as_test_x conftest$ac_exeext; then
10681 ac_cv_lib_dld_dld_link=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_cv_lib_dld_dld_link=no
10689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10695 if test $ac_cv_lib_dld_dld_link = yes; then
10696 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10717 if test "x$lt_cv_dlopen" != xno; then
10723 case $lt_cv_dlopen in
10725 save_CPPFLAGS="$CPPFLAGS"
10726 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10728 save_LDFLAGS="$LDFLAGS"
10729 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10732 LIBS="$lt_cv_dlopen_libs $LIBS"
10734 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10735 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10736 if test "${lt_cv_dlopen_self+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 if test "$cross_compiling" = yes; then :
10740 lt_cv_dlopen_self=cross
10742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10743 lt_status=$lt_dlunknown
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10745 "configure"
10746 #include "confdefs.h"
10755 # define LT_DLGLOBAL RTLD_GLOBAL
10758 # define LT_DLGLOBAL DL_GLOBAL
10760 # define LT_DLGLOBAL 0
10764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10765 find out it does not work in some platform. */
10766 #ifndef LT_DLLAZY_OR_NOW
10768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10771 # define LT_DLLAZY_OR_NOW DL_LAZY
10774 # define LT_DLLAZY_OR_NOW RTLD_NOW
10777 # define LT_DLLAZY_OR_NOW DL_NOW
10779 # define LT_DLLAZY_OR_NOW 0
10787 extern "C" void exit (int);
10790 void fnord() { int i=42;}
10793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10794 int status = $lt_dlunknown;
10798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10799 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10800 /* dlclose (self); */
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10813 (./conftest; exit; ) >&5 2>/dev/null
10815 case x$lt_status in
10816 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10821 # compilation failed
10822 lt_cv_dlopen_self=no
10829 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10832 if test "x$lt_cv_dlopen_self" = xyes; then
10833 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10834 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10836 if test "${lt_cv_dlopen_self_static+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 if test "$cross_compiling" = yes; then :
10840 lt_cv_dlopen_self_static=cross
10842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843 lt_status=$lt_dlunknown
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10855 # define LT_DLGLOBAL RTLD_GLOBAL
10858 # define LT_DLGLOBAL DL_GLOBAL
10860 # define LT_DLGLOBAL 0
10864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865 find out it does not work in some platform. */
10866 #ifndef LT_DLLAZY_OR_NOW
10868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10871 # define LT_DLLAZY_OR_NOW DL_LAZY
10874 # define LT_DLLAZY_OR_NOW RTLD_NOW
10877 # define LT_DLLAZY_OR_NOW DL_NOW
10879 # define LT_DLLAZY_OR_NOW 0
10887 extern "C" void exit (int);
10890 void fnord() { int i=42;}
10893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10894 int status = $lt_dlunknown;
10898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900 /* dlclose (self); */
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10913 (./conftest; exit; ) >&5 2>/dev/null
10915 case x$lt_status in
10916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10918 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10921 # compilation failed
10922 lt_cv_dlopen_self_static=no
10929 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10933 CPPFLAGS="$save_CPPFLAGS"
10934 LDFLAGS="$save_LDFLAGS"
10939 case $lt_cv_dlopen_self in
10940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10941 *) enable_dlopen_self=unknown ;;
10944 case $lt_cv_dlopen_self_static in
10945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10946 *) enable_dlopen_self_static=unknown ;;
10951 # Report which library types will actually be built
10952 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10953 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10954 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10955 echo "${ECHO_T}$can_build_shared" >&6; }
10957 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10958 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10959 test "$can_build_shared" = "no" && enable_shared=no
10961 # On AIX, shared libraries and static libraries use the same namespace, and
10962 # are all built from PIC.
10965 test "$enable_shared" = yes && enable_static=no
10966 if test -n "$RANLIB"; then
10967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10968 postinstall_cmds='$RANLIB $lib'
10973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10974 test "$enable_shared" = yes && enable_static=no
10978 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10979 echo "${ECHO_T}$enable_shared" >&6; }
10981 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10982 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10983 # Make sure either enable_shared or enable_static is yes.
10984 test "$enable_shared" = yes || enable_static=yes
10985 { echo "$as_me:$LINENO: result: $enable_static" >&5
10986 echo "${ECHO_T}$enable_static" >&6; }
10988 # The else clause should only fire when bootstrapping the
10989 # libtool distribution, otherwise you forgot to ship ltmain.sh
10990 # with your package, and you will get complaints that there are
10991 # no rules to generate ltmain.sh.
10992 if test -f "$ltmain"; then
10993 # See if we are running on zsh, and set the options which allow our commands through
10994 # without removal of \ escapes.
10995 if test -n "${ZSH_VERSION+set}" ; then
10996 setopt NO_GLOB_SUBST
10998 # Now quote all the things that may contain metacharacters while being
10999 # careful not to overquote the AC_SUBSTed values. We take copies of the
11000 # variables and quote the copies for generation of the libtool script.
11001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11005 deplibs_check_method reload_flag reload_cmds need_locks \
11006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11007 lt_cv_sys_global_symbol_to_c_name_address \
11008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11009 old_postinstall_cmds old_postuninstall_cmds \
11013 lt_prog_compiler_wl \
11014 lt_prog_compiler_pic \
11015 lt_prog_compiler_static \
11016 lt_prog_compiler_no_builtin_flag \
11017 export_dynamic_flag_spec \
11018 thread_safe_flag_spec \
11019 whole_archive_flag_spec \
11020 enable_shared_with_static_runtimes \
11022 old_archive_from_new_cmds \
11027 compiler_lib_search_path \
11028 compiler_lib_search_dirs \
11030 archive_expsym_cmds \
11032 postuninstall_cmds \
11033 old_archive_from_expsyms_cmds \
11034 allow_undefined_flag \
11035 no_undefined_flag \
11036 export_symbols_cmds \
11037 hardcode_libdir_flag_spec \
11038 hardcode_libdir_flag_spec_ld \
11039 hardcode_libdir_separator \
11040 hardcode_automatic \
11042 module_expsym_cmds \
11043 lt_cv_prog_compiler_c_o \
11046 include_expsyms; do
11049 old_archive_cmds | \
11050 old_archive_from_new_cmds | \
11052 archive_expsym_cmds | \
11054 module_expsym_cmds | \
11055 old_archive_from_expsyms_cmds | \
11056 export_symbols_cmds | \
11057 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11058 postinstall_cmds | postuninstall_cmds | \
11059 old_postinstall_cmds | old_postuninstall_cmds | \
11060 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11061 # Double-quote double-evaled strings.
11062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11071 *'\$0 --fallback-echo"')
11072 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11076 cfgfile="${ofile}T"
11077 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11079 { echo "$as_me:$LINENO: creating $ofile" >&5
11080 echo "$as_me: creating $ofile" >&6;}
11082 cat <<__EOF__ >> "$cfgfile"
11085 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11086 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11087 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11089 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11090 # Free Software Foundation, Inc.
11092 # This file is part of GNU Libtool:
11093 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11095 # This program is free software; you can redistribute it and/or modify
11096 # it under the terms of the GNU General Public License as published by
11097 # the Free Software Foundation; either version 2 of the License, or
11098 # (at your option) any later version.
11100 # This program is distributed in the hope that it will be useful, but
11101 # WITHOUT ANY WARRANTY; without even the implied warranty of
11102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11103 # General Public License for more details.
11105 # You should have received a copy of the GNU General Public License
11106 # along with this program; if not, write to the Free Software
11107 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11109 # As a special exception to the GNU General Public License, if you
11110 # distribute this file as part of a program that contains a
11111 # configuration script generated by Autoconf, you may include it under
11112 # the same distribution terms that you use for the rest of that program.
11114 # A sed program that does not truncate output.
11117 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11118 Xsed="$SED -e 1s/^X//"
11120 # The HP-UX ksh and POSIX shell print the target directory to stdout
11121 # if CDPATH is set.
11122 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11124 # The names of the tagged configurations supported by this script.
11127 # ### BEGIN LIBTOOL CONFIG
11129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11131 # Shell to use when invoking shell scripts.
11134 # Whether or not to build shared libraries.
11135 build_libtool_libs=$enable_shared
11137 # Whether or not to build static libraries.
11138 build_old_libs=$enable_static
11140 # Whether or not to add -lc for building shared libraries.
11141 build_libtool_need_lc=$archive_cmds_need_lc
11143 # Whether or not to disallow shared libs when runtime libs are static
11144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11146 # Whether or not to optimize for fast installation.
11147 fast_install=$enable_fast_install
11150 host_alias=$host_alias
11154 # The build system.
11155 build_alias=$build_alias
11159 # An echo program that does not interpret backslashes.
11164 AR_FLAGS=$lt_AR_FLAGS
11169 # LTCC compiler flags.
11170 LTCFLAGS=$lt_LTCFLAGS
11172 # A language-specific compiler.
11175 # Is the compiler the GNU C compiler?
11181 # The linker used to build libraries.
11184 # Whether we need hard or soft links.
11187 # A BSD-compatible nm program.
11190 # A symbol stripping program
11193 # Used to examine libraries when file_magic_cmd begins "file"
11194 MAGIC_CMD=$MAGIC_CMD
11196 # Used on cygwin: DLL creation program.
11199 # Used on cygwin: object dumper.
11202 # Used on cygwin: assembler.
11205 # The name of the directory that contains temporary libtool files.
11208 # How to create reloadable object files.
11209 reload_flag=$lt_reload_flag
11210 reload_cmds=$lt_reload_cmds
11212 # How to pass a linker flag through the compiler.
11213 wl=$lt_lt_prog_compiler_wl
11215 # Object file suffix (normally "o").
11216 objext="$ac_objext"
11218 # Old archive suffix (normally "a").
11221 # Shared library suffix (normally ".so").
11222 shrext_cmds='$shrext_cmds'
11224 # Executable file suffix (normally "").
11227 # Additional compiler flags for building library objects.
11228 pic_flag=$lt_lt_prog_compiler_pic
11231 # What is the maximum length of a command?
11232 max_cmd_len=$lt_cv_sys_max_cmd_len
11234 # Does compiler simultaneously support -c and -o options?
11235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11237 # Must we lock files when doing compilation?
11238 need_locks=$lt_need_locks
11240 # Do we need the lib prefix for modules?
11241 need_lib_prefix=$need_lib_prefix
11243 # Do we need a version for libraries?
11244 need_version=$need_version
11246 # Whether dlopen is supported.
11247 dlopen_support=$enable_dlopen
11249 # Whether dlopen of programs is supported.
11250 dlopen_self=$enable_dlopen_self
11252 # Whether dlopen of statically linked programs is supported.
11253 dlopen_self_static=$enable_dlopen_self_static
11255 # Compiler flag to prevent dynamic linking.
11256 link_static_flag=$lt_lt_prog_compiler_static
11258 # Compiler flag to turn off builtin functions.
11259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11261 # Compiler flag to allow reflexive dlopens.
11262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11264 # Compiler flag to generate shared objects directly from archives.
11265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11267 # Compiler flag to generate thread-safe objects.
11268 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11270 # Library versioning type.
11271 version_type=$version_type
11273 # Format of library name prefix.
11274 libname_spec=$lt_libname_spec
11276 # List of archive names. First name is the real one, the rest are links.
11277 # The last name is the one that the linker finds with -lNAME.
11278 library_names_spec=$lt_library_names_spec
11280 # The coded name of the library, if different from the real name.
11281 soname_spec=$lt_soname_spec
11283 # Commands used to build and install an old-style archive.
11285 old_archive_cmds=$lt_old_archive_cmds
11286 old_postinstall_cmds=$lt_old_postinstall_cmds
11287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11289 # Create an old-style archive from a shared archive.
11290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11292 # Create a temporary old-style archive to link instead of a shared archive.
11293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11295 # Commands used to build and install a shared archive.
11296 archive_cmds=$lt_archive_cmds
11297 archive_expsym_cmds=$lt_archive_expsym_cmds
11298 postinstall_cmds=$lt_postinstall_cmds
11299 postuninstall_cmds=$lt_postuninstall_cmds
11301 # Commands used to build a loadable module (assumed same as above if empty)
11302 module_cmds=$lt_module_cmds
11303 module_expsym_cmds=$lt_module_expsym_cmds
11305 # Commands to strip libraries.
11306 old_striplib=$lt_old_striplib
11307 striplib=$lt_striplib
11309 # Dependencies to place before the objects being linked to create a
11311 predep_objects=$lt_predep_objects
11313 # Dependencies to place after the objects being linked to create a
11315 postdep_objects=$lt_postdep_objects
11317 # Dependencies to place before the objects being linked to create a
11319 predeps=$lt_predeps
11321 # Dependencies to place after the objects being linked to create a
11323 postdeps=$lt_postdeps
11325 # The directories searched by this compiler when creating a shared
11327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11329 # The library search path used internally by the compiler when linking
11330 # a shared library.
11331 compiler_lib_search_path=$lt_compiler_lib_search_path
11333 # Method to check whether dependent libraries are shared objects.
11334 deplibs_check_method=$lt_deplibs_check_method
11336 # Command to use when deplibs_check_method == file_magic.
11337 file_magic_cmd=$lt_file_magic_cmd
11339 # Flag that allows shared libraries with undefined symbols to be built.
11340 allow_undefined_flag=$lt_allow_undefined_flag
11342 # Flag that forces no undefined symbols.
11343 no_undefined_flag=$lt_no_undefined_flag
11345 # Commands used to finish a libtool library installation in a directory.
11346 finish_cmds=$lt_finish_cmds
11348 # Same as above, but a single script fragment to be evaled but not shown.
11349 finish_eval=$lt_finish_eval
11351 # Take the output of nm and produce a listing of raw symbols and C names.
11352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11354 # Transform the output of nm in a proper C declaration
11355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11357 # Transform the output of nm in a C name address pair
11358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11360 # This is the shared library runtime path variable.
11361 runpath_var=$runpath_var
11363 # This is the shared library path variable.
11364 shlibpath_var=$shlibpath_var
11366 # Is shlibpath searched before the hard-coded library search path?
11367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11369 # How to hardcode a shared library path into an executable.
11370 hardcode_action=$hardcode_action
11372 # Whether we should hardcode library paths into libraries.
11373 hardcode_into_libs=$hardcode_into_libs
11375 # Flag to hardcode \$libdir into a binary during linking.
11376 # This must work even if \$libdir does not exist.
11377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11379 # If ld is used when linking, flag to hardcode \$libdir into
11380 # a binary during linking. This must work even if \$libdir does
11382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11384 # Whether we need a single -rpath flag with a separated argument.
11385 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11388 # resulting binary.
11389 hardcode_direct=$hardcode_direct
11391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11392 # resulting binary.
11393 hardcode_minus_L=$hardcode_minus_L
11395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11396 # the resulting binary.
11397 hardcode_shlibpath_var=$hardcode_shlibpath_var
11399 # Set to yes if building a shared library automatically hardcodes DIR into the library
11400 # and all subsequent libraries and executables linked against it.
11401 hardcode_automatic=$hardcode_automatic
11403 # Variables whose values should be saved in libtool wrapper scripts and
11404 # restored at relink time.
11405 variables_saved_for_relink="$variables_saved_for_relink"
11407 # Whether libtool must link a program against all its dependency libraries.
11408 link_all_deplibs=$link_all_deplibs
11410 # Compile-time system search path for libraries
11411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11413 # Run-time system search path for libraries
11414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11416 # Fix the shell variable \$srcfile for the compiler.
11417 fix_srcfile_path=$lt_fix_srcfile_path
11419 # Set to yes if exported symbols are required.
11420 always_export_symbols=$always_export_symbols
11422 # The commands to list exported symbols.
11423 export_symbols_cmds=$lt_export_symbols_cmds
11425 # The commands to extract the exported symbol list from a shared archive.
11426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11428 # Symbols that should not be listed in the preloaded symbols.
11429 exclude_expsyms=$lt_exclude_expsyms
11431 # Symbols that must always be exported.
11432 include_expsyms=$lt_include_expsyms
11434 # ### END LIBTOOL CONFIG
11441 cat <<\EOF >> "$cfgfile"
11443 # AIX sometimes has problems with the GCC collect2 program. For some
11444 # reason, if we set the COLLECT_NAMES environment variable, the problems
11445 # vanish in a puff of smoke.
11446 if test "X${COLLECT_NAMES+set}" != Xset; then
11448 export COLLECT_NAMES
11454 # We use sed instead of cat because bash on DJGPP gets confused if
11455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11456 # text mode, it properly converts lines to CR/LF. This bash problem
11457 # is reportedly fixed, but why not run on old versions too?
11458 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11460 mv -f "$cfgfile" "$ofile" || \
11461 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11465 # If there is no Makefile yet, we rely on a make rule to execute
11466 # `config.status --recheck' to rerun these tests and create the
11467 # libtool script then.
11468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11469 if test -f "$ltmain_in"; then
11470 test -f Makefile && make "$ltmain"
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485 # This can be used to rebuild libtool when needed
11486 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11488 # Always use our own libtool.
11489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11491 # Prevent multiple expansion
11502 if test "$enable_shared" = "no"; then
11505 eval _shrext="$shrext_cmds"
11507 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11508 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11510 # Check whether --with-noexec was given.
11511 if test "${with_noexec+set}" = set; then
11512 withval=$with_noexec; case $with_noexec in
11513 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11519 with_noexec="$libexecdir/sudo_noexec$_shrext"
11522 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11523 echo "${ECHO_T}$with_noexec" >&6; }
11524 NOEXECFILE="sudo_noexec$_shrext"
11525 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11527 if test "$with_devel" = "yes" -a -n "$GCC"; then
11528 CFLAGS="${CFLAGS} -Wall"
11531 # Extract the first word of "uname", so it can be a program name with args.
11532 set dummy uname; ac_word=$2
11533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11535 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 if test -n "$UNAMEPROG"; then
11539 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548 ac_cv_prog_UNAMEPROG="uname"
11549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11559 if test -n "$UNAMEPROG"; then
11560 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11561 echo "${ECHO_T}$UNAMEPROG" >&6; }
11563 { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
11568 # Extract the first word of "tr", so it can be a program name with args.
11569 set dummy tr; ac_word=$2
11570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11572 if test "${ac_cv_prog_TRPROG+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 if test -n "$TRPROG"; then
11576 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585 ac_cv_prog_TRPROG="tr"
11586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 TRPROG=$ac_cv_prog_TRPROG
11596 if test -n "$TRPROG"; then
11597 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11598 echo "${ECHO_T}$TRPROG" >&6; }
11600 { echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6; }
11605 # Extract the first word of "nroff", so it can be a program name with args.
11606 set dummy nroff; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 if test -n "$NROFFPROG"; then
11613 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622 ac_cv_prog_NROFFPROG="nroff"
11623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 NROFFPROG=$ac_cv_prog_NROFFPROG
11633 if test -n "$NROFFPROG"; then
11634 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11635 echo "${ECHO_T}$NROFFPROG" >&6; }
11637 { echo "$as_me:$LINENO: result: no" >&5
11638 echo "${ECHO_T}no" >&6; }
11642 if test -z "$NROFFPROG"; then
11644 mansrcdir='$(srcdir)'
11647 if test -n "$sudo_cv_prev_host"; then
11648 if test "$sudo_cv_prev_host" != "$host"; then
11649 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11650 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11651 { (exit 1); exit 1; }; }
11653 { echo "$as_me:$LINENO: checking previous host type" >&5
11654 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11655 if test "${sudo_cv_prev_host+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 sudo_cv_prev_host="$host"
11661 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11662 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11665 # this will produce no output since there is no cached value
11666 if test "${sudo_cv_prev_host+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 sudo_cv_prev_host="$host"
11674 if test -n "$host_os"; then
11675 OS=`echo $host_os | sed 's/[0-9].*//'`
11676 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11677 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11686 # getcwd(3) opens a pipe to getpwd(1)!?!
11689 # system headers lack prototypes but gcc helps...
11690 if test -n "$GCC"; then
11691 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11694 shadow_funcs="getpwanam issecure"
11697 # To get the crypt(3) prototype (so we pass -Wall)
11698 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11699 # AFS support needs -lucb
11700 if test "$with_AFS" = "yes"; then
11701 AFS_LIBS="-lc -lucb"
11703 : ${mansectsu='1m'}
11704 : ${mansectform='4'}
11705 : ${with_rpath='yes'}
11706 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11709 # To get all prototypes (so we pass -Wall)
11710 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11711 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11712 if test X"$with_blibpath" != X"no"; then
11713 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11714 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11715 O_LDFLAGS="$LDFLAGS"
11716 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext &&
11749 $as_test_x conftest$ac_exeext; then
11751 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11752 blibpath="$with_blibpath"
11753 elif test -n "$GCC"; then
11754 blibpath="/usr/lib:/lib:/usr/local/lib"
11756 blibpath="/usr/lib:/lib"
11758 { echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6; }
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 { echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6; }
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770 conftest$ac_exeext conftest.$ac_ext
11772 LDFLAGS="$O_LDFLAGS"
11774 # Use authenticate(3) as the default authentication method
11775 if test X"$with_aixauth" = X""; then
11777 for ac_func in authenticate
11779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11793 #define $ac_func innocuous_$ac_func
11795 /* System header to define __stub macros and hopefully few prototypes,
11796 which can conflict with char $ac_func (); below.
11797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 <limits.h> exists even on freestanding compilers. */
11801 # include <limits.h>
11803 # include <assert.h>
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. */
11815 /* The GNU C library defines this for functions which it implements
11816 to always fail with ENOSYS. Some functions are actually named
11817 something starting with __ and the normal name is an alias. */
11818 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 return $ac_func ();
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (ac_try="$ac_link"
11832 case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_link") 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest$ac_exeext &&
11847 $as_test_x conftest$ac_exeext; then
11848 eval "$as_ac_var=yes"
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 eval "$as_ac_var=no"
11856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11857 conftest$ac_exeext conftest.$ac_ext
11859 ac_res=`eval echo '${'$as_ac_var'}'`
11860 { echo "$as_me:$LINENO: result: $ac_res" >&5
11861 echo "${ECHO_T}$ac_res" >&6; }
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 AUTH_EXCL_DEF="AIX_AUTH"
11873 : ${mansectsu='1m'}
11874 : ${mansectform='4'}
11877 # AFS support needs -lBSD
11878 if test "$with_AFS" = "yes"; then
11879 AFS_LIBS="-lc -lBSD"
11881 : ${mansectsu='1m'}
11882 : ${mansectform='4'}
11886 cat >>confdefs.h <<\_ACEOF
11887 #define BROKEN_SYSLOG 1
11891 # Not sure if setuid binaries are safe in < 9.x
11892 if test -n "$GCC"; then
11893 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11895 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11899 cat >>confdefs.h <<\_ACEOF
11900 #define BROKEN_SYSLOG 1
11904 shadow_funcs="getspwuid"
11906 # DCE support (requires ANSI C compiler)
11907 if test "$with_DCE" = "yes"; then
11908 # order of libs in 9.X is important. -lc_r must be last
11909 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11910 LIBS="${LIBS} -ldce -lM -lc_r"
11911 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11915 shadow_funcs="getprpwnam iscomsec"
11916 shadow_libs="-lsec"
11919 shadow_funcs="getspnam iscomsec"
11920 shadow_libs="-lsec"
11921 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11926 # ignore envariables wrt dynamic lib path
11927 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11929 : ${CHECKSIA='true'}
11930 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11931 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11932 # Check whether --enable-sia was given.
11933 if test "${enable_sia+set}" = set; then
11934 enableval=$enable_sia; case "$enableval" in
11935 yes) { echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6; }
11939 no) { echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6; }
11943 *) { echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6; }
11945 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11946 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11951 { echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6; }
11956 shadow_funcs="getprpwnam dispcrypt"
11957 # OSF/1 4.x and higher need -ldb too
11958 if test $OSMAJOR -lt 4; then
11959 shadow_libs="-lsecurity -laud -lm"
11961 shadow_libs="-lsecurity -ldb -laud -lm"
11964 # use SIA by default, if we have it
11965 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11968 # Some versions of Digital Unix ship with a broken
11969 # copy of prot.h, which we need for shadow passwords.
11970 # XXX - make should remove this as part of distclean
11972 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11973 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11981 #include <sys/types.h>
11982 #include <sys/security.h>
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_compile") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && {
12007 test -z "$ac_c_werror_flag" ||
12008 test ! -s conftest.err
12009 } && test -s conftest.$ac_objext; then
12010 { echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6; }
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12017 echo "${ECHO_T}yes, fixing locally" >&6; }
12018 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 : ${mansectform='4'}
12027 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12028 if test -z "$NROFFPROG"; then
12029 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)'
12030 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12031 if test -d /usr/share/catman/local; then
12032 mandir="/usr/share/catman/local"
12034 mandir="/usr/catman/local"
12038 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12039 if test -d "/usr/share/man/local"; then
12040 mandir="/usr/share/man/local"
12042 mandir="/usr/man/local"
12046 # IRIX <= 4 needs -lsun
12047 if test "$OSMAJOR" -le 4; then
12048 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12049 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12050 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 ac_check_lib_save_LIBS=$LIBS
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12072 return getpwnam ();
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } && {
12091 test -z "$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 } && test -s conftest$ac_exeext &&
12094 $as_test_x conftest$ac_exeext; then
12095 ac_cv_lib_sun_getpwnam=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_lib_sun_getpwnam=no
12103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12107 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12108 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12109 if test $ac_cv_lib_sun_getpwnam = yes; then
12110 LIBS="${LIBS} -lsun"
12114 : ${mansectsu='1m'}
12115 : ${mansectform='4'}
12117 *-*-linux*|*-*-k*bsd*-gnu)
12118 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12119 # Some Linux versions need to link with -lshadow
12120 shadow_funcs="getspnam"
12121 shadow_libs_optional="-lshadow"
12122 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12125 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12126 if test -z "$GCC"; then
12127 CFLAGS="${CFLAGS} -D__STDC__"
12130 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12131 shadow_funcs="getprpwnam"
12132 shadow_libs="-lprot"
12136 shadow_funcs="getauthuid"
12137 shadow_libs="-lauth"
12140 LIBS="${LIBS} -lsun -lbsd"
12141 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12142 OSDEFS="${OSDEFS} -D_MIPS"
12143 : ${mansectsu='1m'}
12144 : ${mansectform='4'}
12147 OSDEFS="${OSDEFS} -D_ISC"
12149 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12150 LIBS="${LIBS} -lcrypt"
12152 shadow_funcs="getspnam"
12153 shadow_libs="-lsec"
12155 : ${mansectsu='1m'}
12156 : ${mansectform='4'}
12159 shadow_funcs="getprpwnam"
12160 shadow_libs="-lprot -lx"
12161 : ${mansectsu='1m'}
12162 : ${mansectform='4'}
12164 m88k-motorola-sysv*)
12165 # motorolla's cc (a variant of gcc) does -O but not -O2
12166 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12167 : ${mansectsu='1m'}
12168 : ${mansectform='4'}
12171 shadow_funcs="getspnam"
12172 shadow_libs="-lsec"
12173 : ${mansectsu='1m'}
12174 : ${mansectform='4'}
12175 : ${with_rpath='yes'}
12177 *-ncr-sysv4*|*-ncr-sysvr4*)
12178 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12179 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12180 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 ac_check_lib_save_LIBS=$LIBS
12185 cat >conftest.$ac_ext <<_ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12198 char strcasecmp ();
12202 return strcasecmp ();
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_link") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest$ac_exeext &&
12224 $as_test_x conftest$ac_exeext; then
12225 ac_cv_lib_c89_strcasecmp=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_c89_strcasecmp=no
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12237 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12238 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12239 if test $ac_cv_lib_c89_strcasecmp = yes; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_STRCASECMP 1
12243 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12246 : ${mansectsu='1m'}
12247 : ${mansectform='4'}
12248 : ${with_rpath='yes'}
12250 *-ccur-sysv4*|*-ccur-sysvr4*)
12251 LIBS="${LIBS} -lgen"
12252 SUDO_LIBS="${SUDO_LIBS} -lgen"
12253 : ${mansectsu='1m'}
12254 : ${mansectform='4'}
12255 : ${with_rpath='yes'}
12259 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12260 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12262 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12263 echo "$as_me: using shlicc as CC" >&6;}
12264 ac_cv_prog_CC=shlicc
12265 CC="$ac_cv_prog_CC"
12269 # Check for newer BSD auth API (just check for >= 3.0?)
12270 if test -z "$with_bsdauth"; then
12272 for ac_func in auth_challenge
12274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288 #define $ac_func innocuous_$ac_func
12290 /* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12296 # include <limits.h>
12298 # include <assert.h>
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12310 /* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined __stub_$ac_func || defined __stub___$ac_func
12320 return $ac_func ();
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest$ac_exeext &&
12342 $as_test_x conftest$ac_exeext; then
12343 eval "$as_ac_var=yes"
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 eval "$as_ac_var=no"
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352 conftest$ac_exeext conftest.$ac_ext
12354 ac_res=`eval echo '${'$as_ac_var'}'`
12355 { echo "$as_me:$LINENO: result: $ac_res" >&5
12356 echo "${ECHO_T}$ac_res" >&6; }
12357 if test `eval echo '${'$as_ac_var'}'` = yes; then
12358 cat >>confdefs.h <<_ACEOF
12359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12361 AUTH_EXCL_DEF="BSD_AUTH"
12368 # FreeBSD has a real setreuid(2) starting with 2.1 and
12369 # backported to 2.0.5. We just take 2.1 and above...
12375 if test "$with_skey" = "yes"; then
12376 SUDO_LIBS="${SUDO_LIBS} -lmd"
12378 CHECKSHADOW="false"
12379 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12380 : ${with_logincap='maybe'}
12383 # OpenBSD has a real setreuid(2) starting with 3.3 but
12384 # we will use setreuid(2) instead.
12386 CHECKSHADOW="false"
12387 # OpenBSD >= 3.0 supports BSD auth
12388 if test -z "$with_bsdauth"; then
12393 AUTH_EXCL_DEF="BSD_AUTH"
12397 : ${with_logincap='maybe'}
12400 # NetBSD has a real setreuid(2) starting with 1.3.2
12402 0.9*|1.012*|1.3|1.3.1)
12406 CHECKSHADOW="false"
12407 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12408 : ${with_logincap='maybe'}
12411 if test "$with_skey" = "yes"; then
12412 SUDO_LIBS="${SUDO_LIBS} -lmd"
12414 CHECKSHADOW="false"
12415 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12416 : ${with_logincap='yes'}
12419 CHECKSHADOW="false"
12423 CHECKSHADOW="false"
12424 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12425 : ${with_logincap='yes'}
12428 # lockf() on is broken on the NeXT -- use flock instead
12429 ac_cv_func_lockf=no
12430 ac_cv_func_flock=yes
12433 : ${mansectsu='1m'}
12434 : ${mansectform='4'}
12435 : ${with_rpath='yes'}
12438 : ${mansectsu='1m'}
12439 : ${mansectform='4'}
12442 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12446 AUTH_REG=${AUTH_REG# }
12447 AUTH_EXCL=${AUTH_EXCL# }
12448 if test -n "$AUTH_EXCL"; then
12450 if test $# != 1; then
12451 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12452 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12453 { (exit 1); exit 1; }; }
12455 if test -n "$AUTH_REG"; then
12456 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12457 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12458 { (exit 1); exit 1; }; }
12461 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12462 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12463 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12464 { (exit 1); exit 1; }; }
12468 : ${mansectform='5'}
12470 if test -n "$with_libpath"; then
12471 for i in ${with_libpath}; do
12473 if test X"$with_rpath" = X"yes"; then
12474 LDFLAGS="${LDFLAGS} -L$i -R$i"
12476 LDFLAGS="${LDFLAGS} -L$i"
12478 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12479 blibpath_add="${blibpath_add}:$i"
12484 if test -n "$with_libraries"; then
12485 for i in ${with_libraries}; do
12492 LIBS="${LIBS} ${i}"
12496 if test $ac_cv_c_compiler_gnu = yes; then
12497 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12498 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12499 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 ac_pattern="Autoconf.*'x'"
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12514 ac_cv_prog_gcc_traditional=yes
12516 ac_cv_prog_gcc_traditional=no
12521 if test $ac_cv_prog_gcc_traditional = no; then
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #include <termio.h>
12531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12532 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12533 ac_cv_prog_gcc_traditional=yes
12539 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12540 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12541 if test $ac_cv_prog_gcc_traditional = yes; then
12542 CC="$CC -traditional"
12546 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12548 if test "${ac_cv_c_const+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12561 /* FIXME: Include the comments suggested by Paul. */
12562 #ifndef __cplusplus
12563 /* Ultrix mips cc rejects this. */
12564 typedef int charset[2];
12566 /* SunOS 4.1.1 cc rejects this. */
12567 char const *const *pcpcc;
12569 /* NEC SVR4.0.2 mips cc rejects this. */
12570 struct point {int x, y;};
12571 static struct point const zero = {0,0};
12572 /* AIX XL C 1.02.0.0 rejects this.
12573 It does not let you subtract one const X* pointer from another in
12574 an arm of an if-expression whose if-part is not a constant
12576 const char *g = "string";
12577 pcpcc = &g + (g ? g-g : 0);
12578 /* HPUX 7.0 cc rejects these. */
12580 ppc = (char**) pcpcc;
12581 pcpcc = (char const *const *) ppc;
12582 { /* SCO 3.2v4 cc rejects this. */
12584 char const *s = 0 ? (char *) 0 : (char const *) 0;
12589 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12590 int x[] = {25, 17};
12591 const int *foo = &x[0];
12594 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12595 typedef const int *iptr;
12599 { /* AIX XL C 1.02.0.0 rejects this saying
12600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12601 struct s { int j; const int *ap[3]; };
12602 struct s *b; b->j = 5;
12604 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12605 const int foo = 10;
12606 if (!foo) return 0;
12608 return !cs[0] && !zero.x;
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_compile") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest.$ac_objext; then
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12643 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12644 if test $ac_cv_c_const = no; then
12646 cat >>confdefs.h <<\_ACEOF
12652 { echo "$as_me:$LINENO: checking for working volatile" >&5
12653 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12654 if test "${ac_cv_c_volatile+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12669 int * volatile y = (int *) 0;
12675 rm -f conftest.$ac_objext
12676 if { (ac_try="$ac_compile"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_compile") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && {
12689 test -z "$ac_c_werror_flag" ||
12690 test ! -s conftest.err
12691 } && test -s conftest.$ac_objext; then
12692 ac_cv_c_volatile=yes
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_c_volatile=no
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12703 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12704 if test $ac_cv_c_volatile = no; then
12706 cat >>confdefs.h <<\_ACEOF
12712 for ac_prog in 'bison -y' byacc
12714 # Extract the first word of "$ac_prog", so it can be a program name with args.
12715 set dummy $ac_prog; ac_word=$2
12716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12718 if test "${ac_cv_prog_YACC+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 if test -n "$YACC"; then
12722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12731 ac_cv_prog_YACC="$ac_prog"
12732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 YACC=$ac_cv_prog_YACC
12742 if test -n "$YACC"; then
12743 { echo "$as_me:$LINENO: result: $YACC" >&5
12744 echo "${ECHO_T}$YACC" >&6; }
12746 { echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6; }
12751 test -n "$YACC" && break
12753 test -n "$YACC" || YACC="yacc"
12755 { echo "$as_me:$LINENO: checking for mv" >&5
12756 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12757 if test -f "/usr/bin/mv"; then
12758 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12759 echo "${ECHO_T}/usr/bin/mv" >&6; }
12760 cat >>confdefs.h <<\EOF
12761 #define _PATH_MV "/usr/bin/mv"
12764 elif test -f "/bin/mv"; then
12765 { echo "$as_me:$LINENO: result: /bin/mv" >&5
12766 echo "${ECHO_T}/bin/mv" >&6; }
12767 cat >>confdefs.h <<\EOF
12768 #define _PATH_MV "/bin/mv"
12771 elif test -f "/usr/ucb/mv"; then
12772 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12773 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12774 cat >>confdefs.h <<\EOF
12775 #define _PATH_MV "/usr/ucb/mv"
12778 elif test -f "/usr/sbin/mv"; then
12779 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12780 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12781 cat >>confdefs.h <<\EOF
12782 #define _PATH_MV "/usr/sbin/mv"
12786 { echo "$as_me:$LINENO: result: not found" >&5
12787 echo "${ECHO_T}not found" >&6; }
12790 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12791 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12792 if test -f "/bin/sh"; then
12793 { echo "$as_me:$LINENO: result: /bin/sh" >&5
12794 echo "${ECHO_T}/bin/sh" >&6; }
12795 cat >>confdefs.h <<\EOF
12796 #define _PATH_BSHELL "/bin/sh"
12799 elif test -f "/usr/bin/sh"; then
12800 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12801 echo "${ECHO_T}/usr/bin/sh" >&6; }
12802 cat >>confdefs.h <<\EOF
12803 #define _PATH_BSHELL "/usr/bin/sh"
12806 elif test -f "/sbin/sh"; then
12807 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12808 echo "${ECHO_T}/sbin/sh" >&6; }
12809 cat >>confdefs.h <<\EOF
12810 #define _PATH_BSHELL "/sbin/sh"
12813 elif test -f "/usr/sbin/sh"; then
12814 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12815 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12816 cat >>confdefs.h <<\EOF
12817 #define _PATH_BSHELL "/usr/sbin/sh"
12820 elif test -f "/bin/ksh"; then
12821 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12822 echo "${ECHO_T}/bin/ksh" >&6; }
12823 cat >>confdefs.h <<\EOF
12824 #define _PATH_BSHELL "/bin/ksh"
12827 elif test -f "/usr/bin/ksh"; then
12828 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12829 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12830 cat >>confdefs.h <<\EOF
12831 #define _PATH_BSHELL "/usr/bin/ksh"
12834 elif test -f "/bin/bash"; then
12835 { echo "$as_me:$LINENO: result: /bin/bash" >&5
12836 echo "${ECHO_T}/bin/bash" >&6; }
12837 cat >>confdefs.h <<\EOF
12838 #define _PATH_BSHELL "/bin/bash"
12841 elif test -f "/usr/bin/bash"; then
12842 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12843 echo "${ECHO_T}/usr/bin/bash" >&6; }
12844 cat >>confdefs.h <<\EOF
12845 #define _PATH_BSHELL "/usr/bin/bash"
12849 { echo "$as_me:$LINENO: result: not found" >&5
12850 echo "${ECHO_T}not found" >&6; }
12853 if test -z "$with_sendmail"; then
12854 { echo "$as_me:$LINENO: checking for sendmail" >&5
12855 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12856 if test -f "/usr/sbin/sendmail"; then
12857 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12858 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12859 cat >>confdefs.h <<\EOF
12860 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12863 elif test -f "/usr/lib/sendmail"; then
12864 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12865 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12866 cat >>confdefs.h <<\EOF
12867 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12870 elif test -f "/usr/etc/sendmail"; then
12871 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12872 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12873 cat >>confdefs.h <<\EOF
12874 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12877 elif test -f "/usr/ucblib/sendmail"; then
12878 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12879 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12880 cat >>confdefs.h <<\EOF
12881 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12884 elif test -f "/usr/local/lib/sendmail"; then
12885 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12886 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12887 cat >>confdefs.h <<\EOF
12888 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12891 elif test -f "/usr/local/bin/sendmail"; then
12892 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12893 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12894 cat >>confdefs.h <<\EOF
12895 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12899 { echo "$as_me:$LINENO: result: not found" >&5
12900 echo "${ECHO_T}not found" >&6; }
12904 if test -z "$with_editor"; then
12905 { echo "$as_me:$LINENO: checking for vi" >&5
12906 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12907 if test -f "/usr/bin/vi"; then
12908 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12909 echo "${ECHO_T}/usr/bin/vi" >&6; }
12910 cat >>confdefs.h <<\EOF
12911 #define _PATH_VI "/usr/bin/vi"
12914 elif test -f "/usr/ucb/vi"; then
12915 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12916 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12917 cat >>confdefs.h <<\EOF
12918 #define _PATH_VI "/usr/ucb/vi"
12921 elif test -f "/usr/bsd/vi"; then
12922 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12923 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12924 cat >>confdefs.h <<\EOF
12925 #define _PATH_VI "/usr/bsd/vi"
12928 elif test -f "/bin/vi"; then
12929 { echo "$as_me:$LINENO: result: /bin/vi" >&5
12930 echo "${ECHO_T}/bin/vi" >&6; }
12931 cat >>confdefs.h <<\EOF
12932 #define _PATH_VI "/bin/vi"
12935 elif test -f "/usr/local/bin/vi"; then
12936 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12937 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12938 cat >>confdefs.h <<\EOF
12939 #define _PATH_VI "/usr/local/bin/vi"
12943 { echo "$as_me:$LINENO: result: not found" >&5
12944 echo "${ECHO_T}not found" >&6; }
12948 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12949 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12950 if test "${ac_cv_header_stdc+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include <stdlib.h>
12960 #include <stdarg.h>
12961 #include <string.h>
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_cv_header_stdc=yes
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 ac_cv_header_stdc=no
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 if test $ac_cv_header_stdc = yes; then
13000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <string.h>
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011 $EGREP "memchr" >/dev/null 2>&1; then
13014 ac_cv_header_stdc=no
13020 if test $ac_cv_header_stdc = yes; then
13021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 #include <stdlib.h>
13031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13032 $EGREP "free" >/dev/null 2>&1; then
13035 ac_cv_header_stdc=no
13041 if test $ac_cv_header_stdc = yes; then
13042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13043 if test "$cross_compiling" = yes; then
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13053 #include <stdlib.h>
13054 #if ((' ' & 0x0FF) == 0x020)
13055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13058 # define ISLOWER(c) \
13059 (('a' <= (c) && (c) <= 'i') \
13060 || ('j' <= (c) && (c) <= 'r') \
13061 || ('s' <= (c) && (c) <= 'z'))
13062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13070 for (i = 0; i < 256; i++)
13071 if (XOR (islower (i), ISLOWER (i))
13072 || toupper (i) != TOUPPER (i))
13077 rm -f conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_link") 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13099 echo "$as_me: program exited with status $ac_status" >&5
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 ( exit $ac_status )
13104 ac_cv_header_stdc=no
13106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13113 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13114 if test $ac_cv_header_stdc = yes; then
13116 cat >>confdefs.h <<\_ACEOF
13117 #define STDC_HEADERS 1
13127 ac_header_dirent=no
13128 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13129 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13130 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13131 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <sys/types.h>
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13162 grep -v '^ *+' conftest.er1 >conftest.err
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13170 eval "$as_ac_Header=yes"
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 eval "$as_ac_Header=no"
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 ac_res=`eval echo '${'$as_ac_Header'}'`
13181 { echo "$as_me:$LINENO: result: $ac_res" >&5
13182 echo "${ECHO_T}$ac_res" >&6; }
13183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13184 cat >>confdefs.h <<_ACEOF
13185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13188 ac_header_dirent=$ac_hdr; break
13192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13193 if test $ac_header_dirent = dirent.h; then
13194 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13196 if test "${ac_cv_search_opendir+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 ac_func_search_save_LIBS=$LIBS
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13207 /* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13222 for ac_lib in '' dir; do
13223 if test -z "$ac_lib"; then
13224 ac_res="none required"
13227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_link") 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest$ac_exeext &&
13246 $as_test_x conftest$ac_exeext; then
13247 ac_cv_search_opendir=$ac_res
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13257 if test "${ac_cv_search_opendir+set}" = set; then
13261 if test "${ac_cv_search_opendir+set}" = set; then
13264 ac_cv_search_opendir=no
13266 rm conftest.$ac_ext
13267 LIBS=$ac_func_search_save_LIBS
13269 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13270 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13271 ac_res=$ac_cv_search_opendir
13272 if test "$ac_res" != no; then
13273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13278 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13279 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_opendir+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13306 for ac_lib in '' x; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest$ac_exeext &&
13330 $as_test_x conftest$ac_exeext; then
13331 ac_cv_search_opendir=$ac_res
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13341 if test "${ac_cv_search_opendir+set}" = set; then
13345 if test "${ac_cv_search_opendir+set}" = set; then
13348 ac_cv_search_opendir=no
13350 rm conftest.$ac_ext
13351 LIBS=$ac_func_search_save_LIBS
13353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13355 ac_res=$ac_cv_search_opendir
13356 if test "$ac_res" != no; then
13357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13363 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13364 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13365 if test "${ac_cv_header_time+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #include <sys/types.h>
13375 #include <sys/time.h>
13381 if ((struct tm *) 0)
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.$ac_objext; then
13404 ac_cv_header_time=yes
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_cv_header_time=no
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13415 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13416 if test $ac_cv_header_time = yes; then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define TIME_WITH_SYS_TIME 1
13431 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 ac_res=`eval echo '${'$as_ac_Header'}'`
13441 { echo "$as_me:$LINENO: result: $ac_res" >&5
13442 echo "${ECHO_T}$ac_res" >&6; }
13444 # Is the header compilable?
13445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 $ac_includes_default
13454 #include <$ac_header>
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest.$ac_objext; then
13473 ac_header_compiler=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 ac_header_compiler=no
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6; }
13485 # Is the header present?
13486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include <$ac_header>
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13504 grep -v '^ *+' conftest.er1 >conftest.err
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null && {
13509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13510 test ! -s conftest.err
13512 ac_header_preproc=yes
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_header_preproc=no
13520 rm -f conftest.err conftest.$ac_ext
13521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13522 echo "${ECHO_T}$ac_header_preproc" >&6; }
13524 # So? What about this header?
13525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13531 ac_header_preproc=yes
13534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 eval "$as_ac_Header=\$ac_header_preproc"
13556 ac_res=`eval echo '${'$as_ac_Header'}'`
13557 { echo "$as_me:$LINENO: result: $ac_res" >&5
13558 echo "${ECHO_T}$ac_res" >&6; }
13561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571 for ac_header in err.h
13573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 ac_res=`eval echo '${'$as_ac_Header'}'`
13581 { echo "$as_me:$LINENO: result: $ac_res" >&5
13582 echo "${ECHO_T}$ac_res" >&6; }
13584 # Is the header compilable?
13585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13587 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 $ac_includes_default
13594 #include <$ac_header>
13596 rm -f conftest.$ac_objext
13597 if { (ac_try="$ac_compile"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_compile") 2>conftest.er1
13605 grep -v '^ *+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && {
13610 test -z "$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 } && test -s conftest.$ac_objext; then
13613 ac_header_compiler=yes
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_header_compiler=no
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13623 echo "${ECHO_T}$ac_header_compiler" >&6; }
13625 # Is the header present?
13626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 #include <$ac_header>
13636 if { (ac_try="$ac_cpp conftest.$ac_ext"
13637 case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } >/dev/null && {
13649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13650 test ! -s conftest.err
13652 ac_header_preproc=yes
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_header_preproc=no
13660 rm -f conftest.err conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13662 echo "${ECHO_T}$ac_header_preproc" >&6; }
13664 # So? What about this header?
13665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13671 ac_header_preproc=yes
13674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 eval "$as_ac_Header=\$ac_header_preproc"
13696 ac_res=`eval echo '${'$as_ac_Header'}'`
13697 { echo "$as_me:$LINENO: result: $ac_res" >&5
13698 echo "${ECHO_T}$ac_res" >&6; }
13701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13702 cat >>confdefs.h <<_ACEOF
13703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13707 case " $LIBOBJS " in
13708 *" err.$ac_objext "* ) ;;
13709 *) LIBOBJS="$LIBOBJS err.$ac_objext"
13717 if test "$OS" != "ultrix"; then
13718 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13719 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13720 if test "${ac_cv_sys_posix_termios+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <sys/types.h>
13730 #include <unistd.h>
13731 #include <termios.h>
13736 /* SunOS 4.0.3 has termios.h but not the library calls. */
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_link") 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && {
13756 test -z "$ac_c_werror_flag" ||
13757 test ! -s conftest.err
13758 } && test -s conftest$ac_exeext &&
13759 $as_test_x conftest$ac_exeext; then
13760 ac_cv_sys_posix_termios=yes
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ac_cv_sys_posix_termios=no
13768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13769 conftest$ac_exeext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13772 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13774 if test "$ac_cv_sys_posix_termios" = "yes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define HAVE_TERMIOS_H 1
13781 for ac_header in termio.h
13783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 ac_res=`eval echo '${'$as_ac_Header'}'`
13791 { echo "$as_me:$LINENO: result: $ac_res" >&5
13792 echo "${ECHO_T}$ac_res" >&6; }
13794 # Is the header compilable?
13795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13797 cat >conftest.$ac_ext <<_ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13804 #include <$ac_header>
13806 rm -f conftest.$ac_objext
13807 if { (ac_try="$ac_compile"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13823 ac_header_compiler=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_header_compiler=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13833 echo "${ECHO_T}$ac_header_compiler" >&6; }
13835 # Is the header present?
13836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <$ac_header>
13846 if { (ac_try="$ac_cpp conftest.$ac_ext"
13847 case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13854 grep -v '^ *+' conftest.er1 >conftest.err
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } >/dev/null && {
13859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13860 test ! -s conftest.err
13862 ac_header_preproc=yes
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ac_header_preproc=no
13870 rm -f conftest.err conftest.$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13872 echo "${ECHO_T}$ac_header_preproc" >&6; }
13874 # So? What about this header?
13875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13881 ac_header_preproc=yes
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 eval "$as_ac_Header=\$ac_header_preproc"
13906 ac_res=`eval echo '${'$as_ac_Header'}'`
13907 { echo "$as_me:$LINENO: result: $ac_res" >&5
13908 echo "${ECHO_T}$ac_res" >&6; }
13911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922 if test ${with_logincap-'no'} != "no"; then
13924 for ac_header in login_cap.h
13926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 ac_res=`eval echo '${'$as_ac_Header'}'`
13934 { echo "$as_me:$LINENO: result: $ac_res" >&5
13935 echo "${ECHO_T}$ac_res" >&6; }
13937 # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13947 #include <$ac_header>
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13966 ac_header_compiler=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_header_compiler=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <$ac_header>
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null && {
14002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14005 ac_header_preproc=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_preproc=no
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14017 # So? What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14024 ac_header_preproc=yes
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 eval "$as_ac_Header=\$ac_header_preproc"
14049 ac_res=`eval echo '${'$as_ac_Header'}'`
14050 { echo "$as_me:$LINENO: result: $ac_res" >&5
14051 echo "${ECHO_T}$ac_res" >&6; }
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14069 if test ${with_project-'no'} != "no"; then
14070 if test "${ac_cv_header_project_h+set}" = set; then
14071 { echo "$as_me:$LINENO: checking for project.h" >&5
14072 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14073 if test "${ac_cv_header_project_h+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14079 # Is the header compilable?
14080 { echo "$as_me:$LINENO: checking project.h usability" >&5
14081 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14089 #include <project.h>
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.$ac_objext; then
14108 ac_header_compiler=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_header_compiler=no
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6; }
14120 # Is the header present?
14121 { echo "$as_me:$LINENO: checking project.h presence" >&5
14122 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <project.h>
14131 if { (ac_try="$ac_cpp conftest.$ac_ext"
14132 case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14139 grep -v '^ *+' conftest.er1 >conftest.err
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } >/dev/null && {
14144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14145 test ! -s conftest.err
14147 ac_header_preproc=yes
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_header_preproc=no
14155 rm -f conftest.err conftest.$ac_ext
14156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6; }
14159 # So? What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14166 ac_header_preproc=yes
14169 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14184 { echo "$as_me:$LINENO: checking for project.h" >&5
14185 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14186 if test "${ac_cv_header_project_h+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 ac_cv_header_project_h=$ac_header_preproc
14191 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14192 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14195 if test $ac_cv_header_project_h = yes; then
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_PROJECT_H 1
14200 SUDO_LIBS="${SUDO_LIBS} -lproject"
14207 { echo "$as_me:$LINENO: checking for mode_t" >&5
14208 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14209 if test "${ac_cv_type_mode_t+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 $ac_includes_default
14219 typedef mode_t ac__type_new_;
14223 if ((ac__type_new_ *) 0)
14225 if (sizeof (ac__type_new_))
14231 rm -f conftest.$ac_objext
14232 if { (ac_try="$ac_compile"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_cv_type_mode_t=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_cv_type_mode_t=no
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14259 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14260 if test $ac_cv_type_mode_t = yes; then
14264 cat >>confdefs.h <<_ACEOF
14270 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14271 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14272 if test "${ac_cv_type_uid_t+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <sys/types.h>
14284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14285 $EGREP "uid_t" >/dev/null 2>&1; then
14286 ac_cv_type_uid_t=yes
14288 ac_cv_type_uid_t=no
14293 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14294 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14295 if test $ac_cv_type_uid_t = no; then
14297 cat >>confdefs.h <<\_ACEOF
14302 cat >>confdefs.h <<\_ACEOF
14308 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14309 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14310 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <signal.h>
14322 typedef sig_atomic_t ac__type_new_;
14326 if ((ac__type_new_ *) 0)
14328 if (sizeof (ac__type_new_))
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest.$ac_objext; then
14351 ac_cv_type_sig_atomic_t=yes
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 ac_cv_type_sig_atomic_t=no
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14362 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14363 if test $ac_cv_type_sig_atomic_t = yes; then
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_SIG_ATOMIC_T 1
14371 cat >>confdefs.h <<\_ACEOF
14372 #define sig_atomic_t int
14377 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14378 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14379 if test "${ac_cv_type_sigaction_t+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 #include <sys/types.h>
14389 #include <signal.h>
14391 typedef sigaction_t ac__type_new_;
14395 if ((ac__type_new_ *) 0)
14397 if (sizeof (ac__type_new_))
14403 rm -f conftest.$ac_objext
14404 if { (ac_try="$ac_compile"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_compile") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest.$ac_objext; then
14420 ac_cv_type_sigaction_t=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_type_sigaction_t=no
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14431 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14432 if test $ac_cv_type_sigaction_t = yes; then
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_SIGACTION_T 1
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_SIGACTION_T 1
14444 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14445 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14446 if test "${ac_cv_type_struct_timespec+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <sys/types.h>
14456 #if TIME_WITH_SYS_TIME
14457 # include <sys/time.h>
14461 typedef struct timespec ac__type_new_;
14465 if ((ac__type_new_ *) 0)
14467 if (sizeof (ac__type_new_))
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_compile") 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } && {
14487 test -z "$ac_c_werror_flag" ||
14488 test ! -s conftest.err
14489 } && test -s conftest.$ac_objext; then
14490 ac_cv_type_struct_timespec=yes
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_cv_type_struct_timespec=no
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14501 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14502 if test $ac_cv_type_struct_timespec = yes; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_TIMESPEC 1
14509 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14510 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14511 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <sys/types.h>
14521 #include <netinet/in.h>
14523 typedef struct in6_addr ac__type_new_;
14527 if ((ac__type_new_ *) 0)
14529 if (sizeof (ac__type_new_))
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest.$ac_objext; then
14552 ac_cv_type_struct_in6_addr=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_type_struct_in6_addr=no
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14563 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14564 if test $ac_cv_type_struct_in6_addr = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define HAVE_STRUCT_IN6_ADDR 1
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_IN6_ADDR 1
14576 { echo "$as_me:$LINENO: checking for size_t" >&5
14577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14578 if test "${sudo_cv_type_size_t+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <sys/types.h>
14590 #include <stdlib.h>
14593 #include <unistd.h>
14596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14597 $EGREP "size_t" >/dev/null 2>&1; then
14598 sudo_cv_type_size_t=yes
14600 sudo_cv_type_size_t=no
14605 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14606 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14607 if test $sudo_cv_type_size_t = no; then
14609 cat >>confdefs.h <<\_ACEOF
14615 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14616 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14617 if test "${sudo_cv_type_ssize_t+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <sys/types.h>
14629 #include <stdlib.h>
14632 #include <unistd.h>
14635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14636 $EGREP "ssize_t" >/dev/null 2>&1; then
14637 sudo_cv_type_ssize_t=yes
14639 sudo_cv_type_ssize_t=no
14644 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14645 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14646 if test $sudo_cv_type_ssize_t = no; then
14648 cat >>confdefs.h <<\_ACEOF
14649 #define ssize_t int
14654 { echo "$as_me:$LINENO: checking for dev_t" >&5
14655 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14656 if test "${sudo_cv_type_dev_t+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <sys/types.h>
14668 #include <stdlib.h>
14671 #include <unistd.h>
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675 $EGREP "dev_t" >/dev/null 2>&1; then
14676 sudo_cv_type_dev_t=yes
14678 sudo_cv_type_dev_t=no
14683 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14684 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14685 if test $sudo_cv_type_dev_t = no; then
14687 cat >>confdefs.h <<\_ACEOF
14693 { echo "$as_me:$LINENO: checking for ino_t" >&5
14694 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14695 if test "${sudo_cv_type_ino_t+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 #include <sys/types.h>
14707 #include <stdlib.h>
14710 #include <unistd.h>
14713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14714 $EGREP "ino_t" >/dev/null 2>&1; then
14715 sudo_cv_type_ino_t=yes
14717 sudo_cv_type_ino_t=no
14722 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14723 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14724 if test $sudo_cv_type_ino_t = no; then
14726 cat >>confdefs.h <<\_ACEOF
14727 #define ino_t unsigned int
14732 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14733 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14745 foo = (void *)0; (void *)"test";
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14768 cat >>confdefs.h <<\_ACEOF
14772 { echo "$as_me:$LINENO: result: yes" >&5
14773 echo "${ECHO_T}yes" >&6; }
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 cat >>confdefs.h <<\_ACEOF
14782 { echo "$as_me:$LINENO: result: no" >&5
14783 echo "${ECHO_T}no" >&6; }
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14789 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14790 if test "${sudo_cv_uid_t_len+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 if test "$cross_compiling" = yes; then
14795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14796 See \`config.log' for more details." >&5
14797 echo "$as_me: error: cannot run test program while cross compiling
14798 See \`config.log' for more details." >&2;}
14799 { (exit 1); exit 1; }; }
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14809 #include <limits.h>
14810 #include <sys/types.h>
14811 #include <sys/param.h>
14815 uid_t u = (uid_t) -1;
14817 if ((f = fopen("conftestdata", "w")) == NULL)
14820 (void) sprintf(b, "%lu", (unsigned long) u);
14821 (void) fprintf(f, "%d\n", strlen(b));
14826 rm -f conftest$ac_exeext
14827 if { (ac_try="$ac_link"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 sudo_cv_uid_t_len=`cat conftestdata`
14848 echo "$as_me: program exited with status $ac_status" >&5
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ( exit $ac_status )
14853 sudo_cv_uid_t_len=10
14855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14863 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14864 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14866 cat >>confdefs.h <<_ACEOF
14867 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14871 { echo "$as_me:$LINENO: checking for long long" >&5
14872 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14873 if test "${ac_cv_type_long_long+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 $ac_includes_default
14883 typedef long long ac__type_new_;
14887 if ((ac__type_new_ *) 0)
14889 if (sizeof (ac__type_new_))
14895 rm -f conftest.$ac_objext
14896 if { (ac_try="$ac_compile"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_compile") 2>conftest.er1
14904 grep -v '^ *+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest.$ac_objext; then
14912 ac_cv_type_long_long=yes
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_cv_type_long_long=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14923 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14924 if test $ac_cv_type_long_long = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_LONG_LONG 1
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_LONG_LONG 1
14935 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14936 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14937 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 if test "$cross_compiling" = yes; then
14941 sudo_cv_type_long_is_quad=no
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14951 if (sizeof(long long) == sizeof(long)) exit(0);
14955 rm -f conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 sudo_cv_type_long_is_quad=yes
14977 echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 sudo_cv_type_long_is_quad=no
14984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 rm -f core core.* *.core
14990 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14991 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14992 if test $sudo_cv_type_long_is_quad = yes; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define LONG_IS_QUAD 1
15002 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15003 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15004 if test "${sudo_cv_sock_sa_len+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 if test "$cross_compiling" = yes; then
15008 sudo_cv_sock_sa_len=no
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <sys/types.h>
15017 #include <sys/socket.h>
15024 rm -f conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 sudo_cv_sock_sa_len=yes
15046 echo "$as_me: program exited with status $ac_status" >&5
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ( exit $ac_status )
15051 sudo_cv_sock_sa_len=no
15053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15057 rm -f core core.* *.core
15059 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15060 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15061 if test $sudo_cv_sock_sa_len = yes; then
15063 cat >>confdefs.h <<\_ACEOF
15064 #define HAVE_SA_LEN 1
15071 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15072 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15073 if test "${ac_cv_type_signal+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15083 #include <signal.h>
15088 return *(signal (0, 0)) (0) == 1;
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest.$ac_objext; then
15110 ac_cv_type_signal=int
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_cv_type_signal=void
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15121 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15123 cat >>confdefs.h <<_ACEOF
15124 #define RETSIGTYPE $ac_cv_type_signal
15129 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15130 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15131 if test "${ac_cv_type_getgroups+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 if test "$cross_compiling" = yes; then
15135 ac_cv_type_getgroups=cross
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 /* Thanks to Mike Rendell for this test. */
15144 $ac_includes_default
15147 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15152 gid_t gidset[NGID];
15154 union { gid_t gval; long int lval; } val;
15157 for (i = 0; i < NGID; i++)
15158 gidset[i] = val.gval;
15159 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15161 /* Exit non-zero if getgroups seems to require an array of ints. This
15162 happens when gid_t is short int but getgroups modifies an array
15164 return n > 0 && gidset[n] != val.gval;
15167 rm -f conftest$ac_exeext
15168 if { (ac_try="$ac_link"
15169 case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_type_getgroups=gid_t
15189 echo "$as_me: program exited with status $ac_status" >&5
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ( exit $ac_status )
15194 ac_cv_type_getgroups=int
15196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15200 if test $ac_cv_type_getgroups = cross; then
15201 cat >conftest.$ac_ext <<_ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <unistd.h>
15210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15211 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15212 ac_cv_type_getgroups=gid_t
15214 ac_cv_type_getgroups=int
15220 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15221 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15223 cat >>confdefs.h <<_ACEOF
15224 #define GETGROUPS_T $ac_cv_type_getgroups
15228 { echo "$as_me:$LINENO: checking for size_t" >&5
15229 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15230 if test "${ac_cv_type_size_t+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15240 typedef size_t ac__type_new_;
15244 if ((ac__type_new_ *) 0)
15246 if (sizeof (ac__type_new_))
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_cv_type_size_t=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_type_size_t=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15280 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15281 if test $ac_cv_type_size_t = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define size_t unsigned int
15291 { echo "$as_me:$LINENO: checking for getgroups" >&5
15292 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15293 if test "${ac_cv_func_getgroups+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15304 #define getgroups innocuous_getgroups
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char getgroups (); below.
15308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309 <limits.h> exists even on freestanding compilers. */
15312 # include <limits.h>
15314 # include <assert.h>
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined __stub_getgroups || defined __stub___getgroups
15336 return getgroups ();
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 ac_cv_func_getgroups=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_func_getgroups=no
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15371 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15374 # If we don't yet have getgroups, see if it's in -lbsd.
15375 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15377 if test $ac_cv_func_getgroups = no; then
15378 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15379 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15380 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 ac_check_lib_save_LIBS=$LIBS
15385 cat >conftest.$ac_ext <<_ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15392 /* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
15402 return getgroups ();
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_link") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && {
15421 test -z "$ac_c_werror_flag" ||
15422 test ! -s conftest.err
15423 } && test -s conftest$ac_exeext &&
15424 $as_test_x conftest$ac_exeext; then
15425 ac_cv_lib_bsd_getgroups=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_lib_bsd_getgroups=no
15433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15434 conftest$ac_exeext conftest.$ac_ext
15435 LIBS=$ac_check_lib_save_LIBS
15437 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15438 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15439 if test $ac_cv_lib_bsd_getgroups = yes; then
15440 GETGROUPS_LIB=-lbsd
15445 # Run the program to test the functionality of the system-supplied
15446 # getgroups function only if there is such a function.
15447 if test $ac_cv_func_getgroups = yes; then
15448 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15449 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15450 if test "${ac_cv_func_getgroups_works+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 if test "$cross_compiling" = yes; then
15454 ac_cv_func_getgroups_works=no
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 $ac_includes_default
15466 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15467 return getgroups (0, 0) == -1;
15472 rm -f conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15483 { (case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_try") 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_cv_func_getgroups_works=yes
15494 echo "$as_me: program exited with status $ac_status" >&5
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ( exit $ac_status )
15499 ac_cv_func_getgroups_works=no
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15507 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15508 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15509 if test $ac_cv_func_getgroups_works = yes; then
15511 cat >>confdefs.h <<\_ACEOF
15512 #define HAVE_GETGROUPS 1
15535 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15536 strftime setrlimit initgroups getgroups fstat gettimeofday \
15537 setlocale getaddrinfo setsid
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15561 # include <limits.h>
15563 # include <assert.h>
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15575 /* The GNU C library defines this for functions which it implements
15576 to always fail with ENOSYS. Some functions are actually named
15577 something starting with __ and the normal name is an alias. */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15585 return $ac_func ();
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_link") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && {
15604 test -z "$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 } && test -s conftest$ac_exeext &&
15607 $as_test_x conftest$ac_exeext; then
15608 eval "$as_ac_var=yes"
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 eval "$as_ac_var=no"
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617 conftest$ac_exeext conftest.$ac_ext
15619 ac_res=`eval echo '${'$as_ac_var'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630 if test -z "$SKIP_SETRESUID"; then
15632 for ac_func in setresuid
15634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648 #define $ac_func innocuous_$ac_func
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15656 # include <limits.h>
15658 # include <assert.h>
15663 /* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15670 /* The GNU C library defines this for functions which it implements
15671 to always fail with ENOSYS. Some functions are actually named
15672 something starting with __ and the normal name is an alias. */
15673 #if defined __stub_$ac_func || defined __stub___$ac_func
15680 return $ac_func ();
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_link") 2>conftest.er1
15694 grep -v '^ *+' conftest.er1 >conftest.err
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } && {
15699 test -z "$ac_c_werror_flag" ||
15700 test ! -s conftest.err
15701 } && test -s conftest$ac_exeext &&
15702 $as_test_x conftest$ac_exeext; then
15703 eval "$as_ac_var=yes"
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 eval "$as_ac_var=no"
15711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15712 conftest$ac_exeext conftest.$ac_ext
15714 ac_res=`eval echo '${'$as_ac_var'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15726 if test -z "$SKIP_SETREUID"; then
15728 for ac_func in setreuid
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15744 #define $ac_func innocuous_$ac_func
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func (); below.
15748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749 <limits.h> exists even on freestanding compilers. */
15752 # include <limits.h>
15754 # include <assert.h>
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15776 return $ac_func ();
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 eval "$as_ac_var=yes"
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 eval "$as_ac_var=no"
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15822 if test -z "$SKIP_SETEUID"; then
15824 for ac_func in seteuid
15826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 cat >conftest.$ac_ext <<_ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15840 #define $ac_func innocuous_$ac_func
15842 /* System header to define __stub macros and hopefully few prototypes,
15843 which can conflict with char $ac_func (); below.
15844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15845 <limits.h> exists even on freestanding compilers. */
15848 # include <limits.h>
15850 # include <assert.h>
15855 /* Override any GCC internal prototype to avoid an error.
15856 Use char because int might match the return type of a GCC
15857 builtin and then its argument prototype would still apply. */
15862 /* The GNU C library defines this for functions which it implements
15863 to always fail with ENOSYS. Some functions are actually named
15864 something starting with __ and the normal name is an alias. */
15865 #if defined __stub_$ac_func || defined __stub___$ac_func
15872 return $ac_func ();
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (ac_try="$ac_link"
15879 case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_link") 2>conftest.er1
15886 grep -v '^ *+' conftest.er1 >conftest.err
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } && {
15891 test -z "$ac_c_werror_flag" ||
15892 test ! -s conftest.err
15893 } && test -s conftest$ac_exeext &&
15894 $as_test_x conftest$ac_exeext; then
15895 eval "$as_ac_var=yes"
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 eval "$as_ac_var=no"
15903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15904 conftest$ac_exeext conftest.$ac_ext
15906 ac_res=`eval echo '${'$as_ac_var'}'`
15907 { echo "$as_me:$LINENO: result: $ac_res" >&5
15908 echo "${ECHO_T}$ac_res" >&6; }
15909 if test `eval echo '${'$as_ac_var'}'` = yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 if test X"$with_interfaces" != X"no"; then
15920 for ac_func in getifaddrs
15922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15936 #define $ac_func innocuous_$ac_func
15938 /* System header to define __stub macros and hopefully few prototypes,
15939 which can conflict with char $ac_func (); below.
15940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15941 <limits.h> exists even on freestanding compilers. */
15944 # include <limits.h>
15946 # include <assert.h>
15951 /* Override any GCC internal prototype to avoid an error.
15952 Use char because int might match the return type of a GCC
15953 builtin and then its argument prototype would still apply. */
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined __stub_$ac_func || defined __stub___$ac_func
15968 return $ac_func ();
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (ac_try="$ac_link"
15975 case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_link") 2>conftest.er1
15982 grep -v '^ *+' conftest.er1 >conftest.err
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest$ac_exeext &&
15990 $as_test_x conftest$ac_exeext; then
15991 eval "$as_ac_var=yes"
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15996 eval "$as_ac_var=no"
15999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000 conftest$ac_exeext conftest.$ac_ext
16002 ac_res=`eval echo '${'$as_ac_var'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16005 if test `eval echo '${'$as_ac_var'}'` = yes; then
16006 cat >>confdefs.h <<_ACEOF
16007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16010 for ac_func in freeifaddrs
16012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16026 #define $ac_func innocuous_$ac_func
16028 /* System header to define __stub macros and hopefully few prototypes,
16029 which can conflict with char $ac_func (); below.
16030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16031 <limits.h> exists even on freestanding compilers. */
16034 # include <limits.h>
16036 # include <assert.h>
16041 /* Override any GCC internal prototype to avoid an error.
16042 Use char because int might match the return type of a GCC
16043 builtin and then its argument prototype would still apply. */
16048 /* The GNU C library defines this for functions which it implements
16049 to always fail with ENOSYS. Some functions are actually named
16050 something starting with __ and the normal name is an alias. */
16051 #if defined __stub_$ac_func || defined __stub___$ac_func
16058 return $ac_func ();
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_link") 2>conftest.er1
16072 grep -v '^ *+' conftest.er1 >conftest.err
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest$ac_exeext &&
16080 $as_test_x conftest$ac_exeext; then
16081 eval "$as_ac_var=yes"
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 eval "$as_ac_var=no"
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090 conftest$ac_exeext conftest.$ac_ext
16092 ac_res=`eval echo '${'$as_ac_var'}'`
16093 { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 if test -z "$BROKEN_GETCWD"; then
16109 for ac_func in getcwd
16111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16125 #define $ac_func innocuous_$ac_func
16127 /* System header to define __stub macros and hopefully few prototypes,
16128 which can conflict with char $ac_func (); below.
16129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130 <limits.h> exists even on freestanding compilers. */
16133 # include <limits.h>
16135 # include <assert.h>
16140 /* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16147 /* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150 #if defined __stub_$ac_func || defined __stub___$ac_func
16157 return $ac_func ();
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest$ac_exeext &&
16179 $as_test_x conftest$ac_exeext; then
16180 eval "$as_ac_var=yes"
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 eval "$as_ac_var=no"
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16191 ac_res=`eval echo '${'$as_ac_var'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 if test `eval echo '${'$as_ac_var'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16200 case " $LIBOBJS " in
16201 *" $ac_func.$ac_objext "* ) ;;
16202 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16212 for ac_func in glob
16214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16228 #define $ac_func innocuous_$ac_func
16230 /* System header to define __stub macros and hopefully few prototypes,
16231 which can conflict with char $ac_func (); below.
16232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233 <limits.h> exists even on freestanding compilers. */
16236 # include <limits.h>
16238 # include <assert.h>
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16250 /* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253 #if defined __stub_$ac_func || defined __stub___$ac_func
16260 return $ac_func ();
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_link") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && {
16279 test -z "$ac_c_werror_flag" ||
16280 test ! -s conftest.err
16281 } && test -s conftest$ac_exeext &&
16282 $as_test_x conftest$ac_exeext; then
16283 eval "$as_ac_var=yes"
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 eval "$as_ac_var=no"
16291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292 conftest$ac_exeext conftest.$ac_ext
16294 ac_res=`eval echo '${'$as_ac_var'}'`
16295 { echo "$as_me:$LINENO: result: $ac_res" >&5
16296 echo "${ECHO_T}$ac_res" >&6; }
16297 if test `eval echo '${'$as_ac_var'}'` = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16301 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16302 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16313 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest.$ac_objext; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_EXTENDED_GLOB 1
16339 { echo "$as_me:$LINENO: result: yes" >&5
16340 echo "${ECHO_T}yes" >&6; }
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 case " $LIBOBJS " in
16346 *" glob.$ac_objext "* ) ;;
16347 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16351 { echo "$as_me:$LINENO: result: no" >&5
16352 echo "${ECHO_T}no" >&6; }
16355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 case " $LIBOBJS " in
16358 *" glob.$ac_objext "* ) ;;
16359 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16368 for ac_func in lockf flock
16370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16384 #define $ac_func innocuous_$ac_func
16386 /* System header to define __stub macros and hopefully few prototypes,
16387 which can conflict with char $ac_func (); below.
16388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16389 <limits.h> exists even on freestanding compilers. */
16392 # include <limits.h>
16394 # include <assert.h>
16399 /* Override any GCC internal prototype to avoid an error.
16400 Use char because int might match the return type of a GCC
16401 builtin and then its argument prototype would still apply. */
16406 /* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409 #if defined __stub_$ac_func || defined __stub___$ac_func
16416 return $ac_func ();
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_link") 2>conftest.er1
16430 grep -v '^ *+' conftest.er1 >conftest.err
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } && {
16435 test -z "$ac_c_werror_flag" ||
16436 test ! -s conftest.err
16437 } && test -s conftest$ac_exeext &&
16438 $as_test_x conftest$ac_exeext; then
16439 eval "$as_ac_var=yes"
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 eval "$as_ac_var=no"
16447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16448 conftest$ac_exeext conftest.$ac_ext
16450 ac_res=`eval echo '${'$as_ac_var'}'`
16451 { echo "$as_me:$LINENO: result: $ac_res" >&5
16452 echo "${ECHO_T}$ac_res" >&6; }
16453 if test `eval echo '${'$as_ac_var'}'` = yes; then
16454 cat >>confdefs.h <<_ACEOF
16455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 for ac_func in waitpid wait3
16465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16479 #define $ac_func innocuous_$ac_func
16481 /* System header to define __stub macros and hopefully few prototypes,
16482 which can conflict with char $ac_func (); below.
16483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16484 <limits.h> exists even on freestanding compilers. */
16487 # include <limits.h>
16489 # include <assert.h>
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined __stub_$ac_func || defined __stub___$ac_func
16511 return $ac_func ();
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 eval "$as_ac_var=yes"
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 eval "$as_ac_var=no"
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543 conftest$ac_exeext conftest.$ac_ext
16545 ac_res=`eval echo '${'$as_ac_var'}'`
16546 { echo "$as_me:$LINENO: result: $ac_res" >&5
16547 echo "${ECHO_T}$ac_res" >&6; }
16548 if test `eval echo '${'$as_ac_var'}'` = yes; then
16549 cat >>confdefs.h <<_ACEOF
16550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16558 for ac_func in innetgr _innetgr
16560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 cat >conftest.$ac_ext <<_ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16574 #define $ac_func innocuous_$ac_func
16576 /* System header to define __stub macros and hopefully few prototypes,
16577 which can conflict with char $ac_func (); below.
16578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16579 <limits.h> exists even on freestanding compilers. */
16582 # include <limits.h>
16584 # include <assert.h>
16589 /* Override any GCC internal prototype to avoid an error.
16590 Use char because int might match the return type of a GCC
16591 builtin and then its argument prototype would still apply. */
16596 /* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599 #if defined __stub_$ac_func || defined __stub___$ac_func
16606 return $ac_func ();
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (ac_try="$ac_link"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_link") 2>conftest.er1
16620 grep -v '^ *+' conftest.er1 >conftest.err
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest$ac_exeext &&
16628 $as_test_x conftest$ac_exeext; then
16629 eval "$as_ac_var=yes"
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 eval "$as_ac_var=no"
16637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638 conftest$ac_exeext conftest.$ac_ext
16640 ac_res=`eval echo '${'$as_ac_var'}'`
16641 { echo "$as_me:$LINENO: result: $ac_res" >&5
16642 echo "${ECHO_T}$ac_res" >&6; }
16643 if test `eval echo '${'$as_ac_var'}'` = yes; then
16644 cat >>confdefs.h <<_ACEOF
16645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16648 for ac_func in getdomainname
16650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define $ac_func innocuous_$ac_func
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char $ac_func (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16672 # include <limits.h>
16674 # include <assert.h>
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16686 /* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689 #if defined __stub_$ac_func || defined __stub___$ac_func
16696 return $ac_func ();
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest$ac_exeext &&
16718 $as_test_x conftest$ac_exeext; then
16719 eval "$as_ac_var=yes"
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 eval "$as_ac_var=no"
16727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16728 conftest$ac_exeext conftest.$ac_ext
16730 ac_res=`eval echo '${'$as_ac_var'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732 echo "${ECHO_T}$ac_res" >&6; }
16733 if test `eval echo '${'$as_ac_var'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 for ac_func in lsearch
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761 #define $ac_func innocuous_$ac_func
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16769 # include <limits.h>
16771 # include <assert.h>
16776 /* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16793 return $ac_func ();
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest$ac_exeext &&
16815 $as_test_x conftest$ac_exeext; then
16816 eval "$as_ac_var=yes"
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 eval "$as_ac_var=no"
16824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16825 conftest$ac_exeext conftest.$ac_ext
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828 { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831 cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16836 { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16837 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16838 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 ac_check_lib_save_LIBS=$LIBS
16842 LIBS="-lcompat $LIBS"
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_link") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest$ac_exeext &&
16882 $as_test_x conftest$ac_exeext; then
16883 ac_cv_lib_compat_lsearch=yes
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 ac_cv_lib_compat_lsearch=no
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16892 conftest$ac_exeext conftest.$ac_ext
16893 LIBS=$ac_check_lib_save_LIBS
16895 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16896 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16897 if test $ac_cv_lib_compat_lsearch = yes; then
16898 { echo "$as_me:$LINENO: checking for search.h" >&5
16899 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16900 if test "${ac_cv_header_search_h+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <search.h>
16911 if { (ac_try="$ac_cpp conftest.$ac_ext"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null && {
16924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16927 ac_cv_header_search_h=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_cv_header_search_h=no
16935 rm -f conftest.err conftest.$ac_ext
16937 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16938 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16939 if test $ac_cv_header_search_h = yes; then
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_LSEARCH 1
16943 LIBS="${LIBS} -lcompat"
16945 case " $LIBOBJS " in
16946 *" lsearch.$ac_objext "* ) ;;
16947 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16955 case " $LIBOBJS " in
16956 *" lsearch.$ac_objext "* ) ;;
16957 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16967 for ac_func in utimes
16969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16983 #define $ac_func innocuous_$ac_func
16985 /* System header to define __stub macros and hopefully few prototypes,
16986 which can conflict with char $ac_func (); below.
16987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16988 <limits.h> exists even on freestanding compilers. */
16991 # include <limits.h>
16993 # include <assert.h>
16998 /* Override any GCC internal prototype to avoid an error.
16999 Use char because int might match the return type of a GCC
17000 builtin and then its argument prototype would still apply. */
17005 /* The GNU C library defines this for functions which it implements
17006 to always fail with ENOSYS. Some functions are actually named
17007 something starting with __ and the normal name is an alias. */
17008 #if defined __stub_$ac_func || defined __stub___$ac_func
17015 return $ac_func ();
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (ac_try="$ac_link"
17022 case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_link") 2>conftest.er1
17029 grep -v '^ *+' conftest.er1 >conftest.err
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } && {
17034 test -z "$ac_c_werror_flag" ||
17035 test ! -s conftest.err
17036 } && test -s conftest$ac_exeext &&
17037 $as_test_x conftest$ac_exeext; then
17038 eval "$as_ac_var=yes"
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 eval "$as_ac_var=no"
17046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17047 conftest$ac_exeext conftest.$ac_ext
17049 ac_res=`eval echo '${'$as_ac_var'}'`
17050 { echo "$as_me:$LINENO: result: $ac_res" >&5
17051 echo "${ECHO_T}$ac_res" >&6; }
17052 if test `eval echo '${'$as_ac_var'}'` = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 for ac_func in futimes futimesat
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074 #define $ac_func innocuous_$ac_func
17076 /* System header to define __stub macros and hopefully few prototypes,
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17082 # include <limits.h>
17084 # include <assert.h>
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined __stub_$ac_func || defined __stub___$ac_func
17106 return $ac_func ();
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest$ac_exeext &&
17128 $as_test_x conftest$ac_exeext; then
17129 eval "$as_ac_var=yes"
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 eval "$as_ac_var=no"
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138 conftest$ac_exeext conftest.$ac_ext
17140 ac_res=`eval echo '${'$as_ac_var'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 if test `eval echo '${'$as_ac_var'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 for ac_func in futime
17155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17169 #define $ac_func innocuous_$ac_func
17171 /* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char $ac_func (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
17177 # include <limits.h>
17179 # include <assert.h>
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined __stub_$ac_func || defined __stub___$ac_func
17201 return $ac_func ();
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && {
17220 test -z "$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 } && test -s conftest$ac_exeext &&
17223 $as_test_x conftest$ac_exeext; then
17224 eval "$as_ac_var=yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 eval "$as_ac_var=no"
17232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17233 conftest$ac_exeext conftest.$ac_ext
17235 ac_res=`eval echo '${'$as_ac_var'}'`
17236 { echo "$as_me:$LINENO: result: $ac_res" >&5
17237 echo "${ECHO_T}$ac_res" >&6; }
17238 if test `eval echo '${'$as_ac_var'}'` = yes; then
17239 cat >>confdefs.h <<_ACEOF
17240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17245 case " $LIBOBJS " in
17246 *" utimes.$ac_objext "* ) ;;
17247 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17254 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17255 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17256 if test "${sudo_cv_func_fnmatch+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 rm -f conftestdata; > conftestdata
17260 if test "$cross_compiling" = yes; then
17261 sudo_cv_func_fnmatch=no
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17269 #include <fnmatch.h>
17270 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17272 rm -f conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_link") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 sudo_cv_func_fnmatch=yes
17294 echo "$as_me: program exited with status $ac_status" >&5
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ( exit $ac_status )
17299 sudo_cv_func_fnmatch=no
17301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17305 rm -f core core.* *.core
17308 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17309 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17310 if test $sudo_cv_func_fnmatch = yes; then
17311 cat >>confdefs.h <<\_ACEOF
17312 #define HAVE_FNMATCH 1
17316 case " $LIBOBJS " in
17317 *" fnmatch.$ac_objext "* ) ;;
17318 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17324 { echo "$as_me:$LINENO: checking for isblank" >&5
17325 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17326 if test "${sudo_cv_func_isblank+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17339 return (isblank('a'));
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && {
17358 test -z "$ac_c_werror_flag" ||
17359 test ! -s conftest.err
17360 } && test -s conftest$ac_exeext &&
17361 $as_test_x conftest$ac_exeext; then
17362 sudo_cv_func_isblank=yes
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 sudo_cv_func_isblank=no
17370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17371 conftest$ac_exeext conftest.$ac_ext
17373 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17374 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17376 if test "$sudo_cv_func_isblank" = "yes"; then
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_ISBLANK 1
17390 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.$ac_ext <<_ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17406 #define $ac_func innocuous_$ac_func
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func (); below.
17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411 <limits.h> exists even on freestanding compilers. */
17414 # include <limits.h>
17416 # include <assert.h>
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17428 /* The GNU C library defines this for functions which it implements
17429 to always fail with ENOSYS. Some functions are actually named
17430 something starting with __ and the normal name is an alias. */
17431 #if defined __stub_$ac_func || defined __stub___$ac_func
17438 return $ac_func ();
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (ac_try="$ac_link"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_link") 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } && {
17457 test -z "$ac_c_werror_flag" ||
17458 test ! -s conftest.err
17459 } && test -s conftest$ac_exeext &&
17460 $as_test_x conftest$ac_exeext; then
17461 eval "$as_ac_var=yes"
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 eval "$as_ac_var=no"
17469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17470 conftest$ac_exeext conftest.$ac_ext
17472 ac_res=`eval echo '${'$as_ac_var'}'`
17473 { echo "$as_me:$LINENO: result: $ac_res" >&5
17474 echo "${ECHO_T}$ac_res" >&6; }
17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 case " $LIBOBJS " in
17482 *" $ac_func.$ac_objext "* ) ;;
17483 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17492 for ac_func in closefrom
17494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508 #define $ac_func innocuous_$ac_func
17510 /* System header to define __stub macros and hopefully few prototypes,
17511 which can conflict with char $ac_func (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
17516 # include <limits.h>
17518 # include <assert.h>
17523 /* Override any GCC internal prototype to avoid an error.
17524 Use char because int might match the return type of a GCC
17525 builtin and then its argument prototype would still apply. */
17530 /* The GNU C library defines this for functions which it implements
17531 to always fail with ENOSYS. Some functions are actually named
17532 something starting with __ and the normal name is an alias. */
17533 #if defined __stub_$ac_func || defined __stub___$ac_func
17540 return $ac_func ();
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && {
17559 test -z "$ac_c_werror_flag" ||
17560 test ! -s conftest.err
17561 } && test -s conftest$ac_exeext &&
17562 $as_test_x conftest$ac_exeext; then
17563 eval "$as_ac_var=yes"
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 eval "$as_ac_var=no"
17571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17572 conftest$ac_exeext conftest.$ac_ext
17574 ac_res=`eval echo '${'$as_ac_var'}'`
17575 { echo "$as_me:$LINENO: result: $ac_res" >&5
17576 echo "${ECHO_T}$ac_res" >&6; }
17577 if test `eval echo '${'$as_ac_var'}'` = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583 case " $LIBOBJS " in
17584 *" closefrom.$ac_objext "* ) ;;
17585 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17589 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17590 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17591 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <limits.h>
17614 rm -f conftest.$ac_objext
17615 if { (ac_try="$ac_compile"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_compile") 2>conftest.er1
17623 grep -v '^ *+' conftest.er1 >conftest.err
17625 cat conftest.err >&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } && {
17628 test -z "$ac_c_werror_flag" ||
17629 test ! -s conftest.err
17630 } && test -s conftest.$ac_objext; then
17631 ac_cv_have_decl_F_CLOSEM=yes
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 ac_cv_have_decl_F_CLOSEM=no
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17642 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17643 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17644 cat >>confdefs.h <<\_ACEOF
17645 #define HAVE_FCNTL_CLOSEM 1
17655 for ac_func in mkstemp
17657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 cat >conftest.$ac_ext <<_ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17671 #define $ac_func innocuous_$ac_func
17673 /* System header to define __stub macros and hopefully few prototypes,
17674 which can conflict with char $ac_func (); below.
17675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17676 <limits.h> exists even on freestanding compilers. */
17679 # include <limits.h>
17681 # include <assert.h>
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17693 /* The GNU C library defines this for functions which it implements
17694 to always fail with ENOSYS. Some functions are actually named
17695 something starting with __ and the normal name is an alias. */
17696 #if defined __stub_$ac_func || defined __stub___$ac_func
17703 return $ac_func ();
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } && {
17722 test -z "$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17724 } && test -s conftest$ac_exeext &&
17725 $as_test_x conftest$ac_exeext; then
17726 eval "$as_ac_var=yes"
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 eval "$as_ac_var=no"
17734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17735 conftest$ac_exeext conftest.$ac_ext
17737 ac_res=`eval echo '${'$as_ac_var'}'`
17738 { echo "$as_me:$LINENO: result: $ac_res" >&5
17739 echo "${ECHO_T}$ac_res" >&6; }
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17746 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17749 for ac_func in random lrand48
17751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 cat >conftest.$ac_ext <<_ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17765 #define $ac_func innocuous_$ac_func
17767 /* System header to define __stub macros and hopefully few prototypes,
17768 which can conflict with char $ac_func (); below.
17769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17770 <limits.h> exists even on freestanding compilers. */
17773 # include <limits.h>
17775 # include <assert.h>
17780 /* Override any GCC internal prototype to avoid an error.
17781 Use char because int might match the return type of a GCC
17782 builtin and then its argument prototype would still apply. */
17787 /* The GNU C library defines this for functions which it implements
17788 to always fail with ENOSYS. Some functions are actually named
17789 something starting with __ and the normal name is an alias. */
17790 #if defined __stub_$ac_func || defined __stub___$ac_func
17797 return $ac_func ();
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (ac_try="$ac_link"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_link") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest$ac_exeext &&
17819 $as_test_x conftest$ac_exeext; then
17820 eval "$as_ac_var=yes"
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 eval "$as_ac_var=no"
17828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17829 conftest$ac_exeext conftest.$ac_ext
17831 ac_res=`eval echo '${'$as_ac_var'}'`
17832 { echo "$as_me:$LINENO: result: $ac_res" >&5
17833 echo "${ECHO_T}$ac_res" >&6; }
17834 if test `eval echo '${'$as_ac_var'}'` = yes; then
17835 cat >>confdefs.h <<_ACEOF
17836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17850 for ac_func in snprintf vsnprintf asprintf vasprintf
17852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17866 #define $ac_func innocuous_$ac_func
17868 /* System header to define __stub macros and hopefully few prototypes,
17869 which can conflict with char $ac_func (); below.
17870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17871 <limits.h> exists even on freestanding compilers. */
17874 # include <limits.h>
17876 # include <assert.h>
17881 /* Override any GCC internal prototype to avoid an error.
17882 Use char because int might match the return type of a GCC
17883 builtin and then its argument prototype would still apply. */
17888 /* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891 #if defined __stub_$ac_func || defined __stub___$ac_func
17898 return $ac_func ();
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (ac_try="$ac_link"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_link") 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && {
17917 test -z "$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 } && test -s conftest$ac_exeext &&
17920 $as_test_x conftest$ac_exeext; then
17921 eval "$as_ac_var=yes"
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 eval "$as_ac_var=no"
17929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17930 conftest$ac_exeext conftest.$ac_ext
17932 ac_res=`eval echo '${'$as_ac_var'}'`
17933 { echo "$as_me:$LINENO: result: $ac_res" >&5
17934 echo "${ECHO_T}$ac_res" >&6; }
17935 if test `eval echo '${'$as_ac_var'}'` = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17945 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17946 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17947 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17948 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 $ac_includes_default
17961 static struct stat ac_aggr;
17962 if (ac_aggr.st_mtim)
17968 rm -f conftest.$ac_objext
17969 if { (ac_try="$ac_compile"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_compile") 2>conftest.er1
17977 grep -v '^ *+' conftest.er1 >conftest.err
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && {
17982 test -z "$ac_c_werror_flag" ||
17983 test ! -s conftest.err
17984 } && test -s conftest.$ac_objext; then
17985 ac_cv_member_struct_stat_st_mtim=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
18000 static struct stat ac_aggr;
18001 if (sizeof ac_aggr.st_mtim)
18007 rm -f conftest.$ac_objext
18008 if { (ac_try="$ac_compile"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_compile") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } && {
18021 test -z "$ac_c_werror_flag" ||
18022 test ! -s conftest.err
18023 } && test -s conftest.$ac_objext; then
18024 ac_cv_member_struct_stat_st_mtim=yes
18026 echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.$ac_ext >&5
18029 ac_cv_member_struct_stat_st_mtim=no
18032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18038 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18039 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18040 cat >>confdefs.h <<\_ACEOF
18041 #define HAVE_ST_MTIM 1
18044 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18045 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18046 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 $ac_includes_default
18059 static struct stat ac_aggr;
18060 if (ac_aggr.st_mtim.st__tim)
18066 rm -f conftest.$ac_objext
18067 if { (ac_try="$ac_compile"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_compile") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && {
18080 test -z "$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 } && test -s conftest.$ac_objext; then
18083 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 $ac_includes_default
18098 static struct stat ac_aggr;
18099 if (sizeof ac_aggr.st_mtim.st__tim)
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_compile") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && {
18119 test -z "$ac_c_werror_flag" ||
18120 test ! -s conftest.err
18121 } && test -s conftest.$ac_objext; then
18122 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_member_struct_stat_st_mtim_st__tim=no
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18137 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_ST__TIM 1
18145 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18146 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18147 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 $ac_includes_default
18160 static struct stat ac_aggr;
18161 if (ac_aggr.st_mtimespec)
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest.$ac_objext; then
18184 ac_cv_member_struct_stat_st_mtimespec=yes
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 $ac_includes_default
18199 static struct stat ac_aggr;
18200 if (sizeof ac_aggr.st_mtimespec)
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_cv_member_struct_stat_st_mtimespec=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_cv_member_struct_stat_st_mtimespec=no
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18238 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18239 cat >>confdefs.h <<\_ACEOF
18240 #define HAVE_ST_MTIMESPEC 1
18247 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18248 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 #include <sys/types.h>
18256 #include <sys/time.h>
18260 struct timespec ts1, ts2;
18261 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18262 #ifndef timespecsub
18263 #error missing timespecsub
18265 timespecsub(&ts1, &ts2);
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_compile") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest.$ac_objext; then
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_TIMESPECSUB2 1
18291 { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 { echo "$as_me:$LINENO: result: no" >&5
18298 echo "${ECHO_T}no" >&6; }
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <sys/types.h>
18310 #include <$ac_header_dirent>
18314 DIR *d; (void)dirfd(d);
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest$ac_exeext &&
18336 $as_test_x conftest$ac_exeext; then
18337 cat >>confdefs.h <<\_ACEOF
18338 #define HAVE_DIRFD 1
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 cat >conftest.$ac_ext <<_ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351 #include <sys/types.h>
18352 #include <$ac_header_dirent>
18356 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_link") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest$ac_exeext &&
18378 $as_test_x conftest$ac_exeext; then
18379 cat >>confdefs.h <<\_ACEOF
18380 #define HAVE_DD_FD 1
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18391 conftest$ac_exeext conftest.$ac_ext
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395 conftest$ac_exeext conftest.$ac_ext
18396 if test -n "$NEED_SNPRINTF"; then
18397 case " $LIBOBJS " in
18398 *" snprintf.$ac_objext "* ) ;;
18399 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18404 { echo "$as_me:$LINENO: checking for socket" >&5
18405 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18406 if test "${ac_cv_func_socket+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18417 #define socket innocuous_socket
18419 /* System header to define __stub macros and hopefully few prototypes,
18420 which can conflict with char socket (); below.
18421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422 <limits.h> exists even on freestanding compilers. */
18425 # include <limits.h>
18427 # include <assert.h>
18432 /* Override any GCC internal prototype to avoid an error.
18433 Use char because int might match the return type of a GCC
18434 builtin and then its argument prototype would still apply. */
18439 /* The GNU C library defines this for functions which it implements
18440 to always fail with ENOSYS. Some functions are actually named
18441 something starting with __ and the normal name is an alias. */
18442 #if defined __stub_socket || defined __stub___socket
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_link") 2>conftest.er1
18463 grep -v '^ *+' conftest.er1 >conftest.err
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } && {
18468 test -z "$ac_c_werror_flag" ||
18469 test ! -s conftest.err
18470 } && test -s conftest$ac_exeext &&
18471 $as_test_x conftest$ac_exeext; then
18472 ac_cv_func_socket=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_func_socket=no
18480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18481 conftest$ac_exeext conftest.$ac_ext
18483 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18484 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18485 if test $ac_cv_func_socket = yes; then
18488 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18489 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18490 if test "${ac_cv_lib_socket_socket+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lsocket $LIBS"
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18502 /* Override any GCC internal prototype to avoid an error.
18503 Use char because int might match the return type of a GCC
18504 builtin and then its argument prototype would still apply. */
18517 rm -f conftest.$ac_objext conftest$ac_exeext
18518 if { (ac_try="$ac_link"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_link") 2>conftest.er1
18526 grep -v '^ *+' conftest.er1 >conftest.err
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest$ac_exeext &&
18534 $as_test_x conftest$ac_exeext; then
18535 ac_cv_lib_socket_socket=yes
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 ac_cv_lib_socket_socket=no
18543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18548 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18549 if test $ac_cv_lib_socket_socket = yes; then
18550 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18552 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18553 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18554 if test "${ac_cv_lib_inet_socket+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 ac_check_lib_save_LIBS=$LIBS
18558 LIBS="-linet $LIBS"
18559 cat >conftest.$ac_ext <<_ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18566 /* Override any GCC internal prototype to avoid an error.
18567 Use char because int might match the return type of a GCC
18568 builtin and then its argument prototype would still apply. */
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_link") 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } && {
18595 test -z "$ac_c_werror_flag" ||
18596 test ! -s conftest.err
18597 } && test -s conftest$ac_exeext &&
18598 $as_test_x conftest$ac_exeext; then
18599 ac_cv_lib_inet_socket=yes
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 ac_cv_lib_inet_socket=no
18607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18611 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18612 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18613 if test $ac_cv_lib_inet_socket = yes; then
18614 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18616 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18617 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18618 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18619 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lsocket -lnsl $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } && {
18661 test -z "$ac_c_werror_flag" ||
18662 test ! -s conftest.err
18663 } && test -s conftest$ac_exeext &&
18664 $as_test_x conftest$ac_exeext; then
18665 ac_cv_lib_socket_socket_lnsl=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_lib_socket_socket_lnsl=no
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674 conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18677 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18678 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18679 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18680 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18689 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18690 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18691 if test "${ac_cv_func_inet_addr+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18702 #define inet_addr innocuous_inet_addr
18704 /* System header to define __stub macros and hopefully few prototypes,
18705 which can conflict with char inet_addr (); below.
18706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18707 <limits.h> exists even on freestanding compilers. */
18710 # include <limits.h>
18712 # include <assert.h>
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18724 /* The GNU C library defines this for functions which it implements
18725 to always fail with ENOSYS. Some functions are actually named
18726 something starting with __ and the normal name is an alias. */
18727 #if defined __stub_inet_addr || defined __stub___inet_addr
18734 return inet_addr ();
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (ac_try="$ac_link"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18748 grep -v '^ *+' conftest.er1 >conftest.err
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest$ac_exeext &&
18756 $as_test_x conftest$ac_exeext; then
18757 ac_cv_func_inet_addr=yes
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 ac_cv_func_inet_addr=no
18765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766 conftest$ac_exeext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18769 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18770 if test $ac_cv_func_inet_addr = yes; then
18773 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18774 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18775 if test "${ac_cv_func___inet_addr+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786 #define __inet_addr innocuous___inet_addr
18788 /* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char __inet_addr (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18794 # include <limits.h>
18796 # include <assert.h>
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18807 char __inet_addr ();
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined __stub___inet_addr || defined __stub_____inet_addr
18818 return __inet_addr ();
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest$ac_exeext &&
18840 $as_test_x conftest$ac_exeext; then
18841 ac_cv_func___inet_addr=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_func___inet_addr=no
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18853 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18854 if test $ac_cv_func___inet_addr = yes; then
18857 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18858 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18859 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 ac_check_lib_save_LIBS=$LIBS
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18871 /* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18881 return inet_addr ();
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_link") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest$ac_exeext &&
18903 $as_test_x conftest$ac_exeext; then
18904 ac_cv_lib_nsl_inet_addr=yes
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_lib_nsl_inet_addr=no
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18917 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18918 if test $ac_cv_lib_nsl_inet_addr = yes; then
18919 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18921 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18922 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 ac_check_lib_save_LIBS=$LIBS
18927 LIBS="-linet $LIBS"
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18945 return inet_addr ();
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext &&
18967 $as_test_x conftest$ac_exeext; then
18968 ac_cv_lib_inet_inet_addr=yes
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_lib_inet_inet_addr=no
18976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977 conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18980 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18981 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18982 if test $ac_cv_lib_inet_inet_addr = yes; then
18983 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18985 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18986 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18987 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18988 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-lsocket -lnsl $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 /* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19011 return inet_addr ();
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } && {
19030 test -z "$ac_c_werror_flag" ||
19031 test ! -s conftest.err
19032 } && test -s conftest$ac_exeext &&
19033 $as_test_x conftest$ac_exeext; then
19034 ac_cv_lib_socket_inet_addr_lnsl=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_cv_lib_socket_inet_addr_lnsl=no
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043 conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19047 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19048 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19049 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19060 { echo "$as_me:$LINENO: checking for syslog" >&5
19061 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19062 if test "${ac_cv_func_syslog+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19073 #define syslog innocuous_syslog
19075 /* System header to define __stub macros and hopefully few prototypes,
19076 which can conflict with char syslog (); below.
19077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19078 <limits.h> exists even on freestanding compilers. */
19081 # include <limits.h>
19083 # include <assert.h>
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19095 /* The GNU C library defines this for functions which it implements
19096 to always fail with ENOSYS. Some functions are actually named
19097 something starting with __ and the normal name is an alias. */
19098 #if defined __stub_syslog || defined __stub___syslog
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (ac_try="$ac_link"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_link") 2>conftest.er1
19119 grep -v '^ *+' conftest.er1 >conftest.err
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && {
19124 test -z "$ac_c_werror_flag" ||
19125 test ! -s conftest.err
19126 } && test -s conftest$ac_exeext &&
19127 $as_test_x conftest$ac_exeext; then
19128 ac_cv_func_syslog=yes
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_func_syslog=no
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137 conftest$ac_exeext conftest.$ac_ext
19139 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19140 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19141 if test $ac_cv_func_syslog = yes; then
19144 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19145 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19146 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lsocket $LIBS"
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19158 /* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_link") 2>conftest.er1
19182 grep -v '^ *+' conftest.er1 >conftest.err
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest$ac_exeext &&
19190 $as_test_x conftest$ac_exeext; then
19191 ac_cv_lib_socket_syslog=yes
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_lib_socket_syslog=no
19199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19204 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19205 if test $ac_cv_lib_socket_syslog = yes; then
19206 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19208 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19209 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19210 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 ac_check_lib_save_LIBS=$LIBS
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19222 /* Override any GCC internal prototype to avoid an error.
19223 Use char because int might match the return type of a GCC
19224 builtin and then its argument prototype would still apply. */
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (ac_try="$ac_link"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_link") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && {
19251 test -z "$ac_c_werror_flag" ||
19252 test ! -s conftest.err
19253 } && test -s conftest$ac_exeext &&
19254 $as_test_x conftest$ac_exeext; then
19255 ac_cv_lib_nsl_syslog=yes
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 ac_cv_lib_nsl_syslog=no
19263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19264 conftest$ac_exeext conftest.$ac_ext
19265 LIBS=$ac_check_lib_save_LIBS
19267 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19268 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19269 if test $ac_cv_lib_nsl_syslog = yes; then
19270 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19272 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19273 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19274 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-linet $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_link") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest$ac_exeext &&
19318 $as_test_x conftest$ac_exeext; then
19319 ac_cv_lib_inet_syslog=yes
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ac_cv_lib_inet_syslog=no
19327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19328 conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_check_lib_save_LIBS
19331 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19332 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19333 if test $ac_cv_lib_inet_syslog = yes; then
19334 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19343 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19344 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19345 # for constant arguments. Useless!
19346 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19347 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19348 if test "${ac_cv_working_alloca_h+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include <alloca.h>
19361 char *p = (char *) alloca (2 * sizeof (int));
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (ac_try="$ac_link"
19369 case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_link") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest$ac_exeext &&
19384 $as_test_x conftest$ac_exeext; then
19385 ac_cv_working_alloca_h=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_working_alloca_h=no
19393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19394 conftest$ac_exeext conftest.$ac_ext
19396 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19397 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19398 if test $ac_cv_working_alloca_h = yes; then
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_ALLOCA_H 1
19406 { echo "$as_me:$LINENO: checking for alloca" >&5
19407 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19408 if test "${ac_cv_func_alloca_works+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 cat >conftest.$ac_ext <<_ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 # define alloca __builtin_alloca
19421 # include <malloc.h>
19422 # define alloca _alloca
19424 # ifdef HAVE_ALLOCA_H
19425 # include <alloca.h>
19430 # ifndef alloca /* predefined by HP cc +Olibcalls */
19441 char *p = (char *) alloca (1);
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest$ac_exeext &&
19464 $as_test_x conftest$ac_exeext; then
19465 ac_cv_func_alloca_works=yes
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_func_alloca_works=no
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19476 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19479 if test $ac_cv_func_alloca_works = yes; then
19481 cat >>confdefs.h <<\_ACEOF
19482 #define HAVE_ALLOCA 1
19486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19487 # that cause trouble. Some versions do not even contain alloca or
19488 # contain a buggy version. If you still want to use their alloca,
19489 # use ar to extract alloca.o from them instead of compiling alloca.c.
19491 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19493 cat >>confdefs.h <<\_ACEOF
19498 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19500 if test "${ac_cv_os_cray+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 cat >conftest.$ac_ext <<_ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 #if defined CRAY && ! defined CRAY2
19516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19517 $EGREP "webecray" >/dev/null 2>&1; then
19525 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19526 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19527 if test $ac_cv_os_cray = yes; then
19528 for ac_func in _getb67 GETB67 getb67; do
19529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19543 #define $ac_func innocuous_$ac_func
19545 /* System header to define __stub macros and hopefully few prototypes,
19546 which can conflict with char $ac_func (); below.
19547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19548 <limits.h> exists even on freestanding compilers. */
19551 # include <limits.h>
19553 # include <assert.h>
19558 /* Override any GCC internal prototype to avoid an error.
19559 Use char because int might match the return type of a GCC
19560 builtin and then its argument prototype would still apply. */
19565 /* The GNU C library defines this for functions which it implements
19566 to always fail with ENOSYS. Some functions are actually named
19567 something starting with __ and the normal name is an alias. */
19568 #if defined __stub_$ac_func || defined __stub___$ac_func
19575 return $ac_func ();
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_link") 2>conftest.er1
19589 grep -v '^ *+' conftest.er1 >conftest.err
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } && {
19594 test -z "$ac_c_werror_flag" ||
19595 test ! -s conftest.err
19596 } && test -s conftest$ac_exeext &&
19597 $as_test_x conftest$ac_exeext; then
19598 eval "$as_ac_var=yes"
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 eval "$as_ac_var=no"
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607 conftest$ac_exeext conftest.$ac_ext
19609 ac_res=`eval echo '${'$as_ac_var'}'`
19610 { echo "$as_me:$LINENO: result: $ac_res" >&5
19611 echo "${ECHO_T}$ac_res" >&6; }
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define CRAY_STACKSEG_END $ac_func
19624 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19625 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19626 if test "${ac_cv_c_stack_direction+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 if test "$cross_compiling" = yes; then
19630 ac_cv_c_stack_direction=0
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 $ac_includes_default
19640 find_stack_direction ()
19642 static char *addr = 0;
19647 return find_stack_direction ();
19650 return (&dummy > addr) ? 1 : -1;
19656 return find_stack_direction () < 0;
19659 rm -f conftest$ac_exeext
19660 if { (ac_try="$ac_link"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_link") 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_try") 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 ac_cv_c_stack_direction=1
19681 echo "$as_me: program exited with status $ac_status" >&5
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ( exit $ac_status )
19686 ac_cv_c_stack_direction=-1
19688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19693 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19694 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19696 cat >>confdefs.h <<_ACEOF
19697 #define STACK_DIRECTION $ac_cv_c_stack_direction
19705 for ac_func in getprogname
19707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19721 #define $ac_func innocuous_$ac_func
19723 /* System header to define __stub macros and hopefully few prototypes,
19724 which can conflict with char $ac_func (); below.
19725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726 <limits.h> exists even on freestanding compilers. */
19729 # include <limits.h>
19731 # include <assert.h>
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined __stub_$ac_func || defined __stub___$ac_func
19753 return $ac_func ();
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 eval "$as_ac_var=yes"
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 eval "$as_ac_var=no"
19784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19785 conftest$ac_exeext conftest.$ac_ext
19787 ac_res=`eval echo '${'$as_ac_var'}'`
19788 { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19790 if test `eval echo '${'$as_ac_var'}'` = yes; then
19791 cat >>confdefs.h <<_ACEOF
19792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19797 { echo "$as_me:$LINENO: checking for __progname" >&5
19798 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19799 if test "${sudo_cv___progname+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19813 extern char *__progname; (void)puts(__progname);
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } && {
19832 test -z "$ac_c_werror_flag" ||
19833 test ! -s conftest.err
19834 } && test -s conftest$ac_exeext &&
19835 $as_test_x conftest$ac_exeext; then
19836 sudo_cv___progname=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 sudo_cv___progname=no
19844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19845 conftest$ac_exeext conftest.$ac_ext
19848 if test "$sudo_cv___progname" = "yes"; then
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE___PROGNAME 1
19854 case " $LIBOBJS " in
19855 *" getprogname.$ac_objext "* ) ;;
19856 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19861 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19862 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19869 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19870 for auth in $AUTH_EXCL_DEF; do
19872 AIX_AUTH) with_aixauth=maybe;;
19873 BSD_AUTH) with_bsdauth=maybe;;
19874 PAM) with_pam=maybe;;
19875 SIA) CHECKSIA=true;;
19880 if test ${with_pam-"no"} != "no"; then
19881 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19882 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19883 if test "${ac_cv_lib_dl_main+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 ac_check_lib_save_LIBS=$LIBS
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_link") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1 >conftest.err
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest$ac_exeext &&
19921 $as_test_x conftest$ac_exeext; then
19922 ac_cv_lib_dl_main=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_lib_dl_main=no
19930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931 conftest$ac_exeext conftest.$ac_ext
19932 LIBS=$ac_check_lib_save_LIBS
19934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19935 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19936 if test $ac_cv_lib_dl_main = yes; then
19937 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19939 SUDO_LIBS="${SUDO_LIBS} -lpam"
19942 ac_cv_lib_dl=ac_cv_lib_dl_main
19946 for ac_header in security/pam_appl.h pam/pam_appl.h
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19959 # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19969 #include <$ac_header>
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 ac_header_compiler=yes
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_header_compiler=no
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6; }
20000 # Is the header present?
20001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <$ac_header>
20011 if { (ac_try="$ac_cpp conftest.$ac_ext"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } >/dev/null && {
20024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20027 ac_header_preproc=yes
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_header_preproc=no
20035 rm -f conftest.err conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037 echo "${ECHO_T}$ac_header_preproc" >&6; }
20039 # So? What about this header?
20040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 eval "$as_ac_Header=\$ac_header_preproc"
20071 ac_res=`eval echo '${'$as_ac_Header'}'`
20072 { echo "$as_me:$LINENO: result: $ac_res" >&5
20073 echo "${ECHO_T}$ac_res" >&6; }
20076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20077 cat >>confdefs.h <<_ACEOF
20078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20080 with_pam=yes; break
20085 if test "$with_pam" = "yes"; then
20086 cat >>confdefs.h <<\_ACEOF
20090 AUTH_OBJS="$AUTH_OBJS pam.o";
20092 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20093 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20094 # Check whether --enable-pam_session was given.
20095 if test "${enable_pam_session+set}" = set; then
20096 enableval=$enable_pam_session; case "$enableval" in
20097 yes) { echo "$as_me:$LINENO: result: yes" >&5
20098 echo "${ECHO_T}yes" >&6; }
20100 no) { echo "$as_me:$LINENO: result: no" >&5
20101 echo "${ECHO_T}no" >&6; }
20102 cat >>confdefs.h <<\_ACEOF
20103 #define NO_PAM_SESSION 1
20107 *) { echo "$as_me:$LINENO: result: no" >&5
20108 echo "${ECHO_T}no" >&6; }
20109 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20110 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20114 { echo "$as_me:$LINENO: result: yes" >&5
20115 echo "${ECHO_T}yes" >&6; }
20119 *-*-linux*|*-*-solaris*)
20120 # dgettext() may be defined to dgettext_libintl in the
20121 # header file, so first check that it links w/ additional
20122 # libs, then try with -lintl
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 #include <libintl.h>
20133 (void)dgettext((char *)0, (char *)0);
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext &&
20155 $as_test_x conftest$ac_exeext; then
20156 cat >>confdefs.h <<\_ACEOF
20157 #define HAVE_DGETTEXT 1
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20165 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lintl $LIBS"
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20178 /* Override any GCC internal prototype to avoid an error.
20179 Use char because int might match the return type of a GCC
20180 builtin and then its argument prototype would still apply. */
20188 return dgettext ();
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest$ac_exeext &&
20210 $as_test_x conftest$ac_exeext; then
20211 ac_cv_lib_intl_dgettext=yes
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_cv_lib_intl_dgettext=no
20219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20220 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20223 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20224 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20225 if test $ac_cv_lib_intl_dgettext = yes; then
20226 LIBS="${LIBS} -lintl"
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_DGETTEXT 1
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20242 if test ${with_aixauth-'no'} != "no"; then
20243 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20244 { echo "$as_me:$LINENO: using AIX general authentication" >&5
20245 echo "$as_me: using AIX general authentication" >&6;}
20246 cat >>confdefs.h <<\_ACEOF
20247 #define HAVE_AIXAUTH 1
20250 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20251 SUDO_LIBS="${SUDO_LIBS} -ls"
20256 if test ${with_bsdauth-'no'} != "no"; then
20257 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20258 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20259 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20260 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20264 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20266 # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20268 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20276 #include <bsd_auth.h>
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest.$ac_objext; then
20295 ac_header_compiler=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_header_compiler=no
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20305 echo "${ECHO_T}$ac_header_compiler" >&6; }
20307 # Is the header present?
20308 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20309 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <bsd_auth.h>
20318 if { (ac_try="$ac_cpp conftest.$ac_ext"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } >/dev/null && {
20331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20334 ac_header_preproc=yes
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_preproc=no
20342 rm -f conftest.err conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20344 echo "${ECHO_T}$ac_header_preproc" >&6; }
20346 # So? What about this header?
20347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20349 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20350 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20352 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20353 ac_header_preproc=yes
20356 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20361 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20363 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20365 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20367 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20371 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20372 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20373 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 ac_cv_header_bsd_auth_h=$ac_header_preproc
20378 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20379 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20382 if test $ac_cv_header_bsd_auth_h = yes; then
20383 cat >>confdefs.h <<\_ACEOF
20384 #define HAVE_BSD_AUTH_H 1
20387 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20388 AUTH_EXCL=BSD_AUTH; BAMAN=""
20390 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20391 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20392 { (exit 1); exit 1; }; }
20398 if test ${CHECKSIA-'false'} = "true"; then
20400 for ac_func in sia_ses_init
20402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20416 #define $ac_func innocuous_$ac_func
20418 /* System header to define __stub macros and hopefully few prototypes,
20419 which can conflict with char $ac_func (); below.
20420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20421 <limits.h> exists even on freestanding compilers. */
20424 # include <limits.h>
20426 # include <assert.h>
20431 /* Override any GCC internal prototype to avoid an error.
20432 Use char because int might match the return type of a GCC
20433 builtin and then its argument prototype would still apply. */
20438 /* The GNU C library defines this for functions which it implements
20439 to always fail with ENOSYS. Some functions are actually named
20440 something starting with __ and the normal name is an alias. */
20441 #if defined __stub_$ac_func || defined __stub___$ac_func
20448 return $ac_func ();
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 eval "$as_ac_var=yes"
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 eval "$as_ac_var=no"
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20482 ac_res=`eval echo '${'$as_ac_var'}'`
20483 { echo "$as_me:$LINENO: result: $ac_res" >&5
20484 echo "${ECHO_T}$ac_res" >&6; }
20485 if test `eval echo '${'$as_ac_var'}'` = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20495 if test "$found" = "true"; then
20497 AUTH_OBJS="$AUTH_OBJS sia.o"
20501 if test ${with_fwtk-'no'} != "no"; then
20502 if test "$with_fwtk" != "yes"; then
20504 if test X"$with_rpath" = X"yes"; then
20505 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20507 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20509 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20510 blibpath_add="${blibpath_add}:${with_fwtk}"
20513 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20516 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20517 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20520 if test ${with_SecurID-'no'} != "no"; then
20521 if test "$with_SecurID" != "yes"; then
20523 elif test -d /usr/ace/examples; then
20524 with_SecurID=/usr/ace/examples
20526 with_SecurID=/usr/ace
20528 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20529 _LDFLAGS="${LDFLAGS}"
20531 if test X"$with_rpath" = X"yes"; then
20532 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20534 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20536 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20537 blibpath_add="${blibpath_add}:${with_SecurID}"
20541 # Determine whether to use the new or old SecurID API
20543 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20544 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20545 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 ac_check_lib_save_LIBS=$LIBS
20553 cat >conftest.$ac_ext <<_ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20560 /* Override any GCC internal prototype to avoid an error.
20561 Use char because int might match the return type of a GCC
20562 builtin and then its argument prototype would still apply. */
20575 rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_link") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest$ac_exeext &&
20592 $as_test_x conftest$ac_exeext; then
20593 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20602 conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20605 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20606 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20607 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20609 AUTH_OBJS="$AUTH_OBJS securid5.o";
20610 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20614 if test X"$with_rpath" = X"yes"; then
20615 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20617 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20619 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20620 blibpath_add="${blibpath_add}:${with_SecurID}"
20626 AUTH_OBJS="$AUTH_OBJS securid.o";
20627 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20631 LDFLAGS="${_LDFLAGS}"
20635 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20636 for auth in $AUTH_DEF; do
20638 passwd) : ${with_passwd='maybe'};;
20643 if test ${with_kerb4-'no'} != "no"; then
20644 cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_KERB4 1
20648 O_LDFLAGS="$LDFLAGS"
20649 if test "$with_kerb4" = "yes"; then
20651 O_CPPFLAGS="$CPPFLAGS"
20652 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20653 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20654 cat >conftest.$ac_ext <<_ACEOF
20657 if { (ac_try="$ac_cpp conftest.$ac_ext"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } >/dev/null && {
20670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20681 rm -f conftest.err conftest.$ac_ext
20683 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20686 if test X"$with_rpath" = X"yes"; then
20687 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20689 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20691 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20692 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20696 if test X"$with_rpath" = X"yes"; then
20697 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20699 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20701 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20702 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20705 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20706 if test "${ac_cv_header_krb_h+set}" = set; then
20707 { echo "$as_me:$LINENO: checking for krb.h" >&5
20708 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20709 if test "${ac_cv_header_krb_h+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20713 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20715 # Is the header compilable?
20716 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20717 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20718 cat >conftest.$ac_ext <<_ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20724 $ac_includes_default
20727 rm -f conftest.$ac_objext
20728 if { (ac_try="$ac_compile"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_compile") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest.$ac_objext; then
20744 ac_header_compiler=yes
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_header_compiler=no
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20754 echo "${ECHO_T}$ac_header_compiler" >&6; }
20756 # Is the header present?
20757 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20758 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20767 if { (ac_try="$ac_cpp conftest.$ac_ext"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20775 grep -v '^ *+' conftest.er1 >conftest.err
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } >/dev/null && {
20780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20783 ac_header_preproc=yes
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_header_preproc=no
20791 rm -f conftest.err conftest.$ac_ext
20792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20793 echo "${ECHO_T}$ac_header_preproc" >&6; }
20795 # So? What about this header?
20796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20798 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20799 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20801 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20802 ac_header_preproc=yes
20805 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20806 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20808 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20810 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20812 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20814 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20816 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20820 { echo "$as_me:$LINENO: checking for krb.h" >&5
20821 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20822 if test "${ac_cv_header_krb_h+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 ac_cv_header_krb_h=$ac_header_preproc
20827 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20828 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20831 if test $ac_cv_header_krb_h = yes; then
20839 if test X"$found" = X"no"; then
20840 { 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
20841 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;}
20844 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20845 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20846 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 ac_check_lib_save_LIBS=$LIBS
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20858 /* Override any GCC internal prototype to avoid an error.
20859 Use char because int might match the return type of a GCC
20860 builtin and then its argument prototype would still apply. */
20864 char des_cbc_encrypt ();
20868 return des_cbc_encrypt ();
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_link") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest$ac_exeext &&
20890 $as_test_x conftest$ac_exeext; then
20891 ac_cv_lib_des_des_cbc_encrypt=yes
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_cv_lib_des_des_cbc_encrypt=no
20899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20900 conftest$ac_exeext conftest.$ac_ext
20901 LIBS=$ac_check_lib_save_LIBS
20903 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20904 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20905 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20909 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20910 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20911 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 ac_check_lib_save_LIBS=$LIBS
20915 LIBS="-ldes425 $LIBS"
20916 cat >conftest.$ac_ext <<_ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20923 /* Override any GCC internal prototype to avoid an error.
20924 Use char because int might match the return type of a GCC
20925 builtin and then its argument prototype would still apply. */
20929 char des_cbc_encrypt ();
20933 return des_cbc_encrypt ();
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext &&
20955 $as_test_x conftest$ac_exeext; then
20956 ac_cv_lib_des425_des_cbc_encrypt=yes
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_cv_lib_des425_des_cbc_encrypt=no
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965 conftest$ac_exeext conftest.$ac_ext
20966 LIBS=$ac_check_lib_save_LIBS
20968 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20969 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20970 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20979 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20980 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20991 const char *tmp = krb4_version;
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_compile") 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && {
21010 test -z "$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21012 } && test -s conftest.$ac_objext; then
21014 { echo "$as_me:$LINENO: result: yes" >&5
21015 echo "${ECHO_T}yes" >&6; }
21016 K4LIBS="${K4LIBS} -lcom_err"
21017 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21018 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_roken_main+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-lroken $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21040 rm -f conftest.$ac_objext conftest$ac_exeext
21041 if { (ac_try="$ac_link"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_link") 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && {
21054 test -z "$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 } && test -s conftest$ac_exeext &&
21057 $as_test_x conftest$ac_exeext; then
21058 ac_cv_lib_roken_main=yes
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_cv_lib_roken_main=no
21066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21067 conftest$ac_exeext conftest.$ac_ext
21068 LIBS=$ac_check_lib_save_LIBS
21070 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21071 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21072 if test $ac_cv_lib_roken_main = yes; then
21073 K4LIBS="${K4LIBS} -lroken"
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21082 { echo "$as_me:$LINENO: result: no" >&5
21083 echo "${ECHO_T}no" >&6; }
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21090 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21091 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21092 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 ac_check_lib_save_LIBS=$LIBS
21096 LIBS="-lkrb $K4LIBS $LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21113 rm -f conftest.$ac_objext conftest$ac_exeext
21114 if { (ac_try="$ac_link"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_link") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && {
21127 test -z "$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 } && test -s conftest$ac_exeext &&
21130 $as_test_x conftest$ac_exeext; then
21131 eval "$as_ac_Lib=yes"
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 eval "$as_ac_Lib=no"
21139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21140 conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21143 ac_res=`eval echo '${'$as_ac_Lib'}'`
21144 { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21147 K4LIBS="-lkrb $K4LIBS"
21150 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21151 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21152 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21153 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 ac_check_lib_save_LIBS=$LIBS
21157 LIBS="-lkrb4 $K4LIBS $LIBS"
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest$ac_exeext &&
21191 $as_test_x conftest$ac_exeext; then
21192 eval "$as_ac_Lib=yes"
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 eval "$as_ac_Lib=no"
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201 conftest$ac_exeext conftest.$ac_ext
21202 LIBS=$ac_check_lib_save_LIBS
21204 ac_res=`eval echo '${'$as_ac_Lib'}'`
21205 { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21207 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21208 K4LIBS="-lkrb4 $K4LIBS"
21210 K4LIBS="-lkrb $K4LIBS"
21211 { 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
21212 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;}
21219 LDFLAGS="$O_LDFLAGS"
21220 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21221 AUTH_OBJS="$AUTH_OBJS kerb4.o"
21224 if test ${with_kerb5-'no'} != "no"; then
21225 # Extract the first word of "krb5-config", so it can be a program name with args.
21226 set dummy krb5-config; ac_word=$2
21227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21229 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 if test -n "$KRB5CONFIG"; then
21233 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21236 for as_dir in $PATH
21239 test -z "$as_dir" && as_dir=.
21240 for ac_exec_ext in '' $ac_executable_extensions; do
21241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21242 ac_cv_prog_KRB5CONFIG="yes"
21243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21250 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21253 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21254 if test -n "$KRB5CONFIG"; then
21255 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21256 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21258 { echo "$as_me:$LINENO: result: no" >&5
21259 echo "${ECHO_T}no" >&6; }
21263 if test -n "$KRB5CONFIG"; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_KERB5 1
21268 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21269 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21270 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21271 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21272 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21283 const char *tmp = heimdal_version;
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21306 { echo "$as_me:$LINENO: result: yes" >&5
21307 echo "${ECHO_T}yes" >&6; }
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_HEIMDAL 1
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21318 { echo "$as_me:$LINENO: result: no" >&5
21319 echo "${ECHO_T}no" >&6; }
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21328 cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_KERB5 1
21332 if test "$with_kerb5" = "yes"; then
21334 O_CPPFLAGS="$CPPFLAGS"
21335 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21336 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21337 cat >conftest.$ac_ext <<_ACEOF
21340 if { (ac_try="$ac_cpp conftest.$ac_ext"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } >/dev/null && {
21353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21364 rm -f conftest.err conftest.$ac_ext
21366 if test X"$found" = X"no"; then
21367 CPPFLAGS="$O_CPPFLAGS"
21368 { 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
21369 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;}
21373 if test X"$with_rpath" = X"yes"; then
21374 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21376 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21378 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21379 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21382 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21385 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21386 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21397 const char *tmp = heimdal_version;
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_compile") 2>conftest.er1
21411 grep -v '^ *+' conftest.er1 >conftest.err
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest.$ac_objext; then
21420 { echo "$as_me:$LINENO: result: yes" >&5
21421 echo "${ECHO_T}yes" >&6; }
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_HEIMDAL 1
21426 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21427 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21428 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21429 if test "${ac_cv_lib_roken_main+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 ac_check_lib_save_LIBS=$LIBS
21433 LIBS="-lroken $LIBS"
21434 cat >conftest.$ac_ext <<_ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_link") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext &&
21467 $as_test_x conftest$ac_exeext; then
21468 ac_cv_lib_roken_main=yes
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ac_cv_lib_roken_main=no
21476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21477 conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21480 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21481 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21482 if test $ac_cv_lib_roken_main = yes; then
21483 SUDO_LIBS="${SUDO_LIBS} -lroken"
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21492 { echo "$as_me:$LINENO: result: no" >&5
21493 echo "${ECHO_T}no" >&6; }
21494 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21495 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21496 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21497 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 ac_check_lib_save_LIBS=$LIBS
21501 LIBS="-lkrb5support $LIBS"
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21518 rm -f conftest.$ac_objext conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_link") 2>conftest.er1
21527 grep -v '^ *+' conftest.er1 >conftest.err
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && {
21532 test -z "$ac_c_werror_flag" ||
21533 test ! -s conftest.err
21534 } && test -s conftest$ac_exeext &&
21535 $as_test_x conftest$ac_exeext; then
21536 ac_cv_lib_krb5support_main=yes
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_cv_lib_krb5support_main=no
21544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21545 conftest$ac_exeext conftest.$ac_ext
21546 LIBS=$ac_check_lib_save_LIBS
21548 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21549 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21550 if test $ac_cv_lib_krb5support_main = yes; then
21551 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21560 LIBS="${LIBS} ${SUDO_LIBS}"
21563 for ac_func in krb5_verify_user krb5_init_secure_context
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21579 #define $ac_func innocuous_$ac_func
21581 /* System header to define __stub macros and hopefully few prototypes,
21582 which can conflict with char $ac_func (); below.
21583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584 <limits.h> exists even on freestanding compilers. */
21587 # include <limits.h>
21589 # include <assert.h>
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21601 /* The GNU C library defines this for functions which it implements
21602 to always fail with ENOSYS. Some functions are actually named
21603 something starting with __ and the normal name is an alias. */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21611 return $ac_func ();
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext &&
21633 $as_test_x conftest$ac_exeext; then
21634 eval "$as_ac_var=yes"
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 eval "$as_ac_var=no"
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643 conftest$ac_exeext conftest.$ac_ext
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646 { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21659 if test ${with_AFS-'no'} = "yes"; then
21661 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21662 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21663 for i in $AFSLIBDIRS; do
21664 if test -d ${i}; then
21666 if test X"$with_rpath" = X"yes"; then
21667 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21669 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21671 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21672 blibpath_add="${blibpath_add}:$i"
21675 FOUND_AFSLIBDIR=true
21678 if test -z "$FOUND_AFSLIBDIR"; then
21679 { 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
21680 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;}
21683 # Order is important here. Note that we build AFS_LIBS from right to left
21684 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21685 AFS_LIBS="-laudit ${AFS_LIBS}"
21686 for i in $AFSLIBDIRS; do
21687 if test -f ${i}/util.a; then
21688 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21693 if test -z "$FOUND_UTIL_A"; then
21694 AFS_LIBS="-lutil ${AFS_LIBS}"
21696 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21698 # AFS includes may live in /usr/include on some machines...
21699 for i in /usr/afsws/include; do
21700 if test -d ${i}; then
21701 CPPFLAGS="${CPPFLAGS} -I${i}"
21702 FOUND_AFSINCDIR=true
21706 if test -z "$FOUND_AFSLIBDIR"; then
21707 { 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
21708 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;}
21711 AUTH_OBJS="$AUTH_OBJS afs.o"
21714 if test ${with_DCE-'no'} = "yes"; then
21715 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21716 SUDO_LIBS="${SUDO_LIBS} -ldce"
21717 AUTH_OBJS="$AUTH_OBJS dce.o"
21720 if test ${with_skey-'no'} = "yes"; then
21721 O_LDFLAGS="$LDFLAGS"
21722 if test "$with_skey" != "yes"; then
21723 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21725 if test X"$with_rpath" = X"yes"; then
21726 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21728 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21730 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21731 blibpath_add="${blibpath_add}:${with_skey}/lib"
21735 if test X"$with_rpath" = X"yes"; then
21736 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21738 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21740 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21741 blibpath_add="${blibpath_add}:${with_skey}/lib"
21744 cat >conftest.$ac_ext <<_ACEOF
21747 if { (ac_try="$ac_cpp conftest.$ac_ext"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } >/dev/null && {
21760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21771 rm -f conftest.err conftest.$ac_ext
21774 O_CPPFLAGS="$CPPFLAGS"
21775 for dir in "" "/usr/local" "/usr/contrib"; do
21776 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21777 cat >conftest.$ac_ext <<_ACEOF
21780 if { (ac_try="$ac_cpp conftest.$ac_ext"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } >/dev/null && {
21793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21804 rm -f conftest.err conftest.$ac_ext
21806 if test "$found" = "no" -o -z "$dir"; then
21807 CPPFLAGS="$O_CPPFLAGS"
21810 if test X"$with_rpath" = X"yes"; then
21811 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21813 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21815 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21816 blibpath_add="${blibpath_add}:${dir}/lib"
21820 if test X"$with_rpath" = X"yes"; then
21821 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21823 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21825 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21826 blibpath_add="${blibpath_add}:${dir}/lib"
21831 if test "$found" = "no"; then
21832 { 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
21833 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;}
21835 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21836 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21837 if test "${ac_cv_lib_skey_main+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 ac_check_lib_save_LIBS=$LIBS
21841 LIBS="-lskey $LIBS"
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865 (eval "$ac_link") 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } && {
21872 test -z "$ac_c_werror_flag" ||
21873 test ! -s conftest.err
21874 } && test -s conftest$ac_exeext &&
21875 $as_test_x conftest$ac_exeext; then
21876 ac_cv_lib_skey_main=yes
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_cv_lib_skey_main=no
21884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21885 conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21888 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21889 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21890 if test $ac_cv_lib_skey_main = yes; then
21893 { 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
21894 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;}
21897 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21898 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21899 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 ac_check_lib_save_LIBS=$LIBS
21903 LIBS="-lskey $LIBS"
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21911 /* Override any GCC internal prototype to avoid an error.
21912 Use char because int might match the return type of a GCC
21913 builtin and then its argument prototype would still apply. */
21917 char skeyaccess ();
21921 return skeyaccess ();
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (ac_try="$ac_link"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_link") 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest$ac_exeext &&
21943 $as_test_x conftest$ac_exeext; then
21944 ac_cv_lib_skey_skeyaccess=yes
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ac_cv_lib_skey_skeyaccess=no
21952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21953 conftest$ac_exeext conftest.$ac_ext
21954 LIBS=$ac_check_lib_save_LIBS
21956 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21957 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21958 if test $ac_cv_lib_skey_skeyaccess = yes; then
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_SKEYACCESS 1
21965 LDFLAGS="$O_LDFLAGS"
21966 SUDO_LIBS="${SUDO_LIBS} -lskey"
21967 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21970 if test ${with_opie-'no'} = "yes"; then
21971 O_LDFLAGS="$LDFLAGS"
21972 if test "$with_opie" != "yes"; then
21973 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21975 if test X"$with_rpath" = X"yes"; then
21976 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21978 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21980 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21981 blibpath_add="${blibpath_add}:${with_opie}/lib"
21985 if test X"$with_rpath" = X"yes"; then
21986 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21988 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21990 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21991 blibpath_add="${blibpath_add}:${with_opie}/lib"
21994 cat >conftest.$ac_ext <<_ACEOF
21997 if { (ac_try="$ac_cpp conftest.$ac_ext"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22005 grep -v '^ *+' conftest.er1 >conftest.err
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } >/dev/null && {
22010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22011 test ! -s conftest.err
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22021 rm -f conftest.err conftest.$ac_ext
22024 O_CPPFLAGS="$CPPFLAGS"
22025 for dir in "" "/usr/local" "/usr/contrib"; do
22026 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22027 cat >conftest.$ac_ext <<_ACEOF
22030 if { (ac_try="$ac_cpp conftest.$ac_ext"
22031 case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22038 grep -v '^ *+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } >/dev/null && {
22043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22054 rm -f conftest.err conftest.$ac_ext
22056 if test "$found" = "no" -o -z "$dir"; then
22057 CPPFLAGS="$O_CPPFLAGS"
22060 if test X"$with_rpath" = X"yes"; then
22061 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22063 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22065 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22066 blibpath_add="${blibpath_add}:${dir}/lib"
22070 if test X"$with_rpath" = X"yes"; then
22071 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22073 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22075 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22076 blibpath_add="${blibpath_add}:${dir}/lib"
22081 if test "$found" = "no"; then
22082 { 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
22083 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;}
22085 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22086 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22087 if test "${ac_cv_lib_opie_main+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 ac_check_lib_save_LIBS=$LIBS
22091 LIBS="-lopie $LIBS"
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_link") 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest$ac_exeext &&
22125 $as_test_x conftest$ac_exeext; then
22126 ac_cv_lib_opie_main=yes
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_cv_lib_opie_main=no
22134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22135 conftest$ac_exeext conftest.$ac_ext
22136 LIBS=$ac_check_lib_save_LIBS
22138 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22139 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22140 if test $ac_cv_lib_opie_main = yes; then
22143 { 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
22144 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;}
22147 LDFLAGS="$O_LDFLAGS"
22148 SUDO_LIBS="${SUDO_LIBS} -lopie"
22149 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22152 if test ${with_passwd-'no'} != "no"; then
22153 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22154 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22155 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22156 if test "${ac_cv_search_crypt+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 ac_func_search_save_LIBS=$LIBS
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22167 /* Override any GCC internal prototype to avoid an error.
22168 Use char because int might match the return type of a GCC
22169 builtin and then its argument prototype would still apply. */
22182 for ac_lib in '' crypt crypt_d ufc; do
22183 if test -z "$ac_lib"; then
22184 ac_res="none required"
22187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_link") 2>conftest.er1
22198 grep -v '^ *+' conftest.er1 >conftest.err
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest$ac_exeext &&
22206 $as_test_x conftest$ac_exeext; then
22207 ac_cv_search_crypt=$ac_res
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22217 if test "${ac_cv_search_crypt+set}" = set; then
22221 if test "${ac_cv_search_crypt+set}" = set; then
22224 ac_cv_search_crypt=no
22226 rm conftest.$ac_ext
22227 LIBS=$ac_func_search_save_LIBS
22229 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22230 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22231 ac_res=$ac_cv_search_crypt
22232 if test "$ac_res" != no; then
22233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22234 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22239 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22241 LIBS="$LIBS $shadow_libs"
22244 for ac_func in $shadow_funcs
22246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22260 #define $ac_func innocuous_$ac_func
22262 /* System header to define __stub macros and hopefully few prototypes,
22263 which can conflict with char $ac_func (); below.
22264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265 <limits.h> exists even on freestanding compilers. */
22268 # include <limits.h>
22270 # include <assert.h>
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22282 /* The GNU C library defines this for functions which it implements
22283 to always fail with ENOSYS. Some functions are actually named
22284 something starting with __ and the normal name is an alias. */
22285 #if defined __stub_$ac_func || defined __stub___$ac_func
22292 return $ac_func ();
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext &&
22314 $as_test_x conftest$ac_exeext; then
22315 eval "$as_ac_var=yes"
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 eval "$as_ac_var=no"
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324 conftest$ac_exeext conftest.$ac_ext
22326 ac_res=`eval echo '${'$as_ac_var'}'`
22327 { echo "$as_me:$LINENO: result: $ac_res" >&5
22328 echo "${ECHO_T}$ac_res" >&6; }
22329 if test `eval echo '${'$as_ac_var'}'` = yes; then
22330 cat >>confdefs.h <<_ACEOF
22331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 if test "$found" = "yes"; then
22338 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22339 elif test -n "$shadow_libs_optional"; then
22340 LIBS="$LIBS $shadow_libs_optional"
22342 for ac_func in $shadow_funcs
22344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22358 #define $ac_func innocuous_$ac_func
22360 /* System header to define __stub macros and hopefully few prototypes,
22361 which can conflict with char $ac_func (); below.
22362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22363 <limits.h> exists even on freestanding compilers. */
22366 # include <limits.h>
22368 # include <assert.h>
22373 /* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22380 /* The GNU C library defines this for functions which it implements
22381 to always fail with ENOSYS. Some functions are actually named
22382 something starting with __ and the normal name is an alias. */
22383 #if defined __stub_$ac_func || defined __stub___$ac_func
22390 return $ac_func ();
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_link") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext &&
22412 $as_test_x conftest$ac_exeext; then
22413 eval "$as_ac_var=yes"
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 eval "$as_ac_var=no"
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422 conftest$ac_exeext conftest.$ac_ext
22424 ac_res=`eval echo '${'$as_ac_var'}'`
22425 { echo "$as_me:$LINENO: result: $ac_res" >&5
22426 echo "${ECHO_T}$ac_res" >&6; }
22427 if test `eval echo '${'$as_ac_var'}'` = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435 if test "$found" = "yes"; then
22436 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22439 if test "$found" = "yes"; then
22440 case "$shadow_funcs" in
22441 *getprpwnam*) SECUREWARE=1;;
22443 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22449 if test "$CHECKSHADOW" = "true"; then
22450 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22451 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22452 if test "${ac_cv_search_getspnam+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 ac_func_search_save_LIBS=$LIBS
22456 cat >conftest.$ac_ext <<_ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22463 /* Override any GCC internal prototype to avoid an error.
22464 Use char because int might match the return type of a GCC
22465 builtin and then its argument prototype would still apply. */
22473 return getspnam ();
22478 for ac_lib in '' gen; do
22479 if test -z "$ac_lib"; then
22480 ac_res="none required"
22483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_link") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest$ac_exeext &&
22502 $as_test_x conftest$ac_exeext; then
22503 ac_cv_search_getspnam=$ac_res
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22513 if test "${ac_cv_search_getspnam+set}" = set; then
22517 if test "${ac_cv_search_getspnam+set}" = set; then
22520 ac_cv_search_getspnam=no
22522 rm conftest.$ac_ext
22523 LIBS=$ac_func_search_save_LIBS
22525 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22526 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22527 ac_res=$ac_cv_search_getspnam
22528 if test "$ac_res" != no; then
22529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530 cat >>confdefs.h <<\_ACEOF
22531 #define HAVE_GETSPNAM 1
22533 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22537 if test "$CHECKSHADOW" = "true"; then
22538 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22539 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22540 if test "${ac_cv_search_getprpwnam+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 ac_func_search_save_LIBS=$LIBS
22544 cat >conftest.$ac_ext <<_ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22557 char getprpwnam ();
22561 return getprpwnam ();
22566 for ac_lib in '' sec security prot; do
22567 if test -z "$ac_lib"; then
22568 ac_res="none required"
22571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22573 rm -f conftest.$ac_objext conftest$ac_exeext
22574 if { (ac_try="$ac_link"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_link") 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest$ac_exeext &&
22590 $as_test_x conftest$ac_exeext; then
22591 ac_cv_search_getprpwnam=$ac_res
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22601 if test "${ac_cv_search_getprpwnam+set}" = set; then
22605 if test "${ac_cv_search_getprpwnam+set}" = set; then
22608 ac_cv_search_getprpwnam=no
22610 rm conftest.$ac_ext
22611 LIBS=$ac_func_search_save_LIBS
22613 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22614 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22615 ac_res=$ac_cv_search_getprpwnam
22616 if test "$ac_res" != no; then
22617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_GETPRPWNAM 1
22621 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22625 if test -n "$SECUREWARE"; then
22629 for ac_func in bigcrypt set_auth_parameters initprivs
22631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22645 #define $ac_func innocuous_$ac_func
22647 /* System header to define __stub macros and hopefully few prototypes,
22648 which can conflict with char $ac_func (); below.
22649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650 <limits.h> exists even on freestanding compilers. */
22653 # include <limits.h>
22655 # include <assert.h>
22660 /* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22667 /* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670 #if defined __stub_$ac_func || defined __stub___$ac_func
22677 return $ac_func ();
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_link") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest$ac_exeext &&
22699 $as_test_x conftest$ac_exeext; then
22700 eval "$as_ac_var=yes"
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 eval "$as_ac_var=no"
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709 conftest$ac_exeext conftest.$ac_ext
22711 ac_res=`eval echo '${'$as_ac_var'}'`
22712 { echo "$as_me:$LINENO: result: $ac_res" >&5
22713 echo "${ECHO_T}$ac_res" >&6; }
22714 if test `eval echo '${'$as_ac_var'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22722 AUTH_OBJS="$AUTH_OBJS secureware.o"
22726 if test ${with_ldap-'no'} != "no"; then
22727 _LDFLAGS="$LDFLAGS"
22728 if test "$with_ldap" != "yes"; then
22730 if test X"$with_rpath" = X"yes"; then
22731 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22733 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22735 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22736 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22740 if test X"$with_rpath" = X"yes"; then
22741 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22743 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22745 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22746 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22749 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22752 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22754 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22755 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22759 for l in -lldap -llber '-lssl -lcrypto'; do
22761 LDAP_LIBS="${LDAP_LIBS} $l"
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <sys/types.h>
22774 (void)ldap_init(0, 0)
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_link") 2>conftest.er1
22788 grep -v '^ *+' conftest.er1 >conftest.err
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest$ac_exeext &&
22796 $as_test_x conftest$ac_exeext; then
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806 conftest$ac_exeext conftest.$ac_ext
22808 if test "$found" = "no"; then
22809 LIBS="${_LIBS} -lldap"
22811 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22812 echo "${ECHO_T}not found, using -lldap" >&6; }
22814 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22815 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22818 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22819 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22820 if test "${ac_cv_search_ber_set_option+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 ac_func_search_save_LIBS=$LIBS
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22831 /* Override any GCC internal prototype to avoid an error.
22832 Use char because int might match the return type of a GCC
22833 builtin and then its argument prototype would still apply. */
22837 char ber_set_option ();
22841 return ber_set_option ();
22846 for ac_lib in '' lber; do
22847 if test -z "$ac_lib"; then
22848 ac_res="none required"
22851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_link") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest$ac_exeext &&
22870 $as_test_x conftest$ac_exeext; then
22871 ac_cv_search_ber_set_option=$ac_res
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 if test "${ac_cv_search_ber_set_option+set}" = set; then
22885 if test "${ac_cv_search_ber_set_option+set}" = set; then
22888 ac_cv_search_ber_set_option=no
22890 rm conftest.$ac_ext
22891 LIBS=$ac_func_search_save_LIBS
22893 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22894 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22895 ac_res=$ac_cv_search_ber_set_option
22896 if test "$ac_res" != no; then
22897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22903 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22904 LDAP_LIBS="$LDAP_LIBS -llber"
22906 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22907 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 #include <sys/types.h>
22919 (void)ldap_init(0, 0)
22924 rm -f conftest.$ac_objext conftest$ac_exeext
22925 if { (ac_try="$ac_link"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_link") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest$ac_exeext &&
22941 $as_test_x conftest$ac_exeext; then
22942 { echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6; }
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22949 { echo "$as_me:$LINENO: result: yes" >&5
22950 echo "${ECHO_T}yes" >&6; }
22951 cat >>confdefs.h <<\_ACEOF
22952 #define HAVE_LBER_H 1
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22964 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
22966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22980 #define $ac_func innocuous_$ac_func
22982 /* System header to define __stub macros and hopefully few prototypes,
22983 which can conflict with char $ac_func (); below.
22984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22985 <limits.h> exists even on freestanding compilers. */
22988 # include <limits.h>
22990 # include <assert.h>
22995 /* Override any GCC internal prototype to avoid an error.
22996 Use char because int might match the return type of a GCC
22997 builtin and then its argument prototype would still apply. */
23002 /* The GNU C library defines this for functions which it implements
23003 to always fail with ENOSYS. Some functions are actually named
23004 something starting with __ and the normal name is an alias. */
23005 #if defined __stub_$ac_func || defined __stub___$ac_func
23012 return $ac_func ();
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (ac_try="$ac_link"
23019 case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_link") 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && {
23031 test -z "$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 } && test -s conftest$ac_exeext &&
23034 $as_test_x conftest$ac_exeext; then
23035 eval "$as_ac_var=yes"
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 eval "$as_ac_var=no"
23043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23044 conftest$ac_exeext conftest.$ac_ext
23046 ac_res=`eval echo '${'$as_ac_var'}'`
23047 { echo "$as_me:$LINENO: result: $ac_res" >&5
23048 echo "${ECHO_T}$ac_res" >&6; }
23049 if test `eval echo '${'$as_ac_var'}'` = yes; then
23050 cat >>confdefs.h <<_ACEOF
23051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23059 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 cat >conftest.$ac_ext <<_ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23075 #include <$ac_header>
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084 (eval "$ac_compile") 2>conftest.er1
23086 grep -v '^ *+' conftest.er1 >conftest.err
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } && {
23091 test -z "$ac_c_werror_flag" ||
23092 test ! -s conftest.err
23093 } && test -s conftest.$ac_objext; then
23094 eval "$as_ac_Header=yes"
23096 echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23099 eval "$as_ac_Header=no"
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 ac_res=`eval echo '${'$as_ac_Header'}'`
23105 { echo "$as_me:$LINENO: result: $ac_res" >&5
23106 echo "${ECHO_T}$ac_res" >&6; }
23107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23108 cat >>confdefs.h <<_ACEOF
23109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23117 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23119 LDFLAGS="$_LDFLAGS"
23120 # XXX - OpenLDAP has deprecated ldap_get_values()
23121 CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
23124 if test -n "$blibpath"; then
23125 if test -n "$blibpath_add"; then
23126 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23127 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23128 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23132 { echo "$as_me:$LINENO: checking for log file location" >&5
23133 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23134 if test -n "$with_logpath"; then
23135 { echo "$as_me:$LINENO: result: $with_logpath" >&5
23136 echo "${ECHO_T}$with_logpath" >&6; }
23137 cat >>confdefs.h <<EOF
23138 #define _PATH_SUDO_LOGFILE "$with_logpath"
23141 elif test -d "/var/log"; then
23142 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23143 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23144 cat >>confdefs.h <<\EOF
23145 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23148 elif test -d "/var/adm"; then
23149 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23150 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23151 cat >>confdefs.h <<\EOF
23152 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23155 elif test -d "/usr/adm"; then
23156 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23157 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23158 cat >>confdefs.h <<\EOF
23159 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23163 { echo "$as_me:$LINENO: result: unknown" >&5
23164 echo "${ECHO_T}unknown" >&6; }
23167 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23168 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23169 if test -n "$with_timedir"; then
23170 { echo "$as_me:$LINENO: result: $with_timedir" >&5
23171 echo "${ECHO_T}$with_timedir" >&6; }
23172 cat >>confdefs.h <<EOF
23173 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23176 timedir="$with_timedir"
23177 elif test -d "/var/run"; then
23178 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23179 echo "${ECHO_T}/var/run/sudo" >&6; }
23180 cat >>confdefs.h <<\EOF
23181 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23184 timedir="/var/run/sudo"
23185 elif test -d "/var/adm"; then
23186 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23187 echo "${ECHO_T}/var/adm/sudo" >&6; }
23188 cat >>confdefs.h <<\EOF
23189 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23192 timedir="/var/adm/sudo"
23194 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23195 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23196 cat >>confdefs.h <<\EOF
23197 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23200 timedir="/usr/adm/sudo"
23204 case "$with_passwd" in
23206 AUTH_OBJS="$AUTH_OBJS passwd.o"
23209 cat >>confdefs.h <<\_ACEOF
23210 #define WITHOUT_PASSWD 1
23213 if test -z "$AUTH_OBJS"; then
23214 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23215 echo "$as_me: error: no authentication methods defined." >&2;}
23216 { (exit 1); exit 1; }; }
23220 AUTH_OBJS=${AUTH_OBJS# }
23221 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23222 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23223 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23225 if test -n "$LIBS"; then
23230 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23231 test $l = $sl && dupe=1
23233 test $dupe = 0 && LIBS="${LIBS} $l"
23237 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23239 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23240 oexec_prefix="$exec_prefix"
23241 if test "$exec_prefix" = '$(prefix)'; then
23242 if test "$prefix" = "NONE"; then
23243 exec_prefix="$ac_default_prefix"
23245 exec_prefix="$prefix"
23248 if test X"$with_noexec" != X"no"; then
23249 PROGS="${PROGS} sudo_noexec.la"
23250 INSTALL_NOEXEC="install-noexec"
23252 eval noexec_file="$with_noexec"
23254 cat >>confdefs.h <<_ACEOF
23255 #define _PATH_SUDO_NOEXEC "$noexec_file"
23259 if test X"$with_selinux" != X"no"; then
23260 eval sesh_file="$libexecdir/sesh"
23262 cat >>confdefs.h <<_ACEOF
23263 #define _PATH_SUDO_SESH "$sesh_file"
23267 exec_prefix="$oexec_prefix"
23270 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
23272 cat >confcache <<\_ACEOF
23273 # This file is a shell script that caches the results of configure
23274 # tests run on this system so they can be shared between configure
23275 # scripts and configure runs, see configure's option --config-cache.
23276 # It is not useful on other systems. If it contains results you don't
23277 # want to keep, you may remove or edit it.
23279 # config.status only pays attention to the cache file if you give it
23280 # the --recheck option to rerun configure.
23282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23284 # following values.
23288 # The following way of writing the cache mishandles newlines in values,
23289 # but we know of no workaround that is simple, portable, and efficient.
23290 # So, we kill variables containing newlines.
23291 # Ultrix sh set writes to stderr and can't be redirected directly,
23292 # and sets the high bit in the cache file unless we assign to the vars.
23294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23295 eval ac_val=\$$ac_var
23299 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23300 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23303 _ | IFS | as_nl) ;; #(
23304 *) $as_unset $ac_var ;;
23310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23311 *${as_nl}ac_space=\ *)
23312 # `set' does not quote correctly, so add quotes (double-quote
23313 # substitution turns \\\\ into \\, and sed turns \\ into \).
23316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23319 # `set' quotes correctly as required by POSIX, so do not add quotes.
23320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23334 if test -w "$cache_file"; then
23335 test "x$cache_file" != "x/dev/null" &&
23336 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23337 echo "$as_me: updating cache $cache_file" >&6;}
23338 cat confcache >$cache_file
23340 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23341 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23347 # Let make expand exec_prefix.
23348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23350 DEFS=-DHAVE_CONFIG_H
23354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23355 # 1. Remove the extension, and $U if already installed.
23356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23357 ac_i=`echo "$ac_i" | sed "$ac_script"`
23358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23359 # will be set to the directory where LIBOBJS objects are built.
23360 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23361 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23363 LIBOBJS=$ac_libobjs
23365 LTLIBOBJS=$ac_ltlibobjs
23369 : ${CONFIG_STATUS=./config.status}
23370 ac_clean_files_save=$ac_clean_files
23371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23372 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23373 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23374 cat >$CONFIG_STATUS <<_ACEOF
23376 # Generated by $as_me.
23377 # Run this file to recreate the current configuration.
23378 # Compiler output produced by configure, useful for debugging
23379 # configure, is in config.log if it exists.
23382 ac_cs_recheck=false
23384 SHELL=\${CONFIG_SHELL-$SHELL}
23387 cat >>$CONFIG_STATUS <<\_ACEOF
23388 ## --------------------- ##
23389 ## M4sh Initialization. ##
23390 ## --------------------- ##
23392 # Be more Bourne compatible
23393 DUALCASE=1; export DUALCASE # for MKS sh
23394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23397 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23398 # is contrary to our usage. Disable this feature.
23399 alias -g '${1+"$@"}'='"$@"'
23400 setopt NO_GLOB_SUBST
23402 case `(set -o) 2>/dev/null` in
23403 *posix*) set -o posix ;;
23412 # Avoid depending upon Character Ranges.
23413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23416 as_cr_digits='0123456789'
23417 as_cr_alnum=$as_cr_Letters$as_cr_digits
23419 # The user is always right.
23420 if test "${PATH_SEPARATOR+set}" != set; then
23421 echo "#! /bin/sh" >conf$$.sh
23422 echo "exit 0" >>conf$$.sh
23424 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23432 # Support unset when possible.
23433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23441 # We need space, tab and new line, in precisely that order. Quoting is
23442 # there to prevent editors from complaining about space-tab.
23443 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23444 # splitting by setting IFS to empty value.)
23449 # Find who we are. Look in the path if we contain no directory separator.
23451 *[\\/]* ) as_myself=$0 ;;
23452 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23453 for as_dir in $PATH
23456 test -z "$as_dir" && as_dir=.
23457 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23463 # We did not find ourselves, most probably we were run as `sh COMMAND'
23464 # in which case we are not to be found in the path.
23465 if test "x$as_myself" = x; then
23468 if test ! -f "$as_myself"; then
23469 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23470 { (exit 1); exit 1; }
23473 # Work around bugs in pre-3.0 UWIN ksh.
23474 for as_var in ENV MAIL MAILPATH
23475 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23483 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23484 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23485 LC_TELEPHONE LC_TIME
23487 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23488 eval $as_var=C; export $as_var
23490 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23494 # Required to use basename.
23495 if expr a : '\(a\)' >/dev/null 2>&1 &&
23496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23503 as_basename=basename
23509 # Name of the executable.
23510 as_me=`$as_basename -- "$0" ||
23511 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23512 X"$0" : 'X\(//\)$' \| \
23513 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23515 sed '/^.*\/\([^/][^/]*\)\/*$/{
23534 as_lineno_1=$LINENO
23535 as_lineno_2=$LINENO
23536 test "x$as_lineno_1" != "x$as_lineno_2" &&
23537 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23539 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23540 # uniformly replaced by the line number. The first 'sed' inserts a
23541 # line-number line after each line using $LINENO; the second 'sed'
23542 # does the real work. The second script uses 'N' to pair each
23543 # line-number line with the line containing $LINENO, and appends
23544 # trailing '-' during substitution so that $LINENO is not a special
23545 # case at line end.
23546 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23547 # scripts with optimization help from Paolo Bonzini. Blame Lee
23548 # E. McMahon (1931-1989) for sed's syntax. :-)
23560 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23563 ' >$as_me.lineno &&
23564 chmod +x "$as_me.lineno" ||
23565 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23566 { (exit 1); exit 1; }; }
23568 # Don't try to exec as it changes $[0], causing all sort of problems
23569 # (the dirname of $[0] is not the place where we might find the
23570 # original and so on. Autoconf is especially sensitive to this).
23571 . "./$as_me.lineno"
23572 # Exit status is that of the last command.
23577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23583 ECHO_C= ECHO_N= ECHO_T=
23584 case `echo -n x` in
23586 case `echo 'x\c'` in
23587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23594 if expr a : '\(a\)' >/dev/null 2>&1 &&
23595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23601 rm -f conf$$ conf$$.exe conf$$.file
23602 if test -d conf$$.dir; then
23603 rm -f conf$$.dir/conf$$.file
23609 if ln -s conf$$.file conf$$ 2>/dev/null; then
23611 # ... but there are two gotchas:
23612 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23613 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23614 # In both cases, we have to default to `cp -p'.
23615 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23617 elif ln conf$$.file conf$$ 2>/dev/null; then
23622 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23623 rmdir conf$$.dir 2>/dev/null
23625 if mkdir -p . 2>/dev/null; then
23628 test -d ./-p && rmdir ./-p
23632 if test -x / >/dev/null 2>&1; then
23633 as_test_x='test -x'
23635 if ls -dL / >/dev/null 2>&1; then
23642 if test -d "$1"; then
23648 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23649 ???[sx]*):;;*)false;;esac;fi
23653 as_executable_p=$as_test_x
23655 # Sed expression to map a string onto a valid CPP name.
23656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23658 # Sed expression to map a string onto a valid variable name.
23659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23664 # Save the log message, to keep $[0] and so on meaningful, and to
23665 # report actual input values of CONFIG_FILES etc. instead of their
23666 # values after options handling.
23668 This file was extended by sudo $as_me 1.6.9, which was
23669 generated by GNU Autoconf 2.61. Invocation command line was
23671 CONFIG_FILES = $CONFIG_FILES
23672 CONFIG_HEADERS = $CONFIG_HEADERS
23673 CONFIG_LINKS = $CONFIG_LINKS
23674 CONFIG_COMMANDS = $CONFIG_COMMANDS
23677 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23682 cat >>$CONFIG_STATUS <<_ACEOF
23683 # Files that config.status was made for.
23684 config_files="$ac_config_files"
23685 config_headers="$ac_config_headers"
23689 cat >>$CONFIG_STATUS <<\_ACEOF
23691 \`$as_me' instantiates files from templates according to the
23692 current configuration.
23694 Usage: $0 [OPTIONS] [FILE]...
23696 -h, --help print this help, then exit
23697 -V, --version print version number and configuration settings, then exit
23698 -q, --quiet do not print progress messages
23699 -d, --debug don't remove temporary files
23700 --recheck update $as_me by reconfiguring in the same conditions
23701 --file=FILE[:TEMPLATE]
23702 instantiate the configuration file FILE
23703 --header=FILE[:TEMPLATE]
23704 instantiate the configuration header FILE
23706 Configuration files:
23709 Configuration headers:
23712 Report bugs to <bug-autoconf@gnu.org>."
23715 cat >>$CONFIG_STATUS <<_ACEOF
23717 sudo config.status 1.6.9
23718 configured by $0, generated by GNU Autoconf 2.61,
23719 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23721 Copyright (C) 2006 Free Software Foundation, Inc.
23722 This config.status script is free software; the Free Software Foundation
23723 gives unlimited permission to copy, distribute and modify it."
23729 cat >>$CONFIG_STATUS <<\_ACEOF
23730 # If no file are specified by the user, then we need to provide default
23731 # value. By we need to know if files were specified by the user.
23737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23749 # Handling of the options.
23750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23753 echo "$ac_cs_version"; exit ;;
23754 --debug | --debu | --deb | --de | --d | -d )
23756 --file | --fil | --fi | --f )
23758 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23759 ac_need_defaults=false;;
23760 --header | --heade | --head | --hea )
23762 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23763 ac_need_defaults=false;;
23765 # Conflict between --help and --header
23766 { echo "$as_me: error: ambiguous option: $1
23767 Try \`$0 --help' for more information." >&2
23768 { (exit 1); exit 1; }; };;
23769 --help | --hel | -h )
23770 echo "$ac_cs_usage"; exit ;;
23771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23775 # This is an error.
23776 -*) { echo "$as_me: error: unrecognized option: $1
23777 Try \`$0 --help' for more information." >&2
23778 { (exit 1); exit 1; }; } ;;
23780 *) ac_config_targets="$ac_config_targets $1"
23781 ac_need_defaults=false ;;
23787 ac_configure_extra_args=
23789 if $ac_cs_silent; then
23791 ac_configure_extra_args="$ac_configure_extra_args --silent"
23795 cat >>$CONFIG_STATUS <<_ACEOF
23796 if \$ac_cs_recheck; then
23797 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23798 CONFIG_SHELL=$SHELL
23799 export CONFIG_SHELL
23800 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23804 cat >>$CONFIG_STATUS <<\_ACEOF
23808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23809 ## Running $as_me. ##
23815 cat >>$CONFIG_STATUS <<_ACEOF
23818 cat >>$CONFIG_STATUS <<\_ACEOF
23820 # Handling of arguments.
23821 for ac_config_target in $ac_config_targets
23823 case $ac_config_target in
23824 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23825 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23827 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23828 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23829 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23831 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23833 { (exit 1); exit 1; }; };;
23838 # If the user did not use the arguments to specify the items to instantiate,
23839 # then the envvar interface is used. Set only those that are not.
23840 # We use the long form for the default assignment because of an extremely
23841 # bizarre bug on SunOS 4.1.3.
23842 if $ac_need_defaults; then
23843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23847 # Have a temporary directory for convenience. Make it in the build tree
23848 # simply because there is no reason against having it here, and in addition,
23849 # creating and moving files from /tmp can sometimes cause problems.
23850 # Hook for its removal unless debugging.
23851 # Note that there is a small window in which the directory will not be cleaned:
23852 # after its creation but before its name has been assigned to `$tmp'.
23856 trap 'exit_status=$?
23857 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23859 trap '{ (exit 1); exit 1; }' 1 2 13 15
23861 # Create a (secure) tmp directory for tmp files.
23864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23865 test -n "$tmp" && test -d "$tmp"
23868 tmp=./conf$$-$RANDOM
23869 (umask 077 && mkdir "$tmp")
23872 echo "$me: cannot create a temporary directory in ." >&2
23873 { (exit 1); exit 1; }
23877 # Set up the sed scripts for CONFIG_FILES section.
23880 # No need to generate the scripts if there are no CONFIG_FILES.
23881 # This happens for instance when ./config.status config.h
23882 if test -n "$CONFIG_FILES"; then
23889 for ac_last_try in false false false false false :; do
23890 cat >conf$$subs.sed <<_ACEOF
23891 SHELL!$SHELL$ac_delim
23892 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23893 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23894 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23895 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23896 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23897 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23898 exec_prefix!$exec_prefix$ac_delim
23899 prefix!$prefix$ac_delim
23900 program_transform_name!$program_transform_name$ac_delim
23901 bindir!$bindir$ac_delim
23902 sbindir!$sbindir$ac_delim
23903 libexecdir!$libexecdir$ac_delim
23904 datarootdir!$datarootdir$ac_delim
23905 datadir!$datadir$ac_delim
23906 sysconfdir!$sysconfdir$ac_delim
23907 sharedstatedir!$sharedstatedir$ac_delim
23908 localstatedir!$localstatedir$ac_delim
23909 includedir!$includedir$ac_delim
23910 oldincludedir!$oldincludedir$ac_delim
23911 docdir!$docdir$ac_delim
23912 infodir!$infodir$ac_delim
23913 htmldir!$htmldir$ac_delim
23914 dvidir!$dvidir$ac_delim
23915 pdfdir!$pdfdir$ac_delim
23916 psdir!$psdir$ac_delim
23917 libdir!$libdir$ac_delim
23918 localedir!$localedir$ac_delim
23919 mandir!$mandir$ac_delim
23920 DEFS!$DEFS$ac_delim
23921 ECHO_C!$ECHO_C$ac_delim
23922 ECHO_N!$ECHO_N$ac_delim
23923 ECHO_T!$ECHO_T$ac_delim
23924 LIBS!$LIBS$ac_delim
23925 build_alias!$build_alias$ac_delim
23926 host_alias!$host_alias$ac_delim
23927 target_alias!$target_alias$ac_delim
23928 LIBTOOL!$LIBTOOL$ac_delim
23929 CFLAGS!$CFLAGS$ac_delim
23930 PROGS!$PROGS$ac_delim
23931 CPPFLAGS!$CPPFLAGS$ac_delim
23932 LDFLAGS!$LDFLAGS$ac_delim
23933 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23934 SUDO_OBJS!$SUDO_OBJS$ac_delim
23935 SUDO_LIBS!$SUDO_LIBS$ac_delim
23936 NET_LIBS!$NET_LIBS$ac_delim
23937 AFS_LIBS!$AFS_LIBS$ac_delim
23938 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23939 OSDEFS!$OSDEFS$ac_delim
23940 AUTH_OBJS!$AUTH_OBJS$ac_delim
23941 MANTYPE!$MANTYPE$ac_delim
23942 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23943 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23944 SUDOERS_UID!$SUDOERS_UID$ac_delim
23945 SUDOERS_GID!$SUDOERS_GID$ac_delim
23947 SELINUX!$SELINUX$ac_delim
23948 BAMAN!$BAMAN$ac_delim
23949 LCMAN!$LCMAN$ac_delim
23950 SEMAN!$SEMAN$ac_delim
23951 mansectsu!$mansectsu$ac_delim
23952 mansectform!$mansectform$ac_delim
23953 mansrcdir!$mansrcdir$ac_delim
23954 NOEXECFILE!$NOEXECFILE$ac_delim
23955 NOEXECDIR!$NOEXECDIR$ac_delim
23956 noexec_file!$noexec_file$ac_delim
23957 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23958 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23959 timedir!$timedir$ac_delim
23960 timeout!$timeout$ac_delim
23961 password_timeout!$password_timeout$ac_delim
23962 sudo_umask!$sudo_umask$ac_delim
23963 passprompt!$passprompt$ac_delim
23964 long_otp_prompt!$long_otp_prompt$ac_delim
23965 lecture!$lecture$ac_delim
23966 logfac!$logfac$ac_delim
23967 goodpri!$goodpri$ac_delim
23968 badpri!$badpri$ac_delim
23969 loglen!$loglen$ac_delim
23970 ignore_dot!$ignore_dot$ac_delim
23971 mail_no_user!$mail_no_user$ac_delim
23972 mail_no_host!$mail_no_host$ac_delim
23973 mail_no_perms!$mail_no_perms$ac_delim
23974 mailto!$mailto$ac_delim
23975 mailsub!$mailsub$ac_delim
23976 badpass_message!$badpass_message$ac_delim
23977 fqdn!$fqdn$ac_delim
23978 runas_default!$runas_default$ac_delim
23979 env_editor!$env_editor$ac_delim
23980 passwd_tries!$passwd_tries$ac_delim
23981 tty_tickets!$tty_tickets$ac_delim
23982 insults!$insults$ac_delim
23983 root_sudo!$root_sudo$ac_delim
23984 path_info!$path_info$ac_delim
23985 EGREPPROG!$EGREPPROG$ac_delim
23987 ac_ct_CC!$ac_ct_CC$ac_delim
23990 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23992 elif $ac_last_try; then
23993 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23995 { (exit 1); exit 1; }; }
23997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24002 if test -n "$ac_eof"; then
24003 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24004 ac_eof=`expr $ac_eof + 1`
24007 cat >>$CONFIG_STATUS <<_ACEOF
24008 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24013 s/^/s,@/; s/!/@,|#_!!_#|/
24016 s/'"$ac_delim"'$/,g/; t
24018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24019 ' >>$CONFIG_STATUS <conf$$subs.sed
24020 rm -f conf$$subs.sed
24021 cat >>$CONFIG_STATUS <<_ACEOF
24027 for ac_last_try in false false false false false :; do
24028 cat >conf$$subs.sed <<_ACEOF
24029 EXEEXT!$EXEEXT$ac_delim
24030 OBJEXT!$OBJEXT$ac_delim
24032 build!$build$ac_delim
24033 build_cpu!$build_cpu$ac_delim
24034 build_vendor!$build_vendor$ac_delim
24035 build_os!$build_os$ac_delim
24036 host!$host$ac_delim
24037 host_cpu!$host_cpu$ac_delim
24038 host_vendor!$host_vendor$ac_delim
24039 host_os!$host_os$ac_delim
24040 target!$target$ac_delim
24041 target_cpu!$target_cpu$ac_delim
24042 target_vendor!$target_vendor$ac_delim
24043 target_os!$target_os$ac_delim
24045 GREP!$GREP$ac_delim
24046 EGREP!$EGREP$ac_delim
24047 LN_S!$LN_S$ac_delim
24048 ECHO!$ECHO$ac_delim
24050 RANLIB!$RANLIB$ac_delim
24051 STRIP!$STRIP$ac_delim
24052 DSYMUTIL!$DSYMUTIL$ac_delim
24053 NMEDIT!$NMEDIT$ac_delim
24054 UNAMEPROG!$UNAMEPROG$ac_delim
24055 TRPROG!$TRPROG$ac_delim
24056 NROFFPROG!$NROFFPROG$ac_delim
24057 YACC!$YACC$ac_delim
24058 YFLAGS!$YFLAGS$ac_delim
24059 LIBOBJS!$LIBOBJS$ac_delim
24060 ALLOCA!$ALLOCA$ac_delim
24061 KRB5CONFIG!$KRB5CONFIG$ac_delim
24062 LTLIBOBJS!$LTLIBOBJS$ac_delim
24065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24067 elif $ac_last_try; then
24068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24070 { (exit 1); exit 1; }; }
24072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24077 if test -n "$ac_eof"; then
24078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24079 ac_eof=`expr $ac_eof + 1`
24082 cat >>$CONFIG_STATUS <<_ACEOF
24083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24088 s/^/s,@/; s/!/@,|#_!!_#|/
24091 s/'"$ac_delim"'$/,g/; t
24093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24094 ' >>$CONFIG_STATUS <conf$$subs.sed
24095 rm -f conf$$subs.sed
24096 cat >>$CONFIG_STATUS <<_ACEOF
24103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24105 # trailing colons and then remove the whole line if VPATH becomes empty
24106 # (actually we leave an empty line to preserve line numbers).
24107 if test "x$srcdir" = x.; then
24108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24109 s/:*\$(srcdir):*/:/
24110 s/:*\${srcdir}:*/:/
24112 s/^\([^=]*=[ ]*\):*/\1/
24118 cat >>$CONFIG_STATUS <<\_ACEOF
24119 fi # test -n "$CONFIG_FILES"
24122 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24125 :[FHLC]) ac_mode=$ac_tag; continue;;
24127 case $ac_mode$ac_tag in
24129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24131 { (exit 1); exit 1; }; };;
24132 :[FH]-) ac_tag=-:-;;
24133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24150 -) ac_f="$tmp/stdin";;
24151 *) # Look for the file first in the build tree, then in the source tree
24152 # (if the path is not absolute). The absolute path cannot be DOS-style,
24153 # because $ac_f cannot contain `:'.
24157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24161 { (exit 1); exit 1; }; };;
24163 ac_file_inputs="$ac_file_inputs $ac_f"
24166 # Let's still pretend it is `configure' which instantiates (i.e., don't
24167 # use $as_me), people would be surprised to read:
24168 # /* config.h. Generated by config.status. */
24169 configure_input="Generated from "`IFS=:
24170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24171 if test x"$ac_file" != x-; then
24172 configure_input="$ac_file. $configure_input"
24173 { echo "$as_me:$LINENO: creating $ac_file" >&5
24174 echo "$as_me: creating $ac_file" >&6;}
24178 *:-:* | *:-) cat >"$tmp/stdin";;
24183 ac_dir=`$as_dirname -- "$ac_file" ||
24184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24185 X"$ac_file" : 'X\(//\)[^/]' \| \
24186 X"$ac_file" : 'X\(//\)$' \| \
24187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24193 /^X\(\/\/\)[^/].*/{
24208 -*) as_dir=./$as_dir;;
24210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24215 *) as_qdir=$as_dir;;
24217 as_dirs="'$as_qdir' $as_dirs"
24218 as_dir=`$as_dirname -- "$as_dir" ||
24219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24220 X"$as_dir" : 'X\(//\)[^/]' \| \
24221 X"$as_dir" : 'X\(//\)$' \| \
24222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24228 /^X\(\/\/\)[^/].*/{
24241 test -d "$as_dir" && break
24243 test -z "$as_dirs" || eval "mkdir $as_dirs"
24244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24246 { (exit 1); exit 1; }; }; }
24250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24253 # A ".." for each directory in $ac_dir_suffix.
24254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24255 case $ac_top_builddir_sub in
24256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24260 ac_abs_top_builddir=$ac_pwd
24261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24262 # for backward compatibility:
24263 ac_top_builddir=$ac_top_build_prefix
24266 .) # We are building in place.
24268 ac_top_srcdir=$ac_top_builddir_sub
24269 ac_abs_top_srcdir=$ac_pwd ;;
24270 [\\/]* | ?:[\\/]* ) # Absolute name.
24271 ac_srcdir=$srcdir$ac_dir_suffix;
24272 ac_top_srcdir=$srcdir
24273 ac_abs_top_srcdir=$srcdir ;;
24274 *) # Relative name.
24275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24276 ac_top_srcdir=$ac_top_build_prefix$srcdir
24277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24290 cat >>$CONFIG_STATUS <<\_ACEOF
24291 # If the template does not know about datarootdir, expand it.
24292 # FIXME: This hack should be removed a few years after 2.60.
24293 ac_datarootdir_hack=; ac_datarootdir_seen=
24295 case `sed -n '/datarootdir/ {
24304 ' $ac_file_inputs` in
24305 *datarootdir*) ac_datarootdir_seen=yes;;
24306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24307 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24308 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24310 cat >>$CONFIG_STATUS <<_ACEOF
24311 ac_datarootdir_hack='
24312 s&@datadir@&$datadir&g
24313 s&@docdir@&$docdir&g
24314 s&@infodir@&$infodir&g
24315 s&@localedir@&$localedir&g
24316 s&@mandir@&$mandir&g
24317 s&\\\${datarootdir}&$datarootdir&g' ;;
24321 # Neutralize VPATH when `$srcdir' = `.'.
24322 # Shell code in configure.ac might set extrasub.
24323 # FIXME: do we really want to maintain this feature?
24324 cat >>$CONFIG_STATUS <<_ACEOF
24328 cat >>$CONFIG_STATUS <<\_ACEOF
24330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24331 s&@configure_input@&$configure_input&;t t
24332 s&@top_builddir@&$ac_top_builddir_sub&;t t
24333 s&@srcdir@&$ac_srcdir&;t t
24334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24335 s&@top_srcdir@&$ac_top_srcdir&;t t
24336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24337 s&@builddir@&$ac_builddir&;t t
24338 s&@abs_builddir@&$ac_abs_builddir&;t t
24339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24340 $ac_datarootdir_hack
24341 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24344 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24346 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24347 which seems to be undefined. Please make sure it is defined." >&5
24348 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24349 which seems to be undefined. Please make sure it is defined." >&2;}
24353 -) cat "$tmp/out"; rm -f "$tmp/out";;
24354 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24363 # Transform confdefs.h into a sed script `conftest.defines', that
24364 # substitutes the proper values into config.h.in to produce config.h.
24365 rm -f conftest.defines conftest.tail
24366 # First, append a space to every undef/define line, to ease matching.
24367 echo 's/$/ /' >conftest.defines
24368 # Then, protect against being on the right side of a sed subst, or in
24369 # an unquoted here document, in config.status. If some macros were
24370 # called several times there might be several #defines for the same
24371 # symbol, which is useless. But do not sort them, since the last
24372 # AC_DEFINE must be honored.
24373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24374 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24375 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24376 # PARAMS is the parameter list in the macro definition--in most cases, it's
24377 # just an empty string.
24378 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24379 ac_dB='\\)[ (].*,\\1define\\2'
24387 s/^[ ]*#[ ]*define[ ][ ]*//
24392 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24393 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24394 ' >>conftest.defines
24396 # Remove the space that was appended to ease matching.
24397 # Then replace #undef with comments. This is necessary, for
24398 # example, in the case of _POSIX_SOURCE, which is predefined and required
24399 # on some systems where configure will not decide to define it.
24400 # (The regexp can be short, since the line contains either #define or #undef.)
24402 s,^[ #]*u.*,/* & */,' >>conftest.defines
24404 # Break up conftest.defines:
24405 ac_max_sed_lines=50
24407 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24408 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24409 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24411 ac_in='$ac_file_inputs'
24412 ac_out='"$tmp/out1"'
24413 ac_nxt='"$tmp/out2"'
24417 # Write a here document:
24418 cat >>$CONFIG_STATUS <<_ACEOF
24419 # First, check the format of the line:
24420 cat >"\$tmp/defines.sed" <<\\CEOF
24421 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24422 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24426 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24428 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24429 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24430 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24431 grep . conftest.tail >/dev/null || break
24432 rm -f conftest.defines
24433 mv conftest.tail conftest.defines
24435 rm -f conftest.defines conftest.tail
24437 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24438 cat >>$CONFIG_STATUS <<\_ACEOF
24439 if test x"$ac_file" != x-; then
24440 echo "/* $configure_input */" >"$tmp/config.h"
24441 cat "$ac_result" >>"$tmp/config.h"
24442 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24443 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24444 echo "$as_me: $ac_file is unchanged" >&6;}
24447 mv "$tmp/config.h" $ac_file
24450 echo "/* $configure_input */"
24454 # Compute $ac_file's index in $config_headers.
24457 for _am_header in $config_headers :; do
24458 case $_am_header in
24459 $_am_arg | $_am_arg:* )
24462 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24467 X"$_am_arg" : 'X\(//\)[^/]' \| \
24468 X"$_am_arg" : 'X\(//\)$' \| \
24469 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24475 /^X\(\/\/\)[^/].*/{
24487 s/.*/./; q'`/stamp-h$_am_stamp_count
24496 { (exit 0); exit 0; }
24498 chmod +x $CONFIG_STATUS
24499 ac_clean_files=$ac_clean_files_save
24502 # configure is writing to config.log, and then calls config.status.
24503 # config.status does its own redirection, appending to config.log.
24504 # Unfortunately, on DOS this fails, as config.log is still kept open
24505 # by configure, so config.status won't be able to write to it; its
24506 # output is simply discarded. So we exec the FD to /dev/null,
24507 # effectively closing config.log, so it can be properly (re)opened and
24508 # appended to by config.status. When coming back to configure, we
24509 # need to make the FD available again.
24510 if test "$no_create" != yes; then
24512 ac_config_status_args=
24513 test "$silent" = yes &&
24514 ac_config_status_args="$ac_config_status_args --quiet"
24516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24519 # would make configure fail if this is the last instruction.
24520 $ac_cs_success || { (exit 1); exit 1; }
24524 if test "$with_pam" = "yes"; then
24527 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24528 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}