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 [PREFIX/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
15534 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15535 strftime setrlimit initgroups getgroups fstat gettimeofday \
15536 setlocale getaddrinfo
15538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15552 #define $ac_func innocuous_$ac_func
15554 /* System header to define __stub macros and hopefully few prototypes,
15555 which can conflict with char $ac_func (); below.
15556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15557 <limits.h> exists even on freestanding compilers. */
15560 # include <limits.h>
15562 # include <assert.h>
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15574 /* The GNU C library defines this for functions which it implements
15575 to always fail with ENOSYS. Some functions are actually named
15576 something starting with __ and the normal name is an alias. */
15577 #if defined __stub_$ac_func || defined __stub___$ac_func
15584 return $ac_func ();
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 eval "$as_ac_var=yes"
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 eval "$as_ac_var=no"
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15618 ac_res=`eval echo '${'$as_ac_var'}'`
15619 { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15621 if test `eval echo '${'$as_ac_var'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629 if test -z "$SKIP_SETRESUID"; then
15631 for ac_func in setresuid
15633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15647 #define $ac_func innocuous_$ac_func
15649 /* System header to define __stub macros and hopefully few prototypes,
15650 which can conflict with char $ac_func (); below.
15651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15652 <limits.h> exists even on freestanding compilers. */
15655 # include <limits.h>
15657 # include <assert.h>
15662 /* Override any GCC internal prototype to avoid an error.
15663 Use char because int might match the return type of a GCC
15664 builtin and then its argument prototype would still apply. */
15669 /* The GNU C library defines this for functions which it implements
15670 to always fail with ENOSYS. Some functions are actually named
15671 something starting with __ and the normal name is an alias. */
15672 #if defined __stub_$ac_func || defined __stub___$ac_func
15679 return $ac_func ();
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext &&
15701 $as_test_x conftest$ac_exeext; then
15702 eval "$as_ac_var=yes"
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 eval "$as_ac_var=no"
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15713 ac_res=`eval echo '${'$as_ac_var'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15725 if test -z "$SKIP_SETREUID"; then
15727 for ac_func in setreuid
15729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15743 #define $ac_func innocuous_$ac_func
15745 /* System header to define __stub macros and hopefully few prototypes,
15746 which can conflict with char $ac_func (); below.
15747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15748 <limits.h> exists even on freestanding compilers. */
15751 # include <limits.h>
15753 # include <assert.h>
15758 /* Override any GCC internal prototype to avoid an error.
15759 Use char because int might match the return type of a GCC
15760 builtin and then its argument prototype would still apply. */
15765 /* The GNU C library defines this for functions which it implements
15766 to always fail with ENOSYS. Some functions are actually named
15767 something starting with __ and the normal name is an alias. */
15768 #if defined __stub_$ac_func || defined __stub___$ac_func
15775 return $ac_func ();
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (ac_try="$ac_link"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_link") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && {
15794 test -z "$ac_c_werror_flag" ||
15795 test ! -s conftest.err
15796 } && test -s conftest$ac_exeext &&
15797 $as_test_x conftest$ac_exeext; then
15798 eval "$as_ac_var=yes"
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 eval "$as_ac_var=no"
15806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15807 conftest$ac_exeext conftest.$ac_ext
15809 ac_res=`eval echo '${'$as_ac_var'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 if test `eval echo '${'$as_ac_var'}'` = yes; then
15813 cat >>confdefs.h <<_ACEOF
15814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15821 if test -z "$SKIP_SETEUID"; then
15823 for ac_func in seteuid
15825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15839 #define $ac_func innocuous_$ac_func
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func (); below.
15843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844 <limits.h> exists even on freestanding compilers. */
15847 # include <limits.h>
15849 # include <assert.h>
15854 /* Override any GCC internal prototype to avoid an error.
15855 Use char because int might match the return type of a GCC
15856 builtin and then its argument prototype would still apply. */
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined __stub_$ac_func || defined __stub___$ac_func
15871 return $ac_func ();
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_link") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest$ac_exeext &&
15893 $as_test_x conftest$ac_exeext; then
15894 eval "$as_ac_var=yes"
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 eval "$as_ac_var=no"
15902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15903 conftest$ac_exeext conftest.$ac_ext
15905 ac_res=`eval echo '${'$as_ac_var'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15908 if test `eval echo '${'$as_ac_var'}'` = yes; then
15909 cat >>confdefs.h <<_ACEOF
15910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15917 if test X"$with_interfaces" != X"no"; then
15919 for ac_func in getifaddrs
15921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15935 #define $ac_func innocuous_$ac_func
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char $ac_func (); below.
15939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940 <limits.h> exists even on freestanding compilers. */
15943 # include <limits.h>
15945 # include <assert.h>
15950 /* Override any GCC internal prototype to avoid an error.
15951 Use char because int might match the return type of a GCC
15952 builtin and then its argument prototype would still apply. */
15957 /* The GNU C library defines this for functions which it implements
15958 to always fail with ENOSYS. Some functions are actually named
15959 something starting with __ and the normal name is an alias. */
15960 #if defined __stub_$ac_func || defined __stub___$ac_func
15967 return $ac_func ();
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979 (eval "$ac_link") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest$ac_exeext &&
15989 $as_test_x conftest$ac_exeext; then
15990 eval "$as_ac_var=yes"
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 eval "$as_ac_var=no"
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999 conftest$ac_exeext conftest.$ac_ext
16001 ac_res=`eval echo '${'$as_ac_var'}'`
16002 { echo "$as_me:$LINENO: result: $ac_res" >&5
16003 echo "${ECHO_T}$ac_res" >&6; }
16004 if test `eval echo '${'$as_ac_var'}'` = yes; then
16005 cat >>confdefs.h <<_ACEOF
16006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16009 for ac_func in freeifaddrs
16011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16025 #define $ac_func innocuous_$ac_func
16027 /* System header to define __stub macros and hopefully few prototypes,
16028 which can conflict with char $ac_func (); below.
16029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16030 <limits.h> exists even on freestanding compilers. */
16033 # include <limits.h>
16035 # include <assert.h>
16040 /* Override any GCC internal prototype to avoid an error.
16041 Use char because int might match the return type of a GCC
16042 builtin and then its argument prototype would still apply. */
16047 /* The GNU C library defines this for functions which it implements
16048 to always fail with ENOSYS. Some functions are actually named
16049 something starting with __ and the normal name is an alias. */
16050 #if defined __stub_$ac_func || defined __stub___$ac_func
16057 return $ac_func ();
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_link") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest$ac_exeext &&
16079 $as_test_x conftest$ac_exeext; then
16080 eval "$as_ac_var=yes"
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 eval "$as_ac_var=no"
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16091 ac_res=`eval echo '${'$as_ac_var'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16106 if test -z "$BROKEN_GETCWD"; then
16108 for ac_func in getcwd
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16124 #define $ac_func innocuous_$ac_func
16126 /* System header to define __stub macros and hopefully few prototypes,
16127 which can conflict with char $ac_func (); below.
16128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129 <limits.h> exists even on freestanding compilers. */
16132 # include <limits.h>
16134 # include <assert.h>
16139 /* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply. */
16146 /* The GNU C library defines this for functions which it implements
16147 to always fail with ENOSYS. Some functions are actually named
16148 something starting with __ and the normal name is an alias. */
16149 #if defined __stub_$ac_func || defined __stub___$ac_func
16156 return $ac_func ();
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (ac_try="$ac_link"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_link") 2>conftest.er1
16170 grep -v '^ *+' conftest.er1 >conftest.err
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } && {
16175 test -z "$ac_c_werror_flag" ||
16176 test ! -s conftest.err
16177 } && test -s conftest$ac_exeext &&
16178 $as_test_x conftest$ac_exeext; then
16179 eval "$as_ac_var=yes"
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 eval "$as_ac_var=no"
16187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
16190 ac_res=`eval echo '${'$as_ac_var'}'`
16191 { echo "$as_me:$LINENO: result: $ac_res" >&5
16192 echo "${ECHO_T}$ac_res" >&6; }
16193 if test `eval echo '${'$as_ac_var'}'` = yes; then
16194 cat >>confdefs.h <<_ACEOF
16195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16199 case " $LIBOBJS " in
16200 *" $ac_func.$ac_objext "* ) ;;
16201 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16211 for ac_func in glob
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16227 #define $ac_func innocuous_$ac_func
16229 /* System header to define __stub macros and hopefully few prototypes,
16230 which can conflict with char $ac_func (); below.
16231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16232 <limits.h> exists even on freestanding compilers. */
16235 # include <limits.h>
16237 # include <assert.h>
16242 /* Override any GCC internal prototype to avoid an error.
16243 Use char because int might match the return type of a GCC
16244 builtin and then its argument prototype would still apply. */
16249 /* The GNU C library defines this for functions which it implements
16250 to always fail with ENOSYS. Some functions are actually named
16251 something starting with __ and the normal name is an alias. */
16252 #if defined __stub_$ac_func || defined __stub___$ac_func
16259 return $ac_func ();
16264 rm -f conftest.$ac_objext conftest$ac_exeext
16265 if { (ac_try="$ac_link"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_link") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest$ac_exeext &&
16281 $as_test_x conftest$ac_exeext; then
16282 eval "$as_ac_var=yes"
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 eval "$as_ac_var=no"
16290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
16293 ac_res=`eval echo '${'$as_ac_var'}'`
16294 { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16296 if test `eval echo '${'$as_ac_var'}'` = yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16300 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16301 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16312 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324 (eval "$ac_compile") 2>conftest.er1
16326 grep -v '^ *+' conftest.er1 >conftest.err
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest.$ac_objext; then
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_EXTENDED_GLOB 1
16338 { echo "$as_me:$LINENO: result: yes" >&5
16339 echo "${ECHO_T}yes" >&6; }
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 case " $LIBOBJS " in
16345 *" glob.$ac_objext "* ) ;;
16346 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16350 { echo "$as_me:$LINENO: result: no" >&5
16351 echo "${ECHO_T}no" >&6; }
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 case " $LIBOBJS " in
16357 *" glob.$ac_objext "* ) ;;
16358 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16367 for ac_func in lockf flock
16369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16383 #define $ac_func innocuous_$ac_func
16385 /* System header to define __stub macros and hopefully few prototypes,
16386 which can conflict with char $ac_func (); below.
16387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16388 <limits.h> exists even on freestanding compilers. */
16391 # include <limits.h>
16393 # include <assert.h>
16398 /* Override any GCC internal prototype to avoid an error.
16399 Use char because int might match the return type of a GCC
16400 builtin and then its argument prototype would still apply. */
16405 /* The GNU C library defines this for functions which it implements
16406 to always fail with ENOSYS. Some functions are actually named
16407 something starting with __ and the normal name is an alias. */
16408 #if defined __stub_$ac_func || defined __stub___$ac_func
16415 return $ac_func ();
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_link") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && {
16434 test -z "$ac_c_werror_flag" ||
16435 test ! -s conftest.err
16436 } && test -s conftest$ac_exeext &&
16437 $as_test_x conftest$ac_exeext; then
16438 eval "$as_ac_var=yes"
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 eval "$as_ac_var=no"
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447 conftest$ac_exeext conftest.$ac_ext
16449 ac_res=`eval echo '${'$as_ac_var'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451 echo "${ECHO_T}$ac_res" >&6; }
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 for ac_func in waitpid wait3
16464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16478 #define $ac_func innocuous_$ac_func
16480 /* System header to define __stub macros and hopefully few prototypes,
16481 which can conflict with char $ac_func (); below.
16482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16483 <limits.h> exists even on freestanding compilers. */
16486 # include <limits.h>
16488 # include <assert.h>
16493 /* Override any GCC internal prototype to avoid an error.
16494 Use char because int might match the return type of a GCC
16495 builtin and then its argument prototype would still apply. */
16500 /* The GNU C library defines this for functions which it implements
16501 to always fail with ENOSYS. Some functions are actually named
16502 something starting with __ and the normal name is an alias. */
16503 #if defined __stub_$ac_func || defined __stub___$ac_func
16510 return $ac_func ();
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext &&
16532 $as_test_x conftest$ac_exeext; then
16533 eval "$as_ac_var=yes"
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 eval "$as_ac_var=no"
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542 conftest$ac_exeext conftest.$ac_ext
16544 ac_res=`eval echo '${'$as_ac_var'}'`
16545 { echo "$as_me:$LINENO: result: $ac_res" >&5
16546 echo "${ECHO_T}$ac_res" >&6; }
16547 if test `eval echo '${'$as_ac_var'}'` = yes; then
16548 cat >>confdefs.h <<_ACEOF
16549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16557 for ac_func in innetgr _innetgr
16559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16573 #define $ac_func innocuous_$ac_func
16575 /* System header to define __stub macros and hopefully few prototypes,
16576 which can conflict with char $ac_func (); below.
16577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16578 <limits.h> exists even on freestanding compilers. */
16581 # include <limits.h>
16583 # include <assert.h>
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined __stub_$ac_func || defined __stub___$ac_func
16605 return $ac_func ();
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext &&
16627 $as_test_x conftest$ac_exeext; then
16628 eval "$as_ac_var=yes"
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 eval "$as_ac_var=no"
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16637 conftest$ac_exeext conftest.$ac_ext
16639 ac_res=`eval echo '${'$as_ac_var'}'`
16640 { echo "$as_me:$LINENO: result: $ac_res" >&5
16641 echo "${ECHO_T}$ac_res" >&6; }
16642 if test `eval echo '${'$as_ac_var'}'` = yes; then
16643 cat >>confdefs.h <<_ACEOF
16644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16647 for ac_func in getdomainname
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16663 #define $ac_func innocuous_$ac_func
16665 /* System header to define __stub macros and hopefully few prototypes,
16666 which can conflict with char $ac_func (); below.
16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668 <limits.h> exists even on freestanding compilers. */
16671 # include <limits.h>
16673 # include <assert.h>
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16685 /* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688 #if defined __stub_$ac_func || defined __stub___$ac_func
16695 return $ac_func ();
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest$ac_exeext &&
16717 $as_test_x conftest$ac_exeext; then
16718 eval "$as_ac_var=yes"
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 eval "$as_ac_var=no"
16726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16727 conftest$ac_exeext conftest.$ac_ext
16729 ac_res=`eval echo '${'$as_ac_var'}'`
16730 { echo "$as_me:$LINENO: result: $ac_res" >&5
16731 echo "${ECHO_T}$ac_res" >&6; }
16732 if test `eval echo '${'$as_ac_var'}'` = yes; then
16733 cat >>confdefs.h <<_ACEOF
16734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16744 for ac_func in lsearch
16746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define $ac_func innocuous_$ac_func
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char $ac_func (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16768 # include <limits.h>
16770 # include <assert.h>
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16792 return $ac_func ();
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext &&
16814 $as_test_x conftest$ac_exeext; then
16815 eval "$as_ac_var=yes"
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 eval "$as_ac_var=no"
16823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824 conftest$ac_exeext conftest.$ac_ext
16826 ac_res=`eval echo '${'$as_ac_var'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_var'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835 { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16836 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16837 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-lcompat $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16849 /* Override any GCC internal prototype to avoid an error.
16850 Use char because int might match the return type of a GCC
16851 builtin and then its argument prototype would still apply. */
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_link") 2>conftest.er1
16873 grep -v '^ *+' conftest.er1 >conftest.err
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } && {
16878 test -z "$ac_c_werror_flag" ||
16879 test ! -s conftest.err
16880 } && test -s conftest$ac_exeext &&
16881 $as_test_x conftest$ac_exeext; then
16882 ac_cv_lib_compat_lsearch=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_lib_compat_lsearch=no
16890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16891 conftest$ac_exeext conftest.$ac_ext
16892 LIBS=$ac_check_lib_save_LIBS
16894 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16895 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16896 if test $ac_cv_lib_compat_lsearch = yes; then
16897 { echo "$as_me:$LINENO: checking for search.h" >&5
16898 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16899 if test "${ac_cv_header_search_h+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 #include <search.h>
16910 if { (ac_try="$ac_cpp conftest.$ac_ext"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16918 grep -v '^ *+' conftest.er1 >conftest.err
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } >/dev/null && {
16923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16924 test ! -s conftest.err
16926 ac_cv_header_search_h=yes
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ac_cv_header_search_h=no
16934 rm -f conftest.err conftest.$ac_ext
16936 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16937 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16938 if test $ac_cv_header_search_h = yes; then
16939 cat >>confdefs.h <<\_ACEOF
16940 #define HAVE_LSEARCH 1
16942 LIBS="${LIBS} -lcompat"
16944 case " $LIBOBJS " in
16945 *" lsearch.$ac_objext "* ) ;;
16946 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16954 case " $LIBOBJS " in
16955 *" lsearch.$ac_objext "* ) ;;
16956 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16966 for ac_func in utimes
16968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16982 #define $ac_func innocuous_$ac_func
16984 /* System header to define __stub macros and hopefully few prototypes,
16985 which can conflict with char $ac_func (); below.
16986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987 <limits.h> exists even on freestanding compilers. */
16990 # include <limits.h>
16992 # include <assert.h>
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17004 /* The GNU C library defines this for functions which it implements
17005 to always fail with ENOSYS. Some functions are actually named
17006 something starting with __ and the normal name is an alias. */
17007 #if defined __stub_$ac_func || defined __stub___$ac_func
17014 return $ac_func ();
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } && {
17033 test -z "$ac_c_werror_flag" ||
17034 test ! -s conftest.err
17035 } && test -s conftest$ac_exeext &&
17036 $as_test_x conftest$ac_exeext; then
17037 eval "$as_ac_var=yes"
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 eval "$as_ac_var=no"
17045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046 conftest$ac_exeext conftest.$ac_ext
17048 ac_res=`eval echo '${'$as_ac_var'}'`
17049 { echo "$as_me:$LINENO: result: $ac_res" >&5
17050 echo "${ECHO_T}$ac_res" >&6; }
17051 if test `eval echo '${'$as_ac_var'}'` = yes; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 for ac_func in futimes futimesat
17059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17073 #define $ac_func innocuous_$ac_func
17075 /* System header to define __stub macros and hopefully few prototypes,
17076 which can conflict with char $ac_func (); below.
17077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17078 <limits.h> exists even on freestanding compilers. */
17081 # include <limits.h>
17083 # include <assert.h>
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17095 /* The GNU C library defines this for functions which it implements
17096 to always fail with ENOSYS. Some functions are actually named
17097 something starting with __ and the normal name is an alias. */
17098 #if defined __stub_$ac_func || defined __stub___$ac_func
17105 return $ac_func ();
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1 >conftest.err
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 eval "$as_ac_var=yes"
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 eval "$as_ac_var=no"
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140 { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17152 for ac_func in futime
17154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17168 #define $ac_func innocuous_$ac_func
17170 /* System header to define __stub macros and hopefully few prototypes,
17171 which can conflict with char $ac_func (); below.
17172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17173 <limits.h> exists even on freestanding compilers. */
17176 # include <limits.h>
17178 # include <assert.h>
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17190 /* The GNU C library defines this for functions which it implements
17191 to always fail with ENOSYS. Some functions are actually named
17192 something starting with __ and the normal name is an alias. */
17193 #if defined __stub_$ac_func || defined __stub___$ac_func
17200 return $ac_func ();
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_link") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && {
17219 test -z "$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 } && test -s conftest$ac_exeext &&
17222 $as_test_x conftest$ac_exeext; then
17223 eval "$as_ac_var=yes"
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 eval "$as_ac_var=no"
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232 conftest$ac_exeext conftest.$ac_ext
17234 ac_res=`eval echo '${'$as_ac_var'}'`
17235 { echo "$as_me:$LINENO: result: $ac_res" >&5
17236 echo "${ECHO_T}$ac_res" >&6; }
17237 if test `eval echo '${'$as_ac_var'}'` = yes; then
17238 cat >>confdefs.h <<_ACEOF
17239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17244 case " $LIBOBJS " in
17245 *" utimes.$ac_objext "* ) ;;
17246 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17253 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17254 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17255 if test "${sudo_cv_func_fnmatch+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 rm -f conftestdata; > conftestdata
17259 if test "$cross_compiling" = yes; then
17260 sudo_cv_func_fnmatch=no
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 #include <fnmatch.h>
17269 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17271 rm -f conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 sudo_cv_func_fnmatch=yes
17293 echo "$as_me: program exited with status $ac_status" >&5
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ( exit $ac_status )
17298 sudo_cv_func_fnmatch=no
17300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17304 rm -f core core.* *.core
17307 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17308 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17309 if test $sudo_cv_func_fnmatch = yes; then
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_FNMATCH 1
17315 case " $LIBOBJS " in
17316 *" fnmatch.$ac_objext "* ) ;;
17317 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17323 { echo "$as_me:$LINENO: checking for isblank" >&5
17324 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17325 if test "${sudo_cv_func_isblank+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17338 return (isblank('a'));
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 sudo_cv_func_isblank=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 sudo_cv_func_isblank=no
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17372 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17373 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17375 if test "$sudo_cv_func_isblank" = "yes"; then
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_ISBLANK 1
17389 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17405 #define $ac_func innocuous_$ac_func
17407 /* System header to define __stub macros and hopefully few prototypes,
17408 which can conflict with char $ac_func (); below.
17409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17410 <limits.h> exists even on freestanding compilers. */
17413 # include <limits.h>
17415 # include <assert.h>
17420 /* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17427 /* The GNU C library defines this for functions which it implements
17428 to always fail with ENOSYS. Some functions are actually named
17429 something starting with __ and the normal name is an alias. */
17430 #if defined __stub_$ac_func || defined __stub___$ac_func
17437 return $ac_func ();
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17460 eval "$as_ac_var=yes"
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 eval "$as_ac_var=no"
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469 conftest$ac_exeext conftest.$ac_ext
17471 ac_res=`eval echo '${'$as_ac_var'}'`
17472 { echo "$as_me:$LINENO: result: $ac_res" >&5
17473 echo "${ECHO_T}$ac_res" >&6; }
17474 if test `eval echo '${'$as_ac_var'}'` = yes; then
17475 cat >>confdefs.h <<_ACEOF
17476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17480 case " $LIBOBJS " in
17481 *" $ac_func.$ac_objext "* ) ;;
17482 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17491 for ac_func in closefrom
17493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17507 #define $ac_func innocuous_$ac_func
17509 /* System header to define __stub macros and hopefully few prototypes,
17510 which can conflict with char $ac_func (); below.
17511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512 <limits.h> exists even on freestanding compilers. */
17515 # include <limits.h>
17517 # include <assert.h>
17522 /* Override any GCC internal prototype to avoid an error.
17523 Use char because int might match the return type of a GCC
17524 builtin and then its argument prototype would still apply. */
17529 /* The GNU C library defines this for functions which it implements
17530 to always fail with ENOSYS. Some functions are actually named
17531 something starting with __ and the normal name is an alias. */
17532 #if defined __stub_$ac_func || defined __stub___$ac_func
17539 return $ac_func ();
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (ac_try="$ac_link"
17546 case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_link") 2>conftest.er1
17553 grep -v '^ *+' conftest.er1 >conftest.err
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } && {
17558 test -z "$ac_c_werror_flag" ||
17559 test ! -s conftest.err
17560 } && test -s conftest$ac_exeext &&
17561 $as_test_x conftest$ac_exeext; then
17562 eval "$as_ac_var=yes"
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17567 eval "$as_ac_var=no"
17570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17571 conftest$ac_exeext conftest.$ac_ext
17573 ac_res=`eval echo '${'$as_ac_var'}'`
17574 { echo "$as_me:$LINENO: result: $ac_res" >&5
17575 echo "${ECHO_T}$ac_res" >&6; }
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 case " $LIBOBJS " in
17583 *" closefrom.$ac_objext "* ) ;;
17584 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17588 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17589 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17590 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <limits.h>
17613 rm -f conftest.$ac_objext
17614 if { (ac_try="$ac_compile"
17615 case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_compile") 2>conftest.er1
17622 grep -v '^ *+' conftest.er1 >conftest.err
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } && {
17627 test -z "$ac_c_werror_flag" ||
17628 test ! -s conftest.err
17629 } && test -s conftest.$ac_objext; then
17630 ac_cv_have_decl_F_CLOSEM=yes
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17635 ac_cv_have_decl_F_CLOSEM=no
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17641 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17642 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17643 cat >>confdefs.h <<\_ACEOF
17644 #define HAVE_FCNTL_CLOSEM 1
17654 for ac_func in mkstemp
17656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17670 #define $ac_func innocuous_$ac_func
17672 /* System header to define __stub macros and hopefully few prototypes,
17673 which can conflict with char $ac_func (); below.
17674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17675 <limits.h> exists even on freestanding compilers. */
17678 # include <limits.h>
17680 # include <assert.h>
17685 /* Override any GCC internal prototype to avoid an error.
17686 Use char because int might match the return type of a GCC
17687 builtin and then its argument prototype would still apply. */
17692 /* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695 #if defined __stub_$ac_func || defined __stub___$ac_func
17702 return $ac_func ();
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (ac_try="$ac_link"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && {
17721 test -z "$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 } && test -s conftest$ac_exeext &&
17724 $as_test_x conftest$ac_exeext; then
17725 eval "$as_ac_var=yes"
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 eval "$as_ac_var=no"
17733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17734 conftest$ac_exeext conftest.$ac_ext
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737 { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740 cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17745 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17748 for ac_func in random lrand48
17750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17764 #define $ac_func innocuous_$ac_func
17766 /* System header to define __stub macros and hopefully few prototypes,
17767 which can conflict with char $ac_func (); below.
17768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769 <limits.h> exists even on freestanding compilers. */
17772 # include <limits.h>
17774 # include <assert.h>
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17786 /* The GNU C library defines this for functions which it implements
17787 to always fail with ENOSYS. Some functions are actually named
17788 something starting with __ and the normal name is an alias. */
17789 #if defined __stub_$ac_func || defined __stub___$ac_func
17796 return $ac_func ();
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_link") 2>conftest.er1
17810 grep -v '^ *+' conftest.er1 >conftest.err
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } && {
17815 test -z "$ac_c_werror_flag" ||
17816 test ! -s conftest.err
17817 } && test -s conftest$ac_exeext &&
17818 $as_test_x conftest$ac_exeext; then
17819 eval "$as_ac_var=yes"
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 eval "$as_ac_var=no"
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828 conftest$ac_exeext conftest.$ac_ext
17830 ac_res=`eval echo '${'$as_ac_var'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_var'}'` = yes; then
17834 cat >>confdefs.h <<_ACEOF
17835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17849 for ac_func in snprintf vsnprintf asprintf vasprintf
17851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17865 #define $ac_func innocuous_$ac_func
17867 /* System header to define __stub macros and hopefully few prototypes,
17868 which can conflict with char $ac_func (); below.
17869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870 <limits.h> exists even on freestanding compilers. */
17873 # include <limits.h>
17875 # include <assert.h>
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17887 /* The GNU C library defines this for functions which it implements
17888 to always fail with ENOSYS. Some functions are actually named
17889 something starting with __ and the normal name is an alias. */
17890 #if defined __stub_$ac_func || defined __stub___$ac_func
17897 return $ac_func ();
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_link") 2>conftest.er1
17911 grep -v '^ *+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && {
17916 test -z "$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 } && test -s conftest$ac_exeext &&
17919 $as_test_x conftest$ac_exeext; then
17920 eval "$as_ac_var=yes"
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 eval "$as_ac_var=no"
17928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929 conftest$ac_exeext conftest.$ac_ext
17931 ac_res=`eval echo '${'$as_ac_var'}'`
17932 { echo "$as_me:$LINENO: result: $ac_res" >&5
17933 echo "${ECHO_T}$ac_res" >&6; }
17934 if test `eval echo '${'$as_ac_var'}'` = yes; then
17935 cat >>confdefs.h <<_ACEOF
17936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17945 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17946 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17947 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 $ac_includes_default
17960 static struct stat ac_aggr;
17961 if (ac_aggr.st_mtim)
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest.$ac_objext; then
17984 ac_cv_member_struct_stat_st_mtim=yes
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 $ac_includes_default
17999 static struct stat ac_aggr;
18000 if (sizeof ac_aggr.st_mtim)
18006 rm -f conftest.$ac_objext
18007 if { (ac_try="$ac_compile"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && {
18020 test -z "$ac_c_werror_flag" ||
18021 test ! -s conftest.err
18022 } && test -s conftest.$ac_objext; then
18023 ac_cv_member_struct_stat_st_mtim=yes
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 ac_cv_member_struct_stat_st_mtim=no
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18037 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18038 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_ST_MTIM 1
18043 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18044 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18045 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 $ac_includes_default
18058 static struct stat ac_aggr;
18059 if (ac_aggr.st_mtim.st__tim)
18065 rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_compile") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest.$ac_objext; then
18082 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 cat >conftest.$ac_ext <<_ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 $ac_includes_default
18097 static struct stat ac_aggr;
18098 if (sizeof ac_aggr.st_mtim.st__tim)
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest.$ac_objext; then
18121 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_member_struct_stat_st_mtim_st__tim=no
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18134 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18135 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18136 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_ST__TIM 1
18144 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18145 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18146 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 $ac_includes_default
18159 static struct stat ac_aggr;
18160 if (ac_aggr.st_mtimespec)
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_compile") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } && {
18180 test -z "$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18182 } && test -s conftest.$ac_objext; then
18183 ac_cv_member_struct_stat_st_mtimespec=yes
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 $ac_includes_default
18198 static struct stat ac_aggr;
18199 if (sizeof ac_aggr.st_mtimespec)
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_compile") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest.$ac_objext; then
18222 ac_cv_member_struct_stat_st_mtimespec=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_member_struct_stat_st_mtimespec=no
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18236 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18237 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_ST_MTIMESPEC 1
18246 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18247 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 #include <sys/types.h>
18255 #include <sys/time.h>
18259 struct timespec ts1, ts2;
18260 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18261 #ifndef timespecsub
18262 #error missing timespecsub
18264 timespecsub(&ts1, &ts2);
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE_TIMESPECSUB2 1
18290 { echo "$as_me:$LINENO: result: yes" >&5
18291 echo "${ECHO_T}yes" >&6; }
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 { echo "$as_me:$LINENO: result: no" >&5
18297 echo "${ECHO_T}no" >&6; }
18300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <sys/types.h>
18309 #include <$ac_header_dirent>
18313 DIR d; (void)dirfd(&d);
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18336 cat >>confdefs.h <<\_ACEOF
18337 #define HAVE_DIRFD 1
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 cat >conftest.$ac_ext <<_ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 #include <sys/types.h>
18351 #include <$ac_header_dirent>
18355 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && {
18374 test -z "$ac_c_werror_flag" ||
18375 test ! -s conftest.err
18376 } && test -s conftest$ac_exeext &&
18377 $as_test_x conftest$ac_exeext; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE_DD_FD 1
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18390 conftest$ac_exeext conftest.$ac_ext
18393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18394 conftest$ac_exeext conftest.$ac_ext
18395 if test -n "$NEED_SNPRINTF"; then
18396 case " $LIBOBJS " in
18397 *" snprintf.$ac_objext "* ) ;;
18398 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18403 { echo "$as_me:$LINENO: checking for socket" >&5
18404 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18405 if test "${ac_cv_func_socket+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18416 #define socket innocuous_socket
18418 /* System header to define __stub macros and hopefully few prototypes,
18419 which can conflict with char socket (); below.
18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 <limits.h> exists even on freestanding compilers. */
18424 # include <limits.h>
18426 # include <assert.h>
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18438 /* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441 #if defined __stub_socket || defined __stub___socket
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest$ac_exeext &&
18470 $as_test_x conftest$ac_exeext; then
18471 ac_cv_func_socket=yes
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 ac_cv_func_socket=no
18479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18480 conftest$ac_exeext conftest.$ac_ext
18482 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18483 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18484 if test $ac_cv_func_socket = yes; then
18487 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18489 if test "${ac_cv_lib_socket_socket+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 ac_check_lib_save_LIBS=$LIBS
18493 LIBS="-lsocket $LIBS"
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest$ac_exeext &&
18533 $as_test_x conftest$ac_exeext; then
18534 ac_cv_lib_socket_socket=yes
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_cv_lib_socket_socket=no
18542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18543 conftest$ac_exeext conftest.$ac_ext
18544 LIBS=$ac_check_lib_save_LIBS
18546 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18547 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18548 if test $ac_cv_lib_socket_socket = yes; then
18549 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18551 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18552 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18553 if test "${ac_cv_lib_inet_socket+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 ac_check_lib_save_LIBS=$LIBS
18557 LIBS="-linet $LIBS"
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18565 /* Override any GCC internal prototype to avoid an error.
18566 Use char because int might match the return type of a GCC
18567 builtin and then its argument prototype would still apply. */
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_link") 2>conftest.er1
18589 grep -v '^ *+' conftest.er1 >conftest.err
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } && {
18594 test -z "$ac_c_werror_flag" ||
18595 test ! -s conftest.err
18596 } && test -s conftest$ac_exeext &&
18597 $as_test_x conftest$ac_exeext; then
18598 ac_cv_lib_inet_socket=yes
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18603 ac_cv_lib_inet_socket=no
18606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18607 conftest$ac_exeext conftest.$ac_ext
18608 LIBS=$ac_check_lib_save_LIBS
18610 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18611 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18612 if test $ac_cv_lib_inet_socket = yes; then
18613 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18615 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18616 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18617 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18618 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18619 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 ac_check_lib_save_LIBS=$LIBS
18623 LIBS="-lsocket -lnsl $LIBS"
18624 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18631 /* Override any GCC internal prototype to avoid an error.
18632 Use char because int might match the return type of a GCC
18633 builtin and then its argument prototype would still apply. */
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_link") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest$ac_exeext &&
18663 $as_test_x conftest$ac_exeext; then
18664 ac_cv_lib_socket_socket_lnsl=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_lib_socket_socket_lnsl=no
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673 conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18676 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18677 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18678 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18679 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18688 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18689 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18690 if test "${ac_cv_func_inet_addr+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 cat >conftest.$ac_ext <<_ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18699 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18701 #define inet_addr innocuous_inet_addr
18703 /* System header to define __stub macros and hopefully few prototypes,
18704 which can conflict with char inet_addr (); below.
18705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18706 <limits.h> exists even on freestanding compilers. */
18709 # include <limits.h>
18711 # include <assert.h>
18716 /* Override any GCC internal prototype to avoid an error.
18717 Use char because int might match the return type of a GCC
18718 builtin and then its argument prototype would still apply. */
18723 /* The GNU C library defines this for functions which it implements
18724 to always fail with ENOSYS. Some functions are actually named
18725 something starting with __ and the normal name is an alias. */
18726 #if defined __stub_inet_addr || defined __stub___inet_addr
18733 return inet_addr ();
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest$ac_exeext &&
18755 $as_test_x conftest$ac_exeext; then
18756 ac_cv_func_inet_addr=yes
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 ac_cv_func_inet_addr=no
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765 conftest$ac_exeext conftest.$ac_ext
18767 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18768 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18769 if test $ac_cv_func_inet_addr = yes; then
18772 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18773 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18774 if test "${ac_cv_func___inet_addr+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18785 #define __inet_addr innocuous___inet_addr
18787 /* System header to define __stub macros and hopefully few prototypes,
18788 which can conflict with char __inet_addr (); below.
18789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18790 <limits.h> exists even on freestanding compilers. */
18793 # include <limits.h>
18795 # include <assert.h>
18800 /* Override any GCC internal prototype to avoid an error.
18801 Use char because int might match the return type of a GCC
18802 builtin and then its argument prototype would still apply. */
18806 char __inet_addr ();
18807 /* The GNU C library defines this for functions which it implements
18808 to always fail with ENOSYS. Some functions are actually named
18809 something starting with __ and the normal name is an alias. */
18810 #if defined __stub___inet_addr || defined __stub_____inet_addr
18817 return __inet_addr ();
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext &&
18839 $as_test_x conftest$ac_exeext; then
18840 ac_cv_func___inet_addr=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ac_cv_func___inet_addr=no
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849 conftest$ac_exeext conftest.$ac_ext
18851 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18852 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18853 if test $ac_cv_func___inet_addr = yes; then
18856 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18857 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18858 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 ac_check_lib_save_LIBS=$LIBS
18863 cat >conftest.$ac_ext <<_ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18870 /* Override any GCC internal prototype to avoid an error.
18871 Use char because int might match the return type of a GCC
18872 builtin and then its argument prototype would still apply. */
18880 return inet_addr ();
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18894 grep -v '^ *+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18903 ac_cv_lib_nsl_inet_addr=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_cv_lib_nsl_inet_addr=no
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912 conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18915 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18916 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18917 if test $ac_cv_lib_nsl_inet_addr = yes; then
18918 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18920 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18921 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-linet $LIBS"
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18934 /* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18944 return inet_addr ();
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest$ac_exeext &&
18966 $as_test_x conftest$ac_exeext; then
18967 ac_cv_lib_inet_inet_addr=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_lib_inet_inet_addr=no
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976 conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18980 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18981 if test $ac_cv_lib_inet_inet_addr = yes; then
18982 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18984 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18985 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18986 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18987 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18988 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-lsocket -lnsl $LIBS"
18993 cat >conftest.$ac_ext <<_ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19010 return inet_addr ();
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext &&
19032 $as_test_x conftest$ac_exeext; then
19033 ac_cv_lib_socket_inet_addr_lnsl=yes
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ac_cv_lib_socket_inet_addr_lnsl=no
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19045 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19046 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19047 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19048 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19059 { echo "$as_me:$LINENO: checking for syslog" >&5
19060 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19061 if test "${ac_cv_func_syslog+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 cat >conftest.$ac_ext <<_ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19070 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19072 #define syslog innocuous_syslog
19074 /* System header to define __stub macros and hopefully few prototypes,
19075 which can conflict with char syslog (); below.
19076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19077 <limits.h> exists even on freestanding compilers. */
19080 # include <limits.h>
19082 # include <assert.h>
19087 /* Override any GCC internal prototype to avoid an error.
19088 Use char because int might match the return type of a GCC
19089 builtin and then its argument prototype would still apply. */
19094 /* The GNU C library defines this for functions which it implements
19095 to always fail with ENOSYS. Some functions are actually named
19096 something starting with __ and the normal name is an alias. */
19097 #if defined __stub_syslog || defined __stub___syslog
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_link") 2>conftest.er1
19118 grep -v '^ *+' conftest.er1 >conftest.err
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && {
19123 test -z "$ac_c_werror_flag" ||
19124 test ! -s conftest.err
19125 } && test -s conftest$ac_exeext &&
19126 $as_test_x conftest$ac_exeext; then
19127 ac_cv_func_syslog=yes
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ac_cv_func_syslog=no
19135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19136 conftest$ac_exeext conftest.$ac_ext
19138 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19139 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19140 if test $ac_cv_func_syslog = yes; then
19143 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19144 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19145 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-lsocket $LIBS"
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19157 /* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (ac_try="$ac_link"
19174 case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_link") 2>conftest.er1
19181 grep -v '^ *+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest$ac_exeext &&
19189 $as_test_x conftest$ac_exeext; then
19190 ac_cv_lib_socket_syslog=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_cv_lib_socket_syslog=no
19198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19199 conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19202 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19203 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19204 if test $ac_cv_lib_socket_syslog = yes; then
19205 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19207 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19208 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19209 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 ac_check_lib_save_LIBS=$LIBS
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19221 /* Override any GCC internal prototype to avoid an error.
19222 Use char because int might match the return type of a GCC
19223 builtin and then its argument prototype would still apply. */
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (ac_try="$ac_link"
19238 case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_link") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } && {
19250 test -z "$ac_c_werror_flag" ||
19251 test ! -s conftest.err
19252 } && test -s conftest$ac_exeext &&
19253 $as_test_x conftest$ac_exeext; then
19254 ac_cv_lib_nsl_syslog=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_lib_nsl_syslog=no
19262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19263 conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19266 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19267 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19268 if test $ac_cv_lib_nsl_syslog = yes; then
19269 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19271 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19272 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-linet $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && {
19314 test -z "$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19316 } && test -s conftest$ac_exeext &&
19317 $as_test_x conftest$ac_exeext; then
19318 ac_cv_lib_inet_syslog=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_lib_inet_syslog=no
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19331 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19332 if test $ac_cv_lib_inet_syslog = yes; then
19333 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19342 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19344 # for constant arguments. Useless!
19345 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19347 if test "${ac_cv_working_alloca_h+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 #include <alloca.h>
19360 char *p = (char *) alloca (2 * sizeof (int));
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (ac_try="$ac_link"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_link") 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest$ac_exeext &&
19383 $as_test_x conftest$ac_exeext; then
19384 ac_cv_working_alloca_h=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_working_alloca_h=no
19392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19393 conftest$ac_exeext conftest.$ac_ext
19395 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19396 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19397 if test $ac_cv_working_alloca_h = yes; then
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_ALLOCA_H 1
19405 { echo "$as_me:$LINENO: checking for alloca" >&5
19406 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19407 if test "${ac_cv_func_alloca_works+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 # define alloca __builtin_alloca
19420 # include <malloc.h>
19421 # define alloca _alloca
19423 # ifdef HAVE_ALLOCA_H
19424 # include <alloca.h>
19429 # ifndef alloca /* predefined by HP cc +Olibcalls */
19440 char *p = (char *) alloca (1);
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_link") 2>conftest.er1
19455 grep -v '^ *+' conftest.er1 >conftest.err
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } && {
19460 test -z "$ac_c_werror_flag" ||
19461 test ! -s conftest.err
19462 } && test -s conftest$ac_exeext &&
19463 $as_test_x conftest$ac_exeext; then
19464 ac_cv_func_alloca_works=yes
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_func_alloca_works=no
19472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19473 conftest$ac_exeext conftest.$ac_ext
19475 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19476 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19478 if test $ac_cv_func_alloca_works = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_ALLOCA 1
19485 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19486 # that cause trouble. Some versions do not even contain alloca or
19487 # contain a buggy version. If you still want to use their alloca,
19488 # use ar to extract alloca.o from them instead of compiling alloca.c.
19490 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19492 cat >>confdefs.h <<\_ACEOF
19497 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19498 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19499 if test "${ac_cv_os_cray+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 #if defined CRAY && ! defined CRAY2
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516 $EGREP "webecray" >/dev/null 2>&1; then
19524 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19525 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19526 if test $ac_cv_os_cray = yes; then
19527 for ac_func in _getb67 GETB67 getb67; do
19528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19542 #define $ac_func innocuous_$ac_func
19544 /* System header to define __stub macros and hopefully few prototypes,
19545 which can conflict with char $ac_func (); below.
19546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19547 <limits.h> exists even on freestanding compilers. */
19550 # include <limits.h>
19552 # include <assert.h>
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19564 /* The GNU C library defines this for functions which it implements
19565 to always fail with ENOSYS. Some functions are actually named
19566 something starting with __ and the normal name is an alias. */
19567 #if defined __stub_$ac_func || defined __stub___$ac_func
19574 return $ac_func ();
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 eval "$as_ac_var=yes"
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 eval "$as_ac_var=no"
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19608 ac_res=`eval echo '${'$as_ac_var'}'`
19609 { echo "$as_me:$LINENO: result: $ac_res" >&5
19610 echo "${ECHO_T}$ac_res" >&6; }
19611 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define CRAY_STACKSEG_END $ac_func
19623 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19625 if test "${ac_cv_c_stack_direction+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 if test "$cross_compiling" = yes; then
19629 ac_cv_c_stack_direction=0
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 $ac_includes_default
19639 find_stack_direction ()
19641 static char *addr = 0;
19646 return find_stack_direction ();
19649 return (&dummy > addr) ? 1 : -1;
19655 return find_stack_direction () < 0;
19658 rm -f conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19669 { (case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_try") 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_cv_c_stack_direction=1
19680 echo "$as_me: program exited with status $ac_status" >&5
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ( exit $ac_status )
19685 ac_cv_c_stack_direction=-1
19687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19692 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19693 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19695 cat >>confdefs.h <<_ACEOF
19696 #define STACK_DIRECTION $ac_cv_c_stack_direction
19704 for ac_func in getprogname
19706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19720 #define $ac_func innocuous_$ac_func
19722 /* System header to define __stub macros and hopefully few prototypes,
19723 which can conflict with char $ac_func (); below.
19724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19725 <limits.h> exists even on freestanding compilers. */
19728 # include <limits.h>
19730 # include <assert.h>
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19742 /* The GNU C library defines this for functions which it implements
19743 to always fail with ENOSYS. Some functions are actually named
19744 something starting with __ and the normal name is an alias. */
19745 #if defined __stub_$ac_func || defined __stub___$ac_func
19752 return $ac_func ();
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (ac_try="$ac_link"
19759 case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_link") 2>conftest.er1
19766 grep -v '^ *+' conftest.er1 >conftest.err
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } && {
19771 test -z "$ac_c_werror_flag" ||
19772 test ! -s conftest.err
19773 } && test -s conftest$ac_exeext &&
19774 $as_test_x conftest$ac_exeext; then
19775 eval "$as_ac_var=yes"
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 eval "$as_ac_var=no"
19783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19784 conftest$ac_exeext conftest.$ac_ext
19786 ac_res=`eval echo '${'$as_ac_var'}'`
19787 { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19789 if test `eval echo '${'$as_ac_var'}'` = yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19796 { echo "$as_me:$LINENO: checking for __progname" >&5
19797 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19798 if test "${sudo_cv___progname+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 cat >conftest.$ac_ext <<_ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19812 extern char *__progname; (void)puts(__progname);
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_link") 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest$ac_exeext &&
19834 $as_test_x conftest$ac_exeext; then
19835 sudo_cv___progname=yes
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 sudo_cv___progname=no
19843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844 conftest$ac_exeext conftest.$ac_ext
19847 if test "$sudo_cv___progname" = "yes"; then
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE___PROGNAME 1
19853 case " $LIBOBJS " in
19854 *" getprogname.$ac_objext "* ) ;;
19855 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19860 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19861 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19868 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19869 for auth in $AUTH_EXCL_DEF; do
19871 AIX_AUTH) with_aixauth=maybe;;
19872 BSD_AUTH) with_bsdauth=maybe;;
19873 PAM) with_pam=maybe;;
19874 SIA) CHECKSIA=true;;
19879 if test ${with_pam-"no"} != "no"; then
19880 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19881 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19882 if test "${ac_cv_lib_dl_main+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 ac_check_lib_save_LIBS=$LIBS
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19921 ac_cv_lib_dl_main=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_cv_lib_dl_main=no
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19931 LIBS=$ac_check_lib_save_LIBS
19933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19934 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19935 if test $ac_cv_lib_dl_main = yes; then
19936 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19938 SUDO_LIBS="${SUDO_LIBS} -lpam"
19941 ac_cv_lib_dl=ac_cv_lib_dl_main
19945 for ac_header in security/pam_appl.h pam/pam_appl.h
19947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955 { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19958 # Is the header compilable?
19959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 $ac_includes_default
19968 #include <$ac_header>
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19979 grep -v '^ *+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_header_compiler=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 ac_header_compiler=no
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19997 echo "${ECHO_T}$ac_header_compiler" >&6; }
19999 # Is the header present?
20000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 #include <$ac_header>
20010 if { (ac_try="$ac_cpp conftest.$ac_ext"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } >/dev/null && {
20023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20026 ac_header_preproc=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_header_preproc=no
20034 rm -f conftest.err conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20036 echo "${ECHO_T}$ac_header_preproc" >&6; }
20038 # So? What about this header?
20039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20045 ac_header_preproc=yes
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 eval "$as_ac_Header=\$ac_header_preproc"
20070 ac_res=`eval echo '${'$as_ac_Header'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20079 with_pam=yes; break
20084 if test "$with_pam" = "yes"; then
20085 cat >>confdefs.h <<\_ACEOF
20089 AUTH_OBJS="$AUTH_OBJS pam.o";
20091 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20092 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20093 # Check whether --enable-pam_session was given.
20094 if test "${enable_pam_session+set}" = set; then
20095 enableval=$enable_pam_session; case "$enableval" in
20096 yes) { echo "$as_me:$LINENO: result: yes" >&5
20097 echo "${ECHO_T}yes" >&6; }
20099 no) { echo "$as_me:$LINENO: result: no" >&5
20100 echo "${ECHO_T}no" >&6; }
20101 cat >>confdefs.h <<\_ACEOF
20102 #define NO_PAM_SESSION 1
20106 *) { echo "$as_me:$LINENO: result: no" >&5
20107 echo "${ECHO_T}no" >&6; }
20108 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20109 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20113 { echo "$as_me:$LINENO: result: yes" >&5
20114 echo "${ECHO_T}yes" >&6; }
20118 *-*-linux*|*-*-solaris*)
20120 for ac_func in dgettext
20122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20136 #define $ac_func innocuous_$ac_func
20138 /* System header to define __stub macros and hopefully few prototypes,
20139 which can conflict with char $ac_func (); below.
20140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 <limits.h> exists even on freestanding compilers. */
20144 # include <limits.h>
20146 # include <assert.h>
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20158 /* The GNU C library defines this for functions which it implements
20159 to always fail with ENOSYS. Some functions are actually named
20160 something starting with __ and the normal name is an alias. */
20161 #if defined __stub_$ac_func || defined __stub___$ac_func
20168 return $ac_func ();
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest$ac_exeext &&
20190 $as_test_x conftest$ac_exeext; then
20191 eval "$as_ac_var=yes"
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 eval "$as_ac_var=no"
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200 conftest$ac_exeext conftest.$ac_ext
20202 ac_res=`eval echo '${'$as_ac_var'}'`
20203 { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20205 if test `eval echo '${'$as_ac_var'}'` = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20211 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20212 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20213 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 ac_check_lib_save_LIBS=$LIBS
20217 LIBS="-lintl $LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20225 /* Override any GCC internal prototype to avoid an error.
20226 Use char because int might match the return type of a GCC
20227 builtin and then its argument prototype would still apply. */
20235 return dgettext ();
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>conftest.er1
20249 grep -v '^ *+' conftest.er1 >conftest.err
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext &&
20257 $as_test_x conftest$ac_exeext; then
20258 ac_cv_lib_intl_dgettext=yes
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_lib_intl_dgettext=no
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20268 LIBS=$ac_check_lib_save_LIBS
20270 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20271 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20272 if test $ac_cv_lib_intl_dgettext = yes; then
20273 LIBS="${LIBS} -lintl"
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_DGETTEXT 1
20288 if test ${with_aixauth-'no'} != "no"; then
20289 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20290 { echo "$as_me:$LINENO: using AIX general authentication" >&5
20291 echo "$as_me: using AIX general authentication" >&6;}
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_AIXAUTH 1
20296 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20297 SUDO_LIBS="${SUDO_LIBS} -ls"
20302 if test ${with_bsdauth-'no'} != "no"; then
20303 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20304 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20305 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20306 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20310 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20312 # Is the header compilable?
20313 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20314 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20322 #include <bsd_auth.h>
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_header_compiler=yes
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_compiler=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20351 echo "${ECHO_T}$ac_header_compiler" >&6; }
20353 # Is the header present?
20354 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20355 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <bsd_auth.h>
20364 if { (ac_try="$ac_cpp conftest.$ac_ext"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } >/dev/null && {
20377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20380 ac_header_preproc=yes
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_header_preproc=no
20388 rm -f conftest.err conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20390 echo "${ECHO_T}$ac_header_preproc" >&6; }
20392 # So? What about this header?
20393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20395 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20396 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20398 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20399 ac_header_preproc=yes
20402 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20403 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20405 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20407 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20409 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20411 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20413 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20417 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20418 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20419 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 ac_cv_header_bsd_auth_h=$ac_header_preproc
20424 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20425 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20428 if test $ac_cv_header_bsd_auth_h = yes; then
20429 cat >>confdefs.h <<\_ACEOF
20430 #define HAVE_BSD_AUTH_H 1
20433 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20434 AUTH_EXCL=BSD_AUTH; BAMAN=""
20436 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20437 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20438 { (exit 1); exit 1; }; }
20444 if test ${CHECKSIA-'false'} = "true"; then
20446 for ac_func in sia_ses_init
20448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20462 #define $ac_func innocuous_$ac_func
20464 /* System header to define __stub macros and hopefully few prototypes,
20465 which can conflict with char $ac_func (); below.
20466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20467 <limits.h> exists even on freestanding compilers. */
20470 # include <limits.h>
20472 # include <assert.h>
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20484 /* The GNU C library defines this for functions which it implements
20485 to always fail with ENOSYS. Some functions are actually named
20486 something starting with __ and the normal name is an alias. */
20487 #if defined __stub_$ac_func || defined __stub___$ac_func
20494 return $ac_func ();
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (ac_try="$ac_link"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_link") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext &&
20516 $as_test_x conftest$ac_exeext; then
20517 eval "$as_ac_var=yes"
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 eval "$as_ac_var=no"
20525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20526 conftest$ac_exeext conftest.$ac_ext
20528 ac_res=`eval echo '${'$as_ac_var'}'`
20529 { echo "$as_me:$LINENO: result: $ac_res" >&5
20530 echo "${ECHO_T}$ac_res" >&6; }
20531 if test `eval echo '${'$as_ac_var'}'` = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20541 if test "$found" = "true"; then
20543 AUTH_OBJS="$AUTH_OBJS sia.o"
20547 if test ${with_fwtk-'no'} != "no"; then
20548 if test "$with_fwtk" != "yes"; then
20550 if test X"$with_rpath" = X"yes"; then
20551 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20553 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20555 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20556 blibpath_add="${blibpath_add}:${with_fwtk}"
20559 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20562 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20563 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20566 if test ${with_SecurID-'no'} != "no"; then
20567 if test "$with_SecurID" != "yes"; then
20569 elif test -d /usr/ace/examples; then
20570 with_SecurID=/usr/ace/examples
20572 with_SecurID=/usr/ace
20574 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20575 _LDFLAGS="${LDFLAGS}"
20577 if test X"$with_rpath" = X"yes"; then
20578 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20580 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20582 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20583 blibpath_add="${blibpath_add}:${with_SecurID}"
20587 # Determine whether to use the new or old SecurID API
20589 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20590 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20591 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 ac_check_lib_save_LIBS=$LIBS
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20606 /* Override any GCC internal prototype to avoid an error.
20607 Use char because int might match the return type of a GCC
20608 builtin and then its argument prototype would still apply. */
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest$ac_exeext &&
20638 $as_test_x conftest$ac_exeext; then
20639 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648 conftest$ac_exeext conftest.$ac_ext
20649 LIBS=$ac_check_lib_save_LIBS
20651 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20652 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20653 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20655 AUTH_OBJS="$AUTH_OBJS securid5.o";
20656 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20660 if test X"$with_rpath" = X"yes"; then
20661 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20663 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20665 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20666 blibpath_add="${blibpath_add}:${with_SecurID}"
20672 AUTH_OBJS="$AUTH_OBJS securid.o";
20673 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20677 LDFLAGS="${_LDFLAGS}"
20681 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20682 for auth in $AUTH_DEF; do
20684 passwd) : ${with_passwd='maybe'};;
20689 if test ${with_kerb4-'no'} != "no"; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_KERB4 1
20694 O_LDFLAGS="$LDFLAGS"
20695 if test "$with_kerb4" = "yes"; then
20697 O_CPPFLAGS="$CPPFLAGS"
20698 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20699 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20700 cat >conftest.$ac_ext <<_ACEOF
20703 if { (ac_try="$ac_cpp conftest.$ac_ext"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } >/dev/null && {
20716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20727 rm -f conftest.err conftest.$ac_ext
20729 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20732 if test X"$with_rpath" = X"yes"; then
20733 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20735 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20737 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20738 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20742 if test X"$with_rpath" = X"yes"; then
20743 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20745 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20747 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20748 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20751 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20752 if test "${ac_cv_header_krb_h+set}" = set; then
20753 { echo "$as_me:$LINENO: checking for krb.h" >&5
20754 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20755 if test "${ac_cv_header_krb_h+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20759 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20761 # Is the header compilable?
20762 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20763 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 $ac_includes_default
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest.$ac_objext; then
20790 ac_header_compiler=yes
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_header_compiler=no
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20800 echo "${ECHO_T}$ac_header_compiler" >&6; }
20802 # Is the header present?
20803 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20804 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20813 if { (ac_try="$ac_cpp conftest.$ac_ext"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } >/dev/null && {
20826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20829 ac_header_preproc=yes
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_header_preproc=no
20837 rm -f conftest.err conftest.$ac_ext
20838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20839 echo "${ECHO_T}$ac_header_preproc" >&6; }
20841 # So? What about this header?
20842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20844 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20845 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20847 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20848 ac_header_preproc=yes
20851 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20852 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20854 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20856 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20858 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20860 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20862 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20866 { echo "$as_me:$LINENO: checking for krb.h" >&5
20867 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20868 if test "${ac_cv_header_krb_h+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 ac_cv_header_krb_h=$ac_header_preproc
20873 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20874 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20877 if test $ac_cv_header_krb_h = yes; then
20885 if test X"$found" = X"no"; then
20886 { 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
20887 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;}
20890 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20891 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20892 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 ac_check_lib_save_LIBS=$LIBS
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20910 char des_cbc_encrypt ();
20914 return des_cbc_encrypt ();
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_link") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && {
20933 test -z "$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 } && test -s conftest$ac_exeext &&
20936 $as_test_x conftest$ac_exeext; then
20937 ac_cv_lib_des_des_cbc_encrypt=yes
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_cv_lib_des_des_cbc_encrypt=no
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946 conftest$ac_exeext conftest.$ac_ext
20947 LIBS=$ac_check_lib_save_LIBS
20949 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20950 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20951 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20955 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20956 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20957 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-ldes425 $LIBS"
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 /* Override any GCC internal prototype to avoid an error.
20970 Use char because int might match the return type of a GCC
20971 builtin and then its argument prototype would still apply. */
20975 char des_cbc_encrypt ();
20979 return des_cbc_encrypt ();
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext &&
21001 $as_test_x conftest$ac_exeext; then
21002 ac_cv_lib_des425_des_cbc_encrypt=yes
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_cv_lib_des425_des_cbc_encrypt=no
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21012 LIBS=$ac_check_lib_save_LIBS
21014 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21015 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21016 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21025 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
21026 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21037 const char *tmp = krb4_version;
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_compile") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest.$ac_objext; then
21060 { echo "$as_me:$LINENO: result: yes" >&5
21061 echo "${ECHO_T}yes" >&6; }
21062 K4LIBS="${K4LIBS} -lcom_err"
21063 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21064 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21065 if test "${ac_cv_lib_roken_main+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 ac_check_lib_save_LIBS=$LIBS
21069 LIBS="-lroken $LIBS"
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21086 rm -f conftest.$ac_objext conftest$ac_exeext
21087 if { (ac_try="$ac_link"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_link") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && {
21100 test -z "$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 } && test -s conftest$ac_exeext &&
21103 $as_test_x conftest$ac_exeext; then
21104 ac_cv_lib_roken_main=yes
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_cv_lib_roken_main=no
21112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21113 conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21116 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21117 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21118 if test $ac_cv_lib_roken_main = yes; then
21119 K4LIBS="${K4LIBS} -lroken"
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21128 { echo "$as_me:$LINENO: result: no" >&5
21129 echo "${ECHO_T}no" >&6; }
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21136 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21137 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 ac_check_lib_save_LIBS=$LIBS
21142 LIBS="-lkrb $K4LIBS $LIBS"
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_link") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest$ac_exeext &&
21176 $as_test_x conftest$ac_exeext; then
21177 eval "$as_ac_Lib=yes"
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 eval "$as_ac_Lib=no"
21185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21186 conftest$ac_exeext conftest.$ac_ext
21187 LIBS=$ac_check_lib_save_LIBS
21189 ac_res=`eval echo '${'$as_ac_Lib'}'`
21190 { echo "$as_me:$LINENO: result: $ac_res" >&5
21191 echo "${ECHO_T}$ac_res" >&6; }
21192 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21193 K4LIBS="-lkrb $K4LIBS"
21196 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21197 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21198 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21199 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 ac_check_lib_save_LIBS=$LIBS
21203 LIBS="-lkrb4 $K4LIBS $LIBS"
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest$ac_exeext &&
21237 $as_test_x conftest$ac_exeext; then
21238 eval "$as_ac_Lib=yes"
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 eval "$as_ac_Lib=no"
21246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21247 conftest$ac_exeext conftest.$ac_ext
21248 LIBS=$ac_check_lib_save_LIBS
21250 ac_res=`eval echo '${'$as_ac_Lib'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21253 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21254 K4LIBS="-lkrb4 $K4LIBS"
21256 K4LIBS="-lkrb $K4LIBS"
21257 { 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
21258 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;}
21265 LDFLAGS="$O_LDFLAGS"
21266 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21267 AUTH_OBJS="$AUTH_OBJS kerb4.o"
21270 if test ${with_kerb5-'no'} != "no"; then
21271 # Extract the first word of "krb5-config", so it can be a program name with args.
21272 set dummy krb5-config; ac_word=$2
21273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21275 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 if test -n "$KRB5CONFIG"; then
21279 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21282 for as_dir in $PATH
21285 test -z "$as_dir" && as_dir=.
21286 for ac_exec_ext in '' $ac_executable_extensions; do
21287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21288 ac_cv_prog_KRB5CONFIG="yes"
21289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21296 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21299 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21300 if test -n "$KRB5CONFIG"; then
21301 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21302 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21304 { echo "$as_me:$LINENO: result: no" >&5
21305 echo "${ECHO_T}no" >&6; }
21309 if test -n "$KRB5CONFIG"; then
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_KERB5 1
21314 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21315 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21316 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21317 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21318 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21319 cat >conftest.$ac_ext <<_ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21329 const char *tmp = heimdal_version;
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21343 grep -v '^ *+' conftest.er1 >conftest.err
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.$ac_objext; then
21352 { echo "$as_me:$LINENO: result: yes" >&5
21353 echo "${ECHO_T}yes" >&6; }
21354 cat >>confdefs.h <<\_ACEOF
21355 #define HAVE_HEIMDAL 1
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21364 { echo "$as_me:$LINENO: result: no" >&5
21365 echo "${ECHO_T}no" >&6; }
21370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_KERB5 1
21378 if test "$with_kerb5" = "yes"; then
21380 O_CPPFLAGS="$CPPFLAGS"
21381 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21382 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21383 cat >conftest.$ac_ext <<_ACEOF
21386 if { (ac_try="$ac_cpp conftest.$ac_ext"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } >/dev/null && {
21399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21410 rm -f conftest.err conftest.$ac_ext
21412 if test X"$found" = X"no"; then
21413 CPPFLAGS="$O_CPPFLAGS"
21414 { 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
21415 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;}
21419 if test X"$with_rpath" = X"yes"; then
21420 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21422 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21424 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21425 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21428 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21431 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21432 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21433 cat >conftest.$ac_ext <<_ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21443 const char *tmp = heimdal_version;
21448 rm -f conftest.$ac_objext
21449 if { (ac_try="$ac_compile"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.$ac_objext; then
21466 { echo "$as_me:$LINENO: result: yes" >&5
21467 echo "${ECHO_T}yes" >&6; }
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_HEIMDAL 1
21472 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21473 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21474 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21475 if test "${ac_cv_lib_roken_main+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 ac_check_lib_save_LIBS=$LIBS
21479 LIBS="-lroken $LIBS"
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_link") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest$ac_exeext &&
21513 $as_test_x conftest$ac_exeext; then
21514 ac_cv_lib_roken_main=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_cv_lib_roken_main=no
21522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21523 conftest$ac_exeext conftest.$ac_ext
21524 LIBS=$ac_check_lib_save_LIBS
21526 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21527 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21528 if test $ac_cv_lib_roken_main = yes; then
21529 SUDO_LIBS="${SUDO_LIBS} -lroken"
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21538 { echo "$as_me:$LINENO: result: no" >&5
21539 echo "${ECHO_T}no" >&6; }
21540 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21541 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21542 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21543 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 ac_check_lib_save_LIBS=$LIBS
21547 LIBS="-lkrb5support $LIBS"
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_link") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext &&
21581 $as_test_x conftest$ac_exeext; then
21582 ac_cv_lib_krb5support_main=yes
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ac_cv_lib_krb5support_main=no
21590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21591 conftest$ac_exeext conftest.$ac_ext
21592 LIBS=$ac_check_lib_save_LIBS
21594 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21595 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21596 if test $ac_cv_lib_krb5support_main = yes; then
21597 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21606 LIBS="${LIBS} ${SUDO_LIBS}"
21609 for ac_func in krb5_verify_user krb5_init_secure_context
21611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21625 #define $ac_func innocuous_$ac_func
21627 /* System header to define __stub macros and hopefully few prototypes,
21628 which can conflict with char $ac_func (); below.
21629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21630 <limits.h> exists even on freestanding compilers. */
21633 # include <limits.h>
21635 # include <assert.h>
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21647 /* The GNU C library defines this for functions which it implements
21648 to always fail with ENOSYS. Some functions are actually named
21649 something starting with __ and the normal name is an alias. */
21650 #if defined __stub_$ac_func || defined __stub___$ac_func
21657 return $ac_func ();
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_link") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest$ac_exeext &&
21679 $as_test_x conftest$ac_exeext; then
21680 eval "$as_ac_var=yes"
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 eval "$as_ac_var=no"
21688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21689 conftest$ac_exeext conftest.$ac_ext
21691 ac_res=`eval echo '${'$as_ac_var'}'`
21692 { echo "$as_me:$LINENO: result: $ac_res" >&5
21693 echo "${ECHO_T}$ac_res" >&6; }
21694 if test `eval echo '${'$as_ac_var'}'` = yes; then
21695 cat >>confdefs.h <<_ACEOF
21696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21705 if test ${with_AFS-'no'} = "yes"; then
21707 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21708 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21709 for i in $AFSLIBDIRS; do
21710 if test -d ${i}; then
21712 if test X"$with_rpath" = X"yes"; then
21713 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21715 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21717 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21718 blibpath_add="${blibpath_add}:$i"
21721 FOUND_AFSLIBDIR=true
21724 if test -z "$FOUND_AFSLIBDIR"; then
21725 { 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
21726 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;}
21729 # Order is important here. Note that we build AFS_LIBS from right to left
21730 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21731 AFS_LIBS="-laudit ${AFS_LIBS}"
21732 for i in $AFSLIBDIRS; do
21733 if test -f ${i}/util.a; then
21734 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21739 if test -z "$FOUND_UTIL_A"; then
21740 AFS_LIBS="-lutil ${AFS_LIBS}"
21742 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21744 # AFS includes may live in /usr/include on some machines...
21745 for i in /usr/afsws/include; do
21746 if test -d ${i}; then
21747 CPPFLAGS="${CPPFLAGS} -I${i}"
21748 FOUND_AFSINCDIR=true
21752 if test -z "$FOUND_AFSLIBDIR"; then
21753 { 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
21754 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;}
21757 AUTH_OBJS="$AUTH_OBJS afs.o"
21760 if test ${with_DCE-'no'} = "yes"; then
21761 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21762 SUDO_LIBS="${SUDO_LIBS} -ldce"
21763 AUTH_OBJS="$AUTH_OBJS dce.o"
21766 if test ${with_skey-'no'} = "yes"; then
21767 O_LDFLAGS="$LDFLAGS"
21768 if test "$with_skey" != "yes"; then
21769 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21771 if test X"$with_rpath" = X"yes"; then
21772 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21774 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21776 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21777 blibpath_add="${blibpath_add}:${with_skey}/lib"
21781 if test X"$with_rpath" = X"yes"; then
21782 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21784 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21786 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21787 blibpath_add="${blibpath_add}:${with_skey}/lib"
21790 cat >conftest.$ac_ext <<_ACEOF
21793 if { (ac_try="$ac_cpp conftest.$ac_ext"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } >/dev/null && {
21806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21817 rm -f conftest.err conftest.$ac_ext
21820 O_CPPFLAGS="$CPPFLAGS"
21821 for dir in "" "/usr/local" "/usr/contrib"; do
21822 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21823 cat >conftest.$ac_ext <<_ACEOF
21826 if { (ac_try="$ac_cpp conftest.$ac_ext"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } >/dev/null && {
21839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21850 rm -f conftest.err conftest.$ac_ext
21852 if test "$found" = "no" -o -z "$dir"; then
21853 CPPFLAGS="$O_CPPFLAGS"
21856 if test X"$with_rpath" = X"yes"; then
21857 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21859 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21861 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21862 blibpath_add="${blibpath_add}:${dir}/lib"
21866 if test X"$with_rpath" = X"yes"; then
21867 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21869 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21871 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21872 blibpath_add="${blibpath_add}:${dir}/lib"
21877 if test "$found" = "no"; then
21878 { 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
21879 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;}
21881 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21882 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21883 if test "${ac_cv_lib_skey_main+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lskey $LIBS"
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_link") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext &&
21921 $as_test_x conftest$ac_exeext; then
21922 ac_cv_lib_skey_main=yes
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_cv_lib_skey_main=no
21930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21931 conftest$ac_exeext conftest.$ac_ext
21932 LIBS=$ac_check_lib_save_LIBS
21934 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21935 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21936 if test $ac_cv_lib_skey_main = yes; then
21939 { 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
21940 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;}
21943 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21944 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21945 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 ac_check_lib_save_LIBS=$LIBS
21949 LIBS="-lskey $LIBS"
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21957 /* Override any GCC internal prototype to avoid an error.
21958 Use char because int might match the return type of a GCC
21959 builtin and then its argument prototype would still apply. */
21963 char skeyaccess ();
21967 return skeyaccess ();
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_link") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest$ac_exeext &&
21989 $as_test_x conftest$ac_exeext; then
21990 ac_cv_lib_skey_skeyaccess=yes
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_cv_lib_skey_skeyaccess=no
21998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999 conftest$ac_exeext conftest.$ac_ext
22000 LIBS=$ac_check_lib_save_LIBS
22002 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
22003 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
22004 if test $ac_cv_lib_skey_skeyaccess = yes; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_SKEYACCESS 1
22011 LDFLAGS="$O_LDFLAGS"
22012 SUDO_LIBS="${SUDO_LIBS} -lskey"
22013 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22016 if test ${with_opie-'no'} = "yes"; then
22017 O_LDFLAGS="$LDFLAGS"
22018 if test "$with_opie" != "yes"; then
22019 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22021 if test X"$with_rpath" = X"yes"; then
22022 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22024 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22026 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22027 blibpath_add="${blibpath_add}:${with_opie}/lib"
22031 if test X"$with_rpath" = X"yes"; then
22032 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22034 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22036 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22037 blibpath_add="${blibpath_add}:${with_opie}/lib"
22040 cat >conftest.$ac_ext <<_ACEOF
22043 if { (ac_try="$ac_cpp conftest.$ac_ext"
22044 case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22051 grep -v '^ *+' conftest.er1 >conftest.err
22053 cat conftest.err >&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } >/dev/null && {
22056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22057 test ! -s conftest.err
22061 echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22067 rm -f conftest.err conftest.$ac_ext
22070 O_CPPFLAGS="$CPPFLAGS"
22071 for dir in "" "/usr/local" "/usr/contrib"; do
22072 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22073 cat >conftest.$ac_ext <<_ACEOF
22076 if { (ac_try="$ac_cpp conftest.$ac_ext"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22084 grep -v '^ *+' conftest.er1 >conftest.err
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } >/dev/null && {
22089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22100 rm -f conftest.err conftest.$ac_ext
22102 if test "$found" = "no" -o -z "$dir"; then
22103 CPPFLAGS="$O_CPPFLAGS"
22106 if test X"$with_rpath" = X"yes"; then
22107 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22109 LDFLAGS="${LDFLAGS} -L${dir}/lib"
22111 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22112 blibpath_add="${blibpath_add}:${dir}/lib"
22116 if test X"$with_rpath" = X"yes"; then
22117 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22119 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22121 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22122 blibpath_add="${blibpath_add}:${dir}/lib"
22127 if test "$found" = "no"; then
22128 { 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
22129 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;}
22131 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22132 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22133 if test "${ac_cv_lib_opie_main+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-lopie $LIBS"
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22154 rm -f conftest.$ac_objext conftest$ac_exeext
22155 if { (ac_try="$ac_link"
22156 case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_link") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest$ac_exeext &&
22171 $as_test_x conftest$ac_exeext; then
22172 ac_cv_lib_opie_main=yes
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_cv_lib_opie_main=no
22180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22181 conftest$ac_exeext conftest.$ac_ext
22182 LIBS=$ac_check_lib_save_LIBS
22184 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22185 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22186 if test $ac_cv_lib_opie_main = yes; then
22189 { 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
22190 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;}
22193 LDFLAGS="$O_LDFLAGS"
22194 SUDO_LIBS="${SUDO_LIBS} -lopie"
22195 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22198 if test ${with_passwd-'no'} != "no"; then
22199 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22200 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22201 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22202 if test "${ac_cv_search_crypt+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 ac_func_search_save_LIBS=$LIBS
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22213 /* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22228 for ac_lib in '' crypt crypt_d ufc; do
22229 if test -z "$ac_lib"; then
22230 ac_res="none required"
22233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_link") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest$ac_exeext &&
22252 $as_test_x conftest$ac_exeext; then
22253 ac_cv_search_crypt=$ac_res
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 if test "${ac_cv_search_crypt+set}" = set; then
22267 if test "${ac_cv_search_crypt+set}" = set; then
22270 ac_cv_search_crypt=no
22272 rm conftest.$ac_ext
22273 LIBS=$ac_func_search_save_LIBS
22275 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22276 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22277 ac_res=$ac_cv_search_crypt
22278 if test "$ac_res" != no; then
22279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22280 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22285 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22287 LIBS="$LIBS $shadow_libs"
22290 for ac_func in $shadow_funcs
22292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 cat >conftest.$ac_ext <<_ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22306 #define $ac_func innocuous_$ac_func
22308 /* System header to define __stub macros and hopefully few prototypes,
22309 which can conflict with char $ac_func (); below.
22310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22311 <limits.h> exists even on freestanding compilers. */
22314 # include <limits.h>
22316 # include <assert.h>
22321 /* Override any GCC internal prototype to avoid an error.
22322 Use char because int might match the return type of a GCC
22323 builtin and then its argument prototype would still apply. */
22328 /* The GNU C library defines this for functions which it implements
22329 to always fail with ENOSYS. Some functions are actually named
22330 something starting with __ and the normal name is an alias. */
22331 #if defined __stub_$ac_func || defined __stub___$ac_func
22338 return $ac_func ();
22343 rm -f conftest.$ac_objext conftest$ac_exeext
22344 if { (ac_try="$ac_link"
22345 case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_link") 2>conftest.er1
22352 grep -v '^ *+' conftest.er1 >conftest.err
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } && {
22357 test -z "$ac_c_werror_flag" ||
22358 test ! -s conftest.err
22359 } && test -s conftest$ac_exeext &&
22360 $as_test_x conftest$ac_exeext; then
22361 eval "$as_ac_var=yes"
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 eval "$as_ac_var=no"
22369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22370 conftest$ac_exeext conftest.$ac_ext
22372 ac_res=`eval echo '${'$as_ac_var'}'`
22373 { echo "$as_me:$LINENO: result: $ac_res" >&5
22374 echo "${ECHO_T}$ac_res" >&6; }
22375 if test `eval echo '${'$as_ac_var'}'` = yes; then
22376 cat >>confdefs.h <<_ACEOF
22377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383 if test "$found" = "yes"; then
22384 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22385 elif test -n "$shadow_libs_optional"; then
22386 LIBS="$LIBS $shadow_libs_optional"
22388 for ac_func in $shadow_funcs
22390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22404 #define $ac_func innocuous_$ac_func
22406 /* System header to define __stub macros and hopefully few prototypes,
22407 which can conflict with char $ac_func (); below.
22408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22409 <limits.h> exists even on freestanding compilers. */
22412 # include <limits.h>
22414 # include <assert.h>
22419 /* Override any GCC internal prototype to avoid an error.
22420 Use char because int might match the return type of a GCC
22421 builtin and then its argument prototype would still apply. */
22426 /* The GNU C library defines this for functions which it implements
22427 to always fail with ENOSYS. Some functions are actually named
22428 something starting with __ and the normal name is an alias. */
22429 #if defined __stub_$ac_func || defined __stub___$ac_func
22436 return $ac_func ();
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_link") 2>conftest.er1
22450 grep -v '^ *+' conftest.er1 >conftest.err
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } && {
22455 test -z "$ac_c_werror_flag" ||
22456 test ! -s conftest.err
22457 } && test -s conftest$ac_exeext &&
22458 $as_test_x conftest$ac_exeext; then
22459 eval "$as_ac_var=yes"
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 eval "$as_ac_var=no"
22467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22468 conftest$ac_exeext conftest.$ac_ext
22470 ac_res=`eval echo '${'$as_ac_var'}'`
22471 { echo "$as_me:$LINENO: result: $ac_res" >&5
22472 echo "${ECHO_T}$ac_res" >&6; }
22473 if test `eval echo '${'$as_ac_var'}'` = yes; then
22474 cat >>confdefs.h <<_ACEOF
22475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22481 if test "$found" = "yes"; then
22482 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22485 if test "$found" = "yes"; then
22486 case "$shadow_funcs" in
22487 *getprpwnam*) SECUREWARE=1;;
22489 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22495 if test "$CHECKSHADOW" = "true"; then
22496 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22497 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22498 if test "${ac_cv_search_getspnam+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 ac_func_search_save_LIBS=$LIBS
22502 cat >conftest.$ac_ext <<_ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22519 return getspnam ();
22524 for ac_lib in '' gen; do
22525 if test -z "$ac_lib"; then
22526 ac_res="none required"
22529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (ac_try="$ac_link"
22533 case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_link") 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest$ac_exeext &&
22548 $as_test_x conftest$ac_exeext; then
22549 ac_cv_search_getspnam=$ac_res
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22559 if test "${ac_cv_search_getspnam+set}" = set; then
22563 if test "${ac_cv_search_getspnam+set}" = set; then
22566 ac_cv_search_getspnam=no
22568 rm conftest.$ac_ext
22569 LIBS=$ac_func_search_save_LIBS
22571 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22572 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22573 ac_res=$ac_cv_search_getspnam
22574 if test "$ac_res" != no; then
22575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22576 cat >>confdefs.h <<\_ACEOF
22577 #define HAVE_GETSPNAM 1
22579 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22583 if test "$CHECKSHADOW" = "true"; then
22584 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22585 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22586 if test "${ac_cv_search_getprpwnam+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 ac_func_search_save_LIBS=$LIBS
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22597 /* Override any GCC internal prototype to avoid an error.
22598 Use char because int might match the return type of a GCC
22599 builtin and then its argument prototype would still apply. */
22603 char getprpwnam ();
22607 return getprpwnam ();
22612 for ac_lib in '' sec security prot; do
22613 if test -z "$ac_lib"; then
22614 ac_res="none required"
22617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest$ac_exeext &&
22636 $as_test_x conftest$ac_exeext; then
22637 ac_cv_search_getprpwnam=$ac_res
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22647 if test "${ac_cv_search_getprpwnam+set}" = set; then
22651 if test "${ac_cv_search_getprpwnam+set}" = set; then
22654 ac_cv_search_getprpwnam=no
22656 rm conftest.$ac_ext
22657 LIBS=$ac_func_search_save_LIBS
22659 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22660 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22661 ac_res=$ac_cv_search_getprpwnam
22662 if test "$ac_res" != no; then
22663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22664 cat >>confdefs.h <<\_ACEOF
22665 #define HAVE_GETPRPWNAM 1
22667 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22671 if test -n "$SECUREWARE"; then
22675 for ac_func in bigcrypt set_auth_parameters initprivs
22677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22691 #define $ac_func innocuous_$ac_func
22693 /* System header to define __stub macros and hopefully few prototypes,
22694 which can conflict with char $ac_func (); below.
22695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22696 <limits.h> exists even on freestanding compilers. */
22699 # include <limits.h>
22701 # include <assert.h>
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22713 /* The GNU C library defines this for functions which it implements
22714 to always fail with ENOSYS. Some functions are actually named
22715 something starting with __ and the normal name is an alias. */
22716 #if defined __stub_$ac_func || defined __stub___$ac_func
22723 return $ac_func ();
22728 rm -f conftest.$ac_objext conftest$ac_exeext
22729 if { (ac_try="$ac_link"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_link") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest$ac_exeext &&
22745 $as_test_x conftest$ac_exeext; then
22746 eval "$as_ac_var=yes"
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 eval "$as_ac_var=no"
22754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22755 conftest$ac_exeext conftest.$ac_ext
22757 ac_res=`eval echo '${'$as_ac_var'}'`
22758 { echo "$as_me:$LINENO: result: $ac_res" >&5
22759 echo "${ECHO_T}$ac_res" >&6; }
22760 if test `eval echo '${'$as_ac_var'}'` = yes; then
22761 cat >>confdefs.h <<_ACEOF
22762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22768 AUTH_OBJS="$AUTH_OBJS secureware.o"
22772 if test ${with_ldap-'no'} != "no"; then
22773 _LDFLAGS="$LDFLAGS"
22774 if test "$with_ldap" != "yes"; then
22776 if test X"$with_rpath" = X"yes"; then
22777 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22779 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22781 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22782 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22786 if test X"$with_rpath" = X"yes"; then
22787 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22789 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22791 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22792 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22795 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22798 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22800 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22801 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22805 for l in -lldap -llber '-lssl -lcrypto'; do
22807 LDAP_LIBS="${LDAP_LIBS} $l"
22808 cat >conftest.$ac_ext <<_ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22814 #include <sys/types.h>
22820 (void)ldap_init(0, 0)
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest$ac_exeext &&
22842 $as_test_x conftest$ac_exeext; then
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852 conftest$ac_exeext conftest.$ac_ext
22854 if test "$found" = "no"; then
22855 LIBS="${_LIBS} -lldap"
22857 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22858 echo "${ECHO_T}not found, using -lldap" >&6; }
22860 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22861 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22864 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22865 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22866 if test "${ac_cv_search_ber_set_option+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22869 ac_func_search_save_LIBS=$LIBS
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22877 /* Override any GCC internal prototype to avoid an error.
22878 Use char because int might match the return type of a GCC
22879 builtin and then its argument prototype would still apply. */
22883 char ber_set_option ();
22887 return ber_set_option ();
22892 for ac_lib in '' lber; do
22893 if test -z "$ac_lib"; then
22894 ac_res="none required"
22897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_link") 2>conftest.er1
22908 grep -v '^ *+' conftest.er1 >conftest.err
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } && {
22913 test -z "$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22915 } && test -s conftest$ac_exeext &&
22916 $as_test_x conftest$ac_exeext; then
22917 ac_cv_search_ber_set_option=$ac_res
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22927 if test "${ac_cv_search_ber_set_option+set}" = set; then
22931 if test "${ac_cv_search_ber_set_option+set}" = set; then
22934 ac_cv_search_ber_set_option=no
22936 rm conftest.$ac_ext
22937 LIBS=$ac_func_search_save_LIBS
22939 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22940 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22941 ac_res=$ac_cv_search_ber_set_option
22942 if test "$ac_res" != no; then
22943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22949 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22950 LDAP_LIBS="$LDAP_LIBS -llber"
22952 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22953 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 #include <sys/types.h>
22965 (void)ldap_init(0, 0)
22970 rm -f conftest.$ac_objext conftest$ac_exeext
22971 if { (ac_try="$ac_link"
22972 case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_link") 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest$ac_exeext &&
22987 $as_test_x conftest$ac_exeext; then
22988 { echo "$as_me:$LINENO: result: no" >&5
22989 echo "${ECHO_T}no" >&6; }
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22995 { echo "$as_me:$LINENO: result: yes" >&5
22996 echo "${ECHO_T}yes" >&6; }
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_LBER_H 1
23003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23004 conftest$ac_exeext conftest.$ac_ext
23010 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
23012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23026 #define $ac_func innocuous_$ac_func
23028 /* System header to define __stub macros and hopefully few prototypes,
23029 which can conflict with char $ac_func (); below.
23030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23031 <limits.h> exists even on freestanding compilers. */
23034 # include <limits.h>
23036 # include <assert.h>
23041 /* Override any GCC internal prototype to avoid an error.
23042 Use char because int might match the return type of a GCC
23043 builtin and then its argument prototype would still apply. */
23048 /* The GNU C library defines this for functions which it implements
23049 to always fail with ENOSYS. Some functions are actually named
23050 something starting with __ and the normal name is an alias. */
23051 #if defined __stub_$ac_func || defined __stub___$ac_func
23058 return $ac_func ();
23063 rm -f conftest.$ac_objext conftest$ac_exeext
23064 if { (ac_try="$ac_link"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_link") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest$ac_exeext &&
23080 $as_test_x conftest$ac_exeext; then
23081 eval "$as_ac_var=yes"
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 eval "$as_ac_var=no"
23089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23090 conftest$ac_exeext conftest.$ac_ext
23092 ac_res=`eval echo '${'$as_ac_var'}'`
23093 { echo "$as_me:$LINENO: result: $ac_res" >&5
23094 echo "${ECHO_T}$ac_res" >&6; }
23095 if test `eval echo '${'$as_ac_var'}'` = yes; then
23096 cat >>confdefs.h <<_ACEOF
23097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23105 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23121 #include <$ac_header>
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_compile") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest.$ac_objext; then
23140 eval "$as_ac_Header=yes"
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 eval "$as_ac_Header=no"
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 ac_res=`eval echo '${'$as_ac_Header'}'`
23151 { echo "$as_me:$LINENO: result: $ac_res" >&5
23152 echo "${ECHO_T}$ac_res" >&6; }
23153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23163 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23165 LDFLAGS="$_LDFLAGS"
23166 # XXX - OpenLDAP has deprecated ldap_get_values()
23167 CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
23170 if test -n "$blibpath"; then
23171 if test -n "$blibpath_add"; then
23172 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23173 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23174 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23178 { echo "$as_me:$LINENO: checking for log file location" >&5
23179 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23180 if test -n "$with_logpath"; then
23181 { echo "$as_me:$LINENO: result: $with_logpath" >&5
23182 echo "${ECHO_T}$with_logpath" >&6; }
23183 cat >>confdefs.h <<EOF
23184 #define _PATH_SUDO_LOGFILE "$with_logpath"
23187 elif test -d "/var/log"; then
23188 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23189 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23190 cat >>confdefs.h <<\EOF
23191 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23194 elif test -d "/var/adm"; then
23195 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23196 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23197 cat >>confdefs.h <<\EOF
23198 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23201 elif test -d "/usr/adm"; then
23202 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23203 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23204 cat >>confdefs.h <<\EOF
23205 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23209 { echo "$as_me:$LINENO: result: unknown" >&5
23210 echo "${ECHO_T}unknown" >&6; }
23213 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23214 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23215 if test -n "$with_timedir"; then
23216 { echo "$as_me:$LINENO: result: $with_timedir" >&5
23217 echo "${ECHO_T}$with_timedir" >&6; }
23218 cat >>confdefs.h <<EOF
23219 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23222 timedir="$with_timedir"
23223 elif test -d "/var/run"; then
23224 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23225 echo "${ECHO_T}/var/run/sudo" >&6; }
23226 cat >>confdefs.h <<\EOF
23227 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23230 timedir="/var/run/sudo"
23231 elif test -d "/var/adm"; then
23232 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23233 echo "${ECHO_T}/var/adm/sudo" >&6; }
23234 cat >>confdefs.h <<\EOF
23235 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23238 timedir="/var/adm/sudo"
23240 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23241 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23242 cat >>confdefs.h <<\EOF
23243 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23246 timedir="/usr/adm/sudo"
23250 case "$with_passwd" in
23252 AUTH_OBJS="$AUTH_OBJS passwd.o"
23255 cat >>confdefs.h <<\_ACEOF
23256 #define WITHOUT_PASSWD 1
23259 if test -z "$AUTH_OBJS"; then
23260 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23261 echo "$as_me: error: no authentication methods defined." >&2;}
23262 { (exit 1); exit 1; }; }
23266 AUTH_OBJS=${AUTH_OBJS# }
23267 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23268 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23269 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23271 if test -n "$LIBS"; then
23276 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23277 test $l = $sl && dupe=1
23279 test $dupe = 0 && LIBS="${LIBS} $l"
23283 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23285 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23286 oexec_prefix="$exec_prefix"
23287 if test "$exec_prefix" = '$(prefix)'; then
23288 if test "$prefix" = "NONE"; then
23289 exec_prefix="$ac_default_prefix"
23291 exec_prefix="$prefix"
23294 if test X"$with_noexec" != X"no"; then
23295 PROGS="${PROGS} sudo_noexec.la"
23296 INSTALL_NOEXEC="install-noexec"
23298 eval noexec_file="$with_noexec"
23300 cat >>confdefs.h <<_ACEOF
23301 #define _PATH_SUDO_NOEXEC "$noexec_file"
23305 if test X"$with_selinux" != X"no"; then
23306 eval sesh_file="$libexecdir/sesh"
23308 cat >>confdefs.h <<_ACEOF
23309 #define _PATH_SUDO_SESH "$sesh_file"
23313 exec_prefix="$oexec_prefix"
23316 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
23318 cat >confcache <<\_ACEOF
23319 # This file is a shell script that caches the results of configure
23320 # tests run on this system so they can be shared between configure
23321 # scripts and configure runs, see configure's option --config-cache.
23322 # It is not useful on other systems. If it contains results you don't
23323 # want to keep, you may remove or edit it.
23325 # config.status only pays attention to the cache file if you give it
23326 # the --recheck option to rerun configure.
23328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23330 # following values.
23334 # The following way of writing the cache mishandles newlines in values,
23335 # but we know of no workaround that is simple, portable, and efficient.
23336 # So, we kill variables containing newlines.
23337 # Ultrix sh set writes to stderr and can't be redirected directly,
23338 # and sets the high bit in the cache file unless we assign to the vars.
23340 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23341 eval ac_val=\$$ac_var
23345 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23346 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23349 _ | IFS | as_nl) ;; #(
23350 *) $as_unset $ac_var ;;
23356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23357 *${as_nl}ac_space=\ *)
23358 # `set' does not quote correctly, so add quotes (double-quote
23359 # substitution turns \\\\ into \\, and sed turns \\ into \).
23362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23365 # `set' quotes correctly as required by POSIX, so do not add quotes.
23366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23380 if test -w "$cache_file"; then
23381 test "x$cache_file" != "x/dev/null" &&
23382 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23383 echo "$as_me: updating cache $cache_file" >&6;}
23384 cat confcache >$cache_file
23386 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23387 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23393 # Let make expand exec_prefix.
23394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23396 DEFS=-DHAVE_CONFIG_H
23400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23401 # 1. Remove the extension, and $U if already installed.
23402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23403 ac_i=`echo "$ac_i" | sed "$ac_script"`
23404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23405 # will be set to the directory where LIBOBJS objects are built.
23406 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23407 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23409 LIBOBJS=$ac_libobjs
23411 LTLIBOBJS=$ac_ltlibobjs
23415 : ${CONFIG_STATUS=./config.status}
23416 ac_clean_files_save=$ac_clean_files
23417 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23418 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23419 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23420 cat >$CONFIG_STATUS <<_ACEOF
23422 # Generated by $as_me.
23423 # Run this file to recreate the current configuration.
23424 # Compiler output produced by configure, useful for debugging
23425 # configure, is in config.log if it exists.
23428 ac_cs_recheck=false
23430 SHELL=\${CONFIG_SHELL-$SHELL}
23433 cat >>$CONFIG_STATUS <<\_ACEOF
23434 ## --------------------- ##
23435 ## M4sh Initialization. ##
23436 ## --------------------- ##
23438 # Be more Bourne compatible
23439 DUALCASE=1; export DUALCASE # for MKS sh
23440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23444 # is contrary to our usage. Disable this feature.
23445 alias -g '${1+"$@"}'='"$@"'
23446 setopt NO_GLOB_SUBST
23448 case `(set -o) 2>/dev/null` in
23449 *posix*) set -o posix ;;
23458 # Avoid depending upon Character Ranges.
23459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23462 as_cr_digits='0123456789'
23463 as_cr_alnum=$as_cr_Letters$as_cr_digits
23465 # The user is always right.
23466 if test "${PATH_SEPARATOR+set}" != set; then
23467 echo "#! /bin/sh" >conf$$.sh
23468 echo "exit 0" >>conf$$.sh
23470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23478 # Support unset when possible.
23479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23487 # We need space, tab and new line, in precisely that order. Quoting is
23488 # there to prevent editors from complaining about space-tab.
23489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23490 # splitting by setting IFS to empty value.)
23495 # Find who we are. Look in the path if we contain no directory separator.
23497 *[\\/]* ) as_myself=$0 ;;
23498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23499 for as_dir in $PATH
23502 test -z "$as_dir" && as_dir=.
23503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23509 # We did not find ourselves, most probably we were run as `sh COMMAND'
23510 # in which case we are not to be found in the path.
23511 if test "x$as_myself" = x; then
23514 if test ! -f "$as_myself"; then
23515 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23516 { (exit 1); exit 1; }
23519 # Work around bugs in pre-3.0 UWIN ksh.
23520 for as_var in ENV MAIL MAILPATH
23521 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23529 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23530 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23531 LC_TELEPHONE LC_TIME
23533 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23534 eval $as_var=C; export $as_var
23536 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23540 # Required to use basename.
23541 if expr a : '\(a\)' >/dev/null 2>&1 &&
23542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23548 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23549 as_basename=basename
23555 # Name of the executable.
23556 as_me=`$as_basename -- "$0" ||
23557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23558 X"$0" : 'X\(//\)$' \| \
23559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23561 sed '/^.*\/\([^/][^/]*\)\/*$/{
23580 as_lineno_1=$LINENO
23581 as_lineno_2=$LINENO
23582 test "x$as_lineno_1" != "x$as_lineno_2" &&
23583 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23586 # uniformly replaced by the line number. The first 'sed' inserts a
23587 # line-number line after each line using $LINENO; the second 'sed'
23588 # does the real work. The second script uses 'N' to pair each
23589 # line-number line with the line containing $LINENO, and appends
23590 # trailing '-' during substitution so that $LINENO is not a special
23591 # case at line end.
23592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23593 # scripts with optimization help from Paolo Bonzini. Blame Lee
23594 # E. McMahon (1931-1989) for sed's syntax. :-)
23606 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23609 ' >$as_me.lineno &&
23610 chmod +x "$as_me.lineno" ||
23611 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23612 { (exit 1); exit 1; }; }
23614 # Don't try to exec as it changes $[0], causing all sort of problems
23615 # (the dirname of $[0] is not the place where we might find the
23616 # original and so on. Autoconf is especially sensitive to this).
23617 . "./$as_me.lineno"
23618 # Exit status is that of the last command.
23623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23629 ECHO_C= ECHO_N= ECHO_T=
23630 case `echo -n x` in
23632 case `echo 'x\c'` in
23633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23640 if expr a : '\(a\)' >/dev/null 2>&1 &&
23641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23647 rm -f conf$$ conf$$.exe conf$$.file
23648 if test -d conf$$.dir; then
23649 rm -f conf$$.dir/conf$$.file
23655 if ln -s conf$$.file conf$$ 2>/dev/null; then
23657 # ... but there are two gotchas:
23658 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23659 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23660 # In both cases, we have to default to `cp -p'.
23661 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23663 elif ln conf$$.file conf$$ 2>/dev/null; then
23668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23669 rmdir conf$$.dir 2>/dev/null
23671 if mkdir -p . 2>/dev/null; then
23674 test -d ./-p && rmdir ./-p
23678 if test -x / >/dev/null 2>&1; then
23679 as_test_x='test -x'
23681 if ls -dL / >/dev/null 2>&1; then
23688 if test -d "$1"; then
23694 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23695 ???[sx]*):;;*)false;;esac;fi
23699 as_executable_p=$as_test_x
23701 # Sed expression to map a string onto a valid CPP name.
23702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23704 # Sed expression to map a string onto a valid variable name.
23705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23710 # Save the log message, to keep $[0] and so on meaningful, and to
23711 # report actual input values of CONFIG_FILES etc. instead of their
23712 # values after options handling.
23714 This file was extended by sudo $as_me 1.6.9, which was
23715 generated by GNU Autoconf 2.61. Invocation command line was
23717 CONFIG_FILES = $CONFIG_FILES
23718 CONFIG_HEADERS = $CONFIG_HEADERS
23719 CONFIG_LINKS = $CONFIG_LINKS
23720 CONFIG_COMMANDS = $CONFIG_COMMANDS
23723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23728 cat >>$CONFIG_STATUS <<_ACEOF
23729 # Files that config.status was made for.
23730 config_files="$ac_config_files"
23731 config_headers="$ac_config_headers"
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23737 \`$as_me' instantiates files from templates according to the
23738 current configuration.
23740 Usage: $0 [OPTIONS] [FILE]...
23742 -h, --help print this help, then exit
23743 -V, --version print version number and configuration settings, then exit
23744 -q, --quiet do not print progress messages
23745 -d, --debug don't remove temporary files
23746 --recheck update $as_me by reconfiguring in the same conditions
23747 --file=FILE[:TEMPLATE]
23748 instantiate the configuration file FILE
23749 --header=FILE[:TEMPLATE]
23750 instantiate the configuration header FILE
23752 Configuration files:
23755 Configuration headers:
23758 Report bugs to <bug-autoconf@gnu.org>."
23761 cat >>$CONFIG_STATUS <<_ACEOF
23763 sudo config.status 1.6.9
23764 configured by $0, generated by GNU Autoconf 2.61,
23765 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23767 Copyright (C) 2006 Free Software Foundation, Inc.
23768 This config.status script is free software; the Free Software Foundation
23769 gives unlimited permission to copy, distribute and modify it."
23775 cat >>$CONFIG_STATUS <<\_ACEOF
23776 # If no file are specified by the user, then we need to provide default
23777 # value. By we need to know if files were specified by the user.
23783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23795 # Handling of the options.
23796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23799 echo "$ac_cs_version"; exit ;;
23800 --debug | --debu | --deb | --de | --d | -d )
23802 --file | --fil | --fi | --f )
23804 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23805 ac_need_defaults=false;;
23806 --header | --heade | --head | --hea )
23808 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23809 ac_need_defaults=false;;
23811 # Conflict between --help and --header
23812 { echo "$as_me: error: ambiguous option: $1
23813 Try \`$0 --help' for more information." >&2
23814 { (exit 1); exit 1; }; };;
23815 --help | --hel | -h )
23816 echo "$ac_cs_usage"; exit ;;
23817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23821 # This is an error.
23822 -*) { echo "$as_me: error: unrecognized option: $1
23823 Try \`$0 --help' for more information." >&2
23824 { (exit 1); exit 1; }; } ;;
23826 *) ac_config_targets="$ac_config_targets $1"
23827 ac_need_defaults=false ;;
23833 ac_configure_extra_args=
23835 if $ac_cs_silent; then
23837 ac_configure_extra_args="$ac_configure_extra_args --silent"
23841 cat >>$CONFIG_STATUS <<_ACEOF
23842 if \$ac_cs_recheck; then
23843 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23844 CONFIG_SHELL=$SHELL
23845 export CONFIG_SHELL
23846 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23855 ## Running $as_me. ##
23861 cat >>$CONFIG_STATUS <<_ACEOF
23864 cat >>$CONFIG_STATUS <<\_ACEOF
23866 # Handling of arguments.
23867 for ac_config_target in $ac_config_targets
23869 case $ac_config_target in
23870 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23871 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23872 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23873 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23874 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23875 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23877 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23878 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23879 { (exit 1); exit 1; }; };;
23884 # If the user did not use the arguments to specify the items to instantiate,
23885 # then the envvar interface is used. Set only those that are not.
23886 # We use the long form for the default assignment because of an extremely
23887 # bizarre bug on SunOS 4.1.3.
23888 if $ac_need_defaults; then
23889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23893 # Have a temporary directory for convenience. Make it in the build tree
23894 # simply because there is no reason against having it here, and in addition,
23895 # creating and moving files from /tmp can sometimes cause problems.
23896 # Hook for its removal unless debugging.
23897 # Note that there is a small window in which the directory will not be cleaned:
23898 # after its creation but before its name has been assigned to `$tmp'.
23902 trap 'exit_status=$?
23903 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23905 trap '{ (exit 1); exit 1; }' 1 2 13 15
23907 # Create a (secure) tmp directory for tmp files.
23910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23911 test -n "$tmp" && test -d "$tmp"
23914 tmp=./conf$$-$RANDOM
23915 (umask 077 && mkdir "$tmp")
23918 echo "$me: cannot create a temporary directory in ." >&2
23919 { (exit 1); exit 1; }
23923 # Set up the sed scripts for CONFIG_FILES section.
23926 # No need to generate the scripts if there are no CONFIG_FILES.
23927 # This happens for instance when ./config.status config.h
23928 if test -n "$CONFIG_FILES"; then
23935 for ac_last_try in false false false false false :; do
23936 cat >conf$$subs.sed <<_ACEOF
23937 SHELL!$SHELL$ac_delim
23938 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23939 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23940 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23941 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23942 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23943 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23944 exec_prefix!$exec_prefix$ac_delim
23945 prefix!$prefix$ac_delim
23946 program_transform_name!$program_transform_name$ac_delim
23947 bindir!$bindir$ac_delim
23948 sbindir!$sbindir$ac_delim
23949 libexecdir!$libexecdir$ac_delim
23950 datarootdir!$datarootdir$ac_delim
23951 datadir!$datadir$ac_delim
23952 sysconfdir!$sysconfdir$ac_delim
23953 sharedstatedir!$sharedstatedir$ac_delim
23954 localstatedir!$localstatedir$ac_delim
23955 includedir!$includedir$ac_delim
23956 oldincludedir!$oldincludedir$ac_delim
23957 docdir!$docdir$ac_delim
23958 infodir!$infodir$ac_delim
23959 htmldir!$htmldir$ac_delim
23960 dvidir!$dvidir$ac_delim
23961 pdfdir!$pdfdir$ac_delim
23962 psdir!$psdir$ac_delim
23963 libdir!$libdir$ac_delim
23964 localedir!$localedir$ac_delim
23965 mandir!$mandir$ac_delim
23966 DEFS!$DEFS$ac_delim
23967 ECHO_C!$ECHO_C$ac_delim
23968 ECHO_N!$ECHO_N$ac_delim
23969 ECHO_T!$ECHO_T$ac_delim
23970 LIBS!$LIBS$ac_delim
23971 build_alias!$build_alias$ac_delim
23972 host_alias!$host_alias$ac_delim
23973 target_alias!$target_alias$ac_delim
23974 LIBTOOL!$LIBTOOL$ac_delim
23975 CFLAGS!$CFLAGS$ac_delim
23976 PROGS!$PROGS$ac_delim
23977 CPPFLAGS!$CPPFLAGS$ac_delim
23978 LDFLAGS!$LDFLAGS$ac_delim
23979 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23980 SUDO_OBJS!$SUDO_OBJS$ac_delim
23981 SUDO_LIBS!$SUDO_LIBS$ac_delim
23982 NET_LIBS!$NET_LIBS$ac_delim
23983 AFS_LIBS!$AFS_LIBS$ac_delim
23984 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23985 OSDEFS!$OSDEFS$ac_delim
23986 AUTH_OBJS!$AUTH_OBJS$ac_delim
23987 MANTYPE!$MANTYPE$ac_delim
23988 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23989 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23990 SUDOERS_UID!$SUDOERS_UID$ac_delim
23991 SUDOERS_GID!$SUDOERS_GID$ac_delim
23993 SELINUX!$SELINUX$ac_delim
23994 BAMAN!$BAMAN$ac_delim
23995 LCMAN!$LCMAN$ac_delim
23996 SEMAN!$SEMAN$ac_delim
23997 mansectsu!$mansectsu$ac_delim
23998 mansectform!$mansectform$ac_delim
23999 mansrcdir!$mansrcdir$ac_delim
24000 NOEXECFILE!$NOEXECFILE$ac_delim
24001 NOEXECDIR!$NOEXECDIR$ac_delim
24002 noexec_file!$noexec_file$ac_delim
24003 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24004 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24005 timedir!$timedir$ac_delim
24006 timeout!$timeout$ac_delim
24007 password_timeout!$password_timeout$ac_delim
24008 sudo_umask!$sudo_umask$ac_delim
24009 passprompt!$passprompt$ac_delim
24010 long_otp_prompt!$long_otp_prompt$ac_delim
24011 lecture!$lecture$ac_delim
24012 logfac!$logfac$ac_delim
24013 goodpri!$goodpri$ac_delim
24014 badpri!$badpri$ac_delim
24015 loglen!$loglen$ac_delim
24016 ignore_dot!$ignore_dot$ac_delim
24017 mail_no_user!$mail_no_user$ac_delim
24018 mail_no_host!$mail_no_host$ac_delim
24019 mail_no_perms!$mail_no_perms$ac_delim
24020 mailto!$mailto$ac_delim
24021 mailsub!$mailsub$ac_delim
24022 badpass_message!$badpass_message$ac_delim
24023 fqdn!$fqdn$ac_delim
24024 runas_default!$runas_default$ac_delim
24025 env_editor!$env_editor$ac_delim
24026 passwd_tries!$passwd_tries$ac_delim
24027 tty_tickets!$tty_tickets$ac_delim
24028 insults!$insults$ac_delim
24029 root_sudo!$root_sudo$ac_delim
24030 path_info!$path_info$ac_delim
24031 EGREPPROG!$EGREPPROG$ac_delim
24033 ac_ct_CC!$ac_ct_CC$ac_delim
24036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24038 elif $ac_last_try; then
24039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24041 { (exit 1); exit 1; }; }
24043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24048 if test -n "$ac_eof"; then
24049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24050 ac_eof=`expr $ac_eof + 1`
24053 cat >>$CONFIG_STATUS <<_ACEOF
24054 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24059 s/^/s,@/; s/!/@,|#_!!_#|/
24062 s/'"$ac_delim"'$/,g/; t
24064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24065 ' >>$CONFIG_STATUS <conf$$subs.sed
24066 rm -f conf$$subs.sed
24067 cat >>$CONFIG_STATUS <<_ACEOF
24073 for ac_last_try in false false false false false :; do
24074 cat >conf$$subs.sed <<_ACEOF
24075 EXEEXT!$EXEEXT$ac_delim
24076 OBJEXT!$OBJEXT$ac_delim
24078 build!$build$ac_delim
24079 build_cpu!$build_cpu$ac_delim
24080 build_vendor!$build_vendor$ac_delim
24081 build_os!$build_os$ac_delim
24082 host!$host$ac_delim
24083 host_cpu!$host_cpu$ac_delim
24084 host_vendor!$host_vendor$ac_delim
24085 host_os!$host_os$ac_delim
24086 target!$target$ac_delim
24087 target_cpu!$target_cpu$ac_delim
24088 target_vendor!$target_vendor$ac_delim
24089 target_os!$target_os$ac_delim
24091 GREP!$GREP$ac_delim
24092 EGREP!$EGREP$ac_delim
24093 LN_S!$LN_S$ac_delim
24094 ECHO!$ECHO$ac_delim
24096 RANLIB!$RANLIB$ac_delim
24097 STRIP!$STRIP$ac_delim
24098 DSYMUTIL!$DSYMUTIL$ac_delim
24099 NMEDIT!$NMEDIT$ac_delim
24100 UNAMEPROG!$UNAMEPROG$ac_delim
24101 TRPROG!$TRPROG$ac_delim
24102 NROFFPROG!$NROFFPROG$ac_delim
24103 YACC!$YACC$ac_delim
24104 YFLAGS!$YFLAGS$ac_delim
24105 LIBOBJS!$LIBOBJS$ac_delim
24106 ALLOCA!$ALLOCA$ac_delim
24107 KRB5CONFIG!$KRB5CONFIG$ac_delim
24108 LTLIBOBJS!$LTLIBOBJS$ac_delim
24111 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24113 elif $ac_last_try; then
24114 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24115 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24116 { (exit 1); exit 1; }; }
24118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24122 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24123 if test -n "$ac_eof"; then
24124 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24125 ac_eof=`expr $ac_eof + 1`
24128 cat >>$CONFIG_STATUS <<_ACEOF
24129 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24133 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24134 s/^/s,@/; s/!/@,|#_!!_#|/
24137 s/'"$ac_delim"'$/,g/; t
24139 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24140 ' >>$CONFIG_STATUS <conf$$subs.sed
24141 rm -f conf$$subs.sed
24142 cat >>$CONFIG_STATUS <<_ACEOF
24149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24151 # trailing colons and then remove the whole line if VPATH becomes empty
24152 # (actually we leave an empty line to preserve line numbers).
24153 if test "x$srcdir" = x.; then
24154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24155 s/:*\$(srcdir):*/:/
24156 s/:*\${srcdir}:*/:/
24158 s/^\([^=]*=[ ]*\):*/\1/
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 fi # test -n "$CONFIG_FILES"
24168 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24171 :[FHLC]) ac_mode=$ac_tag; continue;;
24173 case $ac_mode$ac_tag in
24175 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24176 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24177 { (exit 1); exit 1; }; };;
24178 :[FH]-) ac_tag=-:-;;
24179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24196 -) ac_f="$tmp/stdin";;
24197 *) # Look for the file first in the build tree, then in the source tree
24198 # (if the path is not absolute). The absolute path cannot be DOS-style,
24199 # because $ac_f cannot contain `:'.
24203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24205 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24206 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24207 { (exit 1); exit 1; }; };;
24209 ac_file_inputs="$ac_file_inputs $ac_f"
24212 # Let's still pretend it is `configure' which instantiates (i.e., don't
24213 # use $as_me), people would be surprised to read:
24214 # /* config.h. Generated by config.status. */
24215 configure_input="Generated from "`IFS=:
24216 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24217 if test x"$ac_file" != x-; then
24218 configure_input="$ac_file. $configure_input"
24219 { echo "$as_me:$LINENO: creating $ac_file" >&5
24220 echo "$as_me: creating $ac_file" >&6;}
24224 *:-:* | *:-) cat >"$tmp/stdin";;
24229 ac_dir=`$as_dirname -- "$ac_file" ||
24230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24231 X"$ac_file" : 'X\(//\)[^/]' \| \
24232 X"$ac_file" : 'X\(//\)$' \| \
24233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24239 /^X\(\/\/\)[^/].*/{
24254 -*) as_dir=./$as_dir;;
24256 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24260 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24261 *) as_qdir=$as_dir;;
24263 as_dirs="'$as_qdir' $as_dirs"
24264 as_dir=`$as_dirname -- "$as_dir" ||
24265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24266 X"$as_dir" : 'X\(//\)[^/]' \| \
24267 X"$as_dir" : 'X\(//\)$' \| \
24268 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24274 /^X\(\/\/\)[^/].*/{
24287 test -d "$as_dir" && break
24289 test -z "$as_dirs" || eval "mkdir $as_dirs"
24290 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24291 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24292 { (exit 1); exit 1; }; }; }
24296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24299 # A ".." for each directory in $ac_dir_suffix.
24300 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24301 case $ac_top_builddir_sub in
24302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24306 ac_abs_top_builddir=$ac_pwd
24307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24308 # for backward compatibility:
24309 ac_top_builddir=$ac_top_build_prefix
24312 .) # We are building in place.
24314 ac_top_srcdir=$ac_top_builddir_sub
24315 ac_abs_top_srcdir=$ac_pwd ;;
24316 [\\/]* | ?:[\\/]* ) # Absolute name.
24317 ac_srcdir=$srcdir$ac_dir_suffix;
24318 ac_top_srcdir=$srcdir
24319 ac_abs_top_srcdir=$srcdir ;;
24320 *) # Relative name.
24321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24322 ac_top_srcdir=$ac_top_build_prefix$srcdir
24323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24337 # If the template does not know about datarootdir, expand it.
24338 # FIXME: This hack should be removed a few years after 2.60.
24339 ac_datarootdir_hack=; ac_datarootdir_seen=
24341 case `sed -n '/datarootdir/ {
24350 ' $ac_file_inputs` in
24351 *datarootdir*) ac_datarootdir_seen=yes;;
24352 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24353 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24354 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24356 cat >>$CONFIG_STATUS <<_ACEOF
24357 ac_datarootdir_hack='
24358 s&@datadir@&$datadir&g
24359 s&@docdir@&$docdir&g
24360 s&@infodir@&$infodir&g
24361 s&@localedir@&$localedir&g
24362 s&@mandir@&$mandir&g
24363 s&\\\${datarootdir}&$datarootdir&g' ;;
24367 # Neutralize VPATH when `$srcdir' = `.'.
24368 # Shell code in configure.ac might set extrasub.
24369 # FIXME: do we really want to maintain this feature?
24370 cat >>$CONFIG_STATUS <<_ACEOF
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24377 s&@configure_input@&$configure_input&;t t
24378 s&@top_builddir@&$ac_top_builddir_sub&;t t
24379 s&@srcdir@&$ac_srcdir&;t t
24380 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24381 s&@top_srcdir@&$ac_top_srcdir&;t t
24382 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24383 s&@builddir@&$ac_builddir&;t t
24384 s&@abs_builddir@&$ac_abs_builddir&;t t
24385 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24386 $ac_datarootdir_hack
24387 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24390 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24392 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24393 which seems to be undefined. Please make sure it is defined." >&5
24394 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24395 which seems to be undefined. Please make sure it is defined." >&2;}
24399 -) cat "$tmp/out"; rm -f "$tmp/out";;
24400 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24409 # Transform confdefs.h into a sed script `conftest.defines', that
24410 # substitutes the proper values into config.h.in to produce config.h.
24411 rm -f conftest.defines conftest.tail
24412 # First, append a space to every undef/define line, to ease matching.
24413 echo 's/$/ /' >conftest.defines
24414 # Then, protect against being on the right side of a sed subst, or in
24415 # an unquoted here document, in config.status. If some macros were
24416 # called several times there might be several #defines for the same
24417 # symbol, which is useless. But do not sort them, since the last
24418 # AC_DEFINE must be honored.
24419 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24420 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24421 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24422 # PARAMS is the parameter list in the macro definition--in most cases, it's
24423 # just an empty string.
24424 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24425 ac_dB='\\)[ (].*,\\1define\\2'
24433 s/^[ ]*#[ ]*define[ ][ ]*//
24438 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24439 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24440 ' >>conftest.defines
24442 # Remove the space that was appended to ease matching.
24443 # Then replace #undef with comments. This is necessary, for
24444 # example, in the case of _POSIX_SOURCE, which is predefined and required
24445 # on some systems where configure will not decide to define it.
24446 # (The regexp can be short, since the line contains either #define or #undef.)
24448 s,^[ #]*u.*,/* & */,' >>conftest.defines
24450 # Break up conftest.defines:
24451 ac_max_sed_lines=50
24453 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24454 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24455 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24457 ac_in='$ac_file_inputs'
24458 ac_out='"$tmp/out1"'
24459 ac_nxt='"$tmp/out2"'
24463 # Write a here document:
24464 cat >>$CONFIG_STATUS <<_ACEOF
24465 # First, check the format of the line:
24466 cat >"\$tmp/defines.sed" <<\\CEOF
24467 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24468 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24472 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24474 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24475 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24476 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24477 grep . conftest.tail >/dev/null || break
24478 rm -f conftest.defines
24479 mv conftest.tail conftest.defines
24481 rm -f conftest.defines conftest.tail
24483 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 if test x"$ac_file" != x-; then
24486 echo "/* $configure_input */" >"$tmp/config.h"
24487 cat "$ac_result" >>"$tmp/config.h"
24488 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24489 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24490 echo "$as_me: $ac_file is unchanged" >&6;}
24493 mv "$tmp/config.h" $ac_file
24496 echo "/* $configure_input */"
24500 # Compute $ac_file's index in $config_headers.
24503 for _am_header in $config_headers :; do
24504 case $_am_header in
24505 $_am_arg | $_am_arg:* )
24508 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24511 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24512 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24513 X"$_am_arg" : 'X\(//\)[^/]' \| \
24514 X"$_am_arg" : 'X\(//\)$' \| \
24515 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24521 /^X\(\/\/\)[^/].*/{
24533 s/.*/./; q'`/stamp-h$_am_stamp_count
24542 { (exit 0); exit 0; }
24544 chmod +x $CONFIG_STATUS
24545 ac_clean_files=$ac_clean_files_save
24548 # configure is writing to config.log, and then calls config.status.
24549 # config.status does its own redirection, appending to config.log.
24550 # Unfortunately, on DOS this fails, as config.log is still kept open
24551 # by configure, so config.status won't be able to write to it; its
24552 # output is simply discarded. So we exec the FD to /dev/null,
24553 # effectively closing config.log, so it can be properly (re)opened and
24554 # appended to by config.status. When coming back to configure, we
24555 # need to make the FD available again.
24556 if test "$no_create" != yes; then
24558 ac_config_status_args=
24559 test "$silent" = yes &&
24560 ac_config_status_args="$ac_config_status_args --quiet"
24562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24565 # would make configure fail if this is the last instruction.
24566 $ac_cs_success || { (exit 1); exit 1; }
24570 if test "$with_pam" = "yes"; then
24573 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24574 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}