2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.7.
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.7'
726 PACKAGE_STRING='sudo 1.7'
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
904 ac_precious_vars='build_alias
917 # Initialize some variables set by options.
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name=s,x,x,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1005 -datadir | --datadir | --datadi | --datad)
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1017 -disable-* | --disable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=no ;;
1026 -docdir | --docdir | --docdi | --doc | --do)
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1036 -enable-* | --enable-*)
1037 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043 eval enable_$ac_feature=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=no ;;
1252 # Obsolete; use --with-x.
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1269 -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1284 # FIXME: should be removed in autoconf 3.0.
1285 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1300 # Be sure to have absolute directory names.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { echo "$as_me: error: Working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$0" : 'X\(//\)[^/]' \| \
1356 X"$0" : 'X\(//\)$' \| \
1357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures sudo 1.7 to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of sudo 1.7:";;
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --disable-authentication
1491 Do not require authentication by default
1492 --disable-root-mailer Don't run the mailer as root, run as the user
1493 --disable-setreuid Don't try to use the setreuid() function
1494 --disable-setresuid Don't try to use the setresuid() function
1495 --disable-shadow Never use shadow passwords
1496 --disable-root-sudo Don't allow root to run sudo
1497 --enable-log-host Log the hostname in the log file
1498 --enable-noargs-shell If sudo is given no arguments run a shell
1499 --enable-shell-sets-home
1500 Set $HOME to target user in shell mode
1501 --disable-path-info Print 'command not allowed' not 'command not found'
1502 --enable-gss-krb5-ccache-name
1503 Use GSS-API to set the Kerberos V cred cache name
1504 --enable-static[=PKGS] build static libraries [default=no]
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509 --disable-sia Disable SIA on Digital UNIX
1510 --disable-pam-session Disable PAM session support
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-otp-only deprecated
1516 --with-alertmail deprecated
1517 --with-CC C compiler to use
1518 --with-rpath pass -R flag in addition to -L for lib paths
1519 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1520 --with-incpath additional places to look for include files
1521 --with-libpath additional places to look for libraries
1522 --with-libraries additional libraries to link with
1523 --with-devel add development options
1524 --with-efence link with -lefence for malloc() debugging
1525 --with-csops add CSOps standard options
1526 --without-passwd don't use passwd/shadow file for authentication
1527 --with-skey=DIR enable S/Key support
1528 --with-opie=DIR enable OPIE support
1529 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1530 --with-SecurID[=DIR] enable SecurID support
1531 --with-fwtk[=DIR] enable FWTK AuthSRV support
1532 --with-kerb4[=DIR] enable Kerberos IV support
1533 --with-kerb5[=DIR] enable Kerberos V support
1534 --with-aixauth enable AIX general authentication support
1535 --with-pam enable PAM support
1536 --with-AFS enable AFS support
1537 --with-DCE enable DCE support
1538 --with-logincap enable BSD login class support
1539 --with-bsdauth enable BSD authentication support
1540 --with-project enable Solaris project support
1541 --without-lecture don't print lecture for first-time sudoer
1542 --with-logging log via syslog, file, or both
1543 --with-logfac syslog facility to log with (default is "local2")
1544 --with-goodpri syslog priority for commands (def is "notice")
1545 --with-badpri syslog priority for failures (def is "alert")
1546 --with-logpath path to the sudo log file
1547 --with-loglen maximum length of a log file line (default is 80)
1548 --with-ignore-dot ignore '.' in the PATH
1549 --without-mail-if-no-user do not send mail if user not in sudoers
1550 --with-mail-if-no-host send mail if user in sudoers but not for this host
1551 --with-mail-if-noperms send mail if user not allowed to run command
1552 --with-mailto who should get sudo mail (default is "root")
1553 --with-mailsubject subject of sudo mail
1554 --with-passprompt default password prompt
1555 --with-badpass-message message the user sees when the password is wrong
1556 --with-fqdn expect fully qualified hosts in sudoers
1557 --with-timedir path to the sudo timestamp dir
1558 --with-sendmail=path set path to sendmail
1559 --without-sendmail do not send mail at all
1560 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1561 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1562 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1563 --with-umask umask with which the prog should run (default is 022)
1564 --without-umask Preserves the umask of the user invoking sudo.
1565 --with-runas-default User to run commands as (default is "root")
1566 --with-exempt=group no passwd needed for users in this group
1567 --with-editor=path Default editor for visudo (defaults to vi)
1568 --with-env-editor Use the environment variable EDITOR for visudo
1569 --with-passwd-tries number of tries to enter password (default is 3)
1570 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1571 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1572 --with-tty-tickets use a different ticket file for each tty
1573 --with-insults insult the user for entering an incorrect password
1574 --with-all-insults include all the sudo insult sets
1575 --with-classic-insults include the insults from the "classic" sudo
1576 --with-csops-insults include CSOps insults
1577 --with-hal-insults include 2001-like insults
1578 --with-goons-insults include the insults from the "Goon Show"
1579 --with-nsswitch[=PATH] path to nsswitch.conf
1580 --with-ldap[=DIR] enable LDAP support
1581 --with-ldap-conf-file path to LDAP configuration file
1582 --with-ldap-secret-file path to LDAP secret password file
1583 --with-pc-insults replace politically incorrect insults with less offensive ones
1584 --with-secure-path override the user's path with a built-in one
1585 --without-interfaces don't try to read the ip addr of ether interfaces
1586 --with-stow properly handle GNU stow packaging
1587 --with-askpass=PATH Fully qualified pathname of askpass helper
1588 --with-selinux enable SELinux support
1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1592 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1603 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1604 the first program found out of: `bison -y', `byacc', `yacc'.
1605 YFLAGS The list of arguments that will be passed by default to $YACC.
1606 This script will default YFLAGS to the empty string to avoid a
1607 default value of `-d' given by some make applications.
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" || continue
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1639 .) # We are building in place.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1673 generated by GNU Autoconf 2.61
1675 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1676 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1682 cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1686 It was created by sudo $as_me 1.7, which was
1687 generated by GNU Autoconf 2.61. Invocation command line was
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1712 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 echo "PATH: $as_dir"
1739 # Keep a trace of the command line.
1740 # Strip out --no-create and --no-recursion so they do not pile up.
1741 # Strip out --silent because we don't want to record it for future runs.
1742 # Also quote any args containing shell meta-characters.
1743 # Make two passes to allow for proper duplicate-argument suppression.
1747 ac_must_keep_next=false
1753 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755 | -silent | --silent | --silen | --sile | --sil)
1758 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764 if test $ac_must_keep_next = true; then
1765 ac_must_keep_next=false # Got value, back to normal.
1768 *=* | --config-cache | -C | -disable-* | --disable-* \
1769 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771 | -with-* | --with-* | -without-* | --without-* | --x)
1772 case "$ac_configure_args0 " in
1773 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 -* ) ac_must_keep_next=true ;;
1779 ac_configure_args="$ac_configure_args '$ac_arg'"
1784 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1787 # When interrupted or exit'd, cleanup temporary files, and complete
1788 # config.log. We remove comments because anyway the quotes in there
1789 # would cause problems or look ugly.
1790 # WARNING: Use '\'' to represent an apostrophe within the trap.
1791 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1792 trap 'exit_status=$?
1793 # Save into config.log some information that might help in debugging.
1798 ## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##
1803 # The following way of writing the cache mishandles newlines in values,
1805 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806 eval ac_val=\$$ac_var
1810 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1814 _ | IFS | as_nl) ;; #(
1815 *) $as_unset $ac_var ;;
1820 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821 *${as_nl}ac_space=\ *)
1823 "s/'\''/'\''\\\\'\'''\''/g;
1824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835 ## ----------------- ##
1836 ## Output variables. ##
1837 ## ----------------- ##
1840 for ac_var in $ac_subst_vars
1842 eval ac_val=\$$ac_var
1844 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 echo "$ac_var='\''$ac_val'\''"
1850 if test -n "$ac_subst_files"; then
1852 ## ------------------- ##
1853 ## File substitutions. ##
1854 ## ------------------- ##
1857 for ac_var in $ac_subst_files
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 echo "$ac_var='\''$ac_val'\''"
1868 if test -s confdefs.h; then
1878 test "$ac_signal" != 0 &&
1879 echo "$as_me: caught signal $ac_signal"
1880 echo "$as_me: exit $exit_status"
1882 rm -f core *.core core.conftest.* &&
1883 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1886 for ac_signal in 1 2 13 15; do
1887 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1892 rm -f -r conftest* confdefs.h
1894 # Predefined preprocessor variables.
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_STRING "$PACKAGE_STRING"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer explicitly selected file to automatically selected ones.
1923 if test -n "$CONFIG_SITE"; then
1924 set x "$CONFIG_SITE"
1925 elif test "x$prefix" != xNONE; then
1926 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1928 set x "$ac_default_prefix/share/config.site" \
1929 "$ac_default_prefix/etc/config.site"
1934 if test -r "$ac_site_file"; then
1935 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1942 if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 echo "$as_me: loading cache $cache_file" >&6;}
1949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
1954 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 echo "$as_me: creating cache $cache_file" >&6;}
1959 # Check that the precious variables saved in the cache have kept the same
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964 eval ac_new_set=\$ac_env_${ac_var}_set
1965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966 eval ac_new_val=\$ac_env_${ac_var}_value
1967 case $ac_old_set,$ac_new_set in
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1973 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
1979 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1982 echo "$as_me: former value: $ac_old_val" >&2;}
1983 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1984 echo "$as_me: current value: $ac_new_val" >&2;}
1985 ac_cache_corrupted=:
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1991 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg=$ac_var=$ac_new_val ;;
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000 if $ac_cache_corrupted; then
2001 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005 { (exit 1); exit 1; }; }
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 ac_config_headers="$ac_config_headers config.h pathnames.h"
2041 { echo "$as_me:$LINENO: Configuring Sudo version 1.7" >&5
2042 echo "$as_me: Configuring Sudo version 1.7" >&6;}
2111 passprompt="Password:"
2123 mailsub='*** SECURITY information for %h ***'
2124 badpass_message='Sorry, try again.'
2138 : ${SUDOERS_MODE='0440'}
2139 : ${SUDOERS_UID='0'}
2140 : ${SUDOERS_GID='0'}
2157 shadow_libs_optional=
2159 if test X"$prefix" = X"NONE"; then
2160 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2162 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2164 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2165 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2166 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2170 # Check whether --with-otp-only was given.
2171 if test "${with_otp_only+set}" = set; then
2172 withval=$with_otp_only; case $with_otp_only in
2173 yes) with_passwd="no"
2174 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2175 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2182 # Check whether --with-alertmail was given.
2183 if test "${with_alertmail+set}" = set; then
2184 withval=$with_alertmail; case $with_alertmail in
2185 *) with_mailto="$with_alertmail"
2186 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2187 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2195 # Check whether --with-CC was given.
2196 if test "${with_CC+set}" = set; then
2197 withval=$with_CC; case $with_CC in
2198 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2199 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2200 { (exit 1); exit 1; }; }
2202 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2203 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2204 { (exit 1); exit 1; }; }
2213 # Check whether --with-rpath was given.
2214 if test "${with_rpath+set}" = set; then
2215 withval=$with_rpath; case $with_rpath in
2217 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2218 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2219 { (exit 1); exit 1; }; }
2226 # Check whether --with-blibpath was given.
2227 if test "${with_blibpath+set}" = set; then
2228 withval=$with_blibpath; case $with_blibpath in
2230 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2231 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2238 # Check whether --with-incpath was given.
2239 if test "${with_incpath+set}" = set; then
2240 withval=$with_incpath; case $with_incpath in
2241 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2242 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2243 { (exit 1); exit 1; }; }
2245 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2246 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2247 { (exit 1); exit 1; }; }
2249 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2250 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2251 for i in ${with_incpath}; do
2252 CPPFLAGS="${CPPFLAGS} -I${i}"
2260 # Check whether --with-libpath was given.
2261 if test "${with_libpath+set}" = set; then
2262 withval=$with_libpath; case $with_libpath in
2263 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2264 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2265 { (exit 1); exit 1; }; }
2267 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2268 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2269 { (exit 1); exit 1; }; }
2271 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2272 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2279 # Check whether --with-libraries was given.
2280 if test "${with_libraries+set}" = set; then
2281 withval=$with_libraries; case $with_libraries in
2282 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2283 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2284 { (exit 1); exit 1; }; }
2286 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2287 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2288 { (exit 1); exit 1; }; }
2290 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2291 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2298 # Check whether --with-devel was given.
2299 if test "${with_devel+set}" = set; then
2300 withval=$with_devel; case $with_devel in
2301 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2302 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2303 PROGS="${PROGS} testsudoers"
2304 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2309 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2310 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2317 # Check whether --with-efence was given.
2318 if test "${with_efence+set}" = set; then
2319 withval=$with_efence; case $with_efence in
2320 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2321 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2322 LIBS="${LIBS} -lefence"
2323 if test -f /usr/local/lib/libefence.a; then
2324 with_libpath="${with_libpath} /usr/local/lib"
2328 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2329 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2336 # Check whether --with-csops was given.
2337 if test "${with_csops+set}" = set; then
2338 withval=$with_csops; case $with_csops in
2339 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2340 echo "$as_me: Adding CSOps standard options" >&6;}
2344 with_classic_insults=yes
2345 with_csops_insults=yes
2348 : ${mansectform='5'}
2351 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2352 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2359 # Check whether --with-passwd was given.
2360 if test "${with_passwd+set}" = set; then
2361 withval=$with_passwd; case $with_passwd in
2362 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2363 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2364 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2365 echo "${ECHO_T}$with_passwd" >&6; }
2367 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2369 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2370 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2371 { (exit 1); exit 1; }; }
2378 # Check whether --with-skey was given.
2379 if test "${with_skey+set}" = set; then
2380 withval=$with_skey; case $with_skey in
2383 *) cat >>confdefs.h <<\_ACEOF
2387 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2388 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391 AUTH_REG="$AUTH_REG S/Key"
2398 # Check whether --with-opie was given.
2399 if test "${with_opie+set}" = set; then
2400 withval=$with_opie; case $with_opie in
2403 *) cat >>confdefs.h <<\_ACEOF
2407 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2408 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2409 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411 AUTH_REG="$AUTH_REG NRL_OPIE"
2418 # Check whether --with-long-otp-prompt was given.
2419 if test "${with_long_otp_prompt+set}" = set; then
2420 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2421 yes) cat >>confdefs.h <<\_ACEOF
2422 #define LONG_OTP_PROMPT 1
2425 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2426 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2427 { echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6; }
2431 no) long_otp_prompt=off
2433 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2434 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2435 { (exit 1); exit 1; }; }
2442 # Check whether --with-SecurID was given.
2443 if test "${with_SecurID+set}" = set; then
2444 withval=$with_SecurID; case $with_SecurID in
2445 no) with_SecurID="";;
2446 *) cat >>confdefs.h <<\_ACEOF
2447 #define HAVE_SECURID 1
2450 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2451 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2454 AUTH_EXCL="$AUTH_EXCL SecurID"
2461 # Check whether --with-fwtk was given.
2462 if test "${with_fwtk+set}" = set; then
2463 withval=$with_fwtk; case $with_fwtk in
2465 *) cat >>confdefs.h <<\_ACEOF
2469 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2470 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2471 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2473 AUTH_EXCL="$AUTH_EXCL FWTK"
2480 # Check whether --with-kerb4 was given.
2481 if test "${with_kerb4+set}" = set; then
2482 withval=$with_kerb4; case $with_kerb4 in
2484 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2485 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2486 { echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6; }
2488 AUTH_REG="$AUTH_REG kerb4"
2495 # Check whether --with-kerb5 was given.
2496 if test "${with_kerb5+set}" = set; then
2497 withval=$with_kerb5; case $with_kerb5 in
2499 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2500 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2501 { echo "$as_me:$LINENO: result: yes" >&5
2502 echo "${ECHO_T}yes" >&6; }
2503 AUTH_REG="$AUTH_REG kerb5"
2510 # Check whether --with-aixauth was given.
2511 if test "${with_aixauth+set}" = set; then
2512 withval=$with_aixauth; case $with_aixauth in
2513 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2515 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2516 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2517 { (exit 1); exit 1; }; }
2524 # Check whether --with-pam was given.
2525 if test "${with_pam+set}" = set; then
2526 withval=$with_pam; case $with_pam in
2527 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2529 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2530 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2531 { (exit 1); exit 1; }; }
2538 # Check whether --with-AFS was given.
2539 if test "${with_AFS+set}" = set; then
2540 withval=$with_AFS; case $with_AFS in
2541 yes) cat >>confdefs.h <<\_ACEOF
2545 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2546 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2547 { echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6; }
2549 AUTH_REG="$AUTH_REG AFS"
2552 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2553 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2554 { (exit 1); exit 1; }; }
2561 # Check whether --with-DCE was given.
2562 if test "${with_DCE+set}" = set; then
2563 withval=$with_DCE; case $with_DCE in
2564 yes) cat >>confdefs.h <<\_ACEOF
2568 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2569 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2570 { echo "$as_me:$LINENO: result: yes" >&5
2571 echo "${ECHO_T}yes" >&6; }
2572 AUTH_REG="$AUTH_REG DCE"
2575 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2576 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2577 { (exit 1); exit 1; }; }
2584 # Check whether --with-logincap was given.
2585 if test "${with_logincap+set}" = set; then
2586 withval=$with_logincap; case $with_logincap in
2588 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2589 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2590 { (exit 1); exit 1; }; }
2597 # Check whether --with-bsdauth was given.
2598 if test "${with_bsdauth+set}" = set; then
2599 withval=$with_bsdauth; case $with_bsdauth in
2600 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2602 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2603 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2604 { (exit 1); exit 1; }; }
2611 # Check whether --with-project was given.
2612 if test "${with_project+set}" = set; then
2613 withval=$with_project; case $with_project in
2616 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2617 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2618 { (exit 1); exit 1; }; }
2624 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2625 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2627 # Check whether --with-lecture was given.
2628 if test "${with_lecture+set}" = set; then
2629 withval=$with_lecture; case $with_lecture in
2630 yes|short|always) lecture=once
2632 no|none|never) lecture=never
2634 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2635 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2636 { (exit 1); exit 1; }; }
2641 if test "$lecture" = "once"; then
2642 { echo "$as_me:$LINENO: result: yes" >&5
2643 echo "${ECHO_T}yes" >&6; }
2645 cat >>confdefs.h <<\_ACEOF
2646 #define NO_LECTURE 1
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2653 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2654 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2656 # Check whether --with-logging was given.
2657 if test "${with_logging+set}" = set; then
2658 withval=$with_logging; case $with_logging in
2659 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2660 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2661 { (exit 1); exit 1; }; }
2663 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2664 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2665 { (exit 1); exit 1; }; }
2667 syslog) cat >>confdefs.h <<\_ACEOF
2668 #define LOGGING SLOG_SYSLOG
2671 { echo "$as_me:$LINENO: result: syslog" >&5
2672 echo "${ECHO_T}syslog" >&6; }
2674 file) cat >>confdefs.h <<\_ACEOF
2675 #define LOGGING SLOG_FILE
2678 { echo "$as_me:$LINENO: result: file" >&5
2679 echo "${ECHO_T}file" >&6; }
2681 both) cat >>confdefs.h <<\_ACEOF
2682 #define LOGGING SLOG_BOTH
2685 { echo "$as_me:$LINENO: result: both" >&5
2686 echo "${ECHO_T}both" >&6; }
2688 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2689 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2690 { (exit 1); exit 1; }; }
2694 cat >>confdefs.h <<\_ACEOF
2695 #define LOGGING SLOG_SYSLOG
2697 { echo "$as_me:$LINENO: result: syslog" >&5
2698 echo "${ECHO_T}syslog" >&6; }
2702 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2703 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2705 # Check whether --with-logfac was given.
2706 if test "${with_logfac+set}" = set; then
2707 withval=$with_logfac; case $with_logfac in
2708 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2709 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2710 { (exit 1); exit 1; }; }
2712 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2713 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2714 { (exit 1); exit 1; }; }
2716 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2718 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2719 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2720 { (exit 1); exit 1; }; }
2726 cat >>confdefs.h <<_ACEOF
2727 #define LOGFAC "$logfac"
2730 { echo "$as_me:$LINENO: result: $logfac" >&5
2731 echo "${ECHO_T}$logfac" >&6; }
2733 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2734 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2736 # Check whether --with-goodpri was given.
2737 if test "${with_goodpri+set}" = set; then
2738 withval=$with_goodpri; case $with_goodpri in
2739 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2740 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2741 { (exit 1); exit 1; }; }
2743 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2744 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2745 { (exit 1); exit 1; }; }
2747 alert|crit|debug|emerg|err|info|notice|warning)
2748 goodpri=$with_goodpri
2750 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2751 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2752 { (exit 1); exit 1; }; }
2758 cat >>confdefs.h <<_ACEOF
2759 #define PRI_SUCCESS "$goodpri"
2762 { echo "$as_me:$LINENO: result: $goodpri" >&5
2763 echo "${ECHO_T}$goodpri" >&6; }
2765 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2766 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2768 # Check whether --with-badpri was given.
2769 if test "${with_badpri+set}" = set; then
2770 withval=$with_badpri; case $with_badpri in
2771 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2772 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2773 { (exit 1); exit 1; }; }
2775 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2776 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2777 { (exit 1); exit 1; }; }
2779 alert|crit|debug|emerg|err|info|notice|warning)
2782 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2783 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2784 { (exit 1); exit 1; }; }
2790 cat >>confdefs.h <<_ACEOF
2791 #define PRI_FAILURE "$badpri"
2794 { echo "$as_me:$LINENO: result: $badpri" >&5
2795 echo "${ECHO_T}$badpri" >&6; }
2798 # Check whether --with-logpath was given.
2799 if test "${with_logpath+set}" = set; then
2800 withval=$with_logpath; case $with_logpath in
2801 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2802 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2803 { (exit 1); exit 1; }; }
2805 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2806 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2807 { (exit 1); exit 1; }; }
2813 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2814 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2816 # Check whether --with-loglen was given.
2817 if test "${with_loglen+set}" = set; then
2818 withval=$with_loglen; case $with_loglen in
2819 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2820 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2821 { (exit 1); exit 1; }; }
2823 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2824 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2825 { (exit 1); exit 1; }; }
2827 [0-9]*) loglen=$with_loglen
2829 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2830 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2831 { (exit 1); exit 1; }; }
2837 cat >>confdefs.h <<_ACEOF
2838 #define MAXLOGFILELEN $loglen
2841 { echo "$as_me:$LINENO: result: $loglen" >&5
2842 echo "${ECHO_T}$loglen" >&6; }
2844 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2845 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2847 # Check whether --with-ignore-dot was given.
2848 if test "${with_ignore_dot+set}" = set; then
2849 withval=$with_ignore_dot; case $with_ignore_dot in
2854 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2855 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2856 { (exit 1); exit 1; }; }
2861 if test "$ignore_dot" = "on"; then
2862 cat >>confdefs.h <<\_ACEOF
2863 #define IGNORE_DOT_PATH 1
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2873 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2874 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2876 # Check whether --with-mail-if-no-user was given.
2877 if test "${with_mail_if_no_user+set}" = set; then
2878 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2879 yes) mail_no_user=on
2881 no) mail_no_user=off
2883 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2884 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2885 { (exit 1); exit 1; }; }
2890 if test "$mail_no_user" = "on"; then
2891 cat >>confdefs.h <<\_ACEOF
2892 #define SEND_MAIL_WHEN_NO_USER 1
2895 { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2898 { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2902 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2903 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2905 # Check whether --with-mail-if-no-host was given.
2906 if test "${with_mail_if_no_host+set}" = set; then
2907 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2908 yes) mail_no_host=on
2910 no) mail_no_host=off
2912 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2913 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2914 { (exit 1); exit 1; }; }
2919 if test "$mail_no_host" = "on"; then
2920 cat >>confdefs.h <<\_ACEOF
2921 #define SEND_MAIL_WHEN_NO_HOST 1
2924 { echo "$as_me:$LINENO: result: yes" >&5
2925 echo "${ECHO_T}yes" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2931 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2932 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2934 # Check whether --with-mail-if-noperms was given.
2935 if test "${with_mail_if_noperms+set}" = set; then
2936 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2937 yes) mail_noperms=on
2939 no) mail_noperms=off
2941 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2942 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2943 { (exit 1); exit 1; }; }
2948 if test "$mail_noperms" = "on"; then
2949 cat >>confdefs.h <<\_ACEOF
2950 #define SEND_MAIL_WHEN_NOT_OK 1
2953 { echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6; }
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2960 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2961 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2963 # Check whether --with-mailto was given.
2964 if test "${with_mailto+set}" = set; then
2965 withval=$with_mailto; case $with_mailto in
2966 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2967 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2968 { (exit 1); exit 1; }; }
2970 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2971 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2972 { (exit 1); exit 1; }; }
2974 *) mailto=$with_mailto
2980 cat >>confdefs.h <<_ACEOF
2981 #define MAILTO "$mailto"
2984 { echo "$as_me:$LINENO: result: $mailto" >&5
2985 echo "${ECHO_T}$mailto" >&6; }
2988 # Check whether --with-mailsubject was given.
2989 if test "${with_mailsubject+set}" = set; then
2990 withval=$with_mailsubject; case $with_mailsubject in
2991 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2992 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2993 { (exit 1); exit 1; }; }
2995 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2996 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2998 *) mailsub="$with_mailsubject"
2999 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3000 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3001 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3002 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3008 cat >>confdefs.h <<_ACEOF
3009 #define MAILSUBJECT "$mailsub"
3013 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3014 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3016 # Check whether --with-passprompt was given.
3017 if test "${with_passprompt+set}" = set; then
3018 withval=$with_passprompt; case $with_passprompt in
3019 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3020 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3021 { (exit 1); exit 1; }; }
3023 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3024 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3026 *) passprompt="$with_passprompt"
3030 { echo "$as_me:$LINENO: result: $passprompt" >&5
3031 echo "${ECHO_T}$passprompt" >&6; }
3033 cat >>confdefs.h <<_ACEOF
3034 #define PASSPROMPT "$passprompt"
3038 { echo "$as_me:$LINENO: checking for bad password message" >&5
3039 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3041 # Check whether --with-badpass-message was given.
3042 if test "${with_badpass_message+set}" = set; then
3043 withval=$with_badpass_message; case $with_badpass_message in
3044 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3045 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3046 { (exit 1); exit 1; }; }
3048 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3049 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3051 *) badpass_message="$with_badpass_message"
3057 cat >>confdefs.h <<_ACEOF
3058 #define INCORRECT_PASSWORD "$badpass_message"
3061 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3062 echo "${ECHO_T}$badpass_message" >&6; }
3064 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3065 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3067 # Check whether --with-fqdn was given.
3068 if test "${with_fqdn+set}" = set; then
3069 withval=$with_fqdn; case $with_fqdn in
3074 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3075 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3076 { (exit 1); exit 1; }; }
3081 if test "$fqdn" = "on"; then
3082 cat >>confdefs.h <<\_ACEOF
3086 { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3089 { echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6; }
3094 # Check whether --with-timedir was given.
3095 if test "${with_timedir+set}" = set; then
3096 withval=$with_timedir; case $with_timedir in
3097 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3098 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3099 { (exit 1); exit 1; }; }
3101 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3102 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3103 { (exit 1); exit 1; }; }
3110 # Check whether --with-sendmail was given.
3111 if test "${with_sendmail+set}" = set; then
3112 withval=$with_sendmail; case $with_sendmail in
3113 yes) with_sendmail=""
3116 *) cat >>confdefs.h <<EOF
3117 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3126 # Check whether --with-sudoers-mode was given.
3127 if test "${with_sudoers_mode+set}" = set; then
3128 withval=$with_sudoers_mode; case $with_sudoers_mode in
3129 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3130 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3131 { (exit 1); exit 1; }; }
3133 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3134 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3135 { (exit 1); exit 1; }; }
3137 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3139 0*) SUDOERS_MODE=$with_sudoers_mode
3141 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3142 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3143 { (exit 1); exit 1; }; }
3150 # Check whether --with-sudoers-uid was given.
3151 if test "${with_sudoers_uid+set}" = set; then
3152 withval=$with_sudoers_uid; case $with_sudoers_uid in
3153 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3154 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3155 { (exit 1); exit 1; }; }
3157 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3158 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3159 { (exit 1); exit 1; }; }
3161 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3163 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3164 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3165 { (exit 1); exit 1; }; }
3172 # Check whether --with-sudoers-gid was given.
3173 if test "${with_sudoers_gid+set}" = set; then
3174 withval=$with_sudoers_gid; case $with_sudoers_gid in
3175 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3176 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3177 { (exit 1); exit 1; }; }
3179 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3180 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3181 { (exit 1); exit 1; }; }
3183 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3185 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3186 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3187 { (exit 1); exit 1; }; }
3193 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3194 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3196 # Check whether --with-umask was given.
3197 if test "${with_umask+set}" = set; then
3198 withval=$with_umask; case $with_umask in
3199 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3200 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3201 { (exit 1); exit 1; }; }
3205 [0-9]*) sudo_umask=$with_umask
3207 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3208 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3209 { (exit 1); exit 1; }; }
3215 cat >>confdefs.h <<_ACEOF
3216 #define SUDO_UMASK $sudo_umask
3219 if test "$sudo_umask" = "0777"; then
3220 { echo "$as_me:$LINENO: result: user" >&5
3221 echo "${ECHO_T}user" >&6; }
3223 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3224 echo "${ECHO_T}$sudo_umask" >&6; }
3227 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3228 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3230 # Check whether --with-runas-default was given.
3231 if test "${with_runas_default+set}" = set; then
3232 withval=$with_runas_default; case $with_runas_default in
3233 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3234 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3235 { (exit 1); exit 1; }; }
3237 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3238 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3239 { (exit 1); exit 1; }; }
3241 *) runas_default="$with_runas_default"
3247 cat >>confdefs.h <<_ACEOF
3248 #define RUNAS_DEFAULT "$runas_default"
3251 { echo "$as_me:$LINENO: result: $runas_default" >&5
3252 echo "${ECHO_T}$runas_default" >&6; }
3255 # Check whether --with-exempt was given.
3256 if test "${with_exempt+set}" = set; then
3257 withval=$with_exempt; case $with_exempt in
3258 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3259 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3260 { (exit 1); exit 1; }; }
3262 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3263 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3264 { (exit 1); exit 1; }; }
3267 cat >>confdefs.h <<_ACEOF
3268 #define EXEMPTGROUP "$with_exempt"
3271 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3272 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3273 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3274 echo "${ECHO_T}$with_exempt" >&6; }
3280 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3281 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3283 # Check whether --with-editor was given.
3284 if test "${with_editor+set}" = set; then
3285 withval=$with_editor; case $with_editor in
3286 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3287 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3288 { (exit 1); exit 1; }; }
3290 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3291 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3292 { (exit 1); exit 1; }; }
3295 cat >>confdefs.h <<_ACEOF
3296 #define EDITOR "$with_editor"
3299 { echo "$as_me:$LINENO: result: $with_editor" >&5
3300 echo "${ECHO_T}$with_editor" >&6; }
3304 cat >>confdefs.h <<\_ACEOF
3305 #define EDITOR _PATH_VI
3307 { echo "$as_me:$LINENO: result: vi" >&5
3308 echo "${ECHO_T}vi" >&6; }
3312 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3313 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3315 # Check whether --with-env-editor was given.
3316 if test "${with_env_editor+set}" = set; then
3317 withval=$with_env_editor; case $with_env_editor in
3322 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3323 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3324 { (exit 1); exit 1; }; }
3329 if test "$env_editor" = "on"; then
3330 cat >>confdefs.h <<\_ACEOF
3331 #define ENV_EDITOR 1
3334 { echo "$as_me:$LINENO: result: yes" >&5
3335 echo "${ECHO_T}yes" >&6; }
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3341 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3342 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3344 # Check whether --with-passwd-tries was given.
3345 if test "${with_passwd_tries+set}" = set; then
3346 withval=$with_passwd_tries; case $with_passwd_tries in
3348 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3349 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3350 { (exit 1); exit 1; }; }
3352 [1-9]*) passwd_tries=$with_passwd_tries
3354 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3355 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3356 { (exit 1); exit 1; }; }
3362 cat >>confdefs.h <<_ACEOF
3363 #define TRIES_FOR_PASSWORD $passwd_tries
3366 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3367 echo "${ECHO_T}$passwd_tries" >&6; }
3369 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3370 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3372 # Check whether --with-timeout was given.
3373 if test "${with_timeout+set}" = set; then
3374 withval=$with_timeout; case $with_timeout in
3378 [0-9]*) timeout=$with_timeout
3380 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3381 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3382 { (exit 1); exit 1; }; }
3388 cat >>confdefs.h <<_ACEOF
3389 #define TIMEOUT $timeout
3392 { echo "$as_me:$LINENO: result: $timeout" >&5
3393 echo "${ECHO_T}$timeout" >&6; }
3395 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3396 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3398 # Check whether --with-password-timeout was given.
3399 if test "${with_password_timeout+set}" = set; then
3400 withval=$with_password_timeout; case $with_password_timeout in
3402 no) password_timeout=0
3404 [0-9]*) password_timeout=$with_password_timeout
3406 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3407 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3408 { (exit 1); exit 1; }; }
3414 cat >>confdefs.h <<_ACEOF
3415 #define PASSWORD_TIMEOUT $password_timeout
3418 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3419 echo "${ECHO_T}$password_timeout" >&6; }
3421 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3422 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3424 # Check whether --with-tty-tickets was given.
3425 if test "${with_tty_tickets+set}" = set; then
3426 withval=$with_tty_tickets; case $with_tty_tickets in
3431 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3432 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3433 { (exit 1); exit 1; }; }
3438 if test "$tty_tickets" = "on"; then
3439 cat >>confdefs.h <<\_ACEOF
3440 #define USE_TTY_TICKETS 1
3443 { echo "$as_me:$LINENO: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6; }
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3450 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3451 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3453 # Check whether --with-insults was given.
3454 if test "${with_insults+set}" = set; then
3455 withval=$with_insults; case $with_insults in
3457 with_classic_insults=yes
3458 with_csops_insults=yes
3462 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3463 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3464 { (exit 1); exit 1; }; }
3469 if test "$insults" = "on"; then
3470 cat >>confdefs.h <<\_ACEOF
3471 #define USE_INSULTS 1
3474 { echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6; }
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3482 # Check whether --with-all-insults was given.
3483 if test "${with_all_insults+set}" = set; then
3484 withval=$with_all_insults; case $with_all_insults in
3485 yes) with_classic_insults=yes
3486 with_csops_insults=yes
3487 with_hal_insults=yes
3488 with_goons_insults=yes
3491 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3492 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3493 { (exit 1); exit 1; }; }
3500 # Check whether --with-classic-insults was given.
3501 if test "${with_classic_insults+set}" = set; then
3502 withval=$with_classic_insults; case $with_classic_insults in
3503 yes) cat >>confdefs.h <<\_ACEOF
3504 #define CLASSIC_INSULTS 1
3509 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3510 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3511 { (exit 1); exit 1; }; }
3518 # Check whether --with-csops-insults was given.
3519 if test "${with_csops_insults+set}" = set; then
3520 withval=$with_csops_insults; case $with_csops_insults in
3521 yes) cat >>confdefs.h <<\_ACEOF
3522 #define CSOPS_INSULTS 1
3527 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3528 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3529 { (exit 1); exit 1; }; }
3536 # Check whether --with-hal-insults was given.
3537 if test "${with_hal_insults+set}" = set; then
3538 withval=$with_hal_insults; case $with_hal_insults in
3539 yes) cat >>confdefs.h <<\_ACEOF
3540 #define HAL_INSULTS 1
3545 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3546 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3547 { (exit 1); exit 1; }; }
3554 # Check whether --with-goons-insults was given.
3555 if test "${with_goons_insults+set}" = set; then
3556 withval=$with_goons_insults; case $with_goons_insults in
3557 yes) cat >>confdefs.h <<\_ACEOF
3558 #define GOONS_INSULTS 1
3563 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3564 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3565 { (exit 1); exit 1; }; }
3572 # Check whether --with-nsswitch was given.
3573 if test "${with_nsswitch+set}" = set; then
3574 withval=$with_nsswitch; case $with_nsswitch in
3576 yes) with_nsswitch="/etc/nsswitch.conf"
3582 if test ${with_nsswitch-"yes"} != "no"; then
3583 cat >>confdefs.h <<EOF
3584 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
3587 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
3589 nsswitch_conf='/etc/nsswitch.conf'
3593 # Check whether --with-ldap was given.
3594 if test "${with_ldap+set}" = set; then
3595 withval=$with_ldap; case $with_ldap in
3597 *) cat >>confdefs.h <<\_ACEOF
3601 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3602 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3603 { echo "$as_me:$LINENO: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6; }
3611 # Check whether --with-ldap-conf-file was given.
3612 if test "${with_ldap_conf_file+set}" = set; then
3613 withval=$with_ldap_conf_file;
3616 cat >>confdefs.h <<EOF
3617 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3620 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3623 # Check whether --with-ldap-secret-file was given.
3624 if test "${with_ldap_secret_file+set}" = set; then
3625 withval=$with_ldap_secret_file;
3628 cat >>confdefs.h <<EOF
3629 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3632 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3635 # Check whether --with-pc-insults was given.
3636 if test "${with_pc_insults+set}" = set; then
3637 withval=$with_pc_insults; case $with_pc_insults in
3638 yes) cat >>confdefs.h <<\_ACEOF
3639 #define PC_INSULTS 1
3644 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3645 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3646 { (exit 1); exit 1; }; }
3652 if test "$insults" = "on"; then
3653 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3654 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3656 test "$with_goons_insults" = "yes" && i="goons ${i}"
3657 test "$with_hal_insults" = "yes" && i="hal ${i}"
3658 test "$with_csops_insults" = "yes" && i="csops ${i}"
3659 test "$with_classic_insults" = "yes" && i="classic ${i}"
3660 { echo "$as_me:$LINENO: result: $i" >&5
3661 echo "${ECHO_T}$i" >&6; }
3664 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3665 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3667 # Check whether --with-secure-path was given.
3668 if test "${with_secure_path+set}" = set; then
3669 withval=$with_secure_path; case $with_secure_path in
3670 yes) cat >>confdefs.h <<_ACEOF
3671 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3674 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3675 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3677 no) { echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6; }
3680 *) cat >>confdefs.h <<_ACEOF
3681 #define SECURE_PATH "$with_secure_path"
3684 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3685 echo "${ECHO_T}$with_secure_path" >&6; }
3689 { echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6; }
3694 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3695 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3697 # Check whether --with-interfaces was given.
3698 if test "${with_interfaces+set}" = set; then
3699 withval=$with_interfaces; case $with_interfaces in
3700 yes) { echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6; }
3703 no) cat >>confdefs.h <<\_ACEOF
3704 #define STUB_LOAD_INTERFACES 1
3707 { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3710 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3711 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3712 { (exit 1); exit 1; }; }
3716 { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3721 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3722 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3724 # Check whether --with-stow was given.
3725 if test "${with_stow+set}" = set; then
3726 withval=$with_stow; case $with_stow in
3727 yes) { echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6; }
3729 cat >>confdefs.h <<\_ACEOF
3734 no) { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3737 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3738 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3739 { (exit 1); exit 1; }; }
3743 { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3748 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3749 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3751 # Check whether --with-askpass was given.
3752 if test "${with_askpass+set}" = set; then
3753 withval=$with_askpass; case $with_askpass in
3754 yes) { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3755 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3756 { (exit 1); exit 1; }; }
3760 cat >>confdefs.h <<_ACEOF
3761 #define _PATH_SUDO_ASKPASS "$with_askpass"
3767 { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3773 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3774 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3775 # Check whether --enable-authentication was given.
3776 if test "${enable_authentication+set}" = set; then
3777 enableval=$enable_authentication; case "$enableval" in
3778 yes) { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3781 no) { echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6; }
3783 cat >>confdefs.h <<\_ACEOF
3784 #define NO_AUTHENTICATION 1
3788 *) { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3790 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3791 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3796 { echo "$as_me:$LINENO: result: yes" >&5
3797 echo "${ECHO_T}yes" >&6; }
3801 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3802 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3803 # Check whether --enable-root-mailer was given.
3804 if test "${enable_root_mailer+set}" = set; then
3805 enableval=$enable_root_mailer; case "$enableval" in
3806 yes) { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3809 no) { echo "$as_me:$LINENO: result: yes" >&5
3810 echo "${ECHO_T}yes" >&6; }
3811 cat >>confdefs.h <<\_ACEOF
3812 #define NO_ROOT_MAILER 1
3816 *) { echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; }
3818 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3819 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3824 { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3829 # Check whether --enable-setreuid was given.
3830 if test "${enable_setreuid+set}" = set; then
3831 enableval=$enable_setreuid; case "$enableval" in
3832 no) SKIP_SETREUID=yes
3840 # Check whether --enable-setresuid was given.
3841 if test "${enable_setresuid+set}" = set; then
3842 enableval=$enable_setresuid; case "$enableval" in
3843 no) SKIP_SETRESUID=yes
3851 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3852 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3853 # Check whether --enable-shadow was given.
3854 if test "${enable_shadow+set}" = set; then
3855 enableval=$enable_shadow; case "$enableval" in
3856 yes) { echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6; }
3859 no) { echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6; }
3863 *) { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3866 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3871 { echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6; }
3876 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3877 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3878 # Check whether --enable-root-sudo was given.
3879 if test "${enable_root_sudo+set}" = set; then
3880 enableval=$enable_root_sudo; case "$enableval" in
3881 yes) { echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6; }
3884 no) cat >>confdefs.h <<\_ACEOF
3885 #define NO_ROOT_SUDO 1
3888 { echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6; }
3892 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3893 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3894 { (exit 1); exit 1; }; }
3899 { echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6; }
3904 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3905 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3906 # Check whether --enable-log-host was given.
3907 if test "${enable_log_host+set}" = set; then
3908 enableval=$enable_log_host; case "$enableval" in
3909 yes) { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3911 cat >>confdefs.h <<\_ACEOF
3912 #define HOST_IN_LOG 1
3916 no) { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3919 *) { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3922 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3933 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3934 # Check whether --enable-noargs-shell was given.
3935 if test "${enable_noargs_shell+set}" = set; then
3936 enableval=$enable_noargs_shell; case "$enableval" in
3937 yes) { echo "$as_me:$LINENO: result: yes" >&5
3938 echo "${ECHO_T}yes" >&6; }
3939 cat >>confdefs.h <<\_ACEOF
3940 #define SHELL_IF_NO_ARGS 1
3944 no) { echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6; }
3947 *) { echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6; }
3949 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3950 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3955 { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3960 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3961 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3962 # Check whether --enable-shell-sets-home was given.
3963 if test "${enable_shell_sets_home+set}" = set; then
3964 enableval=$enable_shell_sets_home; case "$enableval" in
3965 yes) { echo "$as_me:$LINENO: result: yes" >&5
3966 echo "${ECHO_T}yes" >&6; }
3967 cat >>confdefs.h <<\_ACEOF
3968 #define SHELL_SETS_HOME 1
3972 no) { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3975 *) { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3977 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3978 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3983 { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3988 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3989 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3990 # Check whether --enable-path_info was given.
3991 if test "${enable_path_info+set}" = set; then
3992 enableval=$enable_path_info; case "$enableval" in
3993 yes) { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3996 no) { echo "$as_me:$LINENO: result: yes" >&5
3997 echo "${ECHO_T}yes" >&6; }
3998 cat >>confdefs.h <<\_ACEOF
3999 #define DONT_LEAK_PATH_INFO 1
4004 *) { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4006 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4007 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4012 { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4018 # Check whether --with-selinux was given.
4019 if test "${with_selinux+set}" = set; then
4020 withval=$with_selinux; case $with_selinux in
4021 yes) SELINUX_USAGE="[-r role] [-t type] "
4022 cat >>confdefs.h <<\_ACEOF
4023 #define HAVE_SELINUX 1
4026 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4027 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4028 PROGS="${PROGS} sesh"
4033 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4034 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4035 { (exit 1); exit 1; }; }
4041 # Check whether --enable-gss_krb5_ccache_name was given.
4042 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4043 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4045 check_gss_krb5_ccache_name=no
4049 # Extract the first word of "egrep", so it can be a program name with args.
4050 set dummy egrep; ac_word=$2
4051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4053 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test -n "$EGREPPROG"; then
4057 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_prog_EGREPPROG="egrep"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 EGREPPROG=$ac_cv_prog_EGREPPROG
4077 if test -n "$EGREPPROG"; then
4078 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4079 echo "${ECHO_T}$EGREPPROG" >&6; }
4081 { echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6; }
4086 if test -z "$EGREPPROG"; then
4087 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4088 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4089 { (exit 1); exit 1; }; }
4092 if test "$with_devel" != "yes"; then
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 if test -n "$ac_tool_prefix"; then
4102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4106 if test "${ac_cv_prog_CC+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test -n "$CC"; then
4110 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 if test -n "$CC"; then
4131 { echo "$as_me:$LINENO: result: $CC" >&5
4132 echo "${ECHO_T}$CC" >&6; }
4134 { echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6; }
4140 if test -z "$ac_cv_prog_CC"; then
4142 # Extract the first word of "gcc", so it can be a program name with args.
4143 set dummy gcc; ac_word=$2
4144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_ac_ct_CC="gcc"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4172 echo "${ECHO_T}$ac_ct_CC" >&6; }
4174 { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4178 if test "x$ac_ct_CC" = x; then
4181 case $cross_compiling:$ac_tool_warned in
4183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4184 whose name does not start with the host triplet. If you think this
4185 configuration is useful to you, please write to autoconf@gnu.org." >&5
4186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4187 whose name does not start with the host triplet. If you think this
4188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4189 ac_tool_warned=yes ;;
4197 if test -z "$CC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}cc; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_CC+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC="$CC" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_CC="${ac_tool_prefix}cc"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$CC"; then
4228 { echo "$as_me:$LINENO: result: $CC" >&5
4229 echo "${ECHO_T}$CC" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4238 if test -z "$CC"; then
4239 # Extract the first word of "cc", so it can be a program name with args.
4240 set dummy cc; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_CC+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4258 ac_prog_rejected=yes
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 if test $ac_prog_rejected = yes; then
4270 # We found a bogon in the path, so make sure we never use it.
4271 set dummy $ac_cv_prog_CC
4273 if test $# != 0; then
4274 # We chose a different compiler from the bogus one.
4275 # However, it has the same basename, so the bogon will be chosen
4276 # first if we set CC to just the basename; use the full file name.
4278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4284 if test -n "$CC"; then
4285 { echo "$as_me:$LINENO: result: $CC" >&5
4286 echo "${ECHO_T}$CC" >&6; }
4288 { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4294 if test -z "$CC"; then
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in cl.exe
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4302 if test "${ac_cv_prog_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 { echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6; }
4330 { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4335 test -n "$CC" && break
4338 if test -z "$CC"; then
4340 for ac_prog in cl.exe
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CC="$ac_prog"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370 if test -n "$ac_ct_CC"; then
4371 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4372 echo "${ECHO_T}$ac_ct_CC" >&6; }
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 test -n "$ac_ct_CC" && break
4382 if test "x$ac_ct_CC" = x; then
4385 case $cross_compiling:$ac_tool_warned in
4387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4388 whose name does not start with the host triplet. If you think this
4389 configuration is useful to you, please write to autoconf@gnu.org." >&5
4390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4391 whose name does not start with the host triplet. If you think this
4392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4393 ac_tool_warned=yes ;;
4402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4403 See \`config.log' for more details." >&5
4404 echo "$as_me: error: no acceptable C compiler found in \$PATH
4405 See \`config.log' for more details." >&2;}
4406 { (exit 1); exit 1; }; }
4408 # Provide some information about the compiler.
4409 echo "$as_me:$LINENO: checking for C compiler version" >&5
4410 ac_compiler=`set X $ac_compile; echo $2`
4411 { (ac_try="$ac_compiler --version >&5"
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_compiler --version >&5") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }
4421 { (ac_try="$ac_compiler -v >&5"
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_compiler -v >&5") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 { (ac_try="$ac_compiler -V >&5"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compiler -V >&5") 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4457 ac_clean_files_save=$ac_clean_files
4458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4459 # Try to create an executable without -o first, disregard a.out.
4460 # It will help us diagnose broken compilers, and finding out an intuition
4462 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4466 # List of possible output files, starting from the most likely.
4467 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4468 # only as a last resort. b.out is created by i960 compilers.
4469 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4471 # The IRIX 6 linker writes into existing files which may not be
4472 # executable, retaining their permissions. Remove them first so a
4473 # subsequent execution test works.
4475 for ac_file in $ac_files
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4484 if { (ac_try="$ac_link_default"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_link_default") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4497 # so that the user can short-circuit this test for compilers unknown to
4499 for ac_file in $ac_files ''
4501 test -f "$ac_file" || continue
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4506 # We found the default executable, but exeext='' is most
4510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 # We set ac_cv_exeext here because the later test for it is not
4515 # safe: cross compilers may not add the suffix if given an `-o'
4516 # argument, so we may need to know it at that point already.
4517 # Even if this section looks crufty: it has the advantage of
4524 test "$ac_cv_exeext" = no && ac_cv_exeext=
4530 { echo "$as_me:$LINENO: result: $ac_file" >&5
4531 echo "${ECHO_T}$ac_file" >&6; }
4532 if test -z "$ac_file"; then
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4537 See \`config.log' for more details." >&5
4538 echo "$as_me: error: C compiler cannot create executables
4539 See \`config.log' for more details." >&2;}
4540 { (exit 77); exit 77; }; }
4543 ac_exeext=$ac_cv_exeext
4545 # Check that the compiler produces executables we can run. If not, either
4546 # the compiler is broken, or we cross compile.
4547 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4548 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4549 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4550 # If not cross compiling, check that we can run a simple program.
4551 if test "$cross_compiling" != yes; then
4552 if { ac_try='./$ac_file'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4564 if test "$cross_compiling" = maybe; then
4567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4568 If you meant to cross compile, use \`--host'.
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: cannot run C compiled programs.
4571 If you meant to cross compile, use \`--host'.
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4577 { echo "$as_me:$LINENO: result: yes" >&5
4578 echo "${ECHO_T}yes" >&6; }
4580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4581 ac_clean_files=$ac_clean_files_save
4582 # Check that the compiler produces executables we can run. If not, either
4583 # the compiler is broken, or we cross compile.
4584 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4586 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4587 echo "${ECHO_T}$cross_compiling" >&6; }
4589 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4591 if { (ac_try="$ac_link"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_link") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; then
4601 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4602 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4603 # work properly (i.e., refer to `conftest.exe'), while it won't with
4605 for ac_file in conftest.exe conftest conftest.*; do
4606 test -f "$ac_file" || continue
4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4609 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4616 See \`config.log' for more details." >&5
4617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4618 See \`config.log' for more details." >&2;}
4619 { (exit 1); exit 1; }; }
4622 rm -f conftest$ac_cv_exeext
4623 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4624 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4626 rm -f conftest.$ac_ext
4627 EXEEXT=$ac_cv_exeext
4629 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4631 if test "${ac_cv_objext+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4649 rm -f conftest.o conftest.obj
4650 if { (ac_try="$ac_compile"
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_compile") 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; then
4660 for ac_file in conftest.o conftest.obj conftest.*; do
4661 test -f "$ac_file" || continue;
4663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4664 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4673 See \`config.log' for more details." >&5
4674 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4675 See \`config.log' for more details." >&2;}
4676 { (exit 1); exit 1; }; }
4679 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4682 echo "${ECHO_T}$ac_cv_objext" >&6; }
4683 OBJEXT=$ac_cv_objext
4685 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4686 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_compile") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } && {
4722 test -z "$ac_c_werror_flag" ||
4723 test ! -s conftest.err
4724 } && test -s conftest.$ac_objext; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4738 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4739 GCC=`test $ac_compiler_gnu = yes && echo yes`
4740 ac_test_CFLAGS=${CFLAGS+set}
4741 ac_save_CFLAGS=$CFLAGS
4742 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_cc_g+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_save_c_werror_flag=$ac_c_werror_flag
4748 ac_c_werror_flag=yes
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } && {
4780 test -z "$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 } && test -s conftest.$ac_objext; then
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_compile") 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest.$ac_objext; then
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_c_werror_flag=$ac_save_c_werror_flag
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4843 rm -f conftest.$ac_objext
4844 if { (ac_try="$ac_compile"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 ac_c_werror_flag=$ac_save_c_werror_flag
4877 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4879 if test "$ac_test_CFLAGS" = set; then
4880 CFLAGS=$ac_save_CFLAGS
4881 elif test $ac_cv_prog_cc_g = yes; then
4882 if test "$GCC" = yes; then
4888 if test "$GCC" = yes; then
4894 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4895 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_cc_c89+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_prog_cc_c89=no
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4925 s = g (p, va_arg (v,int));
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931 function prototypes and stuff, but not '\xHH' hex character constants.
4932 These don't provoke an error unfortunately, instead are silently treated
4933 as 'x'. The following induces an error, until -std is added to get
4934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935 array size at least. It's necessary to write '\x00'==0 to get something
4936 that's true only with -std. */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940 inside strings and character constants. */
4942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944 int test (int i, double x);
4945 struct s1 {int (*f) (int a);};
4946 struct s2 {int (*f) (double a);};
4947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961 CC="$ac_save_CC $ac_arg"
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_cv_prog_cc_c89=$ac_arg
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext
4988 test "x$ac_cv_prog_cc_c89" != "xno" && break
4990 rm -f conftest.$ac_ext
4995 case "x$ac_cv_prog_cc_c89" in
4997 { echo "$as_me:$LINENO: result: none needed" >&5
4998 echo "${ECHO_T}none needed" >&6; } ;;
5000 { echo "$as_me:$LINENO: result: unsupported" >&5
5001 echo "${ECHO_T}unsupported" >&6; } ;;
5003 CC="$CC $ac_cv_prog_cc_c89"
5004 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5005 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5017 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5018 if test "${ac_cv_search_strerror+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 ac_func_search_save_LIBS=$LIBS
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5029 /* Override any GCC internal prototype to avoid an error.
5030 Use char because int might match the return type of a GCC
5031 builtin and then its argument prototype would still apply. */
5044 for ac_lib in '' cposix; do
5045 if test -z "$ac_lib"; then
5046 ac_res="none required"
5049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
5069 ac_cv_search_strerror=$ac_res
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5079 if test "${ac_cv_search_strerror+set}" = set; then
5083 if test "${ac_cv_search_strerror+set}" = set; then
5086 ac_cv_search_strerror=no
5089 LIBS=$ac_func_search_save_LIBS
5091 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5092 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5093 ac_res=$ac_cv_search_strerror
5094 if test "$ac_res" != no; then
5095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5106 # On Suns, sometimes $CPP names a directory.
5107 if test -n "$CPP" && test -d "$CPP"; then
5110 if test -z "$CPP"; then
5111 if test "${ac_cv_prog_CPP+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 # Double quotes because CPP needs to be expanded
5115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5118 for ac_c_preproc_warn_flag in '' yes
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5133 # include <limits.h>
5135 # include <assert.h>
5139 if { (ac_try="$ac_cpp conftest.$ac_ext"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null && {
5152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 # Broken: fails on valid input.
5164 rm -f conftest.err conftest.$ac_ext
5166 # OK, works on sane cases. Now check whether nonexistent headers
5167 # can be detected and how.
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #include <ac_nonexistent.h>
5176 if { (ac_try="$ac_cpp conftest.$ac_ext"
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null && {
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5192 # Broken: success on invalid input.
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 # Passes both tests.
5203 rm -f conftest.err conftest.$ac_ext
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then
5220 { echo "$as_me:$LINENO: result: $CPP" >&5
5221 echo "${ECHO_T}$CPP" >&6; }
5223 for ac_c_preproc_warn_flag in '' yes
5225 # Use a header file that comes with gcc, so configuring glibc
5226 # with a fresh cross-compiler works.
5227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 # <limits.h> exists even on freestanding compilers.
5229 # On the NeXT, cc -E runs the code through the compiler's parser,
5230 # not just through cpp. "Syntax error" is here to catch this case.
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5238 # include <limits.h>
5240 # include <assert.h>
5244 if { (ac_try="$ac_cpp conftest.$ac_ext"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null && {
5257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 # Broken: fails on valid input.
5269 rm -f conftest.err conftest.$ac_ext
5271 # OK, works on sane cases. Now check whether nonexistent headers
5272 # can be detected and how.
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <ac_nonexistent.h>
5281 if { (ac_try="$ac_cpp conftest.$ac_ext"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } >/dev/null && {
5294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5297 # Broken: success on invalid input.
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 # Passes both tests.
5308 rm -f conftest.err conftest.$ac_ext
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then
5316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5317 See \`config.log' for more details." >&5
5318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." >&2;}
5320 { (exit 1); exit 1; }; }
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5332 if test -f "$ac_dir/install-sh"; then
5334 ac_install_sh="$ac_aux_dir/install-sh -c"
5336 elif test -f "$ac_dir/install.sh"; then
5338 ac_install_sh="$ac_aux_dir/install.sh -c"
5340 elif test -f "$ac_dir/shtool"; then
5342 ac_install_sh="$ac_aux_dir/shtool install -c"
5346 if test -z "$ac_aux_dir"; then
5347 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5348 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5349 { (exit 1); exit 1; }; }
5352 # These three variables are undocumented and unsupported,
5353 # and are intended to be withdrawn in a future Autoconf release.
5354 # They can cause serious problems if a builder's source tree is in a directory
5355 # whose full name contains unusual characters.
5356 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5357 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5358 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5361 # Make sure we can run config.sub.
5362 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5363 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5364 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5365 { (exit 1); exit 1; }; }
5367 { echo "$as_me:$LINENO: checking build system type" >&5
5368 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5369 if test "${ac_cv_build+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 ac_build_alias=$build_alias
5373 test "x$ac_build_alias" = x &&
5374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5375 test "x$ac_build_alias" = x &&
5376 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5377 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5378 { (exit 1); exit 1; }; }
5379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5380 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5381 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5382 { (exit 1); exit 1; }; }
5385 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5386 echo "${ECHO_T}$ac_cv_build" >&6; }
5387 case $ac_cv_build in
5389 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5390 echo "$as_me: error: invalid value of canonical build" >&2;}
5391 { (exit 1); exit 1; }; };;
5394 ac_save_IFS=$IFS; IFS='-'
5400 # Remember, the first character of IFS is used to create $*,
5401 # except with old shells:
5404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5407 { echo "$as_me:$LINENO: checking host system type" >&5
5408 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5409 if test "${ac_cv_host+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 if test "x$host_alias" = x; then
5413 ac_cv_host=$ac_cv_build
5415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5416 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5417 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5418 { (exit 1); exit 1; }; }
5422 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5423 echo "${ECHO_T}$ac_cv_host" >&6; }
5426 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5427 echo "$as_me: error: invalid value of canonical host" >&2;}
5428 { (exit 1); exit 1; }; };;
5431 ac_save_IFS=$IFS; IFS='-'
5437 # Remember, the first character of IFS is used to create $*,
5438 # except with old shells:
5441 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5444 { echo "$as_me:$LINENO: checking target system type" >&5
5445 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5446 if test "${ac_cv_target+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 if test "x$target_alias" = x; then
5450 ac_cv_target=$ac_cv_host
5452 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5453 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5455 { (exit 1); exit 1; }; }
5459 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5460 echo "${ECHO_T}$ac_cv_target" >&6; }
5461 case $ac_cv_target in
5463 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5464 echo "$as_me: error: invalid value of canonical target" >&2;}
5465 { (exit 1); exit 1; }; };;
5467 target=$ac_cv_target
5468 ac_save_IFS=$IFS; IFS='-'
5474 # Remember, the first character of IFS is used to create $*,
5475 # except with old shells:
5478 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5481 # The aliases save the names the user supplied, while $host etc.
5482 # will get canonicalized.
5483 test -n "$target_alias" &&
5484 test "$program_prefix$program_suffix$program_transform_name" = \
5486 program_prefix=${target_alias}-
5487 # Check whether --enable-static was given.
5488 if test "${enable_static+set}" = set; then
5489 enableval=$enable_static; p=${PACKAGE-default}
5491 yes) enable_static=yes ;;
5492 no) enable_static=no ;;
5495 # Look at the argument we got. We use all the common list separators.
5496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5497 for pkg in $enableval; do
5499 if test "X$pkg" = "X$p"; then
5512 # Check whether --enable-shared was given.
5513 if test "${enable_shared+set}" = set; then
5514 enableval=$enable_shared; p=${PACKAGE-default}
5516 yes) enable_shared=yes ;;
5517 no) enable_shared=no ;;
5520 # Look at the argument we got. We use all the common list separators.
5521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5522 for pkg in $enableval; do
5524 if test "X$pkg" = "X$p"; then
5536 # Check whether --enable-fast-install was given.
5537 if test "${enable_fast_install+set}" = set; then
5538 enableval=$enable_fast_install; p=${PACKAGE-default}
5540 yes) enable_fast_install=yes ;;
5541 no) enable_fast_install=no ;;
5543 enable_fast_install=no
5544 # Look at the argument we got. We use all the common list separators.
5545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5546 for pkg in $enableval; do
5548 if test "X$pkg" = "X$p"; then
5549 enable_fast_install=yes
5556 enable_fast_install=yes
5560 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5561 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5562 if test "${lt_cv_path_SED+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 # Loop through the user's path and test for sed and gsed.
5566 # Then use that list of sed's as ones to test for truncation.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for lt_ac_prog in sed gsed; do
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5575 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5584 # along with /bin/sed that truncates output.
5585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5586 test ! -f $lt_ac_sed && continue
5587 cat /dev/null > conftest.in
5589 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5590 # Check for GNU sed and select it if it is found.
5591 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5592 lt_cv_path_SED=$lt_ac_sed
5596 cat conftest.in conftest.in >conftest.tmp
5597 mv conftest.tmp conftest.in
5598 cp conftest.in conftest.nl
5600 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5601 cmp -s conftest.out conftest.nl || break
5602 # 10000 chars as input seems more than enough
5603 test $lt_ac_count -gt 10 && break
5604 lt_ac_count=`expr $lt_ac_count + 1`
5605 if test $lt_ac_count -gt $lt_ac_max; then
5606 lt_ac_max=$lt_ac_count
5607 lt_cv_path_SED=$lt_ac_sed
5616 { echo "$as_me:$LINENO: result: $SED" >&5
5617 echo "${ECHO_T}$SED" >&6; }
5619 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5620 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5621 if test "${ac_cv_path_GREP+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 # Extract the first word of "grep ggrep" to use in msg output
5625 if test -z "$GREP"; then
5626 set dummy grep ggrep; ac_prog_name=$2
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 ac_path_GREP_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636 test -z "$as_dir" && as_dir=.
5637 for ac_prog in grep ggrep; do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5640 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5641 # Check for GNU ac_path_GREP and select it if it is found.
5642 # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5648 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 echo 'GREP' >> "conftest.nl"
5655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 ac_count=`expr $ac_count + 1`
5658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_GREP="$ac_path_GREP"
5661 ac_path_GREP_max=$ac_count
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5670 $ac_path_GREP_found && break 3
5680 GREP="$ac_cv_path_GREP"
5681 if test -z "$GREP"; then
5682 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5683 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5684 { (exit 1); exit 1; }; }
5688 ac_cv_path_GREP=$GREP
5693 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5694 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5695 GREP="$ac_cv_path_GREP"
5698 { echo "$as_me:$LINENO: checking for egrep" >&5
5699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5700 if test "${ac_cv_path_EGREP+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704 then ac_cv_path_EGREP="$GREP -E"
5706 # Extract the first word of "egrep" to use in msg output
5707 if test -z "$EGREP"; then
5708 set dummy egrep; ac_prog_name=$2
5709 if test "${ac_cv_path_EGREP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_path_EGREP_found=false
5713 # Loop through the user's path and test for each of PROGNAME-LIST
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5718 test -z "$as_dir" && as_dir=.
5719 for ac_prog in egrep; do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5722 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5723 # Check for GNU ac_path_EGREP and select it if it is found.
5724 # Check for GNU $ac_path_EGREP
5725 case `"$ac_path_EGREP" --version 2>&1` in
5727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5730 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 echo 'EGREP' >> "conftest.nl"
5737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739 ac_count=`expr $ac_count + 1`
5740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_EGREP="$ac_path_EGREP"
5743 ac_path_EGREP_max=$ac_count
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 $ac_path_EGREP_found && break 3
5762 EGREP="$ac_cv_path_EGREP"
5763 if test -z "$EGREP"; then
5764 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5765 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5766 { (exit 1); exit 1; }; }
5770 ac_cv_path_EGREP=$EGREP
5776 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5777 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5778 EGREP="$ac_cv_path_EGREP"
5782 # Check whether --with-gnu-ld was given.
5783 if test "${with_gnu_ld+set}" = set; then
5784 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5790 if test "$GCC" = yes; then
5791 # Check if gcc -print-prog-name=ld gives a path.
5792 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5793 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5796 # gcc leaves a trailing carriage return which upsets mingw
5797 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5799 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5802 # Accept absolute paths.
5804 re_direlt='/[^/][^/]*/\.\./'
5805 # Canonicalize the pathname of ld
5806 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5807 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5808 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5810 test -z "$LD" && LD="$ac_prog"
5813 # If it fails, then pretend we aren't using GCC.
5817 # If it is relative, then search for the first ld in PATH.
5821 elif test "$with_gnu_ld" = yes; then
5822 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5823 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5825 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5826 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5828 if test "${lt_cv_path_LD+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test -z "$LD"; then
5832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833 for ac_dir in $PATH; do
5835 test -z "$ac_dir" && ac_dir=.
5836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5837 lt_cv_path_LD="$ac_dir/$ac_prog"
5838 # Check to see if the program is GNU ld. I'd rather use --version,
5839 # but apparently some variants of GNU ld only accept -v.
5840 # Break only if it was the GNU/non-GNU ld that we prefer.
5841 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5842 *GNU* | *'with BFD'*)
5843 test "$with_gnu_ld" != no && break
5846 test "$with_gnu_ld" != yes && break
5853 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5858 if test -n "$LD"; then
5859 { echo "$as_me:$LINENO: result: $LD" >&5
5860 echo "${ECHO_T}$LD" >&6; }
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5865 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5866 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5867 { (exit 1); exit 1; }; }
5868 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5869 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5870 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5874 case `$LD -v 2>&1 </dev/null` in
5875 *GNU* | *'with BFD'*)
5876 lt_cv_prog_gnu_ld=yes
5879 lt_cv_prog_gnu_ld=no
5883 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5884 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5885 with_gnu_ld=$lt_cv_prog_gnu_ld
5888 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5889 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5890 if test "${lt_cv_ld_reload_flag+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 lt_cv_ld_reload_flag='-r'
5895 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5896 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5897 reload_flag=$lt_cv_ld_reload_flag
5898 case $reload_flag in
5900 *) reload_flag=" $reload_flag" ;;
5902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5905 if test "$GCC" = yes; then
5906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5908 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5913 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5914 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5915 if test "${lt_cv_path_NM+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test -n "$NM"; then
5919 # Let the user override the test.
5922 lt_nm_to_check="${ac_tool_prefix}nm"
5923 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5924 lt_nm_to_check="$lt_nm_to_check nm"
5926 for lt_tmp_nm in $lt_nm_to_check; do
5927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5930 test -z "$ac_dir" && ac_dir=.
5931 tmp_nm="$ac_dir/$lt_tmp_nm"
5932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5933 # Check to see if the nm accepts a BSD-compat flag.
5934 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5935 # nm: unknown option "B" ignored
5936 # Tru64's nm complains that /dev/null is an invalid object file
5937 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5938 */dev/null* | *'Invalid file or object type'*)
5939 lt_cv_path_NM="$tmp_nm -B"
5943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5945 lt_cv_path_NM="$tmp_nm -p"
5949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5950 continue # so that we can try to find one that supports BSD flags
5959 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5962 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5963 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5966 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5967 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5969 if test "$LN_S" = "ln -s"; then
5970 { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5973 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5974 echo "${ECHO_T}no, using $LN_S" >&6; }
5977 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5978 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5979 if test "${lt_cv_deplibs_check_method+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 lt_cv_file_magic_cmd='$MAGIC_CMD'
5983 lt_cv_file_magic_test_file=
5984 lt_cv_deplibs_check_method='unknown'
5985 # Need to set the preceding variable on all platforms that support
5986 # interlibrary dependencies.
5987 # 'none' -- dependencies not supported.
5988 # `unknown' -- same as none, but documents that we really don't know.
5989 # 'pass_all' -- all dependencies passed with no checks.
5990 # 'test_compile' -- check by making test program.
5991 # 'file_magic [[regex]]' -- check by looking for files in library path
5992 # which responds to the $file_magic_cmd with a given extended regex.
5993 # If you have `file' or equivalent on your system and you're not sure
5994 # whether `pass_all' will *always* work, you probably want this one.
5998 lt_cv_deplibs_check_method=pass_all
6002 lt_cv_deplibs_check_method=pass_all
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6007 lt_cv_file_magic_cmd='/usr/bin/file -L'
6008 lt_cv_file_magic_test_file=/shlib/libc.so
6012 # func_win32_libid is a shell function defined in ltmain.sh
6013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6014 lt_cv_file_magic_cmd='func_win32_libid'
6018 # Base MSYS/MinGW do not provide the 'file' command needed by
6019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6020 # unless we find 'file', for example because we are cross-compiling.
6021 if ( file / ) >/dev/null 2>&1; then
6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023 lt_cv_file_magic_cmd='func_win32_libid'
6025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6026 lt_cv_file_magic_cmd='$OBJDUMP -f'
6030 darwin* | rhapsody*)
6031 lt_cv_deplibs_check_method=pass_all
6034 freebsd* | dragonfly*)
6035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6038 # Not sure whether the presence of OpenBSD here was a mistake.
6039 # Let's accept both of them until this is cleared up.
6040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6046 lt_cv_deplibs_check_method=pass_all
6051 lt_cv_deplibs_check_method=pass_all
6054 hpux10.20* | hpux11*)
6055 lt_cv_file_magic_cmd=/usr/bin/file
6058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6062 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]'
6063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6077 irix5* | irix6* | nonstopux*)
6079 *-32|*"-32 ") libmagic=32-bit;;
6080 *-n32|*"-n32 ") libmagic=N32;;
6081 *-64|*"-64 ") libmagic=64-bit;;
6082 *) libmagic=never-match;;
6084 lt_cv_deplibs_check_method=pass_all
6087 # This must be Linux ELF.
6088 linux* | k*bsd*-gnu)
6089 lt_cv_deplibs_check_method=pass_all
6093 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6102 lt_cv_file_magic_cmd=/usr/bin/file
6103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6107 lt_cv_deplibs_check_method=unknown
6111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6118 osf3* | osf4* | osf5*)
6119 lt_cv_deplibs_check_method=pass_all
6123 lt_cv_deplibs_check_method=pass_all
6127 lt_cv_deplibs_check_method=pass_all
6131 case $host_vendor in
6133 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]'
6134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6137 lt_cv_deplibs_check_method=pass_all
6140 lt_cv_file_magic_cmd='/bin/file'
6141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6144 lt_cv_file_magic_cmd='/bin/file'
6145 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6146 lt_cv_file_magic_test_file=/lib/libc.so
6149 lt_cv_deplibs_check_method=pass_all
6152 lt_cv_deplibs_check_method=pass_all
6157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6158 lt_cv_deplibs_check_method=pass_all
6163 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6164 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6165 file_magic_cmd=$lt_cv_file_magic_cmd
6166 deplibs_check_method=$lt_cv_deplibs_check_method
6167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6172 # If no C compiler was specified, use CC.
6175 # If no C compiler flags were specified, use CFLAGS.
6176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6178 # Allow CC to be a program name with arguments.
6181 # Check whether --enable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then
6183 enableval=$enable_libtool_lock;
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6188 # Some flags need to be propagated to the compiler or linker for good
6192 # Find out which ABI we are using.
6193 echo 'int i;' > conftest.$ac_ext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; then
6199 case `/usr/bin/file conftest.$ac_objext` in
6211 # Find out which ABI we are using.
6212 echo '#line 6212 "configure"' > conftest.$ac_ext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; then
6218 if test "$lt_cv_prog_gnu_ld" = yes; then
6219 case `/usr/bin/file conftest.$ac_objext` in
6221 LD="${LD-ld} -melf32bsmip"
6224 LD="${LD-ld} -melf32bmipn32"
6227 LD="${LD-ld} -melf64bmip"
6231 case `/usr/bin/file conftest.$ac_objext` in
6247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6248 s390*-*linux*|sparc*-*linux*)
6249 # Find out which ABI we are using.
6250 echo 'int i;' > conftest.$ac_ext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; then
6256 case `/usr/bin/file conftest.o` in
6259 x86_64-*kfreebsd*-gnu)
6260 LD="${LD-ld} -m elf_i386_fbsd"
6263 LD="${LD-ld} -m elf_i386"
6265 ppc64-*linux*|powerpc64-*linux*)
6266 LD="${LD-ld} -m elf32ppclinux"
6269 LD="${LD-ld} -m elf_s390"
6272 LD="${LD-ld} -m elf32_sparc"
6278 x86_64-*kfreebsd*-gnu)
6279 LD="${LD-ld} -m elf_x86_64_fbsd"
6282 LD="${LD-ld} -m elf_x86_64"
6284 ppc*-*linux*|powerpc*-*linux*)
6285 LD="${LD-ld} -m elf64ppc"
6288 LD="${LD-ld} -m elf64_s390"
6291 LD="${LD-ld} -m elf64_sparc"
6301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6302 SAVE_CFLAGS="$CFLAGS"
6303 CFLAGS="$CFLAGS -belf"
6304 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6305 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6306 if test "${lt_cv_cc_needs_belf+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_link") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest$ac_exeext &&
6347 $as_test_x conftest$ac_exeext; then
6348 lt_cv_cc_needs_belf=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 lt_cv_cc_needs_belf=no
6356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6357 conftest$ac_exeext conftest.$ac_ext
6359 ac_cpp='$CPP $CPPFLAGS'
6360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6366 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6369 CFLAGS="$SAVE_CFLAGS"
6373 # Find out which ABI we are using.
6374 echo 'int i;' > conftest.$ac_ext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; then
6380 case `/usr/bin/file conftest.o` in
6382 case $lt_cv_prog_gnu_ld in
6383 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6385 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6399 need_locks="$enable_libtool_lock"
6403 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6404 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6405 if test "${ac_cv_header_stdc+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 ac_cv_header_stdc=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_cv_header_stdc=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 if test $ac_cv_header_stdc = yes; then
6455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "memchr" >/dev/null 2>&1; then
6469 ac_cv_header_stdc=no
6475 if test $ac_cv_header_stdc = yes; then
6476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "free" >/dev/null 2>&1; then
6490 ac_cv_header_stdc=no
6496 if test $ac_cv_header_stdc = yes; then
6497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6498 if test "$cross_compiling" = yes; then
6501 cat >conftest.$ac_ext <<_ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6509 #if ((' ' & 0x0FF) == 0x020)
6510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6513 # define ISLOWER(c) \
6514 (('a' <= (c) && (c) <= 'i') \
6515 || ('j' <= (c) && (c) <= 'r') \
6516 || ('s' <= (c) && (c) <= 'z'))
6517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6525 for (i = 0; i < 256; i++)
6526 if (XOR (islower (i), ISLOWER (i))
6527 || toupper (i) != TOUPPER (i))
6532 rm -f conftest$ac_exeext
6533 if { (ac_try="$ac_link"
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_link") 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6554 echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6559 ac_cv_header_stdc=no
6561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6568 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6569 if test $ac_cv_header_stdc = yes; then
6571 cat >>confdefs.h <<\_ACEOF
6572 #define STDC_HEADERS 1
6577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6588 inttypes.h stdint.h unistd.h
6590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6604 #include <$ac_header>
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_objext; then
6623 eval "$as_ac_Header=yes"
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 eval "$as_ac_Header=no"
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 ac_res=`eval echo '${'$as_ac_Header'}'`
6634 { echo "$as_me:$LINENO: result: $ac_res" >&5
6635 echo "${ECHO_T}$ac_res" >&6; }
6636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6637 cat >>confdefs.h <<_ACEOF
6638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647 for ac_header in dlfcn.h
6649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 ac_res=`eval echo '${'$as_ac_Header'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6660 # Is the header compilable?
6661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 $ac_includes_default
6670 #include <$ac_header>
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 ac_header_compiler=yes
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_header_compiler=no
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6699 echo "${ECHO_T}$ac_header_compiler" >&6; }
6701 # Is the header present?
6702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <$ac_header>
6712 if { (ac_try="$ac_cpp conftest.$ac_ext"
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } >/dev/null && {
6725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6728 ac_header_preproc=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_header_preproc=no
6736 rm -f conftest.err conftest.$ac_ext
6737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6738 echo "${ECHO_T}$ac_header_preproc" >&6; }
6740 # So? What about this header?
6741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6747 ac_header_preproc=yes
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 eval "$as_ac_Header=\$ac_header_preproc"
6772 ac_res=`eval echo '${'$as_ac_Header'}'`
6773 { echo "$as_me:$LINENO: result: $ac_res" >&5
6774 echo "${ECHO_T}$ac_res" >&6; }
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6788 # find the maximum length of command line arguments
6789 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6790 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6791 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 # On DJGPP, this test can blow up pretty badly due to problems in libc
6800 # (any single argument exceeding 2000 bytes causes a buffer overrun
6801 # during glob expansion). Even if it were fixed, the result of this
6802 # check would be larger than it should be.
6803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6807 # Under GNU Hurd, this test is not required because there is
6808 # no limit to the length of command line arguments.
6809 # Libtool will interpret -1 as no limit whatsoever
6810 lt_cv_sys_max_cmd_len=-1;
6814 # On Win9x/ME, this test blows up -- it succeeds, but takes
6815 # about 5 minutes as the teststring grows exponentially.
6816 # Worse, since 9x/ME are not pre-emptively multitasking,
6817 # you end up with a "frozen" computer, even though with patience
6818 # the test eventually succeeds (with a max line length of 256k).
6819 # Instead, let's just punt: use the minimum linelength reported by
6820 # all of the supported platforms: 8192 (on NT/2K/XP).
6821 lt_cv_sys_max_cmd_len=8192;
6825 # On AmigaOS with pdksh, this test takes hours, literally.
6826 # So we just punt and use a minimum line length of 8192.
6827 lt_cv_sys_max_cmd_len=8192;
6830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6831 # This has been around since 386BSD, at least. Likely further.
6832 if test -x /sbin/sysctl; then
6833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6834 elif test -x /usr/sbin/sysctl; then
6835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6839 # And add a safety zone
6840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6846 lt_cv_sys_max_cmd_len=196608
6850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6852 # nice to cause kernel panics so lets avoid the loop below.
6853 # First set a reasonable default.
6854 lt_cv_sys_max_cmd_len=16384
6856 if test -x /sbin/sysconfig; then
6857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6863 lt_cv_sys_max_cmd_len=102400
6865 sysv5* | sco5v6* | sysv4.2uw2*)
6866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6867 if test -n "$kargmax"; then
6868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6870 lt_cv_sys_max_cmd_len=32768
6874 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6875 if test -n "$lt_cv_sys_max_cmd_len"; then
6876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6880 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6881 = "XX$teststring") >/dev/null 2>&1 &&
6882 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6883 lt_cv_sys_max_cmd_len=$new_result &&
6884 test $i != 17 # 1/2 MB should be enough
6887 teststring=$teststring$teststring
6890 # Add a significant safety factor because C++ compilers can tack on massive
6891 # amounts of additional arguments before passing them to the linker.
6892 # It appears as though 1/2 is a usable value.
6893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6900 if test -n $lt_cv_sys_max_cmd_len ; then
6901 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6902 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6904 { echo "$as_me:$LINENO: result: none" >&5
6905 echo "${ECHO_T}none" >&6; }
6912 # Check for command to grab the raw symbol name followed by C symbol from nm.
6913 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6914 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6915 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 # These are sane defaults that work on at least a few old systems.
6920 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6922 # Character class describing NM global symbol codes.
6923 symcode='[BCDEGRST]'
6925 # Regexp to match symbols that can be accessed directly from C.
6926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6928 # Transform an extracted symbol line into a proper C declaration
6929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6931 # Transform an extracted symbol line into symbol name and symbol address
6932 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'"
6934 # Define system-specific variables.
6939 cygwin* | mingw* | pw32*)
6940 symcode='[ABCDGISTW]'
6942 hpux*) # Its linker distinguishes data from code symbols
6943 if test "$host_cpu" = ia64; then
6944 symcode='[ABCDEGRST]'
6946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6947 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'"
6949 linux* | k*bsd*-gnu)
6950 if test "$host_cpu" = ia64; then
6951 symcode='[ABCDGIRSTW]'
6952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6953 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'"
6957 symcode='[BCDEGRST]'
6960 symcode='[BCDEGQRST]'
6971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6979 # Handle CRLF in mingw tool chain
6983 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6987 # If we're using GNU nm, then use its standard symbol codes.
6988 case `$NM -V 2>&1` in
6989 *GNU* | *'with BFD'*)
6990 symcode='[ABCDGIRSTW]' ;;
6993 # Try without a prefix undercore, then with it.
6994 for ac_symprfx in "" "_"; do
6996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6997 symxfrm="\\1 $ac_symprfx\\2 \\2"
6999 # Write the raw and C identifiers.
7000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7002 # Check to see that the pipe works correctly.
7006 cat > conftest.$ac_ext <<EOF
7011 void nm_test_func(){}
7015 int main(){nm_test_var='a';nm_test_func();return(0);}
7018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 (eval $ac_compile) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; then
7023 # Now try to grab the symbols.
7025 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7026 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && test -s "$nlist"; then
7030 # Try sorting and uniquifying the output.
7031 if sort "$nlist" | uniq > "$nlist"T; then
7032 mv -f "$nlist"T "$nlist"
7037 # Make sure that we snagged all the symbols we need.
7038 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7039 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7040 cat <<EOF > conftest.$ac_ext
7046 # Now generate the symbol file.
7047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7049 cat <<EOF >> conftest.$ac_ext
7050 #if defined (__STDC__) && __STDC__
7051 # define lt_ptr_t void *
7053 # define lt_ptr_t char *
7057 /* The mapping between symbol names and symbols. */
7062 lt_preloaded_symbols[] =
7065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7066 cat <<\EOF >> conftest.$ac_ext
7074 # Now try linking the two files.
7075 mv conftest.$ac_objext conftstm.$ac_objext
7076 lt_save_LIBS="$LIBS"
7077 lt_save_CFLAGS="$CFLAGS"
7078 LIBS="conftstm.$ac_objext"
7079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7087 LIBS="$lt_save_LIBS"
7088 CFLAGS="$lt_save_CFLAGS"
7090 echo "cannot find nm_test_func in $nlist" >&5
7093 echo "cannot find nm_test_var in $nlist" >&5
7096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7099 echo "$progname: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 rm -rf conftest* conftst*
7104 # Do not use the global_symbol_pipe unless it works.
7105 if test "$pipe_works" = yes; then
7108 lt_cv_sys_global_symbol_pipe=
7114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7115 lt_cv_sys_global_symbol_to_cdecl=
7117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7118 { echo "$as_me:$LINENO: result: failed" >&5
7119 echo "${ECHO_T}failed" >&6; }
7121 { echo "$as_me:$LINENO: result: ok" >&5
7122 echo "${ECHO_T}ok" >&6; }
7125 { echo "$as_me:$LINENO: checking for objdir" >&5
7126 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7127 if test "${lt_cv_objdir+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 rm -f .libs 2>/dev/null
7131 mkdir .libs 2>/dev/null
7132 if test -d .libs; then
7135 # MS-DOS does not allow filenames that begin with a dot.
7138 rmdir .libs 2>/dev/null
7140 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7141 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7142 objdir=$lt_cv_objdir
7150 # AIX sometimes has problems with the GCC collect2 program. For some
7151 # reason, if we set the COLLECT_NAMES environment variable, the problems
7152 # vanish in a puff of smoke.
7153 if test "X${COLLECT_NAMES+set}" != Xset; then
7155 export COLLECT_NAMES
7160 # Sed substitution that helps us do robust quoting. It backslashifies
7161 # metacharacters that are still active within double-quoted strings.
7162 Xsed='sed -e 1s/^X//'
7163 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7165 # Same as above, but do not quote variable references.
7166 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7168 # Sed substitution to delay expansion of an escaped shell variable in a
7169 # double_quote_subst'ed string.
7170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7172 # Sed substitution to avoid accidental globbing in evaled expressions
7173 no_glob_subst='s/\*/\\\*/g'
7179 default_ofile=libtool
7180 can_build_shared=yes
7182 # All known linkers require a `.a' archive for static linking (except MSVC,
7183 # which needs '.lib').
7185 ltmain="$ac_aux_dir/ltmain.sh"
7186 ofile="$default_ofile"
7187 with_gnu_ld="$lt_cv_prog_gnu_ld"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}ar; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_AR+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$AR"; then
7198 ac_cv_prog_AR="$AR" # Let the user override the test.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_AR="${ac_tool_prefix}ar"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 if test -n "$AR"; then
7219 { echo "$as_me:$LINENO: result: $AR" >&5
7220 echo "${ECHO_T}$AR" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_AR"; then
7230 # Extract the first word of "ar", so it can be a program name with args.
7231 set dummy ar; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$ac_ct_AR"; then
7238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_AR="ar"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7258 if test -n "$ac_ct_AR"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7260 echo "${ECHO_T}$ac_ct_AR" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_AR" = x; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_prog_RANLIB+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 if test -n "$RANLIB"; then
7294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 RANLIB=$ac_cv_prog_RANLIB
7314 if test -n "$RANLIB"; then
7315 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7316 echo "${ECHO_T}$RANLIB" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7324 if test -z "$ac_cv_prog_RANLIB"; then
7325 ac_ct_RANLIB=$RANLIB
7326 # Extract the first word of "ranlib", so it can be a program name with args.
7327 set dummy ranlib; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test -n "$ac_ct_RANLIB"; then
7334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_RANLIB="ranlib"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354 if test -n "$ac_ct_RANLIB"; then
7355 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7356 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7362 if test "x$ac_ct_RANLIB" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7368 whose name does not start with the host triplet. If you think this
7369 configuration is useful to you, please write to autoconf@gnu.org." >&5
7370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7371 whose name does not start with the host triplet. If you think this
7372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7373 ac_tool_warned=yes ;;
7375 RANLIB=$ac_ct_RANLIB
7378 RANLIB="$ac_cv_prog_RANLIB"
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}strip; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_prog_STRIP+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 if test -n "$STRIP"; then
7390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 STRIP=$ac_cv_prog_STRIP
7410 if test -n "$STRIP"; then
7411 { echo "$as_me:$LINENO: result: $STRIP" >&5
7412 echo "${ECHO_T}$STRIP" >&6; }
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7420 if test -z "$ac_cv_prog_STRIP"; then
7422 # Extract the first word of "strip", so it can be a program name with args.
7423 set dummy strip; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 if test -n "$ac_ct_STRIP"; then
7430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_ac_ct_STRIP="strip"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7450 if test -n "$ac_ct_STRIP"; then
7451 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7452 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7458 if test "x$ac_ct_STRIP" = x; then
7461 case $cross_compiling:$ac_tool_warned in
7463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7464 whose name does not start with the host triplet. If you think this
7465 configuration is useful to you, please write to autoconf@gnu.org." >&5
7466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7467 whose name does not start with the host triplet. If you think this
7468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7469 ac_tool_warned=yes ;;
7474 STRIP="$ac_cv_prog_STRIP"
7479 old_CFLAGS="$CFLAGS"
7481 # Set sane defaults for various variables
7482 test -z "$AR" && AR=ar
7483 test -z "$AR_FLAGS" && AR_FLAGS=cru
7484 test -z "$AS" && AS=as
7485 test -z "$CC" && CC=cc
7486 test -z "$LTCC" && LTCC=$CC
7487 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7488 test -z "$DLLTOOL" && DLLTOOL=dlltool
7489 test -z "$LD" && LD=ld
7490 test -z "$LN_S" && LN_S="ln -s"
7491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7492 test -z "$NM" && NM=nm
7493 test -z "$SED" && SED=sed
7494 test -z "$OBJDUMP" && OBJDUMP=objdump
7495 test -z "$RANLIB" && RANLIB=:
7496 test -z "$STRIP" && STRIP=:
7497 test -z "$ac_objext" && ac_objext=o
7499 # Determine commands to create old-style static archives.
7500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7501 old_postinstall_cmds='chmod 644 $oldlib'
7502 old_postuninstall_cmds=
7504 if test -n "$RANLIB"; then
7507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7513 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7516 for cc_temp in $compiler""; do
7518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7527 # Only perform the check for file, if the check method requires it
7528 case $deplibs_check_method in
7530 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7531 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7532 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7541 lt_save_MAGIC_CMD="$MAGIC_CMD"
7542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7544 for ac_dir in $ac_dummy; do
7546 test -z "$ac_dir" && ac_dir=.
7547 if test -f $ac_dir/${ac_tool_prefix}file; then
7548 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7549 if test -n "$file_magic_test_file"; then
7550 case $deplibs_check_method in
7552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7555 $EGREP "$file_magic_regex" > /dev/null; then
7560 *** Warning: the command libtool uses to detect shared libraries,
7561 *** $file_magic_cmd, produces output that libtool cannot recognize.
7562 *** The result is that libtool may fail to recognize shared libraries
7563 *** as such. This will affect the creation of libtool libraries that
7564 *** depend on shared libraries, but programs linked with such libtool
7565 *** libraries will work regardless of this problem. Nevertheless, you
7566 *** may want to report the problem to your system manager and/or to
7567 *** bug-libtool@gnu.org
7577 MAGIC_CMD="$lt_save_MAGIC_CMD"
7582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7583 if test -n "$MAGIC_CMD"; then
7584 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7591 if test -z "$lt_cv_path_MAGIC_CMD"; then
7592 if test -n "$ac_tool_prefix"; then
7593 { echo "$as_me:$LINENO: checking for file" >&5
7594 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7603 lt_save_MAGIC_CMD="$MAGIC_CMD"
7604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7606 for ac_dir in $ac_dummy; do
7608 test -z "$ac_dir" && ac_dir=.
7609 if test -f $ac_dir/file; then
7610 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7611 if test -n "$file_magic_test_file"; then
7612 case $deplibs_check_method in
7614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7617 $EGREP "$file_magic_regex" > /dev/null; then
7622 *** Warning: the command libtool uses to detect shared libraries,
7623 *** $file_magic_cmd, produces output that libtool cannot recognize.
7624 *** The result is that libtool may fail to recognize shared libraries
7625 *** as such. This will affect the creation of libtool libraries that
7626 *** depend on shared libraries, but programs linked with such libtool
7627 *** libraries will work regardless of this problem. Nevertheless, you
7628 *** may want to report the problem to your system manager and/or to
7629 *** bug-libtool@gnu.org
7639 MAGIC_CMD="$lt_save_MAGIC_CMD"
7644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645 if test -n "$MAGIC_CMD"; then
7646 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7647 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7664 rhapsody* | darwin*)
7665 if test -n "$ac_tool_prefix"; then
7666 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7670 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 if test -n "$DSYMUTIL"; then
7674 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7694 if test -n "$DSYMUTIL"; then
7695 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7696 echo "${ECHO_T}$DSYMUTIL" >&6; }
7698 { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7704 if test -z "$ac_cv_prog_DSYMUTIL"; then
7705 ac_ct_DSYMUTIL=$DSYMUTIL
7706 # Extract the first word of "dsymutil", so it can be a program name with args.
7707 set dummy dsymutil; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 if test -n "$ac_ct_DSYMUTIL"; then
7714 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7734 if test -n "$ac_ct_DSYMUTIL"; then
7735 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7736 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7738 { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7742 if test "x$ac_ct_DSYMUTIL" = x; then
7745 case $cross_compiling:$ac_tool_warned in
7747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7748 whose name does not start with the host triplet. If you think this
7749 configuration is useful to you, please write to autoconf@gnu.org." >&5
7750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7751 whose name does not start with the host triplet. If you think this
7752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7753 ac_tool_warned=yes ;;
7755 DSYMUTIL=$ac_ct_DSYMUTIL
7758 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 if test -n "$NMEDIT"; then
7770 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 NMEDIT=$ac_cv_prog_NMEDIT
7790 if test -n "$NMEDIT"; then
7791 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7792 echo "${ECHO_T}$NMEDIT" >&6; }
7794 { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7800 if test -z "$ac_cv_prog_NMEDIT"; then
7801 ac_ct_NMEDIT=$NMEDIT
7802 # Extract the first word of "nmedit", so it can be a program name with args.
7803 set dummy nmedit; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 if test -n "$ac_ct_NMEDIT"; then
7810 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7830 if test -n "$ac_ct_NMEDIT"; then
7831 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7832 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7838 if test "x$ac_ct_NMEDIT" = x; then
7841 case $cross_compiling:$ac_tool_warned in
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet. If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet. If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7849 ac_tool_warned=yes ;;
7851 NMEDIT=$ac_ct_NMEDIT
7854 NMEDIT="$ac_cv_prog_NMEDIT"
7858 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7859 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7860 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 lt_cv_apple_cc_single_mod=no
7864 if test -z "${LT_MULTI_MODULE}"; then
7865 # By default we will add the -single_module flag. You can override
7866 # by either setting the environment variable LT_MULTI_MODULE
7867 # non-empty at configure time, or by adding -multi_module to the
7869 echo "int foo(void){return 1;}" > conftest.c
7870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib ${wl}-single_module conftest.c
7872 if test -f libconftest.dylib; then
7873 lt_cv_apple_cc_single_mod=yes
7874 rm -rf libconftest.dylib*
7879 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7880 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7881 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7882 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7883 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 lt_cv_ld_exported_symbols_list=no
7887 save_LDFLAGS=$LDFLAGS
7888 echo "_main" > conftest.sym
7889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (ac_try="$ac_link"
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_link") 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && {
7919 test -z "$ac_c_werror_flag" ||
7920 test ! -s conftest.err
7921 } && test -s conftest$ac_exeext &&
7922 $as_test_x conftest$ac_exeext; then
7923 lt_cv_ld_exported_symbols_list=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 lt_cv_ld_exported_symbols_list=no
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LDFLAGS="$save_LDFLAGS"
7936 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7937 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7939 rhapsody* | darwin1.[0123])
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7944 # if running on 10.5 or later, the deployment target defaults
7945 # to the OS version, if on x86, and 10.4, the deployment
7946 # target defaults to 10.4. Don't you love it?
7947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958 _lt_dar_single_mod='$single_module'
7960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7963 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7965 if test "$DSYMUTIL" != ":"; then
7966 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7977 # Check whether --enable-libtool-lock was given.
7978 if test "${enable_libtool_lock+set}" = set; then
7979 enableval=$enable_libtool_lock;
7982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7985 # Check whether --with-pic was given.
7986 if test "${with_pic+set}" = set; then
7987 withval=$with_pic; pic_mode="$withval"
7992 test -z "$pic_mode" && pic_mode=default
7994 # Use C for the default configuration in the libtool script
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004 # Source file extension for C test sources.
8007 # Object file extension for compiled C test sources.
8011 # Code to be used in simple compile tests
8012 lt_simple_compile_test_code="int some_variable = 0;"
8014 # Code to be used in simple link tests
8015 lt_simple_link_test_code='int main(){return(0);}'
8018 # If no C compiler was specified, use CC.
8021 # If no C compiler flags were specified, use CFLAGS.
8022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8024 # Allow CC to be a program name with arguments.
8028 # save warnings/boilerplate of simple test code
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_compiler_boilerplate=`cat conftest.err`
8035 ac_outfile=conftest.$ac_objext
8036 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8038 _lt_linker_boilerplate=`cat conftest.err`
8043 ## There is no encapsulation within the following macros, do not change
8044 ## the running order or otherwise move them around unless you know exactly
8045 ## what you are doing...
8047 lt_prog_compiler_no_builtin_flag=
8049 if test "$GCC" = yes; then
8050 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8053 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8054 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8055 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 lt_cv_prog_compiler_rtti_exceptions=no
8059 ac_outfile=conftest.$ac_objext
8060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8061 lt_compiler_flag="-fno-rtti -fno-exceptions"
8062 # Insert the option either (1) after the last *FLAGS variable, or
8063 # (2) before a word containing "conftest.", or (3) at the end.
8064 # Note that $ac_compile itself does not contain backslashes and begins
8065 # with a dollar sign (not a hyphen), so the echo should work correctly.
8066 # The option is referenced via a variable to avoid confusing sed.
8067 lt_compile=`echo "$ac_compile" | $SED \
8068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070 -e 's:$: $lt_compiler_flag:'`
8071 (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072 (eval "$lt_compile" 2>conftest.err)
8074 cat conftest.err >&5
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 if (exit $ac_status) && test -s "$ac_outfile"; then
8077 # The compiler can only warn and ignore the option if not recognized
8078 # So say no if there are warnings other than the usual output.
8079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8082 lt_cv_prog_compiler_rtti_exceptions=yes
8088 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8089 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8092 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8099 lt_prog_compiler_wl=
8100 lt_prog_compiler_pic=
8101 lt_prog_compiler_static=
8103 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8104 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8106 if test "$GCC" = yes; then
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_static='-static'
8112 # All AIX code is PIC.
8113 if test "$host_cpu" = ia64; then
8114 # AIX 5 now supports IA64 processor
8115 lt_prog_compiler_static='-Bstatic'
8120 # FIXME: we need at least 68020 code to build shared libraries, but
8121 # adding the `-m68020' flag to GCC prevents building anything better,
8123 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127 # PIC is the default for these OSes.
8130 mingw* | cygwin* | pw32* | os2*)
8131 # This hack is so that the source file can tell whether it is being
8132 # built for inclusion in a dll (and should export symbols for example).
8133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8134 # (--disable-auto-import) libraries
8135 lt_prog_compiler_pic='-DDLL_EXPORT'
8138 darwin* | rhapsody*)
8139 # PIC is the default on this platform
8140 # Common symbols not allowed in MH_DYLIB files
8141 lt_prog_compiler_pic='-fno-common'
8145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8146 # Instead, we relocate shared libraries at runtime.
8150 # Just because we use GCC doesn't mean we suddenly get shared libraries
8151 # on systems that don't support them.
8152 lt_prog_compiler_can_build_shared=no
8157 if test -d /usr/nec; then
8158 lt_prog_compiler_pic=-Kconform_pic
8163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8170 lt_prog_compiler_pic='-fPIC'
8176 lt_prog_compiler_pic='-fPIC'
8180 # PORTME Check for flag to pass linker flags through the system compiler.
8183 lt_prog_compiler_wl='-Wl,'
8184 if test "$host_cpu" = ia64; then
8185 # AIX 5 now supports IA64 processor
8186 lt_prog_compiler_static='-Bstatic'
8188 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8192 # PIC is the default on this platform
8193 # Common symbols not allowed in MH_DYLIB files
8194 case $cc_basename in
8196 lt_prog_compiler_pic='-qnocommon'
8197 lt_prog_compiler_wl='-Wl,'
8202 mingw* | cygwin* | pw32* | os2*)
8203 # This hack is so that the source file can tell whether it is being
8204 # built for inclusion in a dll (and should export symbols for example).
8205 lt_prog_compiler_pic='-DDLL_EXPORT'
8208 hpux9* | hpux10* | hpux11*)
8209 lt_prog_compiler_wl='-Wl,'
8210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8217 lt_prog_compiler_pic='+Z'
8220 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8221 lt_prog_compiler_static='${wl}-a ${wl}archive'
8224 irix5* | irix6* | nonstopux*)
8225 lt_prog_compiler_wl='-Wl,'
8226 # PIC (with -KPIC) is the default.
8227 lt_prog_compiler_static='-non_shared'
8231 lt_prog_compiler_pic='-KPIC'
8232 lt_prog_compiler_static='-Bstatic'
8235 linux* | k*bsd*-gnu)
8236 case $cc_basename in
8238 lt_prog_compiler_wl='-Wl,'
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-static'
8242 pgcc* | pgf77* | pgf90* | pgf95*)
8243 # Portland Group compilers (*not* the Pentium gcc compiler,
8244 # which looks to be a dead project)
8245 lt_prog_compiler_wl='-Wl,'
8246 lt_prog_compiler_pic='-fpic'
8247 lt_prog_compiler_static='-Bstatic'
8250 lt_prog_compiler_wl='-Wl,'
8251 # All Alpha code is PIC.
8252 lt_prog_compiler_static='-non_shared'
8255 case `$CC -V 2>&1 | sed 5q` in
8258 lt_prog_compiler_pic='-KPIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 lt_prog_compiler_wl='-Wl,'
8263 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
8266 lt_prog_compiler_wl=''
8273 osf3* | osf4* | osf5*)
8274 lt_prog_compiler_wl='-Wl,'
8275 # All OSF/1 code is PIC.
8276 lt_prog_compiler_static='-non_shared'
8280 lt_prog_compiler_static='-non_shared'
8284 lt_prog_compiler_pic='-KPIC'
8285 lt_prog_compiler_static='-Bstatic'
8286 case $cc_basename in
8288 lt_prog_compiler_wl='-Qoption ld ';;
8290 lt_prog_compiler_wl='-Wl,';;
8295 lt_prog_compiler_wl='-Qoption ld '
8296 lt_prog_compiler_pic='-PIC'
8297 lt_prog_compiler_static='-Bstatic'
8300 sysv4 | sysv4.2uw2* | sysv4.3*)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8307 if test -d /usr/nec ;then
8308 lt_prog_compiler_pic='-Kconform_pic'
8309 lt_prog_compiler_static='-Bstatic'
8313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-Bstatic'
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_can_build_shared=no
8325 lt_prog_compiler_pic='-pic'
8326 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_can_build_shared=no
8335 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8336 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8339 # Check to make sure the PIC flag actually works.
8341 if test -n "$lt_prog_compiler_pic"; then
8343 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8345 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 lt_cv_prog_compiler_pic_works=no
8349 ac_outfile=conftest.$ac_objext
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8352 # Insert the option either (1) after the last *FLAGS variable, or
8353 # (2) before a word containing "conftest.", or (3) at the end.
8354 # Note that $ac_compile itself does not contain backslashes and begins
8355 # with a dollar sign (not a hyphen), so the echo should work correctly.
8356 # The option is referenced via a variable to avoid confusing sed.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>conftest.err)
8364 cat conftest.err >&5
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s "$ac_outfile"; then
8367 # The compiler can only warn and ignore the option if not recognized
8368 # So say no if there are warnings other than the usual output.
8369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8372 lt_cv_prog_compiler_pic_works=yes
8378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8379 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8381 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8382 case $lt_prog_compiler_pic in
8384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8387 lt_prog_compiler_pic=
8388 lt_prog_compiler_can_build_shared=no
8393 # For platforms which do not support PIC, -DPIC is meaningless:
8395 lt_prog_compiler_pic=
8398 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8403 # Check to make sure the static flag actually works.
8405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8406 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8407 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8408 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 lt_cv_prog_compiler_static_works=no
8412 save_LDFLAGS="$LDFLAGS"
8413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8416 # The linker can only warn and ignore the option if not recognized
8417 # So say no if there are warnings
8418 if test -s conftest.err; then
8419 # Append any errors to the config.log.
8420 cat conftest.err 1>&5
8421 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8423 if diff conftest.exp conftest.er2 >/dev/null; then
8424 lt_cv_prog_compiler_static_works=yes
8427 lt_cv_prog_compiler_static_works=yes
8431 LDFLAGS="$save_LDFLAGS"
8434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8435 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8440 lt_prog_compiler_static=
8444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8446 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 lt_cv_prog_compiler_c_o=no
8450 $rm -r conftest 2>/dev/null
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456 lt_compiler_flag="-o out/conftest2.$ac_objext"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\$as_me:8465: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>out/conftest.err)
8468 cat out/conftest.err >&5
8469 echo "$as_me:8469: \$? = $ac_status" >&5
8470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings
8474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_c_o=yes
8482 # SGI C++ compiler will create directory out/ii_files/ for
8483 # template instantiation
8484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8485 $rm out/* && rmdir out
8491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8495 hard_links="nottested"
8496 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8497 # do not overwrite the value of need_locks provided by the user
8498 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8504 ln conftest.a conftest.b 2>&5 || hard_links=no
8505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8506 { echo "$as_me:$LINENO: result: $hard_links" >&5
8507 echo "${ECHO_T}$hard_links" >&6; }
8508 if test "$hard_links" = no; then
8509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8521 allow_undefined_flag=
8522 enable_shared_with_static_runtimes=no
8524 archive_expsym_cmds=
8525 old_archive_From_new_cmds=
8526 old_archive_from_expsyms_cmds=
8527 export_dynamic_flag_spec=
8528 whole_archive_flag_spec=
8529 thread_safe_flag_spec=
8530 hardcode_libdir_flag_spec=
8531 hardcode_libdir_flag_spec_ld=
8532 hardcode_libdir_separator=
8535 hardcode_shlibpath_var=unsupported
8536 link_all_deplibs=unknown
8537 hardcode_automatic=no
8540 always_export_symbols=no
8541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8542 # include_expsyms should be a list of space-separated symbols to be *always*
8543 # included in the symbol list
8545 # exclude_expsyms can be an extended regexp of symbols to exclude
8546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8548 # as well as any symbol that contains `d'.
8549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8551 # platforms (ab)use it in PIC code, but their linkers get confused if
8552 # the symbol is explicitly referenced. Since portable code cannot
8553 # rely on this symbol name, it's probably fine to never include it in
8554 # preloaded symbol tables.
8555 # Exclude shared library initialization/finalization symbols.
8556 extract_expsyms_cmds=
8557 # Just being paranoid about ensuring that cc_basename is set.
8558 for cc_temp in $compiler""; do
8560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8569 cygwin* | mingw* | pw32*)
8570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8571 # When not using gcc, we currently assume that we are using
8572 # Microsoft Visual C++.
8573 if test "$GCC" != yes; then
8578 # we just hope/assume this is gcc and not c89 (= MSVC++)
8587 if test "$with_gnu_ld" = yes; then
8588 # If archive_cmds runs LD, not CC, wlarc should be empty
8591 # Set some defaults for GNU ld with shared library support. These
8592 # are reset later if shared libraries are not supported. Putting them
8593 # here allows them to be overridden if necessary.
8594 runpath_var=LD_RUN_PATH
8595 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8596 export_dynamic_flag_spec='${wl}--export-dynamic'
8597 # ancient GNU ld didn't support --whole-archive et. al.
8598 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8599 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8601 whole_archive_flag_spec=
8603 supports_anon_versioning=no
8604 case `$LD -v 2>/dev/null` in
8605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8608 *\ 2.11.*) ;; # other 2.11 versions
8609 *) supports_anon_versioning=yes ;;
8612 # See if GNU ld supports shared libraries.
8615 # On AIX/PPC, the GNU linker is very broken
8616 if test "$host_cpu" != ia64; then
8620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8621 *** to be unable to reliably create shared libraries on AIX.
8622 *** Therefore, libtool is disabling shared libraries support. If you
8623 *** really care for shared libraries, you may want to modify your PATH
8624 *** so that a non-GNU linker is found, and then restart.
8631 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)'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8635 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8636 # that the semantics of dynamic libraries on AmigaOS, at least up
8637 # to version 4, is to share data among multiple programs linked
8638 # with the same dynamic library. Since this doesn't match the
8639 # behavior of shared libraries on other platforms, we can't use
8645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8646 allow_undefined_flag=unsupported
8647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8648 # support --undefined. This deserves some investigation. FIXME
8649 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655 cygwin* | mingw* | pw32*)
8656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8657 # as there is no search path for DLLs.
8658 hardcode_libdir_flag_spec='-L$libdir'
8659 allow_undefined_flag=unsupported
8660 always_export_symbols=no
8661 enable_shared_with_static_runtimes=yes
8662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8664 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8666 # If the export-symbols file already is a .def file (1st line
8667 # is EXPORTS), use it as is; otherwise, prepend...
8668 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8669 cp $export_symbols $output_objdir/$soname.def;
8671 echo EXPORTS > $output_objdir/$soname.def;
8672 cat $export_symbols >> $output_objdir/$soname.def;
8674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8682 hardcode_shlibpath_var=no
8683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684 export_dynamic_flag_spec='${wl}-E'
8685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8686 # Instead, shared libraries are loaded at an image base (0x10000000 by
8687 # default) and relocated if they conflict, which is a slow very memory
8688 # consuming and fragmenting process. To avoid this, we pick a random,
8689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8690 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8692 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'
8695 gnu* | linux* | k*bsd*-gnu)
8696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8698 case $cc_basename,$host_cpu in
8699 pgcc*) # Portland Group C compiler
8700 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'
8701 tmp_addflag=' $pic_flag'
8703 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8704 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'
8705 tmp_addflag=' $pic_flag -Mnomain' ;;
8706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8707 tmp_addflag=' -i_dynamic' ;;
8708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8709 tmp_addflag=' -i_dynamic -nofor_main' ;;
8710 ifc* | ifort*) # Intel Fortran compiler
8711 tmp_addflag=' -nofor_main' ;;
8713 case `$CC -V 2>&1 | sed 5q` in
8714 *Sun\ C*) # Sun C 5.9
8715 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'
8716 tmp_sharedflag='-G' ;;
8717 *Sun\ F*) # Sun Fortran 8.3
8718 tmp_sharedflag='-G' ;;
8720 tmp_sharedflag='-shared' ;;
8722 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724 if test $supports_anon_versioning = yes; then
8725 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8727 $echo "local: *; };" >> $output_objdir/$libname.ver~
8728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8737 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8746 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8750 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8751 *** create shared libraries on Solaris systems. Therefore, libtool
8752 *** is disabling shared libraries support. We urge you to upgrade GNU
8753 *** binutils to release 2.9.1 or newer. Another option is to modify
8754 *** your PATH or compiler configuration so that the native linker is
8755 *** used, and then restart.
8758 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8767 case `$LD -v 2>&1` in
8768 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8772 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8773 *** reliably create shared libraries on SCO systems. Therefore, libtool
8774 *** is disabling shared libraries support. We urge you to upgrade GNU
8775 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8776 *** your PATH or compiler configuration so that the native linker is
8777 *** used, and then restart.
8782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8783 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8794 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_shlibpath_var=no
8801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 if test "$ld_shlibs" = no; then
8812 hardcode_libdir_flag_spec=
8813 export_dynamic_flag_spec=
8814 whole_archive_flag_spec=
8817 # PORTME fill in a description of your system's linker (not GNU ld)
8820 allow_undefined_flag=unsupported
8821 always_export_symbols=yes
8822 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'
8823 # Note: this linker hardcodes the directories in LIBPATH if there
8824 # are no directories specified by -L.
8825 hardcode_minus_L=yes
8826 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8827 # Neither direct hardcoding nor static linking is supported with a
8829 hardcode_direct=unsupported
8834 if test "$host_cpu" = ia64; then
8835 # On IA64, the linker does run time linking by default, so we don't
8836 # have to do anything special.
8837 aix_use_runtimelinking=no
8838 exp_sym_flag='-Bexport'
8841 # If we're using GNU nm, then we don't want the "-C" option.
8842 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8844 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'
8846 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'
8848 aix_use_runtimelinking=no
8850 # Test if we are trying to use run time linking or normal
8851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8852 # need to do runtime linking.
8853 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8854 for ld_flag in $LDFLAGS; do
8855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8856 aix_use_runtimelinking=yes
8863 exp_sym_flag='-bexport'
8864 no_entry_flag='-bnoentry'
8867 # When large executables or shared objects are built, AIX ld can
8868 # have problems creating the table of contents. If linking a library
8869 # or program results in "error TOC overflow" add -mminimal-toc to
8870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8875 hardcode_libdir_separator=':'
8876 link_all_deplibs=yes
8878 if test "$GCC" = yes; then
8879 case $host_os in aix4.[012]|aix4.[012].*)
8880 # We only want to do this on AIX 4.2 and lower, the check
8881 # below for broken collect2 doesn't work under 4.3+
8882 collect2name=`${CC} -print-prog-name=collect2`
8883 if test -f "$collect2name" && \
8884 strings "$collect2name" | grep resolve_lib_name >/dev/null
8886 # We have reworked collect2
8889 # We have old collect2
8890 hardcode_direct=unsupported
8891 # It fails to find uninstalled libraries when the uninstalled
8892 # path is not listed in the libpath. Setting hardcode_minus_L
8893 # to unsupported forces relinking
8894 hardcode_minus_L=yes
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_libdir_separator=
8900 shared_flag='-shared'
8901 if test "$aix_use_runtimelinking" = yes; then
8902 shared_flag="$shared_flag "'${wl}-G'
8906 if test "$host_cpu" = ia64; then
8907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8908 # chokes on -Wl,-G. The following line is correct:
8911 if test "$aix_use_runtimelinking" = yes; then
8912 shared_flag='${wl}-G'
8914 shared_flag='${wl}-bM:SRE'
8919 # It seems that -bexpall does not export symbols beginning with
8920 # underscore (_), so it is better to generate a list of symbols to export.
8921 always_export_symbols=yes
8922 if test "$aix_use_runtimelinking" = yes; then
8923 # Warning - without using the other runtime loading flags (-brtl),
8924 # -berok will link without error, but may produce a broken library.
8925 allow_undefined_flag='-berok'
8926 # Determine the default libpath from the value encoded in an empty executable.
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (ac_try="$ac_link"
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_link") 2>conftest.er1
8951 grep -v '^ *+' conftest.er1 >conftest.err
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest$ac_exeext &&
8959 $as_test_x conftest$ac_exeext; then
8961 lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$aix_libpath"; then
8971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8985 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"
8987 if test "$host_cpu" = ia64; then
8988 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8989 allow_undefined_flag="-z nodefs"
8990 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"
8992 # Determine the default libpath from the value encoded in an empty executable.
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9027 lt_aix_libpath_sed='
9028 /Import File Strings/,/^$/ {
9034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 # Check for a 64-bit object if we didn't find anything.
9036 if test -z "$aix_libpath"; then
9037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047 conftest$ac_exeext conftest.$ac_ext
9048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9050 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9051 # Warning - without using the other run time loading flags,
9052 # -berok will link without error, but may produce a broken library.
9053 no_undefined_flag=' ${wl}-bernotok'
9054 allow_undefined_flag=' ${wl}-berok'
9055 # Exported symbols can be pulled into shared objects from archives
9056 whole_archive_flag_spec='$convenience'
9057 archive_cmds_need_lc=yes
9058 # This is similar to how AIX traditionally builds its shared libraries.
9059 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'
9065 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)'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_minus_L=yes
9068 # see comment about different semantics on the GNU ld section
9073 export_dynamic_flag_spec=-rdynamic
9076 cygwin* | mingw* | pw32*)
9077 # When not using gcc, we currently assume that we are using
9078 # Microsoft Visual C++.
9079 # hardcode_libdir_flag_spec is actually meaningless, as there is
9080 # no search path for DLLs.
9081 hardcode_libdir_flag_spec=' '
9082 allow_undefined_flag=unsupported
9083 # Tell ltmain to make .lib files, not .a files.
9085 # Tell ltmain to make .dll files, not .so files.
9087 # FIXME: Setting linknames here is a bad hack.
9088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9089 # The linker will automatically build a .lib file if we build a DLL.
9090 old_archive_From_new_cmds='true'
9091 # FIXME: Should let the user specify the lib program.
9092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9093 fix_srcfile_path='`cygpath -w "$srcfile"`'
9094 enable_shared_with_static_runtimes=yes
9097 darwin* | rhapsody*)
9099 rhapsody* | darwin1.[012])
9100 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9103 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9104 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9106 case ${MACOSX_DEPLOYMENT_TARGET} in
9108 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9111 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9117 archive_cmds_need_lc=no
9119 hardcode_automatic=yes
9120 hardcode_shlibpath_var=unsupported
9121 whole_archive_flag_spec=''
9122 link_all_deplibs=yes
9123 if test "$GCC" = yes ; then
9124 output_verbose_link_cmd='echo'
9125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9127 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}"
9128 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}"
9130 case $cc_basename in
9132 output_verbose_link_cmd='echo'
9133 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9134 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9136 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}'
9137 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}'
9147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 hardcode_shlibpath_var=no
9156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9157 # support. Future versions do this automatically, but an explicit c++rt0.o
9158 # does not break anything, and helps significantly (at the cost of a little
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9162 hardcode_libdir_flag_spec='-R$libdir'
9164 hardcode_shlibpath_var=no
9167 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9171 hardcode_minus_L=yes
9172 hardcode_shlibpath_var=no
9175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9176 freebsd* | dragonfly*)
9177 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9178 hardcode_libdir_flag_spec='-R$libdir'
9180 hardcode_shlibpath_var=no
9184 if test "$GCC" = yes; then
9185 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'
9187 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'
9189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9190 hardcode_libdir_separator=:
9193 # hardcode_minus_L: Not really in the search PATH,
9194 # but as the default location of the library.
9195 hardcode_minus_L=yes
9196 export_dynamic_flag_spec='${wl}-E'
9200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9205 if test "$with_gnu_ld" = no; then
9206 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9207 hardcode_libdir_separator=:
9210 export_dynamic_flag_spec='${wl}-E'
9212 # hardcode_minus_L: Not really in the search PATH,
9213 # but as the default location of the library.
9214 hardcode_minus_L=yes
9219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9222 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9234 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_separator=:
9250 hardcode_libdir_flag_spec_ld='+b $libdir'
9252 hardcode_shlibpath_var=no
9256 export_dynamic_flag_spec='${wl}-E'
9258 # hardcode_minus_L: Not really in the search PATH,
9259 # but as the default location of the library.
9260 hardcode_minus_L=yes
9266 irix5* | irix6* | nonstopux*)
9267 if test "$GCC" = yes; then
9268 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'
9270 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'
9271 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 hardcode_libdir_separator=:
9275 link_all_deplibs=yes
9279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9284 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_shlibpath_var=no
9298 if test -f /usr/libexec/ld.so; then
9300 hardcode_shlibpath_var=no
9301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-R$libdir'
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9327 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'
9328 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 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'
9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340 hardcode_libdir_separator=:
9343 osf4* | osf5*) # as osf3* with the addition of -msym flag
9344 if test "$GCC" = yes; then
9345 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346 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'
9347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349 allow_undefined_flag=' -expect_unresolved \*'
9350 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'
9351 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9352 $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'
9354 # Both c and cxx compiler support -rpath directly
9355 hardcode_libdir_flag_spec='-rpath $libdir'
9357 hardcode_libdir_separator=:
9361 no_undefined_flag=' -z text'
9362 if test "$GCC" = yes; then
9364 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9366 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9369 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9373 hardcode_libdir_flag_spec='-R$libdir'
9374 hardcode_shlibpath_var=no
9376 solaris2.[0-5] | solaris2.[0-5].*) ;;
9378 # The compiler driver will combine and reorder linker options,
9379 # but understands `-z linker_flag'. GCC discards it without `$wl',
9380 # but is careful enough not to reorder.
9381 # Supported since Solaris 2.6 (maybe 2.5.1?)
9382 if test "$GCC" = yes; then
9383 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9385 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9389 link_all_deplibs=yes
9393 if test "x$host_vendor" = xsequent; then
9394 # Use $CC to link under sequent, because it throws in some extra .o
9395 # files that make .init and .fini sections work.
9396 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_minus_L=yes
9403 hardcode_shlibpath_var=no
9407 case $host_vendor in
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_direct=yes # is this really true???
9413 ## LD is ld it makes a PLAMLIB
9414 ## CC just makes a GrossModule.
9415 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9416 reload_cmds='$CC -r -o $output$reload_objs'
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9424 runpath_var='LD_RUN_PATH'
9425 hardcode_shlibpath_var=no
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_shlibpath_var=no
9431 export_dynamic_flag_spec='-Bexport'
9435 if test -d /usr/nec; then
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_shlibpath_var=no
9438 runpath_var=LD_RUN_PATH
9439 hardcode_runpath_var=yes
9444 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9445 no_undefined_flag='${wl}-z,text'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 runpath_var='LD_RUN_PATH'
9450 if test "$GCC" = yes; then
9451 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 sysv5* | sco3.2v5* | sco5v6*)
9460 # Note: We can NOT use -z defs as we might desire, because we do not
9461 # link with -lc, and that would cause any symbols used from libc to
9462 # always be unresolved, which means just about no library would
9463 # ever link correctly. If we're not using GNU ld we use -z text
9464 # though, which does catch some bad symbols but isn't as heavy-handed
9466 no_undefined_flag='${wl}-z,text'
9467 allow_undefined_flag='${wl}-z,nodefs'
9468 archive_cmds_need_lc=no
9469 hardcode_shlibpath_var=no
9470 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9471 hardcode_libdir_separator=':'
9472 link_all_deplibs=yes
9473 export_dynamic_flag_spec='${wl}-Bexport'
9474 runpath_var='LD_RUN_PATH'
9476 if test "$GCC" = yes; then
9477 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_libdir_flag_spec='-L$libdir'
9488 hardcode_shlibpath_var=no
9497 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9498 echo "${ECHO_T}$ld_shlibs" >&6; }
9499 test "$ld_shlibs" = no && can_build_shared=no
9502 # Do we need to explicitly link libc?
9504 case "x$archive_cmds_need_lc" in
9506 # Assume -lc should be added
9507 archive_cmds_need_lc=yes
9509 if test "$enable_shared" = yes && test "$GCC" = yes; then
9510 case $archive_cmds in
9512 # FIXME: we may have to deal with multi-command sequences.
9515 # Test whether the compiler implicitly links with -lc since on some
9516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9517 # to ld, don't add -lc before -lgcc.
9518 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9519 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9524 (eval $ac_compile) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } 2>conftest.err; then
9530 libobjs=conftest.$ac_objext
9532 wl=$lt_prog_compiler_wl
9533 pic_flag=$lt_prog_compiler_pic
9539 lt_save_allow_undefined_flag=$allow_undefined_flag
9540 allow_undefined_flag=
9541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9542 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }
9547 archive_cmds_need_lc=no
9549 archive_cmds_need_lc=yes
9551 allow_undefined_flag=$lt_save_allow_undefined_flag
9553 cat conftest.err 1>&5
9556 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9557 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9564 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9565 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9567 libname_spec='lib$name'
9575 shlibpath_overrides_runpath=unknown
9577 dynamic_linker="$host_os ld.so"
9578 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9580 if test "$GCC" = yes; then
9582 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9583 *) lt_awk_arg="/^libraries:/" ;;
9585 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9587 # if the path contains ";" then we assume it to be the separator
9588 # otherwise default to the standard path separator (i.e. ":") - it is
9589 # assumed that no part of a normal pathname contains ";" but that should
9590 # okay in the real world where ";" in dirpaths is itself problematic.
9591 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9593 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9595 # Ok, now we have the path, separated by spaces, we can step through it
9596 # and add multilib dir if necessary.
9597 lt_tmp_lt_search_path_spec=
9598 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9599 for lt_sys_path in $lt_search_path_spec; do
9600 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9603 test -d "$lt_sys_path" && \
9604 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9607 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9608 BEGIN {RS=" "; FS="/|\n";} {
9611 for (lt_i = NF; lt_i > 0; lt_i--) {
9612 if ($lt_i != "" && $lt_i != ".") {
9613 if ($lt_i == "..") {
9616 if (lt_count == 0) {
9617 lt_foo="/" $lt_i lt_foo;
9624 if (lt_foo != "") { lt_freq[lt_foo]++; }
9625 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9627 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9632 hardcode_into_libs=no
9634 # when you set need_version to no, make sure it does not cause -set_version
9635 # flags to be left without arguments
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9642 shlibpath_var=LIBPATH
9644 # AIX 3 has no versioning support, so we append a major version to the name.
9645 soname_spec='${libname}${release}${shared_ext}$major'
9652 hardcode_into_libs=yes
9653 if test "$host_cpu" = ia64; then
9654 # AIX 5 supports IA64
9655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9656 shlibpath_var=LD_LIBRARY_PATH
9658 # With GCC up to 2.95.x, collect2 would create an import file
9659 # for dependence libraries. The import file would start with
9660 # the line `#! .'. This would cause the generated library to
9661 # depend on `.', always an invalid library. This was fixed in
9662 # development snapshots of GCC prior to 3.0.
9664 aix4 | aix4.[01] | aix4.[01].*)
9665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9675 # soname into executable. Probably we can add versioning support to
9676 # collect2, so additional links can be useful in future.
9677 if test "$aix_use_runtimelinking" = yes; then
9678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9679 # instead of lib<name>.a to let people know that these are not
9680 # typical AIX shared libraries.
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 # We preserve .a as extension for shared libraries through AIX4.2
9684 # and later when we are not doing run time linking.
9685 library_names_spec='${libname}${release}.a $libname.a'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LIBPATH
9693 library_names_spec='$libname.ixlibrary $libname.a'
9694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9695 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'
9699 library_names_spec='${libname}${shared_ext}'
9700 dynamic_linker="$host_os ld.so"
9701 shlibpath_var=LIBRARY_PATH
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713 # the default ld.so.conf also contains /usr/contrib/lib and
9714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715 # libtool to hard-code these into programs
9718 cygwin* | mingw* | pw32*)
9719 version_type=windows
9724 case $GCC,$host_os in
9725 yes,cygwin* | yes,mingw* | yes,pw32*)
9726 library_names_spec='$libname.dll.a'
9727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728 postinstall_cmds='base_file=`basename \${file}`~
9729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9730 dldir=$destdir/`dirname \$dlpath`~
9731 test -d \$dldir || mkdir -p \$dldir~
9732 $install_prog $dir/$dlname \$dldir/$dlname~
9733 chmod a+x \$dldir/$dlname'
9734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9735 dlpath=$dir/\$dldll~
9737 shlibpath_overrides_runpath=yes
9741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9746 # MinGW DLLs use traditional 'lib' prefix
9747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9750 # It is most probably a Windows format PATH printed by
9751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9752 # path with ; separators, and with drive letters. We can handle the
9753 # drive letters (cygwin fileutils understands them), so leave them,
9754 # especially as we might pass files found there to a mingw objdump,
9755 # which wouldn't understand a cygwinified path. Ahh.
9756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9762 # pw32 DLLs use 'pw' prefix rather than 'lib'
9763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9772 dynamic_linker='Win32 ld.exe'
9773 # FIXME: first we should search . and the directory the executable is in
9777 darwin* | rhapsody*)
9778 dynamic_linker="$host_os dyld"
9782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9783 soname_spec='${libname}${release}${major}$shared_ext'
9784 shlibpath_overrides_runpath=yes
9785 shlibpath_var=DYLD_LIBRARY_PATH
9786 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9788 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 shlibpath_var=LD_LIBRARY_PATH
9805 freebsd* | dragonfly*)
9806 # DragonFly does not have aout. When/if they implement a new
9807 # versioning mechanism, adjust this.
9808 if test -x /usr/bin/objformat; then
9809 objformat=`/usr/bin/objformat`
9812 freebsd[123]*) objformat=aout ;;
9816 version_type=freebsd-$objformat
9817 case $version_type in
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9828 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=yes
9833 freebsd3.[01]* | freebsdelf3.[01]*)
9834 shlibpath_overrides_runpath=yes
9835 hardcode_into_libs=yes
9837 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9838 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9839 shlibpath_overrides_runpath=no
9840 hardcode_into_libs=yes
9842 *) # from 4.6 on, and DragonFly
9843 shlibpath_overrides_runpath=yes
9844 hardcode_into_libs=yes
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 hardcode_into_libs=yes
9859 hpux9* | hpux10* | hpux11*)
9860 # Give a soname corresponding to the major version so that dld.sl refuses to
9861 # link against other versions.
9868 hardcode_into_libs=yes
9869 dynamic_linker="$host_os dld.so"
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 if test "X$HPUX_IA64_MODE" = X32; then
9875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883 hardcode_into_libs=yes
9884 dynamic_linker="$host_os dld.sl"
9885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9894 dynamic_linker="$host_os dld.sl"
9895 shlibpath_var=SHLIB_PATH
9896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9901 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9902 postinstall_cmds='chmod 555 $lib'
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=no
9914 hardcode_into_libs=yes
9917 irix5* | irix6* | nonstopux*)
9919 nonstopux*) version_type=nonstopux ;;
9921 if test "$lt_cv_prog_gnu_ld" = yes; then
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9932 irix5* | nonstopux*)
9936 case $LD in # libtool.m4 will add one of these switches to LD
9937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9938 libsuff= shlibsuff= libmagic=32-bit;;
9939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9940 libsuff=32 shlibsuff=N32 libmagic=N32;;
9941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9943 *) libsuff= shlibsuff= libmagic=never-match;;
9947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9948 shlibpath_overrides_runpath=no
9949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9951 hardcode_into_libs=yes
9954 # No shared lib support for Linux oldld, aout, or coff.
9955 linux*oldld* | linux*aout* | linux*coff*)
9959 # This must be Linux ELF.
9960 linux* | k*bsd*-gnu)
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=no
9969 # This implies no fast_install, which is unacceptable.
9970 # Some rework will be needed to allow for fast_install
9971 # before this can be enabled.
9972 hardcode_into_libs=yes
9974 # Append ld.so.conf contents to the search path
9975 if test -f /etc/ld.so.conf; then
9976 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' ' '`
9977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9980 # We used to test for /lib/ld.so.1 and disable shared libraries on
9981 # powerpc, because MkLinux only supported shared libraries with the
9982 # GNU dynamic linker. Since this was broken with cross compilers,
9983 # most powerpc-linux boxes support dynamic linking these days and
9984 # people can always --disable-shared, the test was removed, and we
9985 # assume the GNU/Linux dynamic linker is in use.
9986 dynamic_linker='GNU/Linux ld.so'
9993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9996 dynamic_linker='NetBSD (a.out) ld.so'
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 dynamic_linker='NetBSD ld.elf_so'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=yes
10026 sys_lib_dlsearch_path_spec="/usr/lib"
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10034 openbsd2.[89] | openbsd2.[89].*)
10035 shlibpath_overrides_runpath=no
10038 shlibpath_overrides_runpath=yes
10042 shlibpath_overrides_runpath=yes
10047 libname_spec='$name'
10050 library_names_spec='$libname${shared_ext} $libname.a'
10051 dynamic_linker='OS/2 ld.exe'
10052 shlibpath_var=LIBPATH
10055 osf3* | osf4* | osf5*)
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 shlibpath_var=LD_LIBRARY_PATH
10062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=yes
10078 hardcode_into_libs=yes
10079 # ldd complains unless libraries are executable
10080 postinstall_cmds='chmod +x $lib'
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=yes
10089 if test "$with_gnu_ld" = yes; then
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 case $host_vendor in
10102 shlibpath_overrides_runpath=no
10104 export_dynamic_flag_spec='${wl}-Blargedynsym'
10105 runpath_var=LD_RUN_PATH
10113 shlibpath_overrides_runpath=no
10114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10120 if test -d /usr/nec ;then
10122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10123 soname_spec='$libname${shared_ext}.$major'
10124 shlibpath_var=LD_LIBRARY_PATH
10128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10129 version_type=freebsd-elf
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 hardcode_into_libs=yes
10136 if test "$with_gnu_ld" = yes; then
10137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10138 shlibpath_overrides_runpath=no
10140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10141 shlibpath_overrides_runpath=yes
10144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10148 sys_lib_dlsearch_path_spec='/usr/lib'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10163 echo "${ECHO_T}$dynamic_linker" >&6; }
10164 test "$dynamic_linker" = no && can_build_shared=no
10166 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10173 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10179 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10182 if test "$GCC" = yes; then
10183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10186 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10189 if test -n "$hardcode_libdir_flag_spec" || \
10190 test -n "$runpath_var" || \
10191 test "X$hardcode_automatic" = "Xyes" ; then
10193 # We can hardcode non-existent directories.
10194 if test "$hardcode_direct" != no &&
10195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10196 # have to relink, otherwise we might link with an installed library
10197 # when we should be linking with a yet-to-be-installed one
10198 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10199 test "$hardcode_minus_L" != no; then
10200 # Linking always hardcodes the temporary library directory.
10201 hardcode_action=relink
10203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10204 hardcode_action=immediate
10207 # We cannot hardcode anything, or else we can only hardcode existing
10209 hardcode_action=unsupported
10211 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10212 echo "${ECHO_T}$hardcode_action" >&6; }
10214 if test "$hardcode_action" = relink; then
10215 # Fast installation is not supported
10216 enable_fast_install=no
10217 elif test "$shlibpath_overrides_runpath" = yes ||
10218 test "$enable_shared" = no; then
10219 # Fast installation is not necessary
10220 enable_fast_install=needless
10225 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10226 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10227 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10228 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10229 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10230 { echo "$as_me:$LINENO: result: yes" >&5
10231 echo "${ECHO_T}yes" >&6; }
10233 # FIXME - insert some real tests, host_os isn't really good enough
10236 if test -n "$STRIP" ; then
10237 striplib="$STRIP -x"
10238 old_striplib="$STRIP -S"
10239 { echo "$as_me:$LINENO: result: yes" >&5
10240 echo "${ECHO_T}yes" >&6; }
10242 { echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6; }
10247 { echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6; }
10253 if test "x$enable_dlopen" != xyes; then
10254 enable_dlopen=unknown
10255 enable_dlopen_self=unknown
10256 enable_dlopen_self_static=unknown
10263 lt_cv_dlopen="load_add_on"
10265 lt_cv_dlopen_self=yes
10269 lt_cv_dlopen="LoadLibrary"
10274 lt_cv_dlopen="dlopen"
10279 # if libdl is installed we need to link against it
10280 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 ac_check_lib_save_LIBS=$LIBS
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10294 /* Override any GCC internal prototype to avoid an error.
10295 Use char because int might match the return type of a GCC
10296 builtin and then its argument prototype would still apply. */
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (ac_try="$ac_link"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest$ac_exeext &&
10326 $as_test_x conftest$ac_exeext; then
10327 ac_cv_lib_dl_dlopen=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_cv_lib_dl_dlopen=no
10335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10341 if test $ac_cv_lib_dl_dlopen = yes; then
10342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10345 lt_cv_dlopen="dyld"
10347 lt_cv_dlopen_self=yes
10354 { echo "$as_me:$LINENO: checking for shl_load" >&5
10355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10356 if test "${ac_cv_func_shl_load+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10367 #define shl_load innocuous_shl_load
10369 /* System header to define __stub macros and hopefully few prototypes,
10370 which can conflict with char shl_load (); below.
10371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372 <limits.h> exists even on freestanding compilers. */
10375 # include <limits.h>
10377 # include <assert.h>
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10389 /* The GNU C library defines this for functions which it implements
10390 to always fail with ENOSYS. Some functions are actually named
10391 something starting with __ and the normal name is an alias. */
10392 #if defined __stub_shl_load || defined __stub___shl_load
10399 return shl_load ();
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest$ac_exeext &&
10421 $as_test_x conftest$ac_exeext; then
10422 ac_cv_func_shl_load=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_cv_func_shl_load=no
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431 conftest$ac_exeext conftest.$ac_ext
10433 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10435 if test $ac_cv_func_shl_load = yes; then
10436 lt_cv_dlopen="shl_load"
10438 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 ac_check_lib_save_LIBS=$LIBS
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10462 return shl_load ();
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10476 grep -v '^ *+' conftest.er1 >conftest.err
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 ac_cv_lib_dld_shl_load=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_dld_shl_load=no
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10499 if test $ac_cv_lib_dld_shl_load = yes; then
10500 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10502 { echo "$as_me:$LINENO: checking for dlopen" >&5
10503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10504 if test "${ac_cv_func_dlopen+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10515 #define dlopen innocuous_dlopen
10517 /* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char dlopen (); below.
10519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520 <limits.h> exists even on freestanding compilers. */
10523 # include <limits.h>
10525 # include <assert.h>
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10537 /* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540 #if defined __stub_dlopen || defined __stub___dlopen
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext &&
10569 $as_test_x conftest$ac_exeext; then
10570 ac_cv_func_dlopen=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_cv_func_dlopen=no
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579 conftest$ac_exeext conftest.$ac_ext
10581 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10582 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10583 if test $ac_cv_func_dlopen = yes; then
10584 lt_cv_dlopen="dlopen"
10586 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 ac_check_lib_save_LIBS=$LIBS
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (ac_try="$ac_link"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_link") 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext &&
10632 $as_test_x conftest$ac_exeext; then
10633 ac_cv_lib_dl_dlopen=yes
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_cv_lib_dl_dlopen=no
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10647 if test $ac_cv_lib_dl_dlopen = yes; then
10648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10651 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10652 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lsvld $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext &&
10696 $as_test_x conftest$ac_exeext; then
10697 ac_cv_lib_svld_dlopen=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_lib_svld_dlopen=no
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10711 if test $ac_cv_lib_svld_dlopen = yes; then
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10714 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10715 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 ac_check_lib_save_LIBS=$LIBS
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10738 return dld_link ();
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext &&
10760 $as_test_x conftest$ac_exeext; then
10761 ac_cv_lib_dld_dld_link=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ac_cv_lib_dld_dld_link=no
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10774 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10775 if test $ac_cv_lib_dld_dld_link = yes; then
10776 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10797 if test "x$lt_cv_dlopen" != xno; then
10803 case $lt_cv_dlopen in
10805 save_CPPFLAGS="$CPPFLAGS"
10806 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10808 save_LDFLAGS="$LDFLAGS"
10809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10812 LIBS="$lt_cv_dlopen_libs $LIBS"
10814 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10815 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10816 if test "${lt_cv_dlopen_self+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 if test "$cross_compiling" = yes; then :
10820 lt_cv_dlopen_self=cross
10822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10823 lt_status=$lt_dlunknown
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10835 # define LT_DLGLOBAL RTLD_GLOBAL
10838 # define LT_DLGLOBAL DL_GLOBAL
10840 # define LT_DLGLOBAL 0
10844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10845 find out it does not work in some platform. */
10846 #ifndef LT_DLLAZY_OR_NOW
10848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10851 # define LT_DLLAZY_OR_NOW DL_LAZY
10854 # define LT_DLLAZY_OR_NOW RTLD_NOW
10857 # define LT_DLLAZY_OR_NOW DL_NOW
10859 # define LT_DLLAZY_OR_NOW 0
10867 extern "C" void exit (int);
10870 void fnord() { int i=42;}
10873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10874 int status = $lt_dlunknown;
10878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10880 /* dlclose (self); */
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10893 (./conftest; exit; ) >&5 2>/dev/null
10895 case x$lt_status in
10896 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10897 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10898 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10901 # compilation failed
10902 lt_cv_dlopen_self=no
10909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10910 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10912 if test "x$lt_cv_dlopen_self" = xyes; then
10913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10914 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10915 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10916 if test "${lt_cv_dlopen_self_static+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 if test "$cross_compiling" = yes; then :
10920 lt_cv_dlopen_self_static=cross
10922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923 lt_status=$lt_dlunknown
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10935 # define LT_DLGLOBAL RTLD_GLOBAL
10938 # define LT_DLGLOBAL DL_GLOBAL
10940 # define LT_DLGLOBAL 0
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945 find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10951 # define LT_DLLAZY_OR_NOW DL_LAZY
10954 # define LT_DLLAZY_OR_NOW RTLD_NOW
10957 # define LT_DLLAZY_OR_NOW DL_NOW
10959 # define LT_DLLAZY_OR_NOW 0
10967 extern "C" void exit (int);
10970 void fnord() { int i=42;}
10973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10974 int status = $lt_dlunknown;
10978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10980 /* dlclose (self); */
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10993 (./conftest; exit; ) >&5 2>/dev/null
10995 case x$lt_status in
10996 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10997 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10998 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11001 # compilation failed
11002 lt_cv_dlopen_self_static=no
11009 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11013 CPPFLAGS="$save_CPPFLAGS"
11014 LDFLAGS="$save_LDFLAGS"
11019 case $lt_cv_dlopen_self in
11020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11021 *) enable_dlopen_self=unknown ;;
11024 case $lt_cv_dlopen_self_static in
11025 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11026 *) enable_dlopen_self_static=unknown ;;
11031 # Report which library types will actually be built
11032 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11033 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11034 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11035 echo "${ECHO_T}$can_build_shared" >&6; }
11037 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11038 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11039 test "$can_build_shared" = "no" && enable_shared=no
11041 # On AIX, shared libraries and static libraries use the same namespace, and
11042 # are all built from PIC.
11045 test "$enable_shared" = yes && enable_static=no
11046 if test -n "$RANLIB"; then
11047 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11048 postinstall_cmds='$RANLIB $lib'
11053 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11054 test "$enable_shared" = yes && enable_static=no
11058 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11059 echo "${ECHO_T}$enable_shared" >&6; }
11061 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11062 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11063 # Make sure either enable_shared or enable_static is yes.
11064 test "$enable_shared" = yes || enable_static=yes
11065 { echo "$as_me:$LINENO: result: $enable_static" >&5
11066 echo "${ECHO_T}$enable_static" >&6; }
11068 # The else clause should only fire when bootstrapping the
11069 # libtool distribution, otherwise you forgot to ship ltmain.sh
11070 # with your package, and you will get complaints that there are
11071 # no rules to generate ltmain.sh.
11072 if test -f "$ltmain"; then
11073 # See if we are running on zsh, and set the options which allow our commands through
11074 # without removal of \ escapes.
11075 if test -n "${ZSH_VERSION+set}" ; then
11076 setopt NO_GLOB_SUBST
11078 # Now quote all the things that may contain metacharacters while being
11079 # careful not to overquote the AC_SUBSTed values. We take copies of the
11080 # variables and quote the copies for generation of the libtool script.
11081 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11083 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11084 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11085 deplibs_check_method reload_flag reload_cmds need_locks \
11086 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11087 lt_cv_sys_global_symbol_to_c_name_address \
11088 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11089 old_postinstall_cmds old_postuninstall_cmds \
11093 lt_prog_compiler_wl \
11094 lt_prog_compiler_pic \
11095 lt_prog_compiler_static \
11096 lt_prog_compiler_no_builtin_flag \
11097 export_dynamic_flag_spec \
11098 thread_safe_flag_spec \
11099 whole_archive_flag_spec \
11100 enable_shared_with_static_runtimes \
11102 old_archive_from_new_cmds \
11107 compiler_lib_search_path \
11108 compiler_lib_search_dirs \
11110 archive_expsym_cmds \
11112 postuninstall_cmds \
11113 old_archive_from_expsyms_cmds \
11114 allow_undefined_flag \
11115 no_undefined_flag \
11116 export_symbols_cmds \
11117 hardcode_libdir_flag_spec \
11118 hardcode_libdir_flag_spec_ld \
11119 hardcode_libdir_separator \
11120 hardcode_automatic \
11122 module_expsym_cmds \
11123 lt_cv_prog_compiler_c_o \
11126 include_expsyms; do
11129 old_archive_cmds | \
11130 old_archive_from_new_cmds | \
11132 archive_expsym_cmds | \
11134 module_expsym_cmds | \
11135 old_archive_from_expsyms_cmds | \
11136 export_symbols_cmds | \
11137 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11138 postinstall_cmds | postuninstall_cmds | \
11139 old_postinstall_cmds | old_postuninstall_cmds | \
11140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11141 # Double-quote double-evaled strings.
11142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11151 *'\$0 --fallback-echo"')
11152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11156 cfgfile="${ofile}T"
11157 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11159 { echo "$as_me:$LINENO: creating $ofile" >&5
11160 echo "$as_me: creating $ofile" >&6;}
11162 cat <<__EOF__ >> "$cfgfile"
11165 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11166 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11167 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11169 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11170 # Free Software Foundation, Inc.
11172 # This file is part of GNU Libtool:
11173 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11175 # This program is free software; you can redistribute it and/or modify
11176 # it under the terms of the GNU General Public License as published by
11177 # the Free Software Foundation; either version 2 of the License, or
11178 # (at your option) any later version.
11180 # This program is distributed in the hope that it will be useful, but
11181 # WITHOUT ANY WARRANTY; without even the implied warranty of
11182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11183 # General Public License for more details.
11185 # You should have received a copy of the GNU General Public License
11186 # along with this program; if not, write to the Free Software
11187 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11189 # As a special exception to the GNU General Public License, if you
11190 # distribute this file as part of a program that contains a
11191 # configuration script generated by Autoconf, you may include it under
11192 # the same distribution terms that you use for the rest of that program.
11194 # A sed program that does not truncate output.
11197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11198 Xsed="$SED -e 1s/^X//"
11200 # The HP-UX ksh and POSIX shell print the target directory to stdout
11201 # if CDPATH is set.
11202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11204 # The names of the tagged configurations supported by this script.
11207 # ### BEGIN LIBTOOL CONFIG
11209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11211 # Shell to use when invoking shell scripts.
11214 # Whether or not to build shared libraries.
11215 build_libtool_libs=$enable_shared
11217 # Whether or not to build static libraries.
11218 build_old_libs=$enable_static
11220 # Whether or not to add -lc for building shared libraries.
11221 build_libtool_need_lc=$archive_cmds_need_lc
11223 # Whether or not to disallow shared libs when runtime libs are static
11224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11226 # Whether or not to optimize for fast installation.
11227 fast_install=$enable_fast_install
11230 host_alias=$host_alias
11234 # The build system.
11235 build_alias=$build_alias
11239 # An echo program that does not interpret backslashes.
11244 AR_FLAGS=$lt_AR_FLAGS
11249 # LTCC compiler flags.
11250 LTCFLAGS=$lt_LTCFLAGS
11252 # A language-specific compiler.
11255 # Is the compiler the GNU C compiler?
11261 # The linker used to build libraries.
11264 # Whether we need hard or soft links.
11267 # A BSD-compatible nm program.
11270 # A symbol stripping program
11273 # Used to examine libraries when file_magic_cmd begins "file"
11274 MAGIC_CMD=$MAGIC_CMD
11276 # Used on cygwin: DLL creation program.
11279 # Used on cygwin: object dumper.
11282 # Used on cygwin: assembler.
11285 # The name of the directory that contains temporary libtool files.
11288 # How to create reloadable object files.
11289 reload_flag=$lt_reload_flag
11290 reload_cmds=$lt_reload_cmds
11292 # How to pass a linker flag through the compiler.
11293 wl=$lt_lt_prog_compiler_wl
11295 # Object file suffix (normally "o").
11296 objext="$ac_objext"
11298 # Old archive suffix (normally "a").
11301 # Shared library suffix (normally ".so").
11302 shrext_cmds='$shrext_cmds'
11304 # Executable file suffix (normally "").
11307 # Additional compiler flags for building library objects.
11308 pic_flag=$lt_lt_prog_compiler_pic
11311 # What is the maximum length of a command?
11312 max_cmd_len=$lt_cv_sys_max_cmd_len
11314 # Does compiler simultaneously support -c and -o options?
11315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11317 # Must we lock files when doing compilation?
11318 need_locks=$lt_need_locks
11320 # Do we need the lib prefix for modules?
11321 need_lib_prefix=$need_lib_prefix
11323 # Do we need a version for libraries?
11324 need_version=$need_version
11326 # Whether dlopen is supported.
11327 dlopen_support=$enable_dlopen
11329 # Whether dlopen of programs is supported.
11330 dlopen_self=$enable_dlopen_self
11332 # Whether dlopen of statically linked programs is supported.
11333 dlopen_self_static=$enable_dlopen_self_static
11335 # Compiler flag to prevent dynamic linking.
11336 link_static_flag=$lt_lt_prog_compiler_static
11338 # Compiler flag to turn off builtin functions.
11339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11341 # Compiler flag to allow reflexive dlopens.
11342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11344 # Compiler flag to generate shared objects directly from archives.
11345 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11347 # Compiler flag to generate thread-safe objects.
11348 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11350 # Library versioning type.
11351 version_type=$version_type
11353 # Format of library name prefix.
11354 libname_spec=$lt_libname_spec
11356 # List of archive names. First name is the real one, the rest are links.
11357 # The last name is the one that the linker finds with -lNAME.
11358 library_names_spec=$lt_library_names_spec
11360 # The coded name of the library, if different from the real name.
11361 soname_spec=$lt_soname_spec
11363 # Commands used to build and install an old-style archive.
11365 old_archive_cmds=$lt_old_archive_cmds
11366 old_postinstall_cmds=$lt_old_postinstall_cmds
11367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11369 # Create an old-style archive from a shared archive.
11370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11372 # Create a temporary old-style archive to link instead of a shared archive.
11373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11375 # Commands used to build and install a shared archive.
11376 archive_cmds=$lt_archive_cmds
11377 archive_expsym_cmds=$lt_archive_expsym_cmds
11378 postinstall_cmds=$lt_postinstall_cmds
11379 postuninstall_cmds=$lt_postuninstall_cmds
11381 # Commands used to build a loadable module (assumed same as above if empty)
11382 module_cmds=$lt_module_cmds
11383 module_expsym_cmds=$lt_module_expsym_cmds
11385 # Commands to strip libraries.
11386 old_striplib=$lt_old_striplib
11387 striplib=$lt_striplib
11389 # Dependencies to place before the objects being linked to create a
11391 predep_objects=$lt_predep_objects
11393 # Dependencies to place after the objects being linked to create a
11395 postdep_objects=$lt_postdep_objects
11397 # Dependencies to place before the objects being linked to create a
11399 predeps=$lt_predeps
11401 # Dependencies to place after the objects being linked to create a
11403 postdeps=$lt_postdeps
11405 # The directories searched by this compiler when creating a shared
11407 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11409 # The library search path used internally by the compiler when linking
11410 # a shared library.
11411 compiler_lib_search_path=$lt_compiler_lib_search_path
11413 # Method to check whether dependent libraries are shared objects.
11414 deplibs_check_method=$lt_deplibs_check_method
11416 # Command to use when deplibs_check_method == file_magic.
11417 file_magic_cmd=$lt_file_magic_cmd
11419 # Flag that allows shared libraries with undefined symbols to be built.
11420 allow_undefined_flag=$lt_allow_undefined_flag
11422 # Flag that forces no undefined symbols.
11423 no_undefined_flag=$lt_no_undefined_flag
11425 # Commands used to finish a libtool library installation in a directory.
11426 finish_cmds=$lt_finish_cmds
11428 # Same as above, but a single script fragment to be evaled but not shown.
11429 finish_eval=$lt_finish_eval
11431 # Take the output of nm and produce a listing of raw symbols and C names.
11432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11434 # Transform the output of nm in a proper C declaration
11435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11437 # Transform the output of nm in a C name address pair
11438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11440 # This is the shared library runtime path variable.
11441 runpath_var=$runpath_var
11443 # This is the shared library path variable.
11444 shlibpath_var=$shlibpath_var
11446 # Is shlibpath searched before the hard-coded library search path?
11447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11449 # How to hardcode a shared library path into an executable.
11450 hardcode_action=$hardcode_action
11452 # Whether we should hardcode library paths into libraries.
11453 hardcode_into_libs=$hardcode_into_libs
11455 # Flag to hardcode \$libdir into a binary during linking.
11456 # This must work even if \$libdir does not exist.
11457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11459 # If ld is used when linking, flag to hardcode \$libdir into
11460 # a binary during linking. This must work even if \$libdir does
11462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11464 # Whether we need a single -rpath flag with a separated argument.
11465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11468 # resulting binary.
11469 hardcode_direct=$hardcode_direct
11471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11472 # resulting binary.
11473 hardcode_minus_L=$hardcode_minus_L
11475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11476 # the resulting binary.
11477 hardcode_shlibpath_var=$hardcode_shlibpath_var
11479 # Set to yes if building a shared library automatically hardcodes DIR into the library
11480 # and all subsequent libraries and executables linked against it.
11481 hardcode_automatic=$hardcode_automatic
11483 # Variables whose values should be saved in libtool wrapper scripts and
11484 # restored at relink time.
11485 variables_saved_for_relink="$variables_saved_for_relink"
11487 # Whether libtool must link a program against all its dependency libraries.
11488 link_all_deplibs=$link_all_deplibs
11490 # Compile-time system search path for libraries
11491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11493 # Run-time system search path for libraries
11494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11496 # Fix the shell variable \$srcfile for the compiler.
11497 fix_srcfile_path=$lt_fix_srcfile_path
11499 # Set to yes if exported symbols are required.
11500 always_export_symbols=$always_export_symbols
11502 # The commands to list exported symbols.
11503 export_symbols_cmds=$lt_export_symbols_cmds
11505 # The commands to extract the exported symbol list from a shared archive.
11506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11508 # Symbols that should not be listed in the preloaded symbols.
11509 exclude_expsyms=$lt_exclude_expsyms
11511 # Symbols that must always be exported.
11512 include_expsyms=$lt_include_expsyms
11514 # ### END LIBTOOL CONFIG
11521 cat <<\EOF >> "$cfgfile"
11523 # AIX sometimes has problems with the GCC collect2 program. For some
11524 # reason, if we set the COLLECT_NAMES environment variable, the problems
11525 # vanish in a puff of smoke.
11526 if test "X${COLLECT_NAMES+set}" != Xset; then
11528 export COLLECT_NAMES
11534 # We use sed instead of cat because bash on DJGPP gets confused if
11535 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11536 # text mode, it properly converts lines to CR/LF. This bash problem
11537 # is reportedly fixed, but why not run on old versions too?
11538 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11540 mv -f "$cfgfile" "$ofile" || \
11541 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11545 # If there is no Makefile yet, we rely on a make rule to execute
11546 # `config.status --recheck' to rerun these tests and create the
11547 # libtool script then.
11548 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11549 if test -f "$ltmain_in"; then
11550 test -f Makefile && make "$ltmain"
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11565 # This can be used to rebuild libtool when needed
11566 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11568 # Always use our own libtool.
11569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11571 # Prevent multiple expansion
11582 if test "$enable_shared" = "no"; then
11585 eval _shrext="$shrext_cmds"
11587 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11588 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11590 # Check whether --with-noexec was given.
11591 if test "${with_noexec+set}" = set; then
11592 withval=$with_noexec; case $with_noexec in
11593 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11599 with_noexec="$libexecdir/sudo_noexec$_shrext"
11602 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11603 echo "${ECHO_T}$with_noexec" >&6; }
11604 NOEXECFILE="sudo_noexec$_shrext"
11605 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11607 if test "$with_devel" = "yes" -a -n "$GCC"; then
11608 CFLAGS="${CFLAGS} -Wall"
11611 # Extract the first word of "uname", so it can be a program name with args.
11612 set dummy uname; ac_word=$2
11613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11615 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 if test -n "$UNAMEPROG"; then
11619 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628 ac_cv_prog_UNAMEPROG="uname"
11629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11639 if test -n "$UNAMEPROG"; then
11640 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11641 echo "${ECHO_T}$UNAMEPROG" >&6; }
11643 { echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6; }
11648 # Extract the first word of "tr", so it can be a program name with args.
11649 set dummy tr; ac_word=$2
11650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11652 if test "${ac_cv_prog_TRPROG+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 if test -n "$TRPROG"; then
11656 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11665 ac_cv_prog_TRPROG="tr"
11666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 TRPROG=$ac_cv_prog_TRPROG
11676 if test -n "$TRPROG"; then
11677 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11678 echo "${ECHO_T}$TRPROG" >&6; }
11680 { echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6; }
11685 # Extract the first word of "nroff", so it can be a program name with args.
11686 set dummy nroff; ac_word=$2
11687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11689 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 if test -n "$NROFFPROG"; then
11693 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_NROFFPROG="nroff"
11703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 NROFFPROG=$ac_cv_prog_NROFFPROG
11713 if test -n "$NROFFPROG"; then
11714 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11715 echo "${ECHO_T}$NROFFPROG" >&6; }
11717 { echo "$as_me:$LINENO: result: no" >&5
11718 echo "${ECHO_T}no" >&6; }
11722 if test -z "$NROFFPROG"; then
11724 mansrcdir='$(srcdir)'
11727 if test -n "$sudo_cv_prev_host"; then
11728 if test "$sudo_cv_prev_host" != "$host"; then
11729 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11730 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11731 { (exit 1); exit 1; }; }
11733 { echo "$as_me:$LINENO: checking previous host type" >&5
11734 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11735 if test "${sudo_cv_prev_host+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 sudo_cv_prev_host="$host"
11741 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11742 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11745 # this will produce no output since there is no cached value
11746 if test "${sudo_cv_prev_host+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 sudo_cv_prev_host="$host"
11754 if test -n "$host_os"; then
11755 OS=`echo $host_os | sed 's/[0-9].*//'`
11756 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11757 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11766 # getcwd(3) opens a pipe to getpwd(1)!?!
11769 # system headers lack prototypes but gcc helps...
11770 if test -n "$GCC"; then
11771 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11774 shadow_funcs="getpwanam issecure"
11777 # To get the crypt(3) prototype (so we pass -Wall)
11778 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11779 # AFS support needs -lucb
11780 if test "$with_AFS" = "yes"; then
11781 AFS_LIBS="-lc -lucb"
11783 : ${mansectsu='1m'}
11784 : ${mansectform='4'}
11785 : ${with_rpath='yes'}
11786 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11789 # To get all prototypes (so we pass -Wall)
11790 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11791 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11792 if test X"$with_blibpath" != X"no"; then
11793 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11794 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11795 O_LDFLAGS="$LDFLAGS"
11796 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_link") 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && {
11826 test -z "$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11828 } && test -s conftest$ac_exeext &&
11829 $as_test_x conftest$ac_exeext; then
11831 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11832 blibpath="$with_blibpath"
11833 elif test -n "$GCC"; then
11834 blibpath="/usr/lib:/lib:/usr/local/lib"
11836 blibpath="/usr/lib:/lib"
11838 { echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6; }
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 { echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6; }
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11852 LDFLAGS="$O_LDFLAGS"
11854 # Use authenticate(3) as the default authentication method
11855 if test X"$with_aixauth" = X""; then
11857 for ac_func in authenticate
11859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11873 #define $ac_func innocuous_$ac_func
11875 /* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func (); below.
11877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878 <limits.h> exists even on freestanding compilers. */
11881 # include <limits.h>
11883 # include <assert.h>
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11905 return $ac_func ();
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest$ac_exeext &&
11927 $as_test_x conftest$ac_exeext; then
11928 eval "$as_ac_var=yes"
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 eval "$as_ac_var=no"
11936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11937 conftest$ac_exeext conftest.$ac_ext
11939 ac_res=`eval echo '${'$as_ac_var'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11946 AUTH_EXCL_DEF="AIX_AUTH"
11952 # AIX-specific functions
11954 for ac_func in getuserattr
11956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define $ac_func innocuous_$ac_func
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
12002 return $ac_func ();
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_link") 2>conftest.er1
12016 grep -v '^ *+' conftest.er1 >conftest.err
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } && {
12021 test -z "$ac_c_werror_flag" ||
12022 test ! -s conftest.err
12023 } && test -s conftest$ac_exeext &&
12024 $as_test_x conftest$ac_exeext; then
12025 eval "$as_ac_var=yes"
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12034 conftest$ac_exeext conftest.$ac_ext
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12047 SUDO_OBJS="$SUDO_OBJS aix.o"
12050 : ${mansectsu='1m'}
12051 : ${mansectform='4'}
12054 # AFS support needs -lBSD
12055 if test "$with_AFS" = "yes"; then
12056 AFS_LIBS="-lc -lBSD"
12058 : ${mansectsu='1m'}
12059 : ${mansectform='4'}
12061 # HP-UX bundled compiler can't generate shared objects
12062 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12067 cat >>confdefs.h <<\_ACEOF
12068 #define BROKEN_SYSLOG 1
12072 # Not sure if setuid binaries are safe in < 9.x
12073 if test -n "$GCC"; then
12074 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12076 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12080 cat >>confdefs.h <<\_ACEOF
12081 #define BROKEN_SYSLOG 1
12085 shadow_funcs="getspwuid"
12087 # DCE support (requires ANSI C compiler)
12088 if test "$with_DCE" = "yes"; then
12089 # order of libs in 9.X is important. -lc_r must be last
12090 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12091 LIBS="${LIBS} -ldce -lM -lc_r"
12092 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12096 shadow_funcs="getprpwnam iscomsec"
12097 shadow_libs="-lsec"
12100 shadow_funcs="getspnam iscomsec"
12101 shadow_libs="-lsec"
12102 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12107 # ignore envariables wrt dynamic lib path
12108 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12110 : ${CHECKSIA='true'}
12111 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12112 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12113 # Check whether --enable-sia was given.
12114 if test "${enable_sia+set}" = set; then
12115 enableval=$enable_sia; case "$enableval" in
12116 yes) { echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6; }
12120 no) { echo "$as_me:$LINENO: result: yes" >&5
12121 echo "${ECHO_T}yes" >&6; }
12124 *) { echo "$as_me:$LINENO: result: no" >&5
12125 echo "${ECHO_T}no" >&6; }
12126 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12127 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12132 { echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6; }
12137 shadow_funcs="getprpwnam dispcrypt"
12138 # OSF/1 4.x and higher need -ldb too
12139 if test $OSMAJOR -lt 4; then
12140 shadow_libs="-lsecurity -laud -lm"
12142 shadow_libs="-lsecurity -ldb -laud -lm"
12145 # use SIA by default, if we have it
12146 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12149 # Some versions of Digital Unix ship with a broken
12150 # copy of prot.h, which we need for shadow passwords.
12151 # XXX - make should remove this as part of distclean
12153 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12154 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 #include <sys/types.h>
12163 #include <sys/security.h>
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 { echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6; }
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12198 echo "${ECHO_T}yes, fixing locally" >&6; }
12199 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 : ${mansectform='4'}
12208 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12209 if test -z "$NROFFPROG"; then
12210 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)'
12211 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12212 if test -d /usr/share/catman/local; then
12213 mandir="/usr/share/catman/local"
12215 mandir="/usr/catman/local"
12219 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12220 if test -d "/usr/share/man/local"; then
12221 mandir="/usr/share/man/local"
12223 mandir="/usr/man/local"
12227 # IRIX <= 4 needs -lsun
12228 if test "$OSMAJOR" -le 4; then
12229 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12230 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12231 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 ac_check_lib_save_LIBS=$LIBS
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12253 return getpwnam ();
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1 >conftest.err
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext &&
12275 $as_test_x conftest$ac_exeext; then
12276 ac_cv_lib_sun_getpwnam=yes
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 ac_cv_lib_sun_getpwnam=no
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12289 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12290 if test $ac_cv_lib_sun_getpwnam = yes; then
12291 LIBS="${LIBS} -lsun"
12295 : ${mansectsu='1m'}
12296 : ${mansectform='4'}
12298 *-*-linux*|*-*-k*bsd*-gnu)
12299 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12300 # Some Linux versions need to link with -lshadow
12301 shadow_funcs="getspnam"
12302 shadow_libs_optional="-lshadow"
12303 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12306 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12307 if test -z "$GCC"; then
12308 CFLAGS="${CFLAGS} -D__STDC__"
12311 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12312 shadow_funcs="getprpwnam"
12313 shadow_libs="-lprot"
12317 shadow_funcs="getauthuid"
12318 shadow_libs="-lauth"
12321 LIBS="${LIBS} -lsun -lbsd"
12322 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12323 OSDEFS="${OSDEFS} -D_MIPS"
12324 : ${mansectsu='1m'}
12325 : ${mansectform='4'}
12328 OSDEFS="${OSDEFS} -D_ISC"
12330 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12331 LIBS="${LIBS} -lcrypt"
12333 shadow_funcs="getspnam"
12334 shadow_libs="-lsec"
12336 : ${mansectsu='1m'}
12337 : ${mansectform='4'}
12340 shadow_funcs="getprpwnam"
12341 shadow_libs="-lprot -lx"
12342 : ${mansectsu='1m'}
12343 : ${mansectform='4'}
12345 m88k-motorola-sysv*)
12346 # motorolla's cc (a variant of gcc) does -O but not -O2
12347 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12348 : ${mansectsu='1m'}
12349 : ${mansectform='4'}
12352 shadow_funcs="getspnam"
12353 shadow_libs="-lsec"
12354 : ${mansectsu='1m'}
12355 : ${mansectform='4'}
12356 : ${with_rpath='yes'}
12358 *-ncr-sysv4*|*-ncr-sysvr4*)
12359 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12360 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12361 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 ac_check_lib_save_LIBS=$LIBS
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12379 char strcasecmp ();
12383 return strcasecmp ();
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1 >conftest.err
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest$ac_exeext &&
12405 $as_test_x conftest$ac_exeext; then
12406 ac_cv_lib_c89_strcasecmp=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_lib_c89_strcasecmp=no
12414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12418 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12419 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12420 if test $ac_cv_lib_c89_strcasecmp = yes; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_STRCASECMP 1
12424 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12427 : ${mansectsu='1m'}
12428 : ${mansectform='4'}
12429 : ${with_rpath='yes'}
12431 *-ccur-sysv4*|*-ccur-sysvr4*)
12432 LIBS="${LIBS} -lgen"
12433 SUDO_LIBS="${SUDO_LIBS} -lgen"
12434 : ${mansectsu='1m'}
12435 : ${mansectform='4'}
12436 : ${with_rpath='yes'}
12440 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12441 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12443 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12444 echo "$as_me: using shlicc as CC" >&6;}
12445 ac_cv_prog_CC=shlicc
12446 CC="$ac_cv_prog_CC"
12450 # Check for newer BSD auth API (just check for >= 3.0?)
12451 if test -z "$with_bsdauth"; then
12453 for ac_func in auth_challenge
12455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12469 #define $ac_func innocuous_$ac_func
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char $ac_func (); below.
12473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474 <limits.h> exists even on freestanding compilers. */
12477 # include <limits.h>
12479 # include <assert.h>
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12491 /* The GNU C library defines this for functions which it implements
12492 to always fail with ENOSYS. Some functions are actually named
12493 something starting with __ and the normal name is an alias. */
12494 #if defined __stub_$ac_func || defined __stub___$ac_func
12501 return $ac_func ();
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext &&
12523 $as_test_x conftest$ac_exeext; then
12524 eval "$as_ac_var=yes"
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 eval "$as_ac_var=no"
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext conftest.$ac_ext
12535 ac_res=`eval echo '${'$as_ac_var'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12538 if test `eval echo '${'$as_ac_var'}'` = yes; then
12539 cat >>confdefs.h <<_ACEOF
12540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12542 AUTH_EXCL_DEF="BSD_AUTH"
12549 # FreeBSD has a real setreuid(2) starting with 2.1 and
12550 # backported to 2.0.5. We just take 2.1 and above...
12556 if test "$with_skey" = "yes"; then
12557 SUDO_LIBS="${SUDO_LIBS} -lmd"
12559 CHECKSHADOW="false"
12560 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12561 : ${with_logincap='maybe'}
12564 # OpenBSD has a real setreuid(2) starting with 3.3 but
12565 # we will use setreuid(2) instead.
12567 CHECKSHADOW="false"
12568 # OpenBSD >= 3.0 supports BSD auth
12569 if test -z "$with_bsdauth"; then
12574 AUTH_EXCL_DEF="BSD_AUTH"
12578 : ${with_logincap='maybe'}
12581 # NetBSD has a real setreuid(2) starting with 1.3.2
12583 0.9*|1.012*|1.3|1.3.1)
12587 CHECKSHADOW="false"
12588 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12589 : ${with_logincap='maybe'}
12592 if test "$with_skey" = "yes"; then
12593 SUDO_LIBS="${SUDO_LIBS} -lmd"
12595 CHECKSHADOW="false"
12596 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12597 : ${with_logincap='yes'}
12600 CHECKSHADOW="false"
12604 CHECKSHADOW="false"
12605 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12606 : ${with_logincap='yes'}
12609 # lockf() on is broken on the NeXT -- use flock instead
12610 ac_cv_func_lockf=no
12611 ac_cv_func_flock=yes
12614 : ${mansectsu='1m'}
12615 : ${mansectform='4'}
12616 : ${with_rpath='yes'}
12619 : ${mansectsu='1m'}
12620 : ${mansectform='4'}
12623 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12627 AUTH_REG=${AUTH_REG# }
12628 AUTH_EXCL=${AUTH_EXCL# }
12629 if test -n "$AUTH_EXCL"; then
12631 if test $# != 1; then
12632 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12633 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12634 { (exit 1); exit 1; }; }
12636 if test -n "$AUTH_REG"; then
12637 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12638 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12639 { (exit 1); exit 1; }; }
12642 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12643 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12644 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12645 { (exit 1); exit 1; }; }
12649 : ${mansectform='5'}
12651 if test -n "$with_libpath"; then
12652 for i in ${with_libpath}; do
12654 if test X"$with_rpath" = X"yes"; then
12655 LDFLAGS="${LDFLAGS} -L$i -R$i"
12657 LDFLAGS="${LDFLAGS} -L$i"
12659 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12660 blibpath_add="${blibpath_add}:$i"
12665 if test -n "$with_libraries"; then
12666 for i in ${with_libraries}; do
12673 LIBS="${LIBS} ${i}"
12677 if test $ac_cv_c_compiler_gnu = yes; then
12678 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12679 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12680 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 ac_pattern="Autoconf.*'x'"
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12694 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12695 ac_cv_prog_gcc_traditional=yes
12697 ac_cv_prog_gcc_traditional=no
12702 if test $ac_cv_prog_gcc_traditional = no; then
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <termio.h>
12712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12713 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12714 ac_cv_prog_gcc_traditional=yes
12720 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12721 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12722 if test $ac_cv_prog_gcc_traditional = yes; then
12723 CC="$CC -traditional"
12727 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12728 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12729 if test "${ac_cv_c_const+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12742 /* FIXME: Include the comments suggested by Paul. */
12743 #ifndef __cplusplus
12744 /* Ultrix mips cc rejects this. */
12745 typedef int charset[2];
12747 /* SunOS 4.1.1 cc rejects this. */
12748 char const *const *pcpcc;
12750 /* NEC SVR4.0.2 mips cc rejects this. */
12751 struct point {int x, y;};
12752 static struct point const zero = {0,0};
12753 /* AIX XL C 1.02.0.0 rejects this.
12754 It does not let you subtract one const X* pointer from another in
12755 an arm of an if-expression whose if-part is not a constant
12757 const char *g = "string";
12758 pcpcc = &g + (g ? g-g : 0);
12759 /* HPUX 7.0 cc rejects these. */
12761 ppc = (char**) pcpcc;
12762 pcpcc = (char const *const *) ppc;
12763 { /* SCO 3.2v4 cc rejects this. */
12765 char const *s = 0 ? (char *) 0 : (char const *) 0;
12770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12771 int x[] = {25, 17};
12772 const int *foo = &x[0];
12775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12776 typedef const int *iptr;
12780 { /* AIX XL C 1.02.0.0 rejects this saying
12781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12782 struct s { int j; const int *ap[3]; };
12783 struct s *b; b->j = 5;
12785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12786 const int foo = 10;
12787 if (!foo) return 0;
12789 return !cs[0] && !zero.x;
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
12805 grep -v '^ *+' conftest.er1 >conftest.err
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12824 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12825 if test $ac_cv_c_const = no; then
12827 cat >>confdefs.h <<\_ACEOF
12833 { echo "$as_me:$LINENO: checking for working volatile" >&5
12834 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12835 if test "${ac_cv_c_volatile+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12850 int * volatile y = (int *) 0;
12856 rm -f conftest.$ac_objext
12857 if { (ac_try="$ac_compile"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && {
12870 test -z "$ac_c_werror_flag" ||
12871 test ! -s conftest.err
12872 } && test -s conftest.$ac_objext; then
12873 ac_cv_c_volatile=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 ac_cv_c_volatile=no
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12884 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12885 if test $ac_cv_c_volatile = no; then
12887 cat >>confdefs.h <<\_ACEOF
12893 for ac_prog in 'bison -y' byacc
12895 # Extract the first word of "$ac_prog", so it can be a program name with args.
12896 set dummy $ac_prog; ac_word=$2
12897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12899 if test "${ac_cv_prog_YACC+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 if test -n "$YACC"; then
12903 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_YACC="$ac_prog"
12913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 YACC=$ac_cv_prog_YACC
12923 if test -n "$YACC"; then
12924 { echo "$as_me:$LINENO: result: $YACC" >&5
12925 echo "${ECHO_T}$YACC" >&6; }
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12932 test -n "$YACC" && break
12934 test -n "$YACC" || YACC="yacc"
12936 { echo "$as_me:$LINENO: checking for mv" >&5
12937 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12938 if test -f "/usr/bin/mv"; then
12939 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12940 echo "${ECHO_T}/usr/bin/mv" >&6; }
12941 cat >>confdefs.h <<\EOF
12942 #define _PATH_MV "/usr/bin/mv"
12945 elif test -f "/bin/mv"; then
12946 { echo "$as_me:$LINENO: result: /bin/mv" >&5
12947 echo "${ECHO_T}/bin/mv" >&6; }
12948 cat >>confdefs.h <<\EOF
12949 #define _PATH_MV "/bin/mv"
12952 elif test -f "/usr/ucb/mv"; then
12953 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12954 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12955 cat >>confdefs.h <<\EOF
12956 #define _PATH_MV "/usr/ucb/mv"
12959 elif test -f "/usr/sbin/mv"; then
12960 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12961 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12962 cat >>confdefs.h <<\EOF
12963 #define _PATH_MV "/usr/sbin/mv"
12967 { echo "$as_me:$LINENO: result: not found" >&5
12968 echo "${ECHO_T}not found" >&6; }
12971 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12972 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12973 if test -f "/bin/sh"; then
12974 { echo "$as_me:$LINENO: result: /bin/sh" >&5
12975 echo "${ECHO_T}/bin/sh" >&6; }
12976 cat >>confdefs.h <<\EOF
12977 #define _PATH_BSHELL "/bin/sh"
12980 elif test -f "/usr/bin/sh"; then
12981 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12982 echo "${ECHO_T}/usr/bin/sh" >&6; }
12983 cat >>confdefs.h <<\EOF
12984 #define _PATH_BSHELL "/usr/bin/sh"
12987 elif test -f "/sbin/sh"; then
12988 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12989 echo "${ECHO_T}/sbin/sh" >&6; }
12990 cat >>confdefs.h <<\EOF
12991 #define _PATH_BSHELL "/sbin/sh"
12994 elif test -f "/usr/sbin/sh"; then
12995 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12996 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12997 cat >>confdefs.h <<\EOF
12998 #define _PATH_BSHELL "/usr/sbin/sh"
13001 elif test -f "/bin/ksh"; then
13002 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13003 echo "${ECHO_T}/bin/ksh" >&6; }
13004 cat >>confdefs.h <<\EOF
13005 #define _PATH_BSHELL "/bin/ksh"
13008 elif test -f "/usr/bin/ksh"; then
13009 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13010 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13011 cat >>confdefs.h <<\EOF
13012 #define _PATH_BSHELL "/usr/bin/ksh"
13015 elif test -f "/bin/bash"; then
13016 { echo "$as_me:$LINENO: result: /bin/bash" >&5
13017 echo "${ECHO_T}/bin/bash" >&6; }
13018 cat >>confdefs.h <<\EOF
13019 #define _PATH_BSHELL "/bin/bash"
13022 elif test -f "/usr/bin/bash"; then
13023 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13024 echo "${ECHO_T}/usr/bin/bash" >&6; }
13025 cat >>confdefs.h <<\EOF
13026 #define _PATH_BSHELL "/usr/bin/bash"
13030 { echo "$as_me:$LINENO: result: not found" >&5
13031 echo "${ECHO_T}not found" >&6; }
13034 if test -z "$with_sendmail"; then
13035 { echo "$as_me:$LINENO: checking for sendmail" >&5
13036 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13037 if test -f "/usr/sbin/sendmail"; then
13038 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13039 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13040 cat >>confdefs.h <<\EOF
13041 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13044 elif test -f "/usr/lib/sendmail"; then
13045 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13046 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13047 cat >>confdefs.h <<\EOF
13048 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13051 elif test -f "/usr/etc/sendmail"; then
13052 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13053 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13054 cat >>confdefs.h <<\EOF
13055 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13058 elif test -f "/usr/ucblib/sendmail"; then
13059 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13060 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13061 cat >>confdefs.h <<\EOF
13062 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13065 elif test -f "/usr/local/lib/sendmail"; then
13066 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13067 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13068 cat >>confdefs.h <<\EOF
13069 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13072 elif test -f "/usr/local/bin/sendmail"; then
13073 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13074 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13075 cat >>confdefs.h <<\EOF
13076 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13080 { echo "$as_me:$LINENO: result: not found" >&5
13081 echo "${ECHO_T}not found" >&6; }
13085 if test -z "$with_editor"; then
13086 { echo "$as_me:$LINENO: checking for vi" >&5
13087 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13088 if test -f "/usr/bin/vi"; then
13089 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13090 echo "${ECHO_T}/usr/bin/vi" >&6; }
13091 cat >>confdefs.h <<\EOF
13092 #define _PATH_VI "/usr/bin/vi"
13095 elif test -f "/usr/ucb/vi"; then
13096 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13097 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13098 cat >>confdefs.h <<\EOF
13099 #define _PATH_VI "/usr/ucb/vi"
13102 elif test -f "/usr/bsd/vi"; then
13103 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13104 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13105 cat >>confdefs.h <<\EOF
13106 #define _PATH_VI "/usr/bsd/vi"
13109 elif test -f "/bin/vi"; then
13110 { echo "$as_me:$LINENO: result: /bin/vi" >&5
13111 echo "${ECHO_T}/bin/vi" >&6; }
13112 cat >>confdefs.h <<\EOF
13113 #define _PATH_VI "/bin/vi"
13116 elif test -f "/usr/local/bin/vi"; then
13117 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13118 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13119 cat >>confdefs.h <<\EOF
13120 #define _PATH_VI "/usr/local/bin/vi"
13124 { echo "$as_me:$LINENO: result: not found" >&5
13125 echo "${ECHO_T}not found" >&6; }
13129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13131 if test "${ac_cv_header_stdc+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 #include <stdlib.h>
13141 #include <stdarg.h>
13142 #include <string.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 ac_cv_header_stdc=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_header_stdc=no
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 if test $ac_cv_header_stdc = yes; then
13181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13182 cat >conftest.$ac_ext <<_ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h. */
13188 #include <string.h>
13191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13192 $EGREP "memchr" >/dev/null 2>&1; then
13195 ac_cv_header_stdc=no
13201 if test $ac_cv_header_stdc = yes; then
13202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <stdlib.h>
13212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213 $EGREP "free" >/dev/null 2>&1; then
13216 ac_cv_header_stdc=no
13222 if test $ac_cv_header_stdc = yes; then
13223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13224 if test "$cross_compiling" = yes; then
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 #include <stdlib.h>
13235 #if ((' ' & 0x0FF) == 0x020)
13236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13239 # define ISLOWER(c) \
13240 (('a' <= (c) && (c) <= 'i') \
13241 || ('j' <= (c) && (c) <= 'r') \
13242 || ('s' <= (c) && (c) <= 'z'))
13243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13251 for (i = 0; i < 256; i++)
13252 if (XOR (islower (i), ISLOWER (i))
13253 || toupper (i) != TOUPPER (i))
13258 rm -f conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13280 echo "$as_me: program exited with status $ac_status" >&5
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ( exit $ac_status )
13285 ac_cv_header_stdc=no
13287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13295 if test $ac_cv_header_stdc = yes; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define STDC_HEADERS 1
13308 ac_header_dirent=no
13309 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13310 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13311 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13312 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 #include <sys/types.h>
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compile") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest.$ac_objext; then
13351 eval "$as_ac_Header=yes"
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 eval "$as_ac_Header=no"
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362 { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13365 cat >>confdefs.h <<_ACEOF
13366 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13369 ac_header_dirent=$ac_hdr; break
13373 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13374 if test $ac_header_dirent = dirent.h; then
13375 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13377 if test "${ac_cv_search_opendir+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 ac_func_search_save_LIBS=$LIBS
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13403 for ac_lib in '' dir; do
13404 if test -z "$ac_lib"; then
13405 ac_res="none required"
13408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13410 rm -f conftest.$ac_objext conftest$ac_exeext
13411 if { (ac_try="$ac_link"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_link") 2>conftest.er1
13419 grep -v '^ *+' conftest.er1 >conftest.err
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest$ac_exeext &&
13427 $as_test_x conftest$ac_exeext; then
13428 ac_cv_search_opendir=$ac_res
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438 if test "${ac_cv_search_opendir+set}" = set; then
13442 if test "${ac_cv_search_opendir+set}" = set; then
13445 ac_cv_search_opendir=no
13447 rm conftest.$ac_ext
13448 LIBS=$ac_func_search_save_LIBS
13450 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13451 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13452 ac_res=$ac_cv_search_opendir
13453 if test "$ac_res" != no; then
13454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13459 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13461 if test "${ac_cv_search_opendir+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 ac_func_search_save_LIBS=$LIBS
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
13487 for ac_lib in '' x; do
13488 if test -z "$ac_lib"; then
13489 ac_res="none required"
13492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest$ac_exeext &&
13511 $as_test_x conftest$ac_exeext; then
13512 ac_cv_search_opendir=$ac_res
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13522 if test "${ac_cv_search_opendir+set}" = set; then
13526 if test "${ac_cv_search_opendir+set}" = set; then
13529 ac_cv_search_opendir=no
13531 rm conftest.$ac_ext
13532 LIBS=$ac_func_search_save_LIBS
13534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13536 ac_res=$ac_cv_search_opendir
13537 if test "$ac_res" != no; then
13538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13544 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13545 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13546 if test "${ac_cv_header_time+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <sys/types.h>
13556 #include <sys/time.h>
13562 if ((struct tm *) 0)
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 ac_cv_header_time=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_cv_header_time=no
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13596 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13597 if test $ac_cv_header_time = yes; then
13599 cat >>confdefs.h <<\_ACEOF
13600 #define TIME_WITH_SYS_TIME 1
13612 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 ac_res=`eval echo '${'$as_ac_Header'}'`
13622 { echo "$as_me:$LINENO: result: $ac_res" >&5
13623 echo "${ECHO_T}$ac_res" >&6; }
13625 # Is the header compilable?
13626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13627 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13635 #include <$ac_header>
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
13654 ac_header_compiler=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_compiler=no
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13664 echo "${ECHO_T}$ac_header_compiler" >&6; }
13666 # Is the header present?
13667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 #include <$ac_header>
13677 if { (ac_try="$ac_cpp conftest.$ac_ext"
13678 case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } >/dev/null && {
13690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13693 ac_header_preproc=yes
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ac_header_preproc=no
13701 rm -f conftest.err conftest.$ac_ext
13702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13703 echo "${ECHO_T}$ac_header_preproc" >&6; }
13705 # So? What about this header?
13706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13712 ac_header_preproc=yes
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 eval "$as_ac_Header=\$ac_header_preproc"
13737 ac_res=`eval echo '${'$as_ac_Header'}'`
13738 { echo "$as_me:$LINENO: result: $ac_res" >&5
13739 echo "${ECHO_T}$ac_res" >&6; }
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743 cat >>confdefs.h <<_ACEOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13751 if test "$OS" != "ultrix"; then
13752 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13753 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13754 if test "${ac_cv_sys_posix_termios+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <sys/types.h>
13764 #include <unistd.h>
13765 #include <termios.h>
13770 /* SunOS 4.0.3 has termios.h but not the library calls. */
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest$ac_exeext &&
13793 $as_test_x conftest$ac_exeext; then
13794 ac_cv_sys_posix_termios=yes
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_cv_sys_posix_termios=no
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803 conftest$ac_exeext conftest.$ac_ext
13805 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13806 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13808 if test "$ac_cv_sys_posix_termios" = "yes"; then
13809 cat >>confdefs.h <<\_ACEOF
13810 #define HAVE_TERMIOS_H 1
13815 for ac_header in termio.h
13817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 ac_res=`eval echo '${'$as_ac_Header'}'`
13825 { echo "$as_me:$LINENO: result: $ac_res" >&5
13826 echo "${ECHO_T}$ac_res" >&6; }
13828 # Is the header compilable?
13829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13838 #include <$ac_header>
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest.$ac_objext; then
13857 ac_header_compiler=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_compiler=no
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6; }
13869 # Is the header present?
13870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 #include <$ac_header>
13880 if { (ac_try="$ac_cpp conftest.$ac_ext"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } >/dev/null && {
13893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13896 ac_header_preproc=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_header_preproc=no
13904 rm -f conftest.err conftest.$ac_ext
13905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13906 echo "${ECHO_T}$ac_header_preproc" >&6; }
13908 # So? What about this header?
13909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13915 ac_header_preproc=yes
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 eval "$as_ac_Header=\$ac_header_preproc"
13940 ac_res=`eval echo '${'$as_ac_Header'}'`
13941 { echo "$as_me:$LINENO: result: $ac_res" >&5
13942 echo "${ECHO_T}$ac_res" >&6; }
13945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13946 cat >>confdefs.h <<_ACEOF
13947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13956 if test ${with_logincap-'no'} != "no"; then
13958 for ac_header in login_cap.h
13960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 ac_res=`eval echo '${'$as_ac_Header'}'`
13968 { echo "$as_me:$LINENO: result: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13971 # Is the header compilable?
13972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_compile") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest.$ac_objext; then
14000 ac_header_compiler=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_compiler=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14010 echo "${ECHO_T}$ac_header_compiler" >&6; }
14012 # Is the header present?
14013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <$ac_header>
14023 if { (ac_try="$ac_cpp conftest.$ac_ext"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } >/dev/null && {
14036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14039 ac_header_preproc=yes
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_header_preproc=no
14047 rm -f conftest.err conftest.$ac_ext
14048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14049 echo "${ECHO_T}$ac_header_preproc" >&6; }
14051 # So? What about this header?
14052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14058 ac_header_preproc=yes
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 eval "$as_ac_Header=\$ac_header_preproc"
14083 ac_res=`eval echo '${'$as_ac_Header'}'`
14084 { echo "$as_me:$LINENO: result: $ac_res" >&5
14085 echo "${ECHO_T}$ac_res" >&6; }
14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14092 LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14094 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14103 if test ${with_project-'no'} != "no"; then
14104 if test "${ac_cv_header_project_h+set}" = set; then
14105 { echo "$as_me:$LINENO: checking for project.h" >&5
14106 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14107 if test "${ac_cv_header_project_h+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14111 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14113 # Is the header compilable?
14114 { echo "$as_me:$LINENO: checking project.h usability" >&5
14115 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 $ac_includes_default
14123 #include <project.h>
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_compile") 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && {
14139 test -z "$ac_c_werror_flag" ||
14140 test ! -s conftest.err
14141 } && test -s conftest.$ac_objext; then
14142 ac_header_compiler=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_header_compiler=no
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14152 echo "${ECHO_T}$ac_header_compiler" >&6; }
14154 # Is the header present?
14155 { echo "$as_me:$LINENO: checking project.h presence" >&5
14156 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14157 cat >conftest.$ac_ext <<_ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 #include <project.h>
14165 if { (ac_try="$ac_cpp conftest.$ac_ext"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } >/dev/null && {
14178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14179 test ! -s conftest.err
14181 ac_header_preproc=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 ac_header_preproc=no
14189 rm -f conftest.err conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6; }
14193 # So? What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14196 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14200 ac_header_preproc=yes
14203 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14218 { echo "$as_me:$LINENO: checking for project.h" >&5
14219 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14220 if test "${ac_cv_header_project_h+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 ac_cv_header_project_h=$ac_header_preproc
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14229 if test $ac_cv_header_project_h = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_PROJECT_H 1
14234 SUDO_LIBS="${SUDO_LIBS} -lproject"
14241 { echo "$as_me:$LINENO: checking for mode_t" >&5
14242 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14243 if test "${ac_cv_type_mode_t+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 typedef mode_t ac__type_new_;
14257 if ((ac__type_new_ *) 0)
14259 if (sizeof (ac__type_new_))
14265 rm -f conftest.$ac_objext
14266 if { (ac_try="$ac_compile"
14267 case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_compile") 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && {
14279 test -z "$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14281 } && test -s conftest.$ac_objext; then
14282 ac_cv_type_mode_t=yes
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ac_cv_type_mode_t=no
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14293 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14294 if test $ac_cv_type_mode_t = yes; then
14298 cat >>confdefs.h <<_ACEOF
14304 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14305 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_type_uid_t+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 #include <sys/types.h>
14318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14319 $EGREP "uid_t" >/dev/null 2>&1; then
14320 ac_cv_type_uid_t=yes
14322 ac_cv_type_uid_t=no
14327 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14328 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14329 if test $ac_cv_type_uid_t = no; then
14331 cat >>confdefs.h <<\_ACEOF
14336 cat >>confdefs.h <<\_ACEOF
14342 { echo "$as_me:$LINENO: checking for __signed char" >&5
14343 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14344 if test "${ac_cv_type___signed_char+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14354 typedef __signed char ac__type_new_;
14358 if ((ac__type_new_ *) 0)
14360 if (sizeof (ac__type_new_))
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_compile") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest.$ac_objext; then
14383 ac_cv_type___signed_char=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_type___signed_char=no
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14394 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14395 if test $ac_cv_type___signed_char = yes; then
14398 { echo "$as_me:$LINENO: checking for signed char" >&5
14399 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14400 if test "${ac_cv_type_signed_char+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 typedef signed char ac__type_new_;
14414 if ((ac__type_new_ *) 0)
14416 if (sizeof (ac__type_new_))
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_compile") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_c_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest.$ac_objext; then
14439 ac_cv_type_signed_char=yes
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_cv_type_signed_char=no
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14450 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14451 if test $ac_cv_type_signed_char = yes; then
14452 cat >>confdefs.h <<\_ACEOF
14453 #define __signed signed
14457 cat >>confdefs.h <<\_ACEOF
14465 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14466 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14467 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <sys/types.h>
14477 #include <signal.h>
14479 typedef sig_atomic_t ac__type_new_;
14483 if ((ac__type_new_ *) 0)
14485 if (sizeof (ac__type_new_))
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_compile") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest.$ac_objext; then
14508 ac_cv_type_sig_atomic_t=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_cv_type_sig_atomic_t=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14519 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14520 if test $ac_cv_type_sig_atomic_t = yes; then
14523 cat >>confdefs.h <<\_ACEOF
14524 #define sig_atomic_t int
14529 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14530 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14531 if test "${ac_cv_type_sigaction_t+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 cat >conftest.$ac_ext <<_ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 #include <sys/types.h>
14541 #include <signal.h>
14543 typedef sigaction_t ac__type_new_;
14547 if ((ac__type_new_ *) 0)
14549 if (sizeof (ac__type_new_))
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest.$ac_objext; then
14572 ac_cv_type_sigaction_t=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_cv_type_sigaction_t=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14583 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14584 if test $ac_cv_type_sigaction_t = yes; then
14586 cat >>confdefs.h <<_ACEOF
14587 #define HAVE_SIGACTION_T 1
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_SIGACTION_T 1
14596 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14597 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14598 if test "${ac_cv_type_struct_timespec+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 #include <sys/types.h>
14608 #if TIME_WITH_SYS_TIME
14609 # include <sys/time.h>
14613 typedef struct timespec ac__type_new_;
14617 if ((ac__type_new_ *) 0)
14619 if (sizeof (ac__type_new_))
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_cv_type_struct_timespec=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_type_struct_timespec=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14653 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14654 if test $ac_cv_type_struct_timespec = yes; then
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_TIMESPEC 1
14661 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14662 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14663 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 cat >conftest.$ac_ext <<_ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 #include <sys/types.h>
14673 #include <netinet/in.h>
14675 typedef struct in6_addr ac__type_new_;
14679 if ((ac__type_new_ *) 0)
14681 if (sizeof (ac__type_new_))
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest.$ac_objext; then
14704 ac_cv_type_struct_in6_addr=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_type_struct_in6_addr=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14715 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14716 if test $ac_cv_type_struct_in6_addr = yes; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_STRUCT_IN6_ADDR 1
14722 cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_IN6_ADDR 1
14728 { echo "$as_me:$LINENO: checking for size_t" >&5
14729 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14730 if test "${sudo_cv_type_size_t+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <sys/types.h>
14742 #include <stdlib.h>
14745 #include <unistd.h>
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 $EGREP "size_t" >/dev/null 2>&1; then
14750 sudo_cv_type_size_t=yes
14752 sudo_cv_type_size_t=no
14757 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14758 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14759 if test $sudo_cv_type_size_t = no; then
14761 cat >>confdefs.h <<\_ACEOF
14767 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14768 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14769 if test "${sudo_cv_type_ssize_t+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #include <sys/types.h>
14781 #include <stdlib.h>
14784 #include <unistd.h>
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788 $EGREP "ssize_t" >/dev/null 2>&1; then
14789 sudo_cv_type_ssize_t=yes
14791 sudo_cv_type_ssize_t=no
14796 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14797 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14798 if test $sudo_cv_type_ssize_t = no; then
14800 cat >>confdefs.h <<\_ACEOF
14801 #define ssize_t int
14806 { echo "$as_me:$LINENO: checking for dev_t" >&5
14807 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14808 if test "${sudo_cv_type_dev_t+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <sys/types.h>
14820 #include <stdlib.h>
14823 #include <unistd.h>
14826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827 $EGREP "dev_t" >/dev/null 2>&1; then
14828 sudo_cv_type_dev_t=yes
14830 sudo_cv_type_dev_t=no
14835 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14836 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14837 if test $sudo_cv_type_dev_t = no; then
14839 cat >>confdefs.h <<\_ACEOF
14845 { echo "$as_me:$LINENO: checking for ino_t" >&5
14846 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14847 if test "${sudo_cv_type_ino_t+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 #include <sys/types.h>
14859 #include <stdlib.h>
14862 #include <unistd.h>
14865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14866 $EGREP "ino_t" >/dev/null 2>&1; then
14867 sudo_cv_type_ino_t=yes
14869 sudo_cv_type_ino_t=no
14874 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14875 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14876 if test $sudo_cv_type_ino_t = no; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define ino_t unsigned int
14885 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14886 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14887 if test "${sudo_cv_uid_t_len+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 if test "$cross_compiling" = yes; then
14892 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14893 See \`config.log' for more details." >&5
14894 echo "$as_me: error: cannot run test program while cross compiling
14895 See \`config.log' for more details." >&2;}
14896 { (exit 1); exit 1; }; }
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14906 #include <limits.h>
14907 #include <sys/types.h>
14908 #include <sys/param.h>
14912 uid_t u = (uid_t) -1;
14914 if ((f = fopen("conftestdata", "w")) == NULL)
14917 (void) sprintf(b, "%lu", (unsigned long) u);
14918 (void) fprintf(f, "%d\n", strlen(b));
14923 rm -f conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 sudo_cv_uid_t_len=`cat conftestdata`
14945 echo "$as_me: program exited with status $ac_status" >&5
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ( exit $ac_status )
14950 sudo_cv_uid_t_len=10
14952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14960 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14961 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14963 cat >>confdefs.h <<_ACEOF
14964 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14968 { echo "$as_me:$LINENO: checking for long long" >&5
14969 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14970 if test "${ac_cv_type_long_long+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 $ac_includes_default
14980 typedef long long ac__type_new_;
14984 if ((ac__type_new_ *) 0)
14986 if (sizeof (ac__type_new_))
14992 rm -f conftest.$ac_objext
14993 if { (ac_try="$ac_compile"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_compile") 2>conftest.er1
15001 grep -v '^ *+' conftest.er1 >conftest.err
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } && {
15006 test -z "$ac_c_werror_flag" ||
15007 test ! -s conftest.err
15008 } && test -s conftest.$ac_objext; then
15009 ac_cv_type_long_long=yes
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 ac_cv_type_long_long=no
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15020 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15021 if test $ac_cv_type_long_long = yes; then
15023 cat >>confdefs.h <<_ACEOF
15024 #define HAVE_LONG_LONG 1
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_LONG_LONG 1
15032 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15033 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15034 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 if test "$cross_compiling" = yes; then
15038 sudo_cv_type_long_is_quad=no
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15048 if (sizeof(long long) == sizeof(long)) exit(0);
15052 rm -f conftest$ac_exeext
15053 if { (ac_try="$ac_link"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_link") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 sudo_cv_type_long_is_quad=yes
15074 echo "$as_me: program exited with status $ac_status" >&5
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ( exit $ac_status )
15079 sudo_cv_type_long_is_quad=no
15081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15085 rm -f core core.* *.core
15087 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15088 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15089 if test $sudo_cv_type_long_is_quad = yes; then
15091 cat >>confdefs.h <<\_ACEOF
15092 #define LONG_IS_QUAD 1
15099 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15100 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15101 if test "${sudo_cv_sock_sa_len+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 if test "$cross_compiling" = yes; then
15105 sudo_cv_sock_sa_len=no
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <sys/types.h>
15114 #include <sys/socket.h>
15121 rm -f conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_link") 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15132 { (case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_try") 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 sudo_cv_sock_sa_len=yes
15143 echo "$as_me: program exited with status $ac_status" >&5
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 ( exit $ac_status )
15148 sudo_cv_sock_sa_len=no
15150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15154 rm -f core core.* *.core
15156 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15157 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15158 if test $sudo_cv_sock_sa_len = yes; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_SA_LEN 1
15168 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15169 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15170 if test "${ac_cv_type_signal+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 cat >conftest.$ac_ext <<_ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 #include <sys/types.h>
15180 #include <signal.h>
15185 return *(signal (0, 0)) (0) == 1;
15190 rm -f conftest.$ac_objext
15191 if { (ac_try="$ac_compile"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_compile") 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest.$ac_objext; then
15207 ac_cv_type_signal=int
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_cv_type_signal=void
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15218 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15220 cat >>confdefs.h <<_ACEOF
15221 #define RETSIGTYPE $ac_cv_type_signal
15226 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15227 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15228 if test "${ac_cv_type_getgroups+set}" = set; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 if test "$cross_compiling" = yes; then
15232 ac_cv_type_getgroups=cross
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 /* Thanks to Mike Rendell for this test. */
15241 $ac_includes_default
15244 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15249 gid_t gidset[NGID];
15251 union { gid_t gval; long int lval; } val;
15254 for (i = 0; i < NGID; i++)
15255 gidset[i] = val.gval;
15256 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15258 /* Exit non-zero if getgroups seems to require an array of ints. This
15259 happens when gid_t is short int but getgroups modifies an array
15261 return n > 0 && gidset[n] != val.gval;
15264 rm -f conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15275 { (case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_try") 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_type_getgroups=gid_t
15286 echo "$as_me: program exited with status $ac_status" >&5
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ( exit $ac_status )
15291 ac_cv_type_getgroups=int
15293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15297 if test $ac_cv_type_getgroups = cross; then
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <unistd.h>
15307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15308 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15309 ac_cv_type_getgroups=gid_t
15311 ac_cv_type_getgroups=int
15317 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15318 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15320 cat >>confdefs.h <<_ACEOF
15321 #define GETGROUPS_T $ac_cv_type_getgroups
15325 { echo "$as_me:$LINENO: checking for size_t" >&5
15326 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15327 if test "${ac_cv_type_size_t+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 $ac_includes_default
15337 typedef size_t ac__type_new_;
15341 if ((ac__type_new_ *) 0)
15343 if (sizeof (ac__type_new_))
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest.$ac_objext; then
15366 ac_cv_type_size_t=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_type_size_t=no
15374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15377 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15378 if test $ac_cv_type_size_t = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define size_t unsigned int
15388 { echo "$as_me:$LINENO: checking for getgroups" >&5
15389 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15390 if test "${ac_cv_func_getgroups+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15401 #define getgroups innocuous_getgroups
15403 /* System header to define __stub macros and hopefully few prototypes,
15404 which can conflict with char getgroups (); below.
15405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15406 <limits.h> exists even on freestanding compilers. */
15409 # include <limits.h>
15411 # include <assert.h>
15416 /* Override any GCC internal prototype to avoid an error.
15417 Use char because int might match the return type of a GCC
15418 builtin and then its argument prototype would still apply. */
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined __stub_getgroups || defined __stub___getgroups
15433 return getgroups ();
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15447 grep -v '^ *+' conftest.er1 >conftest.err
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 ac_cv_func_getgroups=yes
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_cv_func_getgroups=no
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15468 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15471 # If we don't yet have getgroups, see if it's in -lbsd.
15472 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15474 if test $ac_cv_func_getgroups = no; then
15475 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15476 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15477 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 ac_check_lib_save_LIBS=$LIBS
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15499 return getgroups ();
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext &&
15521 $as_test_x conftest$ac_exeext; then
15522 ac_cv_lib_bsd_getgroups=yes
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_cv_lib_bsd_getgroups=no
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15534 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15535 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15536 if test $ac_cv_lib_bsd_getgroups = yes; then
15537 GETGROUPS_LIB=-lbsd
15542 # Run the program to test the functionality of the system-supplied
15543 # getgroups function only if there is such a function.
15544 if test $ac_cv_func_getgroups = yes; then
15545 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15546 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15547 if test "${ac_cv_func_getgroups_works+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 if test "$cross_compiling" = yes; then
15551 ac_cv_func_getgroups_works=no
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15563 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15564 return getgroups (0, 0) == -1;
15569 rm -f conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_link") 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_func_getgroups_works=yes
15591 echo "$as_me: program exited with status $ac_status" >&5
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ( exit $ac_status )
15596 ac_cv_func_getgroups_works=no
15598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15605 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15606 if test $ac_cv_func_getgroups_works = yes; then
15608 cat >>confdefs.h <<\_ACEOF
15609 #define HAVE_GETGROUPS 1
15632 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15633 strftime setrlimit initgroups getgroups fstat gettimeofday \
15634 setlocale getaddrinfo setsid
15636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15650 #define $ac_func innocuous_$ac_func
15652 /* System header to define __stub macros and hopefully few prototypes,
15653 which can conflict with char $ac_func (); below.
15654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15655 <limits.h> exists even on freestanding compilers. */
15658 # include <limits.h>
15660 # include <assert.h>
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15672 /* The GNU C library defines this for functions which it implements
15673 to always fail with ENOSYS. Some functions are actually named
15674 something starting with __ and the normal name is an alias. */
15675 #if defined __stub_$ac_func || defined __stub___$ac_func
15682 return $ac_func ();
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest$ac_exeext &&
15704 $as_test_x conftest$ac_exeext; then
15705 eval "$as_ac_var=yes"
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 eval "$as_ac_var=no"
15713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15714 conftest$ac_exeext conftest.$ac_ext
15716 ac_res=`eval echo '${'$as_ac_var'}'`
15717 { echo "$as_me:$LINENO: result: $ac_res" >&5
15718 echo "${ECHO_T}$ac_res" >&6; }
15719 if test `eval echo '${'$as_ac_var'}'` = yes; then
15720 cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 if test -z "$SKIP_SETRESUID"; then
15729 for ac_func in setresuid
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15745 #define $ac_func innocuous_$ac_func
15747 /* System header to define __stub macros and hopefully few prototypes,
15748 which can conflict with char $ac_func (); below.
15749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15750 <limits.h> exists even on freestanding compilers. */
15753 # include <limits.h>
15755 # include <assert.h>
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15767 /* The GNU C library defines this for functions which it implements
15768 to always fail with ENOSYS. Some functions are actually named
15769 something starting with __ and the normal name is an alias. */
15770 #if defined __stub_$ac_func || defined __stub___$ac_func
15777 return $ac_func ();
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (ac_try="$ac_link"
15784 case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_link") 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest$ac_exeext &&
15799 $as_test_x conftest$ac_exeext; then
15800 eval "$as_ac_var=yes"
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 eval "$as_ac_var=no"
15808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15809 conftest$ac_exeext conftest.$ac_ext
15811 ac_res=`eval echo '${'$as_ac_var'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 if test `eval echo '${'$as_ac_var'}'` = yes; then
15815 cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15823 if test -z "$SKIP_SETREUID"; then
15825 for ac_func in setreuid
15827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15841 #define $ac_func innocuous_$ac_func
15843 /* System header to define __stub macros and hopefully few prototypes,
15844 which can conflict with char $ac_func (); below.
15845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15846 <limits.h> exists even on freestanding compilers. */
15849 # include <limits.h>
15851 # include <assert.h>
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15863 /* The GNU C library defines this for functions which it implements
15864 to always fail with ENOSYS. Some functions are actually named
15865 something starting with __ and the normal name is an alias. */
15866 #if defined __stub_$ac_func || defined __stub___$ac_func
15873 return $ac_func ();
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (ac_try="$ac_link"
15880 case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_link") 2>conftest.er1
15887 grep -v '^ *+' conftest.er1 >conftest.err
15889 cat conftest.err >&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } && {
15892 test -z "$ac_c_werror_flag" ||
15893 test ! -s conftest.err
15894 } && test -s conftest$ac_exeext &&
15895 $as_test_x conftest$ac_exeext; then
15896 eval "$as_ac_var=yes"
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 eval "$as_ac_var=no"
15904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15905 conftest$ac_exeext conftest.$ac_ext
15907 ac_res=`eval echo '${'$as_ac_var'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_var'}'` = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 if test -z "$SKIP_SETEUID"; then
15921 for ac_func in seteuid
15923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15937 #define $ac_func innocuous_$ac_func
15939 /* System header to define __stub macros and hopefully few prototypes,
15940 which can conflict with char $ac_func (); below.
15941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15942 <limits.h> exists even on freestanding compilers. */
15945 # include <limits.h>
15947 # include <assert.h>
15952 /* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15959 /* The GNU C library defines this for functions which it implements
15960 to always fail with ENOSYS. Some functions are actually named
15961 something starting with __ and the normal name is an alias. */
15962 #if defined __stub_$ac_func || defined __stub___$ac_func
15969 return $ac_func ();
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_link") 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } && {
15988 test -z "$ac_c_werror_flag" ||
15989 test ! -s conftest.err
15990 } && test -s conftest$ac_exeext &&
15991 $as_test_x conftest$ac_exeext; then
15992 eval "$as_ac_var=yes"
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 eval "$as_ac_var=no"
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001 conftest$ac_exeext conftest.$ac_ext
16003 ac_res=`eval echo '${'$as_ac_var'}'`
16004 { echo "$as_me:$LINENO: result: $ac_res" >&5
16005 echo "${ECHO_T}$ac_res" >&6; }
16006 if test `eval echo '${'$as_ac_var'}'` = yes; then
16007 cat >>confdefs.h <<_ACEOF
16008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16015 if test X"$with_interfaces" != X"no"; then
16017 for ac_func in getifaddrs
16019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16033 #define $ac_func innocuous_$ac_func
16035 /* System header to define __stub macros and hopefully few prototypes,
16036 which can conflict with char $ac_func (); below.
16037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16038 <limits.h> exists even on freestanding compilers. */
16041 # include <limits.h>
16043 # include <assert.h>
16048 /* Override any GCC internal prototype to avoid an error.
16049 Use char because int might match the return type of a GCC
16050 builtin and then its argument prototype would still apply. */
16055 /* The GNU C library defines this for functions which it implements
16056 to always fail with ENOSYS. Some functions are actually named
16057 something starting with __ and the normal name is an alias. */
16058 #if defined __stub_$ac_func || defined __stub___$ac_func
16065 return $ac_func ();
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && {
16084 test -z "$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 } && test -s conftest$ac_exeext &&
16087 $as_test_x conftest$ac_exeext; then
16088 eval "$as_ac_var=yes"
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 eval "$as_ac_var=no"
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097 conftest$ac_exeext conftest.$ac_ext
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100 { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103 cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 for ac_func in freeifaddrs
16109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16123 #define $ac_func innocuous_$ac_func
16125 /* System header to define __stub macros and hopefully few prototypes,
16126 which can conflict with char $ac_func (); below.
16127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128 <limits.h> exists even on freestanding compilers. */
16131 # include <limits.h>
16133 # include <assert.h>
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16145 /* The GNU C library defines this for functions which it implements
16146 to always fail with ENOSYS. Some functions are actually named
16147 something starting with __ and the normal name is an alias. */
16148 #if defined __stub_$ac_func || defined __stub___$ac_func
16155 return $ac_func ();
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_link") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && {
16174 test -z "$ac_c_werror_flag" ||
16175 test ! -s conftest.err
16176 } && test -s conftest$ac_exeext &&
16177 $as_test_x conftest$ac_exeext; then
16178 eval "$as_ac_var=yes"
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 eval "$as_ac_var=no"
16186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16187 conftest$ac_exeext conftest.$ac_ext
16189 ac_res=`eval echo '${'$as_ac_var'}'`
16190 { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16192 if test `eval echo '${'$as_ac_var'}'` = yes; then
16193 cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16204 if test -z "$BROKEN_GETCWD"; then
16206 for ac_func in getcwd
16208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16222 #define $ac_func innocuous_$ac_func
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func (); below.
16226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227 <limits.h> exists even on freestanding compilers. */
16230 # include <limits.h>
16232 # include <assert.h>
16237 /* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
16244 /* The GNU C library defines this for functions which it implements
16245 to always fail with ENOSYS. Some functions are actually named
16246 something starting with __ and the normal name is an alias. */
16247 #if defined __stub_$ac_func || defined __stub___$ac_func
16254 return $ac_func ();
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (ac_try="$ac_link"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_link") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } && {
16273 test -z "$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16275 } && test -s conftest$ac_exeext &&
16276 $as_test_x conftest$ac_exeext; then
16277 eval "$as_ac_var=yes"
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 eval "$as_ac_var=no"
16285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16286 conftest$ac_exeext conftest.$ac_ext
16288 ac_res=`eval echo '${'$as_ac_var'}'`
16289 { echo "$as_me:$LINENO: result: $ac_res" >&5
16290 echo "${ECHO_T}$ac_res" >&6; }
16291 if test `eval echo '${'$as_ac_var'}'` = yes; then
16292 cat >>confdefs.h <<_ACEOF
16293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16297 case " $LIBOBJS " in
16298 *" $ac_func.$ac_objext "* ) ;;
16299 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16309 for ac_func in glob
16311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16325 #define $ac_func innocuous_$ac_func
16327 /* System header to define __stub macros and hopefully few prototypes,
16328 which can conflict with char $ac_func (); below.
16329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16330 <limits.h> exists even on freestanding compilers. */
16333 # include <limits.h>
16335 # include <assert.h>
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined __stub_$ac_func || defined __stub___$ac_func
16357 return $ac_func ();
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest$ac_exeext &&
16379 $as_test_x conftest$ac_exeext; then
16380 eval "$as_ac_var=yes"
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 eval "$as_ac_var=no"
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389 conftest$ac_exeext conftest.$ac_ext
16391 ac_res=`eval echo '${'$as_ac_var'}'`
16392 { echo "$as_me:$LINENO: result: $ac_res" >&5
16393 echo "${ECHO_T}$ac_res" >&6; }
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16399 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16410 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16415 rm -f conftest.$ac_objext
16416 if { (ac_try="$ac_compile"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_compile") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest.$ac_objext; then
16432 cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_EXTENDED_GLOB 1
16436 { echo "$as_me:$LINENO: result: yes" >&5
16437 echo "${ECHO_T}yes" >&6; }
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 case " $LIBOBJS " in
16443 *" glob.$ac_objext "* ) ;;
16444 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16448 { echo "$as_me:$LINENO: result: no" >&5
16449 echo "${ECHO_T}no" >&6; }
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 case " $LIBOBJS " in
16455 *" glob.$ac_objext "* ) ;;
16456 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16465 for ac_func in lockf flock
16467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16481 #define $ac_func innocuous_$ac_func
16483 /* System header to define __stub macros and hopefully few prototypes,
16484 which can conflict with char $ac_func (); below.
16485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16486 <limits.h> exists even on freestanding compilers. */
16489 # include <limits.h>
16491 # include <assert.h>
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16503 /* The GNU C library defines this for functions which it implements
16504 to always fail with ENOSYS. Some functions are actually named
16505 something starting with __ and the normal name is an alias. */
16506 #if defined __stub_$ac_func || defined __stub___$ac_func
16513 return $ac_func ();
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_link") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext &&
16535 $as_test_x conftest$ac_exeext; then
16536 eval "$as_ac_var=yes"
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 eval "$as_ac_var=no"
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16547 ac_res=`eval echo '${'$as_ac_var'}'`
16548 { echo "$as_me:$LINENO: result: $ac_res" >&5
16549 echo "${ECHO_T}$ac_res" >&6; }
16550 if test `eval echo '${'$as_ac_var'}'` = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16560 for ac_func in waitpid wait3
16562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16576 #define $ac_func innocuous_$ac_func
16578 /* System header to define __stub macros and hopefully few prototypes,
16579 which can conflict with char $ac_func (); below.
16580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581 <limits.h> exists even on freestanding compilers. */
16584 # include <limits.h>
16586 # include <assert.h>
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16598 /* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601 #if defined __stub_$ac_func || defined __stub___$ac_func
16608 return $ac_func ();
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (ac_try="$ac_link"
16615 case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_link") 2>conftest.er1
16622 grep -v '^ *+' conftest.er1 >conftest.err
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && {
16627 test -z "$ac_c_werror_flag" ||
16628 test ! -s conftest.err
16629 } && test -s conftest$ac_exeext &&
16630 $as_test_x conftest$ac_exeext; then
16631 eval "$as_ac_var=yes"
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 eval "$as_ac_var=no"
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16642 ac_res=`eval echo '${'$as_ac_var'}'`
16643 { echo "$as_me:$LINENO: result: $ac_res" >&5
16644 echo "${ECHO_T}$ac_res" >&6; }
16645 if test `eval echo '${'$as_ac_var'}'` = yes; then
16646 cat >>confdefs.h <<_ACEOF
16647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16655 for ac_func in innetgr _innetgr
16657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 cat >conftest.$ac_ext <<_ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16671 #define $ac_func innocuous_$ac_func
16673 /* System header to define __stub macros and hopefully few prototypes,
16674 which can conflict with char $ac_func (); below.
16675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16676 <limits.h> exists even on freestanding compilers. */
16679 # include <limits.h>
16681 # include <assert.h>
16686 /* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
16693 /* The GNU C library defines this for functions which it implements
16694 to always fail with ENOSYS. Some functions are actually named
16695 something starting with __ and the normal name is an alias. */
16696 #if defined __stub_$ac_func || defined __stub___$ac_func
16703 return $ac_func ();
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 eval "$as_ac_var=yes"
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 eval "$as_ac_var=no"
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16737 ac_res=`eval echo '${'$as_ac_var'}'`
16738 { echo "$as_me:$LINENO: result: $ac_res" >&5
16739 echo "${ECHO_T}$ac_res" >&6; }
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 for ac_func in getdomainname
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761 #define $ac_func innocuous_$ac_func
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16769 # include <limits.h>
16771 # include <assert.h>
16776 /* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16793 return $ac_func ();
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest$ac_exeext &&
16815 $as_test_x conftest$ac_exeext; then
16816 eval "$as_ac_var=yes"
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 eval "$as_ac_var=no"
16824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16825 conftest$ac_exeext conftest.$ac_ext
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828 { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831 cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16842 for ac_func in utimes
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858 #define $ac_func innocuous_$ac_func
16860 /* System header to define __stub macros and hopefully few prototypes,
16861 which can conflict with char $ac_func (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16866 # include <limits.h>
16868 # include <assert.h>
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16880 /* The GNU C library defines this for functions which it implements
16881 to always fail with ENOSYS. Some functions are actually named
16882 something starting with __ and the normal name is an alias. */
16883 #if defined __stub_$ac_func || defined __stub___$ac_func
16890 return $ac_func ();
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16904 grep -v '^ *+' conftest.er1 >conftest.err
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } && {
16909 test -z "$ac_c_werror_flag" ||
16910 test ! -s conftest.err
16911 } && test -s conftest$ac_exeext &&
16912 $as_test_x conftest$ac_exeext; then
16913 eval "$as_ac_var=yes"
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 eval "$as_ac_var=no"
16921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16922 conftest$ac_exeext conftest.$ac_ext
16924 ac_res=`eval echo '${'$as_ac_var'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16933 for ac_func in futimes futimesat
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16949 #define $ac_func innocuous_$ac_func
16951 /* System header to define __stub macros and hopefully few prototypes,
16952 which can conflict with char $ac_func (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16957 # include <limits.h>
16959 # include <assert.h>
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16971 /* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16981 return $ac_func ();
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_link") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest$ac_exeext &&
17003 $as_test_x conftest$ac_exeext; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no"
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17028 for ac_func in futime
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044 #define $ac_func innocuous_$ac_func
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17052 # include <limits.h>
17054 # include <assert.h>
17059 /* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17066 /* The GNU C library defines this for functions which it implements
17067 to always fail with ENOSYS. Some functions are actually named
17068 something starting with __ and the normal name is an alias. */
17069 #if defined __stub_$ac_func || defined __stub___$ac_func
17076 return $ac_func ();
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest$ac_exeext &&
17098 $as_test_x conftest$ac_exeext; then
17099 eval "$as_ac_var=yes"
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 eval "$as_ac_var=no"
17107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17108 conftest$ac_exeext conftest.$ac_ext
17110 ac_res=`eval echo '${'$as_ac_var'}'`
17111 { echo "$as_me:$LINENO: result: $ac_res" >&5
17112 echo "${ECHO_T}$ac_res" >&6; }
17113 if test `eval echo '${'$as_ac_var'}'` = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17120 case " $LIBOBJS " in
17121 *" utimes.$ac_objext "* ) ;;
17122 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17129 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17130 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17131 if test "${sudo_cv_func_fnmatch+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 rm -f conftestdata; > conftestdata
17135 if test "$cross_compiling" = yes; then
17136 sudo_cv_func_fnmatch=no
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #include <fnmatch.h>
17145 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17147 rm -f conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 sudo_cv_func_fnmatch=yes
17169 echo "$as_me: program exited with status $ac_status" >&5
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ( exit $ac_status )
17174 sudo_cv_func_fnmatch=no
17176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17180 rm -f core core.* *.core
17183 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17184 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17185 if test $sudo_cv_func_fnmatch = yes; then
17186 cat >>confdefs.h <<\_ACEOF
17187 #define HAVE_FNMATCH 1
17191 case " $LIBOBJS " in
17192 *" fnmatch.$ac_objext "* ) ;;
17193 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17199 { echo "$as_me:$LINENO: checking for isblank" >&5
17200 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17201 if test "${sudo_cv_func_isblank+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17214 return (isblank('a'));
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_link") 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } && {
17233 test -z "$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17235 } && test -s conftest$ac_exeext &&
17236 $as_test_x conftest$ac_exeext; then
17237 sudo_cv_func_isblank=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 sudo_cv_func_isblank=no
17245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17246 conftest$ac_exeext conftest.$ac_ext
17248 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17249 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17251 if test "$sudo_cv_func_isblank" = "yes"; then
17253 cat >>confdefs.h <<\_ACEOF
17254 #define HAVE_ISBLANK 1
17258 case " $LIBOBJS " in
17259 *" isblank.$ac_objext "* ) ;;
17260 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17272 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17288 #define $ac_func innocuous_$ac_func
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char $ac_func (); below.
17292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293 <limits.h> exists even on freestanding compilers. */
17296 # include <limits.h>
17298 # include <assert.h>
17303 /* Override any GCC internal prototype to avoid an error.
17304 Use char because int might match the return type of a GCC
17305 builtin and then its argument prototype would still apply. */
17310 /* The GNU C library defines this for functions which it implements
17311 to always fail with ENOSYS. Some functions are actually named
17312 something starting with __ and the normal name is an alias. */
17313 #if defined __stub_$ac_func || defined __stub___$ac_func
17320 return $ac_func ();
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332 (eval "$ac_link") 2>conftest.er1
17334 grep -v '^ *+' conftest.er1 >conftest.err
17336 cat conftest.err >&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } && {
17339 test -z "$ac_c_werror_flag" ||
17340 test ! -s conftest.err
17341 } && test -s conftest$ac_exeext &&
17342 $as_test_x conftest$ac_exeext; then
17343 eval "$as_ac_var=yes"
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 eval "$as_ac_var=no"
17351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17352 conftest$ac_exeext conftest.$ac_ext
17354 ac_res=`eval echo '${'$as_ac_var'}'`
17355 { echo "$as_me:$LINENO: result: $ac_res" >&5
17356 echo "${ECHO_T}$ac_res" >&6; }
17357 if test `eval echo '${'$as_ac_var'}'` = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17363 case " $LIBOBJS " in
17364 *" $ac_func.$ac_objext "* ) ;;
17365 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17374 for ac_func in closefrom
17376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17390 #define $ac_func innocuous_$ac_func
17392 /* System header to define __stub macros and hopefully few prototypes,
17393 which can conflict with char $ac_func (); below.
17394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17395 <limits.h> exists even on freestanding compilers. */
17398 # include <limits.h>
17400 # include <assert.h>
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17412 /* The GNU C library defines this for functions which it implements
17413 to always fail with ENOSYS. Some functions are actually named
17414 something starting with __ and the normal name is an alias. */
17415 #if defined __stub_$ac_func || defined __stub___$ac_func
17422 return $ac_func ();
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_link") 2>conftest.er1
17436 grep -v '^ *+' conftest.er1 >conftest.err
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && {
17441 test -z "$ac_c_werror_flag" ||
17442 test ! -s conftest.err
17443 } && test -s conftest$ac_exeext &&
17444 $as_test_x conftest$ac_exeext; then
17445 eval "$as_ac_var=yes"
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 eval "$as_ac_var=no"
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454 conftest$ac_exeext conftest.$ac_ext
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457 { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17465 case " $LIBOBJS " in
17466 *" closefrom.$ac_objext "* ) ;;
17467 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17471 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17472 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17473 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 #include <limits.h>
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_compile") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest.$ac_objext; then
17513 ac_cv_have_decl_F_CLOSEM=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_have_decl_F_CLOSEM=no
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17524 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17525 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_FCNTL_CLOSEM 1
17537 for ac_func in mkstemp
17539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17553 #define $ac_func innocuous_$ac_func
17555 /* System header to define __stub macros and hopefully few prototypes,
17556 which can conflict with char $ac_func (); below.
17557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17558 <limits.h> exists even on freestanding compilers. */
17561 # include <limits.h>
17563 # include <assert.h>
17568 /* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17575 /* The GNU C library defines this for functions which it implements
17576 to always fail with ENOSYS. Some functions are actually named
17577 something starting with __ and the normal name is an alias. */
17578 #if defined __stub_$ac_func || defined __stub___$ac_func
17585 return $ac_func ();
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>conftest.er1
17599 grep -v '^ *+' conftest.er1 >conftest.err
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } && {
17604 test -z "$ac_c_werror_flag" ||
17605 test ! -s conftest.err
17606 } && test -s conftest$ac_exeext &&
17607 $as_test_x conftest$ac_exeext; then
17608 eval "$as_ac_var=yes"
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 eval "$as_ac_var=no"
17616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17617 conftest$ac_exeext conftest.$ac_ext
17619 ac_res=`eval echo '${'$as_ac_var'}'`
17620 { echo "$as_me:$LINENO: result: $ac_res" >&5
17621 echo "${ECHO_T}$ac_res" >&6; }
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623 cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17628 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17631 for ac_func in random lrand48
17633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17647 #define $ac_func innocuous_$ac_func
17649 /* System header to define __stub macros and hopefully few prototypes,
17650 which can conflict with char $ac_func (); below.
17651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652 <limits.h> exists even on freestanding compilers. */
17655 # include <limits.h>
17657 # include <assert.h>
17662 /* Override any GCC internal prototype to avoid an error.
17663 Use char because int might match the return type of a GCC
17664 builtin and then its argument prototype would still apply. */
17669 /* The GNU C library defines this for functions which it implements
17670 to always fail with ENOSYS. Some functions are actually named
17671 something starting with __ and the normal name is an alias. */
17672 #if defined __stub_$ac_func || defined __stub___$ac_func
17679 return $ac_func ();
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_link") 2>conftest.er1
17693 grep -v '^ *+' conftest.er1 >conftest.err
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest$ac_exeext &&
17701 $as_test_x conftest$ac_exeext; then
17702 eval "$as_ac_var=yes"
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 eval "$as_ac_var=no"
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711 conftest$ac_exeext conftest.$ac_ext
17713 ac_res=`eval echo '${'$as_ac_var'}'`
17714 { echo "$as_me:$LINENO: result: $ac_res" >&5
17715 echo "${ECHO_T}$ac_res" >&6; }
17716 if test `eval echo '${'$as_ac_var'}'` = yes; then
17717 cat >>confdefs.h <<_ACEOF
17718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17732 for ac_func in snprintf vsnprintf asprintf vasprintf
17734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 cat >conftest.$ac_ext <<_ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17748 #define $ac_func innocuous_$ac_func
17750 /* System header to define __stub macros and hopefully few prototypes,
17751 which can conflict with char $ac_func (); below.
17752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 <limits.h> exists even on freestanding compilers. */
17756 # include <limits.h>
17758 # include <assert.h>
17763 /* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17770 /* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773 #if defined __stub_$ac_func || defined __stub___$ac_func
17780 return $ac_func ();
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext &&
17802 $as_test_x conftest$ac_exeext; then
17803 eval "$as_ac_var=yes"
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 eval "$as_ac_var=no"
17811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812 conftest$ac_exeext conftest.$ac_ext
17814 ac_res=`eval echo '${'$as_ac_var'}'`
17815 { echo "$as_me:$LINENO: result: $ac_res" >&5
17816 echo "${ECHO_T}$ac_res" >&6; }
17817 if test `eval echo '${'$as_ac_var'}'` = yes; then
17818 cat >>confdefs.h <<_ACEOF
17819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17828 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17829 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17830 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 $ac_includes_default
17843 static struct stat ac_aggr;
17844 if (ac_aggr.st_mtim)
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_compile") 2>conftest.er1
17859 grep -v '^ *+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } && {
17864 test -z "$ac_c_werror_flag" ||
17865 test ! -s conftest.err
17866 } && test -s conftest.$ac_objext; then
17867 ac_cv_member_struct_stat_st_mtim=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17882 static struct stat ac_aggr;
17883 if (sizeof ac_aggr.st_mtim)
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_compile") 2>conftest.er1
17898 grep -v '^ *+' conftest.er1 >conftest.err
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest.$ac_objext; then
17906 ac_cv_member_struct_stat_st_mtim=yes
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ac_cv_member_struct_stat_st_mtim=no
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17920 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17921 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17922 cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_ST_MTIM 1
17926 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17927 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17928 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 $ac_includes_default
17941 static struct stat ac_aggr;
17942 if (ac_aggr.st_mtim.st__tim)
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17965 ac_cv_member_struct_stat_st_mtim_st__tim=yes
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 cat >conftest.$ac_ext <<_ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17980 static struct stat ac_aggr;
17981 if (sizeof ac_aggr.st_mtim.st__tim)
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_cv_member_struct_stat_st_mtim_st__tim=yes
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_cv_member_struct_stat_st_mtim_st__tim=no
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18018 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18019 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_ST__TIM 1
18027 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18028 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18029 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 $ac_includes_default
18042 static struct stat ac_aggr;
18043 if (ac_aggr.st_mtimespec)
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 ac_cv_member_struct_stat_st_mtimespec=yes
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 cat >conftest.$ac_ext <<_ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 $ac_includes_default
18081 static struct stat ac_aggr;
18082 if (sizeof ac_aggr.st_mtimespec)
18088 rm -f conftest.$ac_objext
18089 if { (ac_try="$ac_compile"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest.$ac_objext; then
18105 ac_cv_member_struct_stat_st_mtimespec=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_cv_member_struct_stat_st_mtimespec=no
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18120 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18121 cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_ST_MTIMESPEC 1
18129 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18130 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 #include <sys/types.h>
18138 #include <sys/time.h>
18142 struct timespec ts1, ts2;
18143 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18144 #ifndef timespecsub
18145 #error missing timespecsub
18147 timespecsub(&ts1, &ts2);
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_compile") 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest.$ac_objext; then
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_TIMESPECSUB2 1
18173 { echo "$as_me:$LINENO: result: yes" >&5
18174 echo "${ECHO_T}yes" >&6; }
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <sys/types.h>
18192 #include <$ac_header_dirent>
18196 DIR *d; (void)dirfd(d);
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (ac_try="$ac_link"
18203 case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_link") 2>conftest.er1
18210 grep -v '^ *+' conftest.er1 >conftest.err
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } && {
18215 test -z "$ac_c_werror_flag" ||
18216 test ! -s conftest.err
18217 } && test -s conftest$ac_exeext &&
18218 $as_test_x conftest$ac_exeext; then
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_DIRFD 1
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 #include <sys/types.h>
18234 #include <$ac_header_dirent>
18238 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_link") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } && {
18257 test -z "$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 } && test -s conftest$ac_exeext &&
18260 $as_test_x conftest$ac_exeext; then
18261 cat >>confdefs.h <<\_ACEOF
18262 #define HAVE_DD_FD 1
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18273 conftest$ac_exeext conftest.$ac_ext
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277 conftest$ac_exeext conftest.$ac_ext
18278 if test -n "$NEED_SNPRINTF"; then
18279 case " $LIBOBJS " in
18280 *" snprintf.$ac_objext "* ) ;;
18281 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18286 { echo "$as_me:$LINENO: checking for socket" >&5
18287 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18288 if test "${ac_cv_func_socket+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 cat >conftest.$ac_ext <<_ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h. */
18297 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18299 #define socket innocuous_socket
18301 /* System header to define __stub macros and hopefully few prototypes,
18302 which can conflict with char socket (); below.
18303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18304 <limits.h> exists even on freestanding compilers. */
18307 # include <limits.h>
18309 # include <assert.h>
18314 /* Override any GCC internal prototype to avoid an error.
18315 Use char because int might match the return type of a GCC
18316 builtin and then its argument prototype would still apply. */
18321 /* The GNU C library defines this for functions which it implements
18322 to always fail with ENOSYS. Some functions are actually named
18323 something starting with __ and the normal name is an alias. */
18324 #if defined __stub_socket || defined __stub___socket
18336 rm -f conftest.$ac_objext conftest$ac_exeext
18337 if { (ac_try="$ac_link"
18338 case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_link") 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest$ac_exeext &&
18353 $as_test_x conftest$ac_exeext; then
18354 ac_cv_func_socket=yes
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 ac_cv_func_socket=no
18362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18363 conftest$ac_exeext conftest.$ac_ext
18365 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18366 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18367 if test $ac_cv_func_socket = yes; then
18370 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18371 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18372 if test "${ac_cv_lib_socket_socket+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18375 ac_check_lib_save_LIBS=$LIBS
18376 LIBS="-lsocket $LIBS"
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18384 /* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_link") 2>conftest.er1
18408 grep -v '^ *+' conftest.er1 >conftest.err
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && {
18413 test -z "$ac_c_werror_flag" ||
18414 test ! -s conftest.err
18415 } && test -s conftest$ac_exeext &&
18416 $as_test_x conftest$ac_exeext; then
18417 ac_cv_lib_socket_socket=yes
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_cv_lib_socket_socket=no
18425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18429 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18430 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18431 if test $ac_cv_lib_socket_socket = yes; then
18432 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18434 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18435 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18436 if test "${ac_cv_lib_inet_socket+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-linet $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_link") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && {
18477 test -z "$ac_c_werror_flag" ||
18478 test ! -s conftest.err
18479 } && test -s conftest$ac_exeext &&
18480 $as_test_x conftest$ac_exeext; then
18481 ac_cv_lib_inet_socket=yes
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 ac_cv_lib_inet_socket=no
18489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18490 conftest$ac_exeext conftest.$ac_ext
18491 LIBS=$ac_check_lib_save_LIBS
18493 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18494 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18495 if test $ac_cv_lib_inet_socket = yes; then
18496 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18498 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18499 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18500 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18501 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18502 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 ac_check_lib_save_LIBS=$LIBS
18506 LIBS="-lsocket -lnsl $LIBS"
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18514 /* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_link") 2>conftest.er1
18538 grep -v '^ *+' conftest.er1 >conftest.err
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest$ac_exeext &&
18546 $as_test_x conftest$ac_exeext; then
18547 ac_cv_lib_socket_socket_lnsl=yes
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_lib_socket_socket_lnsl=no
18555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18559 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18560 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18561 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18562 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18571 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18572 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18573 if test "${ac_cv_func_inet_addr+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define inet_addr innocuous_inet_addr
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char inet_addr (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18592 # include <limits.h>
18594 # include <assert.h>
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined __stub_inet_addr || defined __stub___inet_addr
18616 return inet_addr ();
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 ac_cv_func_inet_addr=yes
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_func_inet_addr=no
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18650 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18651 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18652 if test $ac_cv_func_inet_addr = yes; then
18655 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18656 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18657 if test "${ac_cv_func___inet_addr+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18668 #define __inet_addr innocuous___inet_addr
18670 /* System header to define __stub macros and hopefully few prototypes,
18671 which can conflict with char __inet_addr (); below.
18672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18673 <limits.h> exists even on freestanding compilers. */
18676 # include <limits.h>
18678 # include <assert.h>
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18689 char __inet_addr ();
18690 /* The GNU C library defines this for functions which it implements
18691 to always fail with ENOSYS. Some functions are actually named
18692 something starting with __ and the normal name is an alias. */
18693 #if defined __stub___inet_addr || defined __stub_____inet_addr
18700 return __inet_addr ();
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (ac_try="$ac_link"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_link") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest$ac_exeext &&
18722 $as_test_x conftest$ac_exeext; then
18723 ac_cv_func___inet_addr=yes
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_cv_func___inet_addr=no
18731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18732 conftest$ac_exeext conftest.$ac_ext
18734 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18735 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18736 if test $ac_cv_func___inet_addr = yes; then
18739 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18740 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18763 return inet_addr ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest$ac_exeext &&
18785 $as_test_x conftest$ac_exeext; then
18786 ac_cv_lib_nsl_inet_addr=yes
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_lib_nsl_inet_addr=no
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18796 LIBS=$ac_check_lib_save_LIBS
18798 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18799 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18800 if test $ac_cv_lib_nsl_inet_addr = yes; then
18801 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18803 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18804 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-linet $LIBS"
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18827 return inet_addr ();
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_link") 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && {
18846 test -z "$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18848 } && test -s conftest$ac_exeext &&
18849 $as_test_x conftest$ac_exeext; then
18850 ac_cv_lib_inet_inet_addr=yes
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 ac_cv_lib_inet_inet_addr=no
18858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18863 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18864 if test $ac_cv_lib_inet_inet_addr = yes; then
18865 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18867 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18868 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18869 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18870 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18871 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lsocket -lnsl $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18893 return inet_addr ();
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } && {
18912 test -z "$ac_c_werror_flag" ||
18913 test ! -s conftest.err
18914 } && test -s conftest$ac_exeext &&
18915 $as_test_x conftest$ac_exeext; then
18916 ac_cv_lib_socket_inet_addr_lnsl=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_cv_lib_socket_inet_addr_lnsl=no
18924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18929 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18930 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18931 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18942 { echo "$as_me:$LINENO: checking for syslog" >&5
18943 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18944 if test "${ac_cv_func_syslog+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18955 #define syslog innocuous_syslog
18957 /* System header to define __stub macros and hopefully few prototypes,
18958 which can conflict with char syslog (); below.
18959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18960 <limits.h> exists even on freestanding compilers. */
18963 # include <limits.h>
18965 # include <assert.h>
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18977 /* The GNU C library defines this for functions which it implements
18978 to always fail with ENOSYS. Some functions are actually named
18979 something starting with __ and the normal name is an alias. */
18980 #if defined __stub_syslog || defined __stub___syslog
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 ac_cv_func_syslog=yes
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_func_syslog=no
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19021 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19022 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19023 if test $ac_cv_func_syslog = yes; then
19026 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19027 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19028 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-lsocket $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 ac_cv_lib_socket_syslog=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_lib_socket_syslog=no
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19085 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19086 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19087 if test $ac_cv_lib_socket_syslog = yes; then
19088 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19090 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19091 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_check_lib_save_LIBS=$LIBS
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest$ac_exeext &&
19136 $as_test_x conftest$ac_exeext; then
19137 ac_cv_lib_nsl_syslog=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_lib_nsl_syslog=no
19145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19146 conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19150 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19151 if test $ac_cv_lib_nsl_syslog = yes; then
19152 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19154 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19155 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19156 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-linet $LIBS"
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19168 /* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_link") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest$ac_exeext &&
19200 $as_test_x conftest$ac_exeext; then
19201 ac_cv_lib_inet_syslog=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_lib_inet_syslog=no
19209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19210 conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19214 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19215 if test $ac_cv_lib_inet_syslog = yes; then
19216 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19226 for ac_func in getprogname
19228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19242 #define $ac_func innocuous_$ac_func
19244 /* System header to define __stub macros and hopefully few prototypes,
19245 which can conflict with char $ac_func (); below.
19246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19247 <limits.h> exists even on freestanding compilers. */
19250 # include <limits.h>
19252 # include <assert.h>
19257 /* Override any GCC internal prototype to avoid an error.
19258 Use char because int might match the return type of a GCC
19259 builtin and then its argument prototype would still apply. */
19264 /* The GNU C library defines this for functions which it implements
19265 to always fail with ENOSYS. Some functions are actually named
19266 something starting with __ and the normal name is an alias. */
19267 #if defined __stub_$ac_func || defined __stub___$ac_func
19274 return $ac_func ();
19279 rm -f conftest.$ac_objext conftest$ac_exeext
19280 if { (ac_try="$ac_link"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_link") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && {
19293 test -z "$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 } && test -s conftest$ac_exeext &&
19296 $as_test_x conftest$ac_exeext; then
19297 eval "$as_ac_var=yes"
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 eval "$as_ac_var=no"
19305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19306 conftest$ac_exeext conftest.$ac_ext
19308 ac_res=`eval echo '${'$as_ac_var'}'`
19309 { echo "$as_me:$LINENO: result: $ac_res" >&5
19310 echo "${ECHO_T}$ac_res" >&6; }
19311 if test `eval echo '${'$as_ac_var'}'` = yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19318 { echo "$as_me:$LINENO: checking for __progname" >&5
19319 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19320 if test "${sudo_cv___progname+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19334 extern char *__progname; (void)puts(__progname);
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_link") 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest$ac_exeext &&
19356 $as_test_x conftest$ac_exeext; then
19357 sudo_cv___progname=yes
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 sudo_cv___progname=no
19365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19366 conftest$ac_exeext conftest.$ac_ext
19369 if test "$sudo_cv___progname" = "yes"; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE___PROGNAME 1
19375 case " $LIBOBJS " in
19376 *" getprogname.$ac_objext "* ) ;;
19377 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19382 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19383 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19390 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19391 for auth in $AUTH_EXCL_DEF; do
19393 AIX_AUTH) with_aixauth=maybe;;
19394 BSD_AUTH) with_bsdauth=maybe;;
19395 PAM) with_pam=maybe;;
19396 SIA) CHECKSIA=true;;
19401 if test ${with_pam-"no"} != "no"; then
19402 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19403 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_dl_main+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (ac_try="$ac_link"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_link") 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && {
19439 test -z "$ac_c_werror_flag" ||
19440 test ! -s conftest.err
19441 } && test -s conftest$ac_exeext &&
19442 $as_test_x conftest$ac_exeext; then
19443 ac_cv_lib_dl_main=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_lib_dl_main=no
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19456 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19457 if test $ac_cv_lib_dl_main = yes; then
19458 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19460 SUDO_LIBS="${SUDO_LIBS} -lpam"
19463 ac_cv_lib_dl=ac_cv_lib_dl_main
19467 for ac_header in security/pam_appl.h pam/pam_appl.h
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477 { echo "$as_me:$LINENO: result: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19480 # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 $ac_includes_default
19490 #include <$ac_header>
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest.$ac_objext; then
19509 ac_header_compiler=yes
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_header_compiler=no
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19519 echo "${ECHO_T}$ac_header_compiler" >&6; }
19521 # Is the header present?
19522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19524 cat >conftest.$ac_ext <<_ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 #include <$ac_header>
19532 if { (ac_try="$ac_cpp conftest.$ac_ext"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } >/dev/null && {
19545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19548 ac_header_preproc=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_header_preproc=no
19556 rm -f conftest.err conftest.$ac_ext
19557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558 echo "${ECHO_T}$ac_header_preproc" >&6; }
19560 # So? What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19567 ac_header_preproc=yes
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 eval "$as_ac_Header=\$ac_header_preproc"
19592 ac_res=`eval echo '${'$as_ac_Header'}'`
19593 { echo "$as_me:$LINENO: result: $ac_res" >&5
19594 echo "${ECHO_T}$ac_res" >&6; }
19597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19598 cat >>confdefs.h <<_ACEOF
19599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19601 with_pam=yes; break
19606 if test "$with_pam" = "yes"; then
19607 cat >>confdefs.h <<\_ACEOF
19611 AUTH_OBJS="$AUTH_OBJS pam.o";
19613 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19614 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19615 # Check whether --enable-pam_session was given.
19616 if test "${enable_pam_session+set}" = set; then
19617 enableval=$enable_pam_session; case "$enableval" in
19618 yes) { echo "$as_me:$LINENO: result: yes" >&5
19619 echo "${ECHO_T}yes" >&6; }
19621 no) { echo "$as_me:$LINENO: result: no" >&5
19622 echo "${ECHO_T}no" >&6; }
19624 cat >>confdefs.h <<\_ACEOF
19625 #define NO_PAM_SESSION
19629 *) { echo "$as_me:$LINENO: result: no" >&5
19630 echo "${ECHO_T}no" >&6; }
19631 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19632 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19636 { echo "$as_me:$LINENO: result: yes" >&5
19637 echo "${ECHO_T}yes" >&6; }
19641 *-*-linux*|*-*-solaris*)
19642 # dgettext() may be defined to dgettext_libintl in the
19643 # header file, so first check that it links w/ additional
19644 # libs, then try with -lintl
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <libintl.h>
19655 (void)dgettext((char *)0, (char *)0);
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (ac_try="$ac_link"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_link") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest$ac_exeext &&
19677 $as_test_x conftest$ac_exeext; then
19678 cat >>confdefs.h <<\_ACEOF
19679 #define HAVE_DGETTEXT 1
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19687 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19688 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lintl $LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19710 return dgettext ();
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_link") 2>conftest.er1
19724 grep -v '^ *+' conftest.er1 >conftest.err
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest$ac_exeext &&
19732 $as_test_x conftest$ac_exeext; then
19733 ac_cv_lib_intl_dgettext=yes
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 ac_cv_lib_intl_dgettext=no
19741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19742 conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19746 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19747 if test $ac_cv_lib_intl_dgettext = yes; then
19748 LIBS="${LIBS} -lintl"
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_DGETTEXT 1
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19764 if test ${with_aixauth-'no'} != "no"; then
19765 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19766 { echo "$as_me:$LINENO: using AIX general authentication" >&5
19767 echo "$as_me: using AIX general authentication" >&6;}
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_AIXAUTH 1
19772 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19773 SUDO_LIBS="${SUDO_LIBS} -ls"
19778 if test ${with_bsdauth-'no'} != "no"; then
19779 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19780 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19781 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19782 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19786 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19788 # Is the header compilable?
19789 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19790 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19798 #include <bsd_auth.h>
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest.$ac_objext; then
19817 ac_header_compiler=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_header_compiler=no
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6; }
19829 # Is the header present?
19830 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19831 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 #include <bsd_auth.h>
19840 if { (ac_try="$ac_cpp conftest.$ac_ext"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } >/dev/null && {
19853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19856 ac_header_preproc=yes
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_header_preproc=no
19864 rm -f conftest.err conftest.$ac_ext
19865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6; }
19868 # So? What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19871 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
19875 ac_header_preproc=yes
19878 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
19893 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19894 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19895 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 ac_cv_header_bsd_auth_h=$ac_header_preproc
19900 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19901 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19904 if test $ac_cv_header_bsd_auth_h = yes; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_BSD_AUTH_H 1
19909 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
19910 BSDAUTH_USAGE='[-a auth_type] '
19911 AUTH_EXCL=BSD_AUTH; BAMAN=""
19913 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
19914 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
19915 { (exit 1); exit 1; }; }
19921 if test ${CHECKSIA-'false'} = "true"; then
19923 for ac_func in sia_ses_init
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19947 # include <limits.h>
19949 # include <assert.h>
19954 /* Override any GCC internal prototype to avoid an error.
19955 Use char because int might match the return type of a GCC
19956 builtin and then its argument prototype would still apply. */
19961 /* The GNU C library defines this for functions which it implements
19962 to always fail with ENOSYS. Some functions are actually named
19963 something starting with __ and the normal name is an alias. */
19964 #if defined __stub_$ac_func || defined __stub___$ac_func
19971 return $ac_func ();
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 eval "$as_ac_var=yes"
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 eval "$as_ac_var=no"
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20005 ac_res=`eval echo '${'$as_ac_var'}'`
20006 { echo "$as_me:$LINENO: result: $ac_res" >&5
20007 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_var'}'` = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20018 if test "$found" = "true"; then
20020 AUTH_OBJS="$AUTH_OBJS sia.o"
20024 if test ${with_fwtk-'no'} != "no"; then
20025 if test "$with_fwtk" != "yes"; then
20027 if test X"$with_rpath" = X"yes"; then
20028 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20030 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20032 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20033 blibpath_add="${blibpath_add}:${with_fwtk}"
20036 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20039 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20040 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20043 if test ${with_SecurID-'no'} != "no"; then
20044 if test "$with_SecurID" != "yes"; then
20046 elif test -d /usr/ace/examples; then
20047 with_SecurID=/usr/ace/examples
20049 with_SecurID=/usr/ace
20051 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20052 _LDFLAGS="${LDFLAGS}"
20054 if test X"$with_rpath" = X"yes"; then
20055 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20057 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20059 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20060 blibpath_add="${blibpath_add}:${with_SecurID}"
20064 # Determine whether to use the new or old SecurID API
20066 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20067 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20068 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 ac_check_lib_save_LIBS=$LIBS
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20129 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20130 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20132 AUTH_OBJS="$AUTH_OBJS securid5.o";
20133 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20137 if test X"$with_rpath" = X"yes"; then
20138 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20140 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20142 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20143 blibpath_add="${blibpath_add}:${with_SecurID}"
20149 AUTH_OBJS="$AUTH_OBJS securid.o";
20150 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20154 LDFLAGS="${_LDFLAGS}"
20158 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20159 for auth in $AUTH_DEF; do
20161 passwd) : ${with_passwd='maybe'};;
20166 if test ${with_kerb4-'no'} != "no"; then
20167 cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_KERB4 1
20171 O_LDFLAGS="$LDFLAGS"
20172 if test "$with_kerb4" = "yes"; then
20174 O_CPPFLAGS="$CPPFLAGS"
20175 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20176 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20177 cat >conftest.$ac_ext <<_ACEOF
20180 if { (ac_try="$ac_cpp conftest.$ac_ext"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } >/dev/null && {
20193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -f conftest.err conftest.$ac_ext
20206 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20209 if test X"$with_rpath" = X"yes"; then
20210 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20212 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20214 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20215 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20219 if test X"$with_rpath" = X"yes"; then
20220 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20222 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20224 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20225 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20228 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20229 if test "${ac_cv_header_krb_h+set}" = set; then
20230 { echo "$as_me:$LINENO: checking for krb.h" >&5
20231 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20232 if test "${ac_cv_header_krb_h+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20236 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20238 # Is the header compilable?
20239 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20240 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 $ac_includes_default
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_header_compiler=yes
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_header_compiler=no
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20277 echo "${ECHO_T}$ac_header_compiler" >&6; }
20279 # Is the header present?
20280 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20281 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20290 if { (ac_try="$ac_cpp conftest.$ac_ext"
20291 case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } >/dev/null && {
20303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20306 ac_header_preproc=yes
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_header_preproc=no
20314 rm -f conftest.err conftest.$ac_ext
20315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20316 echo "${ECHO_T}$ac_header_preproc" >&6; }
20318 # So? What about this header?
20319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20321 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20322 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20324 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20325 ac_header_preproc=yes
20328 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20329 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20331 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20333 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20335 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20337 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20339 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20343 { echo "$as_me:$LINENO: checking for krb.h" >&5
20344 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20345 if test "${ac_cv_header_krb_h+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 ac_cv_header_krb_h=$ac_header_preproc
20350 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20351 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20354 if test $ac_cv_header_krb_h = yes; then
20362 if test X"$found" = X"no"; then
20363 { 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
20364 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;}
20367 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20368 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 ac_check_lib_save_LIBS=$LIBS
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20387 char des_cbc_encrypt ();
20391 return des_cbc_encrypt ();
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_des_des_cbc_encrypt=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_des_des_cbc_encrypt=no
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20427 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20428 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20432 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20433 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20434 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldes425 $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20446 /* Override any GCC internal prototype to avoid an error.
20447 Use char because int might match the return type of a GCC
20448 builtin and then its argument prototype would still apply. */
20452 char des_cbc_encrypt ();
20456 return des_cbc_encrypt ();
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext &&
20478 $as_test_x conftest$ac_exeext; then
20479 ac_cv_lib_des425_des_cbc_encrypt=yes
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 ac_cv_lib_des425_des_cbc_encrypt=no
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20491 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20492 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20493 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20502 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20503 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20514 const char *tmp = krb4_version;
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_compile") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest.$ac_objext; then
20537 { echo "$as_me:$LINENO: result: yes" >&5
20538 echo "${ECHO_T}yes" >&6; }
20539 K4LIBS="${K4LIBS} -lcom_err"
20540 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20541 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20542 if test "${ac_cv_lib_roken_main+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 ac_check_lib_save_LIBS=$LIBS
20546 LIBS="-lroken $LIBS"
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (ac_try="$ac_link"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_link") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest$ac_exeext &&
20580 $as_test_x conftest$ac_exeext; then
20581 ac_cv_lib_roken_main=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_cv_lib_roken_main=no
20589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20590 conftest$ac_exeext conftest.$ac_ext
20591 LIBS=$ac_check_lib_save_LIBS
20593 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20594 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20595 if test $ac_cv_lib_roken_main = yes; then
20596 K4LIBS="${K4LIBS} -lroken"
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20605 { echo "$as_me:$LINENO: result: no" >&5
20606 echo "${ECHO_T}no" >&6; }
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20613 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20614 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 ac_check_lib_save_LIBS=$LIBS
20619 LIBS="-lkrb $K4LIBS $LIBS"
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_link") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && {
20650 test -z "$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 } && test -s conftest$ac_exeext &&
20653 $as_test_x conftest$ac_exeext; then
20654 eval "$as_ac_Lib=yes"
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 eval "$as_ac_Lib=no"
20662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20663 conftest$ac_exeext conftest.$ac_ext
20664 LIBS=$ac_check_lib_save_LIBS
20666 ac_res=`eval echo '${'$as_ac_Lib'}'`
20667 { echo "$as_me:$LINENO: result: $ac_res" >&5
20668 echo "${ECHO_T}$ac_res" >&6; }
20669 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20670 K4LIBS="-lkrb $K4LIBS"
20673 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20674 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20675 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 ac_check_lib_save_LIBS=$LIBS
20680 LIBS="-lkrb4 $K4LIBS $LIBS"
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20697 rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (ac_try="$ac_link"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_link") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && {
20711 test -z "$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 } && test -s conftest$ac_exeext &&
20714 $as_test_x conftest$ac_exeext; then
20715 eval "$as_ac_Lib=yes"
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 eval "$as_ac_Lib=no"
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724 conftest$ac_exeext conftest.$ac_ext
20725 LIBS=$ac_check_lib_save_LIBS
20727 ac_res=`eval echo '${'$as_ac_Lib'}'`
20728 { echo "$as_me:$LINENO: result: $ac_res" >&5
20729 echo "${ECHO_T}$ac_res" >&6; }
20730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20731 K4LIBS="-lkrb4 $K4LIBS"
20733 K4LIBS="-lkrb $K4LIBS"
20734 { 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
20735 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;}
20742 LDFLAGS="$O_LDFLAGS"
20743 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20744 AUTH_OBJS="$AUTH_OBJS kerb4.o"
20747 if test ${with_kerb5-'no'} != "no"; then
20748 # Extract the first word of "krb5-config", so it can be a program name with args.
20749 set dummy krb5-config; ac_word=$2
20750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20752 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 if test -n "$KRB5CONFIG"; then
20756 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20759 for as_dir in $PATH
20762 test -z "$as_dir" && as_dir=.
20763 for ac_exec_ext in '' $ac_executable_extensions; do
20764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20765 ac_cv_prog_KRB5CONFIG="yes"
20766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20773 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20776 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20777 if test -n "$KRB5CONFIG"; then
20778 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20779 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20781 { echo "$as_me:$LINENO: result: no" >&5
20782 echo "${ECHO_T}no" >&6; }
20786 if test -n "$KRB5CONFIG"; then
20787 cat >>confdefs.h <<\_ACEOF
20788 #define HAVE_KERB5 1
20791 AUTH_OBJS="$AUTH_OBJS kerb5.o"
20792 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20793 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20794 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20795 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20796 cat >conftest.$ac_ext <<_ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20806 const char *tmp = heimdal_version;
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20829 { echo "$as_me:$LINENO: result: yes" >&5
20830 echo "${ECHO_T}yes" >&6; }
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_HEIMDAL 1
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20841 { echo "$as_me:$LINENO: result: no" >&5
20842 echo "${ECHO_T}no" >&6; }
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_KERB5 1
20855 if test "$with_kerb5" = "yes"; then
20857 O_CPPFLAGS="$CPPFLAGS"
20858 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
20859 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20860 cat >conftest.$ac_ext <<_ACEOF
20863 if { (ac_try="$ac_cpp conftest.$ac_ext"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } >/dev/null && {
20876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20887 rm -f conftest.err conftest.$ac_ext
20889 if test X"$found" = X"no"; then
20890 CPPFLAGS="$O_CPPFLAGS"
20891 { 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
20892 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;}
20896 if test X"$with_rpath" = X"yes"; then
20897 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
20899 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
20901 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20902 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
20905 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
20908 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20909 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20920 const char *tmp = heimdal_version;
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20943 { echo "$as_me:$LINENO: result: yes" >&5
20944 echo "${ECHO_T}yes" >&6; }
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_HEIMDAL 1
20949 # XXX - need to check whether -lcrypo is needed!
20950 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
20951 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20952 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_roken_main+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-lroken $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (ac_try="$ac_link"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_link") 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && {
20988 test -z "$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 } && test -s conftest$ac_exeext &&
20991 $as_test_x conftest$ac_exeext; then
20992 ac_cv_lib_roken_main=yes
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_cv_lib_roken_main=no
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21004 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21005 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21006 if test $ac_cv_lib_roken_main = yes; then
21007 SUDO_LIBS="${SUDO_LIBS} -lroken"
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21016 { echo "$as_me:$LINENO: result: no" >&5
21017 echo "${ECHO_T}no" >&6; }
21018 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21019 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21020 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21021 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 ac_check_lib_save_LIBS=$LIBS
21025 LIBS="-lkrb5support $LIBS"
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21059 $as_test_x conftest$ac_exeext; then
21060 ac_cv_lib_krb5support_main=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_lib_krb5support_main=no
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069 conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21072 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21073 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21074 if test $ac_cv_lib_krb5support_main = yes; then
21075 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21084 LIBS="${LIBS} ${SUDO_LIBS}"
21088 for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
21090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21104 #define $ac_func innocuous_$ac_func
21106 /* System header to define __stub macros and hopefully few prototypes,
21107 which can conflict with char $ac_func (); below.
21108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21109 <limits.h> exists even on freestanding compilers. */
21112 # include <limits.h>
21114 # include <assert.h>
21119 /* Override any GCC internal prototype to avoid an error.
21120 Use char because int might match the return type of a GCC
21121 builtin and then its argument prototype would still apply. */
21126 /* The GNU C library defines this for functions which it implements
21127 to always fail with ENOSYS. Some functions are actually named
21128 something starting with __ and the normal name is an alias. */
21129 #if defined __stub_$ac_func || defined __stub___$ac_func
21136 return $ac_func ();
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148 (eval "$ac_link") 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest$ac_exeext &&
21158 $as_test_x conftest$ac_exeext; then
21159 eval "$as_ac_var=yes"
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 eval "$as_ac_var=no"
21167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21168 conftest$ac_exeext conftest.$ac_ext
21170 ac_res=`eval echo '${'$as_ac_var'}'`
21171 { echo "$as_me:$LINENO: result: $ac_res" >&5
21172 echo "${ECHO_T}$ac_res" >&6; }
21173 if test `eval echo '${'$as_ac_var'}'` = yes; then
21174 cat >>confdefs.h <<_ACEOF
21175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21181 { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
21182 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
21183 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 cat >conftest.$ac_ext <<_ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21198 krb5_context context = NULL;
21199 krb5_get_init_creds_opt *opts = NULL;
21200 krb5_get_init_creds_opt_free(context, opts);
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21223 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21237 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21238 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21239 cat >>confdefs.h <<\_ACEOF
21240 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21247 if test ${with_AFS-'no'} = "yes"; then
21249 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21250 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21251 for i in $AFSLIBDIRS; do
21252 if test -d ${i}; then
21254 if test X"$with_rpath" = X"yes"; then
21255 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21257 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21259 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21260 blibpath_add="${blibpath_add}:$i"
21263 FOUND_AFSLIBDIR=true
21266 if test -z "$FOUND_AFSLIBDIR"; then
21267 { 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
21268 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;}
21271 # Order is important here. Note that we build AFS_LIBS from right to left
21272 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21273 AFS_LIBS="-laudit ${AFS_LIBS}"
21274 for i in $AFSLIBDIRS; do
21275 if test -f ${i}/util.a; then
21276 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21281 if test -z "$FOUND_UTIL_A"; then
21282 AFS_LIBS="-lutil ${AFS_LIBS}"
21284 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21286 # AFS includes may live in /usr/include on some machines...
21287 for i in /usr/afsws/include; do
21288 if test -d ${i}; then
21289 CPPFLAGS="${CPPFLAGS} -I${i}"
21290 FOUND_AFSINCDIR=true
21294 if test -z "$FOUND_AFSLIBDIR"; then
21295 { 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
21296 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;}
21299 AUTH_OBJS="$AUTH_OBJS afs.o"
21302 if test ${with_DCE-'no'} = "yes"; then
21303 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21304 SUDO_LIBS="${SUDO_LIBS} -ldce"
21305 AUTH_OBJS="$AUTH_OBJS dce.o"
21308 if test ${with_skey-'no'} = "yes"; then
21309 O_LDFLAGS="$LDFLAGS"
21310 if test "$with_skey" != "yes"; then
21311 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21313 if test X"$with_rpath" = X"yes"; then
21314 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21316 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21318 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21319 blibpath_add="${blibpath_add}:${with_skey}/lib"
21323 if test X"$with_rpath" = X"yes"; then
21324 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21326 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21328 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21329 blibpath_add="${blibpath_add}:${with_skey}/lib"
21332 cat >conftest.$ac_ext <<_ACEOF
21335 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21359 rm -f conftest.err conftest.$ac_ext
21362 O_CPPFLAGS="$CPPFLAGS"
21363 for dir in "" "/usr/local" "/usr/contrib"; do
21364 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21365 cat >conftest.$ac_ext <<_ACEOF
21368 if { (ac_try="$ac_cpp conftest.$ac_ext"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21376 grep -v '^ *+' conftest.er1 >conftest.err
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } >/dev/null && {
21381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21382 test ! -s conftest.err
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21392 rm -f conftest.err conftest.$ac_ext
21394 if test "$found" = "no" -o -z "$dir"; then
21395 CPPFLAGS="$O_CPPFLAGS"
21398 if test X"$with_rpath" = X"yes"; then
21399 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21401 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21403 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21404 blibpath_add="${blibpath_add}:${dir}/lib"
21408 if test X"$with_rpath" = X"yes"; then
21409 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21411 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21413 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21414 blibpath_add="${blibpath_add}:${dir}/lib"
21419 if test "$found" = "no"; then
21420 { 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
21421 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;}
21423 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21424 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21425 if test "${ac_cv_lib_skey_main+set}" = set; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 ac_check_lib_save_LIBS=$LIBS
21429 LIBS="-lskey $LIBS"
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_link") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest$ac_exeext &&
21463 $as_test_x conftest$ac_exeext; then
21464 ac_cv_lib_skey_main=yes
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 ac_cv_lib_skey_main=no
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473 conftest$ac_exeext conftest.$ac_ext
21474 LIBS=$ac_check_lib_save_LIBS
21476 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21477 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21478 if test $ac_cv_lib_skey_main = yes; then
21481 { 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
21482 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;}
21485 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21486 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21487 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-lskey $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 /* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21505 char skeyaccess ();
21509 return skeyaccess ();
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_link") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest$ac_exeext &&
21531 $as_test_x conftest$ac_exeext; then
21532 ac_cv_lib_skey_skeyaccess=yes
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_cv_lib_skey_skeyaccess=no
21540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21541 conftest$ac_exeext conftest.$ac_ext
21542 LIBS=$ac_check_lib_save_LIBS
21544 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21545 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21546 if test $ac_cv_lib_skey_skeyaccess = yes; then
21547 cat >>confdefs.h <<\_ACEOF
21548 #define HAVE_SKEYACCESS 1
21553 LDFLAGS="$O_LDFLAGS"
21554 SUDO_LIBS="${SUDO_LIBS} -lskey"
21555 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21558 if test ${with_opie-'no'} = "yes"; then
21559 O_LDFLAGS="$LDFLAGS"
21560 if test "$with_opie" != "yes"; then
21561 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21563 if test X"$with_rpath" = X"yes"; then
21564 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21566 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21568 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21569 blibpath_add="${blibpath_add}:${with_opie}/lib"
21573 if test X"$with_rpath" = X"yes"; then
21574 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21576 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21578 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21579 blibpath_add="${blibpath_add}:${with_opie}/lib"
21582 cat >conftest.$ac_ext <<_ACEOF
21585 if { (ac_try="$ac_cpp conftest.$ac_ext"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev/null && {
21598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21609 rm -f conftest.err conftest.$ac_ext
21612 O_CPPFLAGS="$CPPFLAGS"
21613 for dir in "" "/usr/local" "/usr/contrib"; do
21614 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21615 cat >conftest.$ac_ext <<_ACEOF
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } >/dev/null && {
21631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21642 rm -f conftest.err conftest.$ac_ext
21644 if test "$found" = "no" -o -z "$dir"; then
21645 CPPFLAGS="$O_CPPFLAGS"
21648 if test X"$with_rpath" = X"yes"; then
21649 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21651 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21653 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21654 blibpath_add="${blibpath_add}:${dir}/lib"
21658 if test X"$with_rpath" = X"yes"; then
21659 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21661 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21663 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21664 blibpath_add="${blibpath_add}:${dir}/lib"
21669 if test "$found" = "no"; then
21670 { 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
21671 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;}
21673 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21674 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21675 if test "${ac_cv_lib_opie_main+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 ac_check_lib_save_LIBS=$LIBS
21679 LIBS="-lopie $LIBS"
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21696 rm -f conftest.$ac_objext conftest$ac_exeext
21697 if { (ac_try="$ac_link"
21698 case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_link") 2>conftest.er1
21705 grep -v '^ *+' conftest.er1 >conftest.err
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } && {
21710 test -z "$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21712 } && test -s conftest$ac_exeext &&
21713 $as_test_x conftest$ac_exeext; then
21714 ac_cv_lib_opie_main=yes
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_cv_lib_opie_main=no
21722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21723 conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21726 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21727 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21728 if test $ac_cv_lib_opie_main = yes; then
21731 { 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
21732 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;}
21735 LDFLAGS="$O_LDFLAGS"
21736 SUDO_LIBS="${SUDO_LIBS} -lopie"
21737 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21740 if test ${with_passwd-'no'} != "no"; then
21741 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21742 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21743 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21744 if test "${ac_cv_search_crypt+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 ac_func_search_save_LIBS=$LIBS
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21755 /* Override any GCC internal prototype to avoid an error.
21756 Use char because int might match the return type of a GCC
21757 builtin and then its argument prototype would still apply. */
21770 for ac_lib in '' crypt crypt_d ufc; do
21771 if test -z "$ac_lib"; then
21772 ac_res="none required"
21775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_link") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } && {
21791 test -z "$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 } && test -s conftest$ac_exeext &&
21794 $as_test_x conftest$ac_exeext; then
21795 ac_cv_search_crypt=$ac_res
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21805 if test "${ac_cv_search_crypt+set}" = set; then
21809 if test "${ac_cv_search_crypt+set}" = set; then
21812 ac_cv_search_crypt=no
21814 rm conftest.$ac_ext
21815 LIBS=$ac_func_search_save_LIBS
21817 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21818 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21819 ac_res=$ac_cv_search_crypt
21820 if test "$ac_res" != no; then
21821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21822 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21827 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21829 LIBS="$LIBS $shadow_libs"
21832 for ac_func in $shadow_funcs
21834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21848 #define $ac_func innocuous_$ac_func
21850 /* System header to define __stub macros and hopefully few prototypes,
21851 which can conflict with char $ac_func (); below.
21852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853 <limits.h> exists even on freestanding compilers. */
21856 # include <limits.h>
21858 # include <assert.h>
21863 /* Override any GCC internal prototype to avoid an error.
21864 Use char because int might match the return type of a GCC
21865 builtin and then its argument prototype would still apply. */
21870 /* The GNU C library defines this for functions which it implements
21871 to always fail with ENOSYS. Some functions are actually named
21872 something starting with __ and the normal name is an alias. */
21873 #if defined __stub_$ac_func || defined __stub___$ac_func
21880 return $ac_func ();
21885 rm -f conftest.$ac_objext conftest$ac_exeext
21886 if { (ac_try="$ac_link"
21887 case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_link") 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest$ac_exeext &&
21902 $as_test_x conftest$ac_exeext; then
21903 eval "$as_ac_var=yes"
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 eval "$as_ac_var=no"
21911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21912 conftest$ac_exeext conftest.$ac_ext
21914 ac_res=`eval echo '${'$as_ac_var'}'`
21915 { echo "$as_me:$LINENO: result: $ac_res" >&5
21916 echo "${ECHO_T}$ac_res" >&6; }
21917 if test `eval echo '${'$as_ac_var'}'` = yes; then
21918 cat >>confdefs.h <<_ACEOF
21919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21925 if test "$found" = "yes"; then
21926 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
21927 elif test -n "$shadow_libs_optional"; then
21928 LIBS="$LIBS $shadow_libs_optional"
21930 for ac_func in $shadow_funcs
21932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21946 #define $ac_func innocuous_$ac_func
21948 /* System header to define __stub macros and hopefully few prototypes,
21949 which can conflict with char $ac_func (); below.
21950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21951 <limits.h> exists even on freestanding compilers. */
21954 # include <limits.h>
21956 # include <assert.h>
21961 /* Override any GCC internal prototype to avoid an error.
21962 Use char because int might match the return type of a GCC
21963 builtin and then its argument prototype would still apply. */
21968 /* The GNU C library defines this for functions which it implements
21969 to always fail with ENOSYS. Some functions are actually named
21970 something starting with __ and the normal name is an alias. */
21971 #if defined __stub_$ac_func || defined __stub___$ac_func
21978 return $ac_func ();
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_link") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest$ac_exeext &&
22000 $as_test_x conftest$ac_exeext; then
22001 eval "$as_ac_var=yes"
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 eval "$as_ac_var=no"
22009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22010 conftest$ac_exeext conftest.$ac_ext
22012 ac_res=`eval echo '${'$as_ac_var'}'`
22013 { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015 if test `eval echo '${'$as_ac_var'}'` = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22023 if test "$found" = "yes"; then
22024 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22027 if test "$found" = "yes"; then
22028 case "$shadow_funcs" in
22029 *getprpwnam*) SECUREWARE=1;;
22031 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22037 if test "$CHECKSHADOW" = "true"; then
22038 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22039 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22040 if test "${ac_cv_search_getspnam+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 ac_func_search_save_LIBS=$LIBS
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22051 /* Override any GCC internal prototype to avoid an error.
22052 Use char because int might match the return type of a GCC
22053 builtin and then its argument prototype would still apply. */
22061 return getspnam ();
22066 for ac_lib in '' gen; do
22067 if test -z "$ac_lib"; then
22068 ac_res="none required"
22071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_link") 2>conftest.er1
22082 grep -v '^ *+' conftest.er1 >conftest.err
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } && {
22087 test -z "$ac_c_werror_flag" ||
22088 test ! -s conftest.err
22089 } && test -s conftest$ac_exeext &&
22090 $as_test_x conftest$ac_exeext; then
22091 ac_cv_search_getspnam=$ac_res
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22101 if test "${ac_cv_search_getspnam+set}" = set; then
22105 if test "${ac_cv_search_getspnam+set}" = set; then
22108 ac_cv_search_getspnam=no
22110 rm conftest.$ac_ext
22111 LIBS=$ac_func_search_save_LIBS
22113 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22114 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22115 ac_res=$ac_cv_search_getspnam
22116 if test "$ac_res" != no; then
22117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22118 cat >>confdefs.h <<\_ACEOF
22119 #define HAVE_GETSPNAM 1
22121 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22125 if test "$CHECKSHADOW" = "true"; then
22126 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22127 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22128 if test "${ac_cv_search_getprpwnam+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 ac_func_search_save_LIBS=$LIBS
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22139 /* Override any GCC internal prototype to avoid an error.
22140 Use char because int might match the return type of a GCC
22141 builtin and then its argument prototype would still apply. */
22145 char getprpwnam ();
22149 return getprpwnam ();
22154 for ac_lib in '' sec security prot; do
22155 if test -z "$ac_lib"; then
22156 ac_res="none required"
22159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_link") 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } && {
22175 test -z "$ac_c_werror_flag" ||
22176 test ! -s conftest.err
22177 } && test -s conftest$ac_exeext &&
22178 $as_test_x conftest$ac_exeext; then
22179 ac_cv_search_getprpwnam=$ac_res
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 if test "${ac_cv_search_getprpwnam+set}" = set; then
22193 if test "${ac_cv_search_getprpwnam+set}" = set; then
22196 ac_cv_search_getprpwnam=no
22198 rm conftest.$ac_ext
22199 LIBS=$ac_func_search_save_LIBS
22201 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22202 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22203 ac_res=$ac_cv_search_getprpwnam
22204 if test "$ac_res" != no; then
22205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22206 cat >>confdefs.h <<\_ACEOF
22207 #define HAVE_GETPRPWNAM 1
22209 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22213 if test -n "$SECUREWARE"; then
22217 for ac_func in bigcrypt set_auth_parameters initprivs
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233 #define $ac_func innocuous_$ac_func
22235 /* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22241 # include <limits.h>
22243 # include <assert.h>
22248 /* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 return $ac_func ();
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_link") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext &&
22287 $as_test_x conftest$ac_exeext; then
22288 eval "$as_ac_var=yes"
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 eval "$as_ac_var=no"
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297 conftest$ac_exeext conftest.$ac_ext
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 AUTH_OBJS="$AUTH_OBJS secureware.o"
22314 if test ${with_ldap-'no'} != "no"; then
22315 _LDFLAGS="$LDFLAGS"
22316 if test "$with_ldap" != "yes"; then
22318 if test X"$with_rpath" = X"yes"; then
22319 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22321 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22323 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22324 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22328 if test X"$with_rpath" = X"yes"; then
22329 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22331 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22333 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22334 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22337 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22341 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22343 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22344 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22348 for l in -lldap -llber '-lssl -lcrypto'; do
22350 LDAP_LIBS="${LDAP_LIBS} $l"
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <sys/types.h>
22363 (void)ldap_init(0, 0)
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && {
22382 test -z "$ac_c_werror_flag" ||
22383 test ! -s conftest.err
22384 } && test -s conftest$ac_exeext &&
22385 $as_test_x conftest$ac_exeext; then
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395 conftest$ac_exeext conftest.$ac_ext
22397 if test "$found" = "no"; then
22398 LIBS="${_LIBS} -lldap"
22400 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22401 echo "${ECHO_T}not found, using -lldap" >&6; }
22403 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22404 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22407 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22408 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22409 if test "${ac_cv_search_ber_set_option+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 ac_func_search_save_LIBS=$LIBS
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22420 /* Override any GCC internal prototype to avoid an error.
22421 Use char because int might match the return type of a GCC
22422 builtin and then its argument prototype would still apply. */
22426 char ber_set_option ();
22430 return ber_set_option ();
22435 for ac_lib in '' lber; do
22436 if test -z "$ac_lib"; then
22437 ac_res="none required"
22440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext &&
22459 $as_test_x conftest$ac_exeext; then
22460 ac_cv_search_ber_set_option=$ac_res
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 if test "${ac_cv_search_ber_set_option+set}" = set; then
22474 if test "${ac_cv_search_ber_set_option+set}" = set; then
22477 ac_cv_search_ber_set_option=no
22479 rm conftest.$ac_ext
22480 LIBS=$ac_func_search_save_LIBS
22482 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22483 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22484 ac_res=$ac_cv_search_ber_set_option
22485 if test "$ac_res" != no; then
22486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22492 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22493 LDAP_LIBS="$LDAP_LIBS -llber"
22495 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22496 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <sys/types.h>
22508 (void)ldap_init(0, 0)
22513 rm -f conftest.$ac_objext conftest$ac_exeext
22514 if { (ac_try="$ac_link"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_link") 2>conftest.er1
22522 grep -v '^ *+' conftest.er1 >conftest.err
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest$ac_exeext &&
22530 $as_test_x conftest$ac_exeext; then
22531 { echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6; }
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22538 { echo "$as_me:$LINENO: result: yes" >&5
22539 echo "${ECHO_T}yes" >&6; }
22540 cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_LBER_H 1
22546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22547 conftest$ac_exeext conftest.$ac_ext
22559 for ac_func in ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s
22561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22575 #define $ac_func innocuous_$ac_func
22577 /* System header to define __stub macros and hopefully few prototypes,
22578 which can conflict with char $ac_func (); below.
22579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22580 <limits.h> exists even on freestanding compilers. */
22583 # include <limits.h>
22585 # include <assert.h>
22590 /* Override any GCC internal prototype to avoid an error.
22591 Use char because int might match the return type of a GCC
22592 builtin and then its argument prototype would still apply. */
22597 /* The GNU C library defines this for functions which it implements
22598 to always fail with ENOSYS. Some functions are actually named
22599 something starting with __ and the normal name is an alias. */
22600 #if defined __stub_$ac_func || defined __stub___$ac_func
22607 return $ac_func ();
22612 rm -f conftest.$ac_objext conftest$ac_exeext
22613 if { (ac_try="$ac_link"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_link") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest$ac_exeext &&
22629 $as_test_x conftest$ac_exeext; then
22630 eval "$as_ac_var=yes"
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 eval "$as_ac_var=no"
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639 conftest$ac_exeext conftest.$ac_ext
22641 ac_res=`eval echo '${'$as_ac_var'}'`
22642 { echo "$as_me:$LINENO: result: $ac_res" >&5
22643 echo "${ECHO_T}$ac_res" >&6; }
22644 if test `eval echo '${'$as_ac_var'}'` = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22653 for ac_header in sasl/sasl.h
22655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 ac_res=`eval echo '${'$as_ac_Header'}'`
22663 { echo "$as_me:$LINENO: result: $ac_res" >&5
22664 echo "${ECHO_T}$ac_res" >&6; }
22666 # Is the header compilable?
22667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675 $ac_includes_default
22676 #include <$ac_header>
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_header_compiler=yes
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_header_compiler=no
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22705 echo "${ECHO_T}$ac_header_compiler" >&6; }
22707 # Is the header present?
22708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include <$ac_header>
22718 if { (ac_try="$ac_cpp conftest.$ac_ext"
22719 case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } >/dev/null && {
22731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22732 test ! -s conftest.err
22734 ac_header_preproc=yes
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 ac_header_preproc=no
22742 rm -f conftest.err conftest.$ac_ext
22743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22744 echo "${ECHO_T}$ac_header_preproc" >&6; }
22746 # So? What about this header?
22747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22753 ac_header_preproc=yes
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 eval "$as_ac_Header=\$ac_header_preproc"
22778 ac_res=`eval echo '${'$as_ac_Header'}'`
22779 { echo "$as_me:$LINENO: result: $ac_res" >&5
22780 echo "${ECHO_T}$ac_res" >&6; }
22783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22784 cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22794 for ac_header in ldap_ssl.h mps/ldap_ssl.h
22796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22810 #include <$ac_header>
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 eval "$as_ac_Header=yes"
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 eval "$as_ac_Header=no"
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 ac_res=`eval echo '${'$as_ac_Header'}'`
22840 { echo "$as_me:$LINENO: result: $ac_res" >&5
22841 echo "${ECHO_T}$ac_res" >&6; }
22842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22843 cat >>confdefs.h <<_ACEOF
22844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22852 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
22853 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
22854 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
22855 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22858 ac_check_lib_save_LIBS=$LIBS
22859 LIBS="-lgssapi $LIBS"
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22867 /* Override any GCC internal prototype to avoid an error.
22868 Use char because int might match the return type of a GCC
22869 builtin and then its argument prototype would still apply. */
22873 char gss_krb5_ccache_name ();
22877 return gss_krb5_ccache_name ();
22882 rm -f conftest.$ac_objext conftest$ac_exeext
22883 if { (ac_try="$ac_link"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_link") 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } && {
22896 test -z "$ac_c_werror_flag" ||
22897 test ! -s conftest.err
22898 } && test -s conftest$ac_exeext &&
22899 $as_test_x conftest$ac_exeext; then
22900 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22905 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
22908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22909 conftest$ac_exeext conftest.$ac_ext
22910 LIBS=$ac_check_lib_save_LIBS
22912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
22913 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
22914 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
22915 cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22919 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
22921 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
22922 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
22923 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 ac_check_lib_save_LIBS=$LIBS
22927 LIBS="-lgssapi_krb5 $LIBS"
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22935 /* Override any GCC internal prototype to avoid an error.
22936 Use char because int might match the return type of a GCC
22937 builtin and then its argument prototype would still apply. */
22941 char gss_krb5_ccache_name ();
22945 return gss_krb5_ccache_name ();
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (ac_try="$ac_link"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_link") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest$ac_exeext &&
22967 $as_test_x conftest$ac_exeext; then
22968 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
22976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22977 conftest$ac_exeext conftest.$ac_ext
22978 LIBS=$ac_check_lib_save_LIBS
22980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
22981 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
22982 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22987 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
22994 # gssapi headers may be separate or part of Kerberos V
22996 O_CPPFLAGS="$CPPFLAGS"
22997 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
22998 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
22999 cat >conftest.$ac_ext <<_ACEOF
23000 #include <gssapi/gssapi.h>
23002 if { (ac_try="$ac_cpp conftest.$ac_ext"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } >/dev/null && {
23015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23018 found="gssapi/gssapi.h"; break
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 cat >conftest.$ac_ext <<_ACEOF
23024 #include <gssapi.h>
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } >/dev/null && {
23039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23042 found="gssapi.h"; break
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23050 rm -f conftest.err conftest.$ac_ext
23053 rm -f conftest.err conftest.$ac_ext
23055 if test X"$found" != X"no"; then
23057 for ac_header in $found
23059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23064 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 ac_res=`eval echo '${'$as_ac_Header'}'`
23067 { echo "$as_me:$LINENO: result: $ac_res" >&5
23068 echo "${ECHO_T}$ac_res" >&6; }
23070 # Is the header compilable?
23071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23073 cat >conftest.$ac_ext <<_ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23079 $ac_includes_default
23080 #include <$ac_header>
23082 rm -f conftest.$ac_objext
23083 if { (ac_try="$ac_compile"
23084 case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089 (eval "$ac_compile") 2>conftest.er1
23091 grep -v '^ *+' conftest.er1 >conftest.err
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } && {
23096 test -z "$ac_c_werror_flag" ||
23097 test ! -s conftest.err
23098 } && test -s conftest.$ac_objext; then
23099 ac_header_compiler=yes
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_header_compiler=no
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23109 echo "${ECHO_T}$ac_header_compiler" >&6; }
23111 # Is the header present?
23112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 #include <$ac_header>
23122 if { (ac_try="$ac_cpp conftest.$ac_ext"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } >/dev/null && {
23135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23138 ac_header_preproc=yes
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_header_preproc=no
23146 rm -f conftest.err conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23148 echo "${ECHO_T}$ac_header_preproc" >&6; }
23150 # So? What about this header?
23151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23157 ac_header_preproc=yes
23160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 eval "$as_ac_Header=\$ac_header_preproc"
23182 ac_res=`eval echo '${'$as_ac_Header'}'`
23183 { echo "$as_me:$LINENO: result: $ac_res" >&5
23184 echo "${ECHO_T}$ac_res" >&6; }
23187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23188 cat >>confdefs.h <<_ACEOF
23189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23196 if test X"$found" = X"gssapi/gssapi.h"; then
23198 for ac_header in gssapi/gssapi_krb5.h
23200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208 { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23211 # Is the header compilable?
23212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 $ac_includes_default
23221 #include <$ac_header>
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_header_compiler=yes
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_header_compiler=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250 echo "${ECHO_T}$ac_header_compiler" >&6; }
23252 # Is the header present?
23253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 #include <$ac_header>
23263 if { (ac_try="$ac_cpp conftest.$ac_ext"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } >/dev/null && {
23276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23279 ac_header_preproc=yes
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284 ac_header_preproc=no
23287 rm -f conftest.err conftest.$ac_ext
23288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23289 echo "${ECHO_T}$ac_header_preproc" >&6; }
23291 # So? What about this header?
23292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23298 ac_header_preproc=yes
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 eval "$as_ac_Header=\$ac_header_preproc"
23323 ac_res=`eval echo '${'$as_ac_Header'}'`
23324 { echo "$as_me:$LINENO: result: $ac_res" >&5
23325 echo "${ECHO_T}$ac_res" >&6; }
23328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23329 cat >>confdefs.h <<_ACEOF
23330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23339 CPPFLAGS="$O_CPPFLAGS"
23340 { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
23341 echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
23345 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23347 LDFLAGS="$_LDFLAGS"
23350 if test -n "$blibpath"; then
23351 if test -n "$blibpath_add"; then
23352 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23353 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23354 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23358 { echo "$as_me:$LINENO: checking for log file location" >&5
23359 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23360 if test -n "$with_logpath"; then
23361 { echo "$as_me:$LINENO: result: $with_logpath" >&5
23362 echo "${ECHO_T}$with_logpath" >&6; }
23363 cat >>confdefs.h <<EOF
23364 #define _PATH_SUDO_LOGFILE "$with_logpath"
23367 elif test -d "/var/log"; then
23368 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23369 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23370 cat >>confdefs.h <<\EOF
23371 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23374 elif test -d "/var/adm"; then
23375 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23376 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23377 cat >>confdefs.h <<\EOF
23378 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23381 elif test -d "/usr/adm"; then
23382 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23383 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23384 cat >>confdefs.h <<\EOF
23385 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23389 { echo "$as_me:$LINENO: result: unknown" >&5
23390 echo "${ECHO_T}unknown" >&6; }
23393 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23394 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23395 if test -n "$with_timedir"; then
23396 { echo "$as_me:$LINENO: result: $with_timedir" >&5
23397 echo "${ECHO_T}$with_timedir" >&6; }
23398 cat >>confdefs.h <<EOF
23399 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23402 timedir="$with_timedir"
23403 elif test -d "/var/run"; then
23404 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23405 echo "${ECHO_T}/var/run/sudo" >&6; }
23406 cat >>confdefs.h <<\EOF
23407 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23410 timedir="/var/run/sudo"
23411 elif test -d "/var/adm"; then
23412 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23413 echo "${ECHO_T}/var/adm/sudo" >&6; }
23414 cat >>confdefs.h <<\EOF
23415 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23418 timedir="/var/adm/sudo"
23420 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23421 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23422 cat >>confdefs.h <<\EOF
23423 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23426 timedir="/usr/adm/sudo"
23430 case "$with_passwd" in
23432 AUTH_OBJS="$AUTH_OBJS passwd.o"
23435 cat >>confdefs.h <<\_ACEOF
23436 #define WITHOUT_PASSWD 1
23439 if test -z "$AUTH_OBJS"; then
23440 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23441 echo "$as_me: error: no authentication methods defined." >&2;}
23442 { (exit 1); exit 1; }; }
23446 AUTH_OBJS=${AUTH_OBJS# }
23447 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23448 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23449 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23451 if test -n "$LIBS"; then
23456 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23457 test $l = $sl && dupe=1
23459 test $dupe = 0 && LIBS="${LIBS} $l"
23463 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23465 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23466 oexec_prefix="$exec_prefix"
23467 if test "$exec_prefix" = '$(prefix)'; then
23468 if test "$prefix" = "NONE"; then
23469 exec_prefix="$ac_default_prefix"
23471 exec_prefix="$prefix"
23474 if test X"$with_noexec" != X"no"; then
23475 PROGS="${PROGS} sudo_noexec.la"
23476 INSTALL_NOEXEC="install-noexec"
23478 eval noexec_file="$with_noexec"
23480 cat >>confdefs.h <<_ACEOF
23481 #define _PATH_SUDO_NOEXEC "$noexec_file"
23485 if test X"$with_selinux" != X"no"; then
23486 eval sesh_file="$libexecdir/sesh"
23488 cat >>confdefs.h <<_ACEOF
23489 #define _PATH_SUDO_SESH "$sesh_file"
23493 exec_prefix="$oexec_prefix"
23496 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
23498 cat >confcache <<\_ACEOF
23499 # This file is a shell script that caches the results of configure
23500 # tests run on this system so they can be shared between configure
23501 # scripts and configure runs, see configure's option --config-cache.
23502 # It is not useful on other systems. If it contains results you don't
23503 # want to keep, you may remove or edit it.
23505 # config.status only pays attention to the cache file if you give it
23506 # the --recheck option to rerun configure.
23508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23510 # following values.
23514 # The following way of writing the cache mishandles newlines in values,
23515 # but we know of no workaround that is simple, portable, and efficient.
23516 # So, we kill variables containing newlines.
23517 # Ultrix sh set writes to stderr and can't be redirected directly,
23518 # and sets the high bit in the cache file unless we assign to the vars.
23520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23521 eval ac_val=\$$ac_var
23525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23529 _ | IFS | as_nl) ;; #(
23530 *) $as_unset $ac_var ;;
23536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23537 *${as_nl}ac_space=\ *)
23538 # `set' does not quote correctly, so add quotes (double-quote
23539 # substitution turns \\\\ into \\, and sed turns \\ into \).
23542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23545 # `set' quotes correctly as required by POSIX, so do not add quotes.
23546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23560 if test -w "$cache_file"; then
23561 test "x$cache_file" != "x/dev/null" &&
23562 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23563 echo "$as_me: updating cache $cache_file" >&6;}
23564 cat confcache >$cache_file
23566 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23567 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23573 # Let make expand exec_prefix.
23574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23576 DEFS=-DHAVE_CONFIG_H
23580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23581 # 1. Remove the extension, and $U if already installed.
23582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23583 ac_i=`echo "$ac_i" | sed "$ac_script"`
23584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23585 # will be set to the directory where LIBOBJS objects are built.
23586 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23587 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23589 LIBOBJS=$ac_libobjs
23591 LTLIBOBJS=$ac_ltlibobjs
23595 : ${CONFIG_STATUS=./config.status}
23596 ac_clean_files_save=$ac_clean_files
23597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23598 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23599 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23600 cat >$CONFIG_STATUS <<_ACEOF
23602 # Generated by $as_me.
23603 # Run this file to recreate the current configuration.
23604 # Compiler output produced by configure, useful for debugging
23605 # configure, is in config.log if it exists.
23608 ac_cs_recheck=false
23610 SHELL=\${CONFIG_SHELL-$SHELL}
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23614 ## --------------------- ##
23615 ## M4sh Initialization. ##
23616 ## --------------------- ##
23618 # Be more Bourne compatible
23619 DUALCASE=1; export DUALCASE # for MKS sh
23620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23623 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23624 # is contrary to our usage. Disable this feature.
23625 alias -g '${1+"$@"}'='"$@"'
23626 setopt NO_GLOB_SUBST
23628 case `(set -o) 2>/dev/null` in
23629 *posix*) set -o posix ;;
23638 # Avoid depending upon Character Ranges.
23639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23642 as_cr_digits='0123456789'
23643 as_cr_alnum=$as_cr_Letters$as_cr_digits
23645 # The user is always right.
23646 if test "${PATH_SEPARATOR+set}" != set; then
23647 echo "#! /bin/sh" >conf$$.sh
23648 echo "exit 0" >>conf$$.sh
23650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23658 # Support unset when possible.
23659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23667 # We need space, tab and new line, in precisely that order. Quoting is
23668 # there to prevent editors from complaining about space-tab.
23669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23670 # splitting by setting IFS to empty value.)
23675 # Find who we are. Look in the path if we contain no directory separator.
23677 *[\\/]* ) as_myself=$0 ;;
23678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23679 for as_dir in $PATH
23682 test -z "$as_dir" && as_dir=.
23683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23689 # We did not find ourselves, most probably we were run as `sh COMMAND'
23690 # in which case we are not to be found in the path.
23691 if test "x$as_myself" = x; then
23694 if test ! -f "$as_myself"; then
23695 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23696 { (exit 1); exit 1; }
23699 # Work around bugs in pre-3.0 UWIN ksh.
23700 for as_var in ENV MAIL MAILPATH
23701 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23711 LC_TELEPHONE LC_TIME
23713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23714 eval $as_var=C; export $as_var
23716 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23720 # Required to use basename.
23721 if expr a : '\(a\)' >/dev/null 2>&1 &&
23722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23729 as_basename=basename
23735 # Name of the executable.
23736 as_me=`$as_basename -- "$0" ||
23737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23738 X"$0" : 'X\(//\)$' \| \
23739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23741 sed '/^.*\/\([^/][^/]*\)\/*$/{
23760 as_lineno_1=$LINENO
23761 as_lineno_2=$LINENO
23762 test "x$as_lineno_1" != "x$as_lineno_2" &&
23763 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23765 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23766 # uniformly replaced by the line number. The first 'sed' inserts a
23767 # line-number line after each line using $LINENO; the second 'sed'
23768 # does the real work. The second script uses 'N' to pair each
23769 # line-number line with the line containing $LINENO, and appends
23770 # trailing '-' during substitution so that $LINENO is not a special
23771 # case at line end.
23772 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23773 # scripts with optimization help from Paolo Bonzini. Blame Lee
23774 # E. McMahon (1931-1989) for sed's syntax. :-)
23786 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23789 ' >$as_me.lineno &&
23790 chmod +x "$as_me.lineno" ||
23791 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23792 { (exit 1); exit 1; }; }
23794 # Don't try to exec as it changes $[0], causing all sort of problems
23795 # (the dirname of $[0] is not the place where we might find the
23796 # original and so on. Autoconf is especially sensitive to this).
23797 . "./$as_me.lineno"
23798 # Exit status is that of the last command.
23803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23809 ECHO_C= ECHO_N= ECHO_T=
23810 case `echo -n x` in
23812 case `echo 'x\c'` in
23813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23820 if expr a : '\(a\)' >/dev/null 2>&1 &&
23821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23827 rm -f conf$$ conf$$.exe conf$$.file
23828 if test -d conf$$.dir; then
23829 rm -f conf$$.dir/conf$$.file
23835 if ln -s conf$$.file conf$$ 2>/dev/null; then
23837 # ... but there are two gotchas:
23838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23840 # In both cases, we have to default to `cp -p'.
23841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23843 elif ln conf$$.file conf$$ 2>/dev/null; then
23848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23849 rmdir conf$$.dir 2>/dev/null
23851 if mkdir -p . 2>/dev/null; then
23854 test -d ./-p && rmdir ./-p
23858 if test -x / >/dev/null 2>&1; then
23859 as_test_x='test -x'
23861 if ls -dL / >/dev/null 2>&1; then
23868 if test -d "$1"; then
23874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23875 ???[sx]*):;;*)false;;esac;fi
23879 as_executable_p=$as_test_x
23881 # Sed expression to map a string onto a valid CPP name.
23882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23884 # Sed expression to map a string onto a valid variable name.
23885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23890 # Save the log message, to keep $[0] and so on meaningful, and to
23891 # report actual input values of CONFIG_FILES etc. instead of their
23892 # values after options handling.
23894 This file was extended by sudo $as_me 1.7, which was
23895 generated by GNU Autoconf 2.61. Invocation command line was
23897 CONFIG_FILES = $CONFIG_FILES
23898 CONFIG_HEADERS = $CONFIG_HEADERS
23899 CONFIG_LINKS = $CONFIG_LINKS
23900 CONFIG_COMMANDS = $CONFIG_COMMANDS
23903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23908 cat >>$CONFIG_STATUS <<_ACEOF
23909 # Files that config.status was made for.
23910 config_files="$ac_config_files"
23911 config_headers="$ac_config_headers"
23915 cat >>$CONFIG_STATUS <<\_ACEOF
23917 \`$as_me' instantiates files from templates according to the
23918 current configuration.
23920 Usage: $0 [OPTIONS] [FILE]...
23922 -h, --help print this help, then exit
23923 -V, --version print version number and configuration settings, then exit
23924 -q, --quiet do not print progress messages
23925 -d, --debug don't remove temporary files
23926 --recheck update $as_me by reconfiguring in the same conditions
23927 --file=FILE[:TEMPLATE]
23928 instantiate the configuration file FILE
23929 --header=FILE[:TEMPLATE]
23930 instantiate the configuration header FILE
23932 Configuration files:
23935 Configuration headers:
23938 Report bugs to <bug-autoconf@gnu.org>."
23941 cat >>$CONFIG_STATUS <<_ACEOF
23943 sudo config.status 1.7
23944 configured by $0, generated by GNU Autoconf 2.61,
23945 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23947 Copyright (C) 2006 Free Software Foundation, Inc.
23948 This config.status script is free software; the Free Software Foundation
23949 gives unlimited permission to copy, distribute and modify it."
23955 cat >>$CONFIG_STATUS <<\_ACEOF
23956 # If no file are specified by the user, then we need to provide default
23957 # value. By we need to know if files were specified by the user.
23963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23975 # Handling of the options.
23976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23979 echo "$ac_cs_version"; exit ;;
23980 --debug | --debu | --deb | --de | --d | -d )
23982 --file | --fil | --fi | --f )
23984 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23985 ac_need_defaults=false;;
23986 --header | --heade | --head | --hea )
23988 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23989 ac_need_defaults=false;;
23991 # Conflict between --help and --header
23992 { echo "$as_me: error: ambiguous option: $1
23993 Try \`$0 --help' for more information." >&2
23994 { (exit 1); exit 1; }; };;
23995 --help | --hel | -h )
23996 echo "$ac_cs_usage"; exit ;;
23997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24001 # This is an error.
24002 -*) { echo "$as_me: error: unrecognized option: $1
24003 Try \`$0 --help' for more information." >&2
24004 { (exit 1); exit 1; }; } ;;
24006 *) ac_config_targets="$ac_config_targets $1"
24007 ac_need_defaults=false ;;
24013 ac_configure_extra_args=
24015 if $ac_cs_silent; then
24017 ac_configure_extra_args="$ac_configure_extra_args --silent"
24021 cat >>$CONFIG_STATUS <<_ACEOF
24022 if \$ac_cs_recheck; then
24023 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24024 CONFIG_SHELL=$SHELL
24025 export CONFIG_SHELL
24026 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24030 cat >>$CONFIG_STATUS <<\_ACEOF
24034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24035 ## Running $as_me. ##
24041 cat >>$CONFIG_STATUS <<_ACEOF
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24046 # Handling of arguments.
24047 for ac_config_target in $ac_config_targets
24049 case $ac_config_target in
24050 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24051 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24053 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24054 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24055 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24056 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24057 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24059 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24060 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24061 { (exit 1); exit 1; }; };;
24066 # If the user did not use the arguments to specify the items to instantiate,
24067 # then the envvar interface is used. Set only those that are not.
24068 # We use the long form for the default assignment because of an extremely
24069 # bizarre bug on SunOS 4.1.3.
24070 if $ac_need_defaults; then
24071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24075 # Have a temporary directory for convenience. Make it in the build tree
24076 # simply because there is no reason against having it here, and in addition,
24077 # creating and moving files from /tmp can sometimes cause problems.
24078 # Hook for its removal unless debugging.
24079 # Note that there is a small window in which the directory will not be cleaned:
24080 # after its creation but before its name has been assigned to `$tmp'.
24084 trap 'exit_status=$?
24085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24087 trap '{ (exit 1); exit 1; }' 1 2 13 15
24089 # Create a (secure) tmp directory for tmp files.
24092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24093 test -n "$tmp" && test -d "$tmp"
24096 tmp=./conf$$-$RANDOM
24097 (umask 077 && mkdir "$tmp")
24100 echo "$me: cannot create a temporary directory in ." >&2
24101 { (exit 1); exit 1; }
24105 # Set up the sed scripts for CONFIG_FILES section.
24108 # No need to generate the scripts if there are no CONFIG_FILES.
24109 # This happens for instance when ./config.status config.h
24110 if test -n "$CONFIG_FILES"; then
24117 for ac_last_try in false false false false false :; do
24118 cat >conf$$subs.sed <<_ACEOF
24119 SHELL!$SHELL$ac_delim
24120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24126 exec_prefix!$exec_prefix$ac_delim
24127 prefix!$prefix$ac_delim
24128 program_transform_name!$program_transform_name$ac_delim
24129 bindir!$bindir$ac_delim
24130 sbindir!$sbindir$ac_delim
24131 libexecdir!$libexecdir$ac_delim
24132 datarootdir!$datarootdir$ac_delim
24133 datadir!$datadir$ac_delim
24134 sysconfdir!$sysconfdir$ac_delim
24135 sharedstatedir!$sharedstatedir$ac_delim
24136 localstatedir!$localstatedir$ac_delim
24137 includedir!$includedir$ac_delim
24138 oldincludedir!$oldincludedir$ac_delim
24139 docdir!$docdir$ac_delim
24140 infodir!$infodir$ac_delim
24141 htmldir!$htmldir$ac_delim
24142 dvidir!$dvidir$ac_delim
24143 pdfdir!$pdfdir$ac_delim
24144 psdir!$psdir$ac_delim
24145 libdir!$libdir$ac_delim
24146 localedir!$localedir$ac_delim
24147 mandir!$mandir$ac_delim
24148 DEFS!$DEFS$ac_delim
24149 ECHO_C!$ECHO_C$ac_delim
24150 ECHO_N!$ECHO_N$ac_delim
24151 ECHO_T!$ECHO_T$ac_delim
24152 LIBS!$LIBS$ac_delim
24153 build_alias!$build_alias$ac_delim
24154 host_alias!$host_alias$ac_delim
24155 target_alias!$target_alias$ac_delim
24156 LIBTOOL!$LIBTOOL$ac_delim
24157 CFLAGS!$CFLAGS$ac_delim
24158 PROGS!$PROGS$ac_delim
24159 CPPFLAGS!$CPPFLAGS$ac_delim
24160 LDFLAGS!$LDFLAGS$ac_delim
24161 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24162 SUDO_OBJS!$SUDO_OBJS$ac_delim
24163 SUDO_LIBS!$SUDO_LIBS$ac_delim
24164 NET_LIBS!$NET_LIBS$ac_delim
24165 AFS_LIBS!$AFS_LIBS$ac_delim
24166 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24167 OSDEFS!$OSDEFS$ac_delim
24168 AUTH_OBJS!$AUTH_OBJS$ac_delim
24169 MANTYPE!$MANTYPE$ac_delim
24170 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24171 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24172 SUDOERS_UID!$SUDOERS_UID$ac_delim
24173 SUDOERS_GID!$SUDOERS_GID$ac_delim
24175 SELINUX!$SELINUX$ac_delim
24176 BAMAN!$BAMAN$ac_delim
24177 LCMAN!$LCMAN$ac_delim
24178 SEMAN!$SEMAN$ac_delim
24179 devdir!$devdir$ac_delim
24180 mansectsu!$mansectsu$ac_delim
24181 mansectform!$mansectform$ac_delim
24182 mansrcdir!$mansrcdir$ac_delim
24183 NOEXECFILE!$NOEXECFILE$ac_delim
24184 NOEXECDIR!$NOEXECDIR$ac_delim
24185 noexec_file!$noexec_file$ac_delim
24186 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24187 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24188 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24189 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24190 LDAP!$LDAP$ac_delim
24191 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24192 timedir!$timedir$ac_delim
24193 timeout!$timeout$ac_delim
24194 password_timeout!$password_timeout$ac_delim
24195 sudo_umask!$sudo_umask$ac_delim
24196 passprompt!$passprompt$ac_delim
24197 long_otp_prompt!$long_otp_prompt$ac_delim
24198 lecture!$lecture$ac_delim
24199 logfac!$logfac$ac_delim
24200 goodpri!$goodpri$ac_delim
24201 badpri!$badpri$ac_delim
24202 loglen!$loglen$ac_delim
24203 ignore_dot!$ignore_dot$ac_delim
24204 mail_no_user!$mail_no_user$ac_delim
24205 mail_no_host!$mail_no_host$ac_delim
24206 mail_no_perms!$mail_no_perms$ac_delim
24207 mailto!$mailto$ac_delim
24208 mailsub!$mailsub$ac_delim
24209 badpass_message!$badpass_message$ac_delim
24210 fqdn!$fqdn$ac_delim
24211 runas_default!$runas_default$ac_delim
24212 env_editor!$env_editor$ac_delim
24213 passwd_tries!$passwd_tries$ac_delim
24214 tty_tickets!$tty_tickets$ac_delim
24215 insults!$insults$ac_delim
24218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24220 elif $ac_last_try; then
24221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24223 { (exit 1); exit 1; }; }
24225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24230 if test -n "$ac_eof"; then
24231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24232 ac_eof=`expr $ac_eof + 1`
24235 cat >>$CONFIG_STATUS <<_ACEOF
24236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24241 s/^/s,@/; s/!/@,|#_!!_#|/
24244 s/'"$ac_delim"'$/,g/; t
24246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24247 ' >>$CONFIG_STATUS <conf$$subs.sed
24248 rm -f conf$$subs.sed
24249 cat >>$CONFIG_STATUS <<_ACEOF
24255 for ac_last_try in false false false false false :; do
24256 cat >conf$$subs.sed <<_ACEOF
24257 root_sudo!$root_sudo$ac_delim
24258 path_info!$path_info$ac_delim
24259 ldap_conf!$ldap_conf$ac_delim
24260 ldap_secret!$ldap_secret$ac_delim
24261 nsswitch_conf!$nsswitch_conf$ac_delim
24262 EGREPPROG!$EGREPPROG$ac_delim
24264 ac_ct_CC!$ac_ct_CC$ac_delim
24265 EXEEXT!$EXEEXT$ac_delim
24266 OBJEXT!$OBJEXT$ac_delim
24268 build!$build$ac_delim
24269 build_cpu!$build_cpu$ac_delim
24270 build_vendor!$build_vendor$ac_delim
24271 build_os!$build_os$ac_delim
24272 host!$host$ac_delim
24273 host_cpu!$host_cpu$ac_delim
24274 host_vendor!$host_vendor$ac_delim
24275 host_os!$host_os$ac_delim
24276 target!$target$ac_delim
24277 target_cpu!$target_cpu$ac_delim
24278 target_vendor!$target_vendor$ac_delim
24279 target_os!$target_os$ac_delim
24281 GREP!$GREP$ac_delim
24282 EGREP!$EGREP$ac_delim
24283 LN_S!$LN_S$ac_delim
24284 ECHO!$ECHO$ac_delim
24286 RANLIB!$RANLIB$ac_delim
24287 STRIP!$STRIP$ac_delim
24288 DSYMUTIL!$DSYMUTIL$ac_delim
24289 NMEDIT!$NMEDIT$ac_delim
24290 UNAMEPROG!$UNAMEPROG$ac_delim
24291 TRPROG!$TRPROG$ac_delim
24292 NROFFPROG!$NROFFPROG$ac_delim
24293 YACC!$YACC$ac_delim
24294 YFLAGS!$YFLAGS$ac_delim
24295 LIBOBJS!$LIBOBJS$ac_delim
24296 KRB5CONFIG!$KRB5CONFIG$ac_delim
24297 LTLIBOBJS!$LTLIBOBJS$ac_delim
24300 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
24302 elif $ac_last_try; then
24303 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24304 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24305 { (exit 1); exit 1; }; }
24307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24311 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24312 if test -n "$ac_eof"; then
24313 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24314 ac_eof=`expr $ac_eof + 1`
24317 cat >>$CONFIG_STATUS <<_ACEOF
24318 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24323 s/^/s,@/; s/!/@,|#_!!_#|/
24326 s/'"$ac_delim"'$/,g/; t
24328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24329 ' >>$CONFIG_STATUS <conf$$subs.sed
24330 rm -f conf$$subs.sed
24331 cat >>$CONFIG_STATUS <<_ACEOF
24338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24340 # trailing colons and then remove the whole line if VPATH becomes empty
24341 # (actually we leave an empty line to preserve line numbers).
24342 if test "x$srcdir" = x.; then
24343 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24344 s/:*\$(srcdir):*/:/
24345 s/:*\${srcdir}:*/:/
24347 s/^\([^=]*=[ ]*\):*/\1/
24353 cat >>$CONFIG_STATUS <<\_ACEOF
24354 fi # test -n "$CONFIG_FILES"
24357 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24360 :[FHLC]) ac_mode=$ac_tag; continue;;
24362 case $ac_mode$ac_tag in
24364 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24365 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24366 { (exit 1); exit 1; }; };;
24367 :[FH]-) ac_tag=-:-;;
24368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24385 -) ac_f="$tmp/stdin";;
24386 *) # Look for the file first in the build tree, then in the source tree
24387 # (if the path is not absolute). The absolute path cannot be DOS-style,
24388 # because $ac_f cannot contain `:'.
24392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24394 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24395 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24396 { (exit 1); exit 1; }; };;
24398 ac_file_inputs="$ac_file_inputs $ac_f"
24401 # Let's still pretend it is `configure' which instantiates (i.e., don't
24402 # use $as_me), people would be surprised to read:
24403 # /* config.h. Generated by config.status. */
24404 configure_input="Generated from "`IFS=:
24405 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24406 if test x"$ac_file" != x-; then
24407 configure_input="$ac_file. $configure_input"
24408 { echo "$as_me:$LINENO: creating $ac_file" >&5
24409 echo "$as_me: creating $ac_file" >&6;}
24413 *:-:* | *:-) cat >"$tmp/stdin";;
24418 ac_dir=`$as_dirname -- "$ac_file" ||
24419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24420 X"$ac_file" : 'X\(//\)[^/]' \| \
24421 X"$ac_file" : 'X\(//\)$' \| \
24422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24428 /^X\(\/\/\)[^/].*/{
24443 -*) as_dir=./$as_dir;;
24445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24450 *) as_qdir=$as_dir;;
24452 as_dirs="'$as_qdir' $as_dirs"
24453 as_dir=`$as_dirname -- "$as_dir" ||
24454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24455 X"$as_dir" : 'X\(//\)[^/]' \| \
24456 X"$as_dir" : 'X\(//\)$' \| \
24457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24463 /^X\(\/\/\)[^/].*/{
24476 test -d "$as_dir" && break
24478 test -z "$as_dirs" || eval "mkdir $as_dirs"
24479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24481 { (exit 1); exit 1; }; }; }
24485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24488 # A ".." for each directory in $ac_dir_suffix.
24489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24490 case $ac_top_builddir_sub in
24491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24495 ac_abs_top_builddir=$ac_pwd
24496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24497 # for backward compatibility:
24498 ac_top_builddir=$ac_top_build_prefix
24501 .) # We are building in place.
24503 ac_top_srcdir=$ac_top_builddir_sub
24504 ac_abs_top_srcdir=$ac_pwd ;;
24505 [\\/]* | ?:[\\/]* ) # Absolute name.
24506 ac_srcdir=$srcdir$ac_dir_suffix;
24507 ac_top_srcdir=$srcdir
24508 ac_abs_top_srcdir=$srcdir ;;
24509 *) # Relative name.
24510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24511 ac_top_srcdir=$ac_top_build_prefix$srcdir
24512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24525 cat >>$CONFIG_STATUS <<\_ACEOF
24526 # If the template does not know about datarootdir, expand it.
24527 # FIXME: This hack should be removed a few years after 2.60.
24528 ac_datarootdir_hack=; ac_datarootdir_seen=
24530 case `sed -n '/datarootdir/ {
24539 ' $ac_file_inputs` in
24540 *datarootdir*) ac_datarootdir_seen=yes;;
24541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24545 cat >>$CONFIG_STATUS <<_ACEOF
24546 ac_datarootdir_hack='
24547 s&@datadir@&$datadir&g
24548 s&@docdir@&$docdir&g
24549 s&@infodir@&$infodir&g
24550 s&@localedir@&$localedir&g
24551 s&@mandir@&$mandir&g
24552 s&\\\${datarootdir}&$datarootdir&g' ;;
24556 # Neutralize VPATH when `$srcdir' = `.'.
24557 # Shell code in configure.ac might set extrasub.
24558 # FIXME: do we really want to maintain this feature?
24559 cat >>$CONFIG_STATUS <<_ACEOF
24563 cat >>$CONFIG_STATUS <<\_ACEOF
24565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24566 s&@configure_input@&$configure_input&;t t
24567 s&@top_builddir@&$ac_top_builddir_sub&;t t
24568 s&@srcdir@&$ac_srcdir&;t t
24569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24570 s&@top_srcdir@&$ac_top_srcdir&;t t
24571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24572 s&@builddir@&$ac_builddir&;t t
24573 s&@abs_builddir@&$ac_abs_builddir&;t t
24574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24575 $ac_datarootdir_hack
24576 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24581 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24582 which seems to be undefined. Please make sure it is defined." >&5
24583 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24584 which seems to be undefined. Please make sure it is defined." >&2;}
24588 -) cat "$tmp/out"; rm -f "$tmp/out";;
24589 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24598 # Transform confdefs.h into a sed script `conftest.defines', that
24599 # substitutes the proper values into config.h.in to produce config.h.
24600 rm -f conftest.defines conftest.tail
24601 # First, append a space to every undef/define line, to ease matching.
24602 echo 's/$/ /' >conftest.defines
24603 # Then, protect against being on the right side of a sed subst, or in
24604 # an unquoted here document, in config.status. If some macros were
24605 # called several times there might be several #defines for the same
24606 # symbol, which is useless. But do not sort them, since the last
24607 # AC_DEFINE must be honored.
24608 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24609 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24610 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24611 # PARAMS is the parameter list in the macro definition--in most cases, it's
24612 # just an empty string.
24613 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24614 ac_dB='\\)[ (].*,\\1define\\2'
24622 s/^[ ]*#[ ]*define[ ][ ]*//
24627 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24628 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24629 ' >>conftest.defines
24631 # Remove the space that was appended to ease matching.
24632 # Then replace #undef with comments. This is necessary, for
24633 # example, in the case of _POSIX_SOURCE, which is predefined and required
24634 # on some systems where configure will not decide to define it.
24635 # (The regexp can be short, since the line contains either #define or #undef.)
24637 s,^[ #]*u.*,/* & */,' >>conftest.defines
24639 # Break up conftest.defines:
24640 ac_max_sed_lines=50
24642 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24643 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24644 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24646 ac_in='$ac_file_inputs'
24647 ac_out='"$tmp/out1"'
24648 ac_nxt='"$tmp/out2"'
24652 # Write a here document:
24653 cat >>$CONFIG_STATUS <<_ACEOF
24654 # First, check the format of the line:
24655 cat >"\$tmp/defines.sed" <<\\CEOF
24656 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24657 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24661 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24663 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24664 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24665 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24666 grep . conftest.tail >/dev/null || break
24667 rm -f conftest.defines
24668 mv conftest.tail conftest.defines
24670 rm -f conftest.defines conftest.tail
24672 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24673 cat >>$CONFIG_STATUS <<\_ACEOF
24674 if test x"$ac_file" != x-; then
24675 echo "/* $configure_input */" >"$tmp/config.h"
24676 cat "$ac_result" >>"$tmp/config.h"
24677 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24678 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24679 echo "$as_me: $ac_file is unchanged" >&6;}
24682 mv "$tmp/config.h" $ac_file
24685 echo "/* $configure_input */"
24689 # Compute $ac_file's index in $config_headers.
24692 for _am_header in $config_headers :; do
24693 case $_am_header in
24694 $_am_arg | $_am_arg:* )
24697 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24700 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24701 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24702 X"$_am_arg" : 'X\(//\)[^/]' \| \
24703 X"$_am_arg" : 'X\(//\)$' \| \
24704 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24710 /^X\(\/\/\)[^/].*/{
24722 s/.*/./; q'`/stamp-h$_am_stamp_count
24731 { (exit 0); exit 0; }
24733 chmod +x $CONFIG_STATUS
24734 ac_clean_files=$ac_clean_files_save
24737 # configure is writing to config.log, and then calls config.status.
24738 # config.status does its own redirection, appending to config.log.
24739 # Unfortunately, on DOS this fails, as config.log is still kept open
24740 # by configure, so config.status won't be able to write to it; its
24741 # output is simply discarded. So we exec the FD to /dev/null,
24742 # effectively closing config.log, so it can be properly (re)opened and
24743 # appended to by config.status. When coming back to configure, we
24744 # need to make the FD available again.
24745 if test "$no_create" != yes; then
24747 ac_config_status_args=
24748 test "$silent" = yes &&
24749 ac_config_status_args="$ac_config_status_args --quiet"
24751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24754 # would make configure fail if this is the last instruction.
24755 $ac_cs_success || { (exit 1); exit 1; }
24759 if test "$with_pam" = "yes"; then
24762 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24763 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}