2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 exec 7<&0 </dev/null 6>&1
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712 ac_default_prefix=/usr/local
714 ac_config_libobj_dir=.
720 SHELL=${CONFIG_SHELL-/bin/sh}
722 # Identity of this package.
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
890 ac_precious_vars='build_alias
903 # Initialize some variables set by options.
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1012 -docdir | --docdir | --docdi | --doc | --do)
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 htmldir=$ac_optarg ;;
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1074 -libdir | --libdir | --libdi | --libd)
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1165 -psdir | --psdir | --psdi | --psd | --ps)
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 sbindir=$ac_optarg ;;
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 sharedstatedir=$ac_optarg ;;
1191 -site | --site | --sit)
1193 -site=* | --site=* | --sit=*)
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 # Be sure to have absolute directory names.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val=\$$ac_var
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322 test "$silent" = yes && exec 6>/dev/null
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of sudo 1.6.9:";;
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-authentication
1477 Do not require authentication by default
1478 --disable-root-mailer Don't run the mailer as root, run as the user
1479 --disable-setreuid Don't try to use the setreuid() function
1480 --disable-setresuid Don't try to use the setresuid() function
1481 --disable-shadow Never use shadow passwords
1482 --disable-root-sudo Don't allow root to run sudo
1483 --enable-log-host Log the hostname in the log file
1484 --enable-noargs-shell If sudo is given no arguments run a shell
1485 --enable-shell-sets-home
1486 set $HOME to target user in shell mode
1487 --disable-path-info Print 'command not allowed' not 'command not found'
1488 --enable-static[=PKGS] build static libraries [default=no]
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --disable-sia Disable SIA on Digital UNIX
1494 --disable-pam-session Disable PAM session support
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-otp-only deprecated
1500 --with-alertmail deprecated
1501 --with-CC C compiler to use
1502 --with-rpath pass -R flag in addition to -L for lib paths
1503 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1504 --with-incpath additional places to look for include files
1505 --with-libpath additional places to look for libraries
1506 --with-libraries additional libraries to link with
1507 --with-devel add development options
1508 --with-efence link with -lefence for malloc() debugging
1509 --with-csops add CSOps standard options
1510 --without-passwd don't use passwd/shadow file for authentication
1511 --with-skey=DIR enable S/Key support
1512 --with-opie=DIR enable OPIE support
1513 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1514 --with-SecurID[=DIR] enable SecurID support
1515 --with-fwtk[=DIR] enable FWTK AuthSRV support
1516 --with-kerb4[=DIR] enable Kerberos IV support
1517 --with-kerb5[=DIR] enable Kerberos V support
1518 --with-aixauth enable AIX general authentication support
1519 --with-pam enable PAM support
1520 --with-AFS enable AFS support
1521 --with-DCE enable DCE support
1522 --with-logincap enable BSD login class support
1523 --with-bsdauth enable BSD authentication support
1524 --with-project enable Solaris project support
1525 --without-lecture don't print lecture for first-time sudoer
1526 --with-logging log via syslog, file, or both
1527 --with-logfac syslog facility to log with (default is "local2")
1528 --with-goodpri syslog priority for commands (def is "notice")
1529 --with-badpri syslog priority for failures (def is "alert")
1530 --with-logpath path to the sudo log file
1531 --with-loglen maximum length of a log file line (default is 80)
1532 --with-ignore-dot ignore '.' in the PATH
1533 --without-mail-if-no-user do not send mail if user not in sudoers
1534 --with-mail-if-no-host send mail if user in sudoers but not for this host
1535 --with-mail-if-noperms send mail if user not allowed to run command
1536 --with-mailto who should get sudo mail (default is "root")
1537 --with-mailsubject subject of sudo mail
1538 --with-passprompt default password prompt
1539 --with-badpass-message message the user sees when the password is wrong
1540 --with-fqdn expect fully qualified hosts in sudoers
1541 --with-timedir path to the sudo timestamp dir
1542 --with-sendmail=path set path to sendmail
1543 --without-sendmail do not send mail at all
1544 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1545 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1546 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1547 --with-umask umask with which the prog should run (default is 022)
1548 --without-umask Preserves the umask of the user invoking sudo.
1549 --with-runas-default User to run commands as (default is "root")
1550 --with-exempt=group no passwd needed for users in this group
1551 --with-editor=path Default editor for visudo (defaults to vi)
1552 --with-env-editor Use the environment variable EDITOR for visudo
1553 --with-passwd-tries number of tries to enter password (default is 3)
1554 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1555 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1556 --with-tty-tickets use a different ticket file for each tty
1557 --with-insults insult the user for entering an incorrect password
1558 --with-all-insults include all the sudo insult sets
1559 --with-classic-insults include the insults from the "classic" sudo
1560 --with-csops-insults include CSOps insults
1561 --with-hal-insults include 2001-like insults
1562 --with-goons-insults include the insults from the "Goon Show"
1563 --with-ldap[=DIR] enable LDAP support
1564 --with-ldap-conf-file path to LDAP configuration file
1565 --with-ldap-secret-file path to LDAP secret password file
1566 --with-pc-insults replace politically incorrect insults with less offensive ones
1567 --with-secure-path override the user's path with a built-in one
1568 --without-interfaces don't try to read the ip addr of ether interfaces
1569 --with-stow properly handle GNU stow packaging
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 --with-pic try to use only PIC/non-PIC objects [default=use
1573 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1584 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1585 the first program found out of: `bison -y', `byacc', `yacc'.
1586 YFLAGS The list of arguments that will be passed by default to $YACC.
1587 This script will default YFLAGS to the empty string to avoid a
1588 default value of `-d' given by some make applications.
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" || continue
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1620 .) # We are building in place.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1653 sudo configure 1.6.9
1654 generated by GNU Autoconf 2.61
1656 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1667 It was created by sudo $as_me 1.6.9, which was
1668 generated by GNU Autoconf 2.61. Invocation command line was
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 echo "PATH: $as_dir"
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_must_keep_next=false
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1739 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 -* ) ac_must_keep_next=true ;;
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1784 # The following way of writing the cache mishandles newlines in values,
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1791 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 _ | IFS | as_nl) ;; #(
1796 *) $as_unset $ac_var ;;
1801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802 *${as_nl}ac_space=\ *)
1804 "s/'\''/'\''\\\\'\'''\''/g;
1805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1821 for ac_var in $ac_subst_vars
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1831 if test -n "$ac_subst_files"; then
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1838 for ac_var in $ac_subst_files
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1849 if test -s confdefs.h; then
1859 test "$ac_signal" != 0 &&
1860 echo "$as_me: caught signal $ac_signal"
1861 echo "$as_me: exit $exit_status"
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1875 # Predefined preprocessor variables.
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905 set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 set x "$ac_default_prefix/share/config.site" \
1910 "$ac_default_prefix/etc/config.site"
1915 if test -r "$ac_site_file"; then
1916 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918 sed 's/^/| /' "$ac_site_file" >&5
1923 if test -r "$cache_file"; then
1924 # Some versions of bash will fail to source /dev/null (special
1925 # files actually), so we avoid doing that.
1926 if test -f "$cache_file"; then
1927 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931 *) . "./$cache_file";;
1935 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1940 # Check that the precious variables saved in the cache have kept the same
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945 eval ac_new_set=\$ac_env_${ac_var}_set
1946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947 eval ac_new_val=\$ac_env_${ac_var}_value
1948 case $ac_old_set,$ac_new_set in
1950 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1959 if test "x$ac_old_val" != "x$ac_new_val"; then
1960 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1963 echo "$as_me: former value: $ac_old_val" >&2;}
1964 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1965 echo "$as_me: current value: $ac_new_val" >&2;}
1966 ac_cache_corrupted=:
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1972 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 if $ac_cache_corrupted; then
1982 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986 { (exit 1); exit 1; }; }
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 ac_config_headers="$ac_config_headers config.h pathnames.h"
2022 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2023 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2079 passprompt="Password:"
2091 mailsub='*** SECURITY information for %h ***'
2092 badpass_message='Sorry, try again.'
2105 : ${SUDOERS_MODE='0440'}
2106 : ${SUDOERS_UID='0'}
2107 : ${SUDOERS_GID='0'}
2119 shadow_libs_optional=
2121 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
2122 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2123 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2124 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2128 # Check whether --with-otp-only was given.
2129 if test "${with_otp_only+set}" = set; then
2130 withval=$with_otp_only; case $with_otp_only in
2131 yes) with_passwd="no"
2132 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2133 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2140 # Check whether --with-alertmail was given.
2141 if test "${with_alertmail+set}" = set; then
2142 withval=$with_alertmail; case $with_alertmail in
2143 *) with_mailto="$with_alertmail"
2144 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2145 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2153 # Check whether --with-CC was given.
2154 if test "${with_CC+set}" = set; then
2155 withval=$with_CC; case $with_CC in
2156 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2157 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2158 { (exit 1); exit 1; }; }
2160 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2161 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2162 { (exit 1); exit 1; }; }
2171 # Check whether --with-rpath was given.
2172 if test "${with_rpath+set}" = set; then
2173 withval=$with_rpath; case $with_rpath in
2175 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2176 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2177 { (exit 1); exit 1; }; }
2184 # Check whether --with-blibpath was given.
2185 if test "${with_blibpath+set}" = set; then
2186 withval=$with_blibpath; case $with_blibpath in
2188 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2189 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2196 # Check whether --with-incpath was given.
2197 if test "${with_incpath+set}" = set; then
2198 withval=$with_incpath; case $with_incpath in
2199 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2200 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2201 { (exit 1); exit 1; }; }
2203 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2204 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2205 { (exit 1); exit 1; }; }
2207 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2208 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2209 for i in ${with_incpath}; do
2210 CPPFLAGS="${CPPFLAGS} -I${i}"
2218 # Check whether --with-libpath was given.
2219 if test "${with_libpath+set}" = set; then
2220 withval=$with_libpath; case $with_libpath in
2221 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2222 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2223 { (exit 1); exit 1; }; }
2225 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2226 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2227 { (exit 1); exit 1; }; }
2229 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2230 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2237 # Check whether --with-libraries was given.
2238 if test "${with_libraries+set}" = set; then
2239 withval=$with_libraries; case $with_libraries in
2240 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2241 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2242 { (exit 1); exit 1; }; }
2244 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2245 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2246 { (exit 1); exit 1; }; }
2248 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2249 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2256 # Check whether --with-devel was given.
2257 if test "${with_devel+set}" = set; then
2258 withval=$with_devel; case $with_devel in
2259 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2260 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2261 PROGS="${PROGS} testsudoers"
2262 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2266 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2267 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2274 # Check whether --with-efence was given.
2275 if test "${with_efence+set}" = set; then
2276 withval=$with_efence; case $with_efence in
2277 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2278 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2279 LIBS="${LIBS} -lefence"
2280 if test -f /usr/local/lib/libefence.a; then
2281 with_libpath="${with_libpath} /usr/local/lib"
2285 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2286 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2293 # Check whether --with-csops was given.
2294 if test "${with_csops+set}" = set; then
2295 withval=$with_csops; case $with_csops in
2296 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2297 echo "$as_me: Adding CSOps standard options" >&6;}
2301 with_classic_insults=yes
2302 with_csops_insults=yes
2305 : ${mansectform='5'}
2308 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2309 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2316 # Check whether --with-passwd was given.
2317 if test "${with_passwd+set}" = set; then
2318 withval=$with_passwd; case $with_passwd in
2319 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2320 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2321 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2322 echo "${ECHO_T}$with_passwd" >&6; }
2324 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2326 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2327 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2328 { (exit 1); exit 1; }; }
2335 # Check whether --with-skey was given.
2336 if test "${with_skey+set}" = set; then
2337 withval=$with_skey; case $with_skey in
2340 *) cat >>confdefs.h <<\_ACEOF
2344 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2345 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2348 AUTH_REG="$AUTH_REG S/Key"
2355 # Check whether --with-opie was given.
2356 if test "${with_opie+set}" = set; then
2357 withval=$with_opie; case $with_opie in
2360 *) cat >>confdefs.h <<\_ACEOF
2364 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2365 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2366 { echo "$as_me:$LINENO: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6; }
2368 AUTH_REG="$AUTH_REG NRL_OPIE"
2375 # Check whether --with-long-otp-prompt was given.
2376 if test "${with_long_otp_prompt+set}" = set; then
2377 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2378 yes) cat >>confdefs.h <<\_ACEOF
2379 #define LONG_OTP_PROMPT 1
2382 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2383 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2384 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2388 no) long_otp_prompt=off
2390 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2391 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2392 { (exit 1); exit 1; }; }
2399 # Check whether --with-SecurID was given.
2400 if test "${with_SecurID+set}" = set; then
2401 withval=$with_SecurID; case $with_SecurID in
2402 no) with_SecurID="";;
2403 *) cat >>confdefs.h <<\_ACEOF
2404 #define HAVE_SECURID 1
2407 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2408 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2409 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411 AUTH_EXCL="$AUTH_EXCL SecurID"
2418 # Check whether --with-fwtk was given.
2419 if test "${with_fwtk+set}" = set; then
2420 withval=$with_fwtk; case $with_fwtk in
2422 *) cat >>confdefs.h <<\_ACEOF
2426 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2427 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2428 { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2430 AUTH_EXCL="$AUTH_EXCL FWTK"
2437 # Check whether --with-kerb4 was given.
2438 if test "${with_kerb4+set}" = set; then
2439 withval=$with_kerb4; case $with_kerb4 in
2441 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2442 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2443 { echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6; }
2445 AUTH_REG="$AUTH_REG kerb4"
2452 # Check whether --with-kerb5 was given.
2453 if test "${with_kerb5+set}" = set; then
2454 withval=$with_kerb5; case $with_kerb5 in
2456 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2457 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2458 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2460 AUTH_REG="$AUTH_REG kerb5"
2467 # Check whether --with-aixauth was given.
2468 if test "${with_aixauth+set}" = set; then
2469 withval=$with_aixauth; case $with_aixauth in
2470 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2472 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2473 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2474 { (exit 1); exit 1; }; }
2481 # Check whether --with-pam was given.
2482 if test "${with_pam+set}" = set; then
2483 withval=$with_pam; case $with_pam in
2484 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2486 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2487 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2488 { (exit 1); exit 1; }; }
2495 # Check whether --with-AFS was given.
2496 if test "${with_AFS+set}" = set; then
2497 withval=$with_AFS; case $with_AFS in
2498 yes) cat >>confdefs.h <<\_ACEOF
2502 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2503 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2504 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2506 AUTH_REG="$AUTH_REG AFS"
2509 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2510 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2511 { (exit 1); exit 1; }; }
2518 # Check whether --with-DCE was given.
2519 if test "${with_DCE+set}" = set; then
2520 withval=$with_DCE; case $with_DCE in
2521 yes) cat >>confdefs.h <<\_ACEOF
2525 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2526 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2527 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529 AUTH_REG="$AUTH_REG DCE"
2532 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2533 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2534 { (exit 1); exit 1; }; }
2541 # Check whether --with-logincap was given.
2542 if test "${with_logincap+set}" = set; then
2543 withval=$with_logincap; case $with_logincap in
2545 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2546 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2547 { (exit 1); exit 1; }; }
2554 # Check whether --with-bsdauth was given.
2555 if test "${with_bsdauth+set}" = set; then
2556 withval=$with_bsdauth; case $with_bsdauth in
2557 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2559 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2560 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2561 { (exit 1); exit 1; }; }
2568 # Check whether --with-project was given.
2569 if test "${with_project+set}" = set; then
2570 withval=$with_project; case $with_project in
2573 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2574 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2575 { (exit 1); exit 1; }; }
2581 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2582 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2584 # Check whether --with-lecture was given.
2585 if test "${with_lecture+set}" = set; then
2586 withval=$with_lecture; case $with_lecture in
2587 yes|short|always) lecture=once
2589 no|none|never) lecture=never
2591 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2592 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2593 { (exit 1); exit 1; }; }
2598 if test "$lecture" = "once"; then
2599 { echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6; }
2602 cat >>confdefs.h <<\_ACEOF
2603 #define NO_LECTURE 1
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2610 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2611 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2613 # Check whether --with-logging was given.
2614 if test "${with_logging+set}" = set; then
2615 withval=$with_logging; case $with_logging in
2616 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2617 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2618 { (exit 1); exit 1; }; }
2620 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2621 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2622 { (exit 1); exit 1; }; }
2624 syslog) cat >>confdefs.h <<\_ACEOF
2625 #define LOGGING SLOG_SYSLOG
2628 { echo "$as_me:$LINENO: result: syslog" >&5
2629 echo "${ECHO_T}syslog" >&6; }
2631 file) cat >>confdefs.h <<\_ACEOF
2632 #define LOGGING SLOG_FILE
2635 { echo "$as_me:$LINENO: result: file" >&5
2636 echo "${ECHO_T}file" >&6; }
2638 both) cat >>confdefs.h <<\_ACEOF
2639 #define LOGGING SLOG_BOTH
2642 { echo "$as_me:$LINENO: result: both" >&5
2643 echo "${ECHO_T}both" >&6; }
2645 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2646 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2647 { (exit 1); exit 1; }; }
2651 cat >>confdefs.h <<\_ACEOF
2652 #define LOGGING SLOG_SYSLOG
2654 { echo "$as_me:$LINENO: result: syslog" >&5
2655 echo "${ECHO_T}syslog" >&6; }
2659 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2660 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2662 # Check whether --with-logfac was given.
2663 if test "${with_logfac+set}" = set; then
2664 withval=$with_logfac; case $with_logfac in
2665 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2666 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2667 { (exit 1); exit 1; }; }
2669 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2670 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2671 { (exit 1); exit 1; }; }
2673 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2675 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2676 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2677 { (exit 1); exit 1; }; }
2683 cat >>confdefs.h <<_ACEOF
2684 #define LOGFAC "$logfac"
2687 { echo "$as_me:$LINENO: result: $logfac" >&5
2688 echo "${ECHO_T}$logfac" >&6; }
2690 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2691 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2693 # Check whether --with-goodpri was given.
2694 if test "${with_goodpri+set}" = set; then
2695 withval=$with_goodpri; case $with_goodpri in
2696 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2697 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2698 { (exit 1); exit 1; }; }
2700 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2701 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2702 { (exit 1); exit 1; }; }
2704 alert|crit|debug|emerg|err|info|notice|warning)
2705 goodpri=$with_goodpri
2707 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2708 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2709 { (exit 1); exit 1; }; }
2715 cat >>confdefs.h <<_ACEOF
2716 #define PRI_SUCCESS "$goodpri"
2719 { echo "$as_me:$LINENO: result: $goodpri" >&5
2720 echo "${ECHO_T}$goodpri" >&6; }
2722 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2723 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2725 # Check whether --with-badpri was given.
2726 if test "${with_badpri+set}" = set; then
2727 withval=$with_badpri; case $with_badpri in
2728 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2729 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2730 { (exit 1); exit 1; }; }
2732 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2733 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2734 { (exit 1); exit 1; }; }
2736 alert|crit|debug|emerg|err|info|notice|warning)
2739 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2740 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2741 { (exit 1); exit 1; }; }
2747 cat >>confdefs.h <<_ACEOF
2748 #define PRI_FAILURE "$badpri"
2751 { echo "$as_me:$LINENO: result: $badpri" >&5
2752 echo "${ECHO_T}$badpri" >&6; }
2755 # Check whether --with-logpath was given.
2756 if test "${with_logpath+set}" = set; then
2757 withval=$with_logpath; case $with_logpath in
2758 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2759 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2760 { (exit 1); exit 1; }; }
2762 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2763 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2764 { (exit 1); exit 1; }; }
2770 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2771 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2773 # Check whether --with-loglen was given.
2774 if test "${with_loglen+set}" = set; then
2775 withval=$with_loglen; case $with_loglen in
2776 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2777 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2778 { (exit 1); exit 1; }; }
2780 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2781 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2782 { (exit 1); exit 1; }; }
2784 [0-9]*) loglen=$with_loglen
2786 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2787 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2788 { (exit 1); exit 1; }; }
2794 cat >>confdefs.h <<_ACEOF
2795 #define MAXLOGFILELEN $loglen
2798 { echo "$as_me:$LINENO: result: $loglen" >&5
2799 echo "${ECHO_T}$loglen" >&6; }
2801 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2802 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2804 # Check whether --with-ignore-dot was given.
2805 if test "${with_ignore_dot+set}" = set; then
2806 withval=$with_ignore_dot; case $with_ignore_dot in
2811 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2812 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2813 { (exit 1); exit 1; }; }
2818 if test "$ignore_dot" = "on"; then
2819 cat >>confdefs.h <<\_ACEOF
2820 #define IGNORE_DOT_PATH 1
2823 { echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6; }
2826 { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2830 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2831 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2833 # Check whether --with-mail-if-no-user was given.
2834 if test "${with_mail_if_no_user+set}" = set; then
2835 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2836 yes) mail_no_user=on
2838 no) mail_no_user=off
2840 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2841 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2842 { (exit 1); exit 1; }; }
2847 if test "$mail_no_user" = "on"; then
2848 cat >>confdefs.h <<\_ACEOF
2849 #define SEND_MAIL_WHEN_NO_USER 1
2852 { echo "$as_me:$LINENO: result: yes" >&5
2853 echo "${ECHO_T}yes" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2859 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2860 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2862 # Check whether --with-mail-if-no-host was given.
2863 if test "${with_mail_if_no_host+set}" = set; then
2864 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2865 yes) mail_no_host=on
2867 no) mail_no_host=off
2869 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2870 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2871 { (exit 1); exit 1; }; }
2876 if test "$mail_no_host" = "on"; then
2877 cat >>confdefs.h <<\_ACEOF
2878 #define SEND_MAIL_WHEN_NO_HOST 1
2881 { echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2888 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2889 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2891 # Check whether --with-mail-if-noperms was given.
2892 if test "${with_mail_if_noperms+set}" = set; then
2893 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2894 yes) mail_noperms=on
2896 no) mail_noperms=off
2898 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2899 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2900 { (exit 1); exit 1; }; }
2905 if test "$mail_noperms" = "on"; then
2906 cat >>confdefs.h <<\_ACEOF
2907 #define SEND_MAIL_WHEN_NOT_OK 1
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2917 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2918 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2920 # Check whether --with-mailto was given.
2921 if test "${with_mailto+set}" = set; then
2922 withval=$with_mailto; case $with_mailto in
2923 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2924 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2925 { (exit 1); exit 1; }; }
2927 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2928 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2929 { (exit 1); exit 1; }; }
2931 *) mailto=$with_mailto
2937 cat >>confdefs.h <<_ACEOF
2938 #define MAILTO "$mailto"
2941 { echo "$as_me:$LINENO: result: $mailto" >&5
2942 echo "${ECHO_T}$mailto" >&6; }
2945 # Check whether --with-mailsubject was given.
2946 if test "${with_mailsubject+set}" = set; then
2947 withval=$with_mailsubject; case $with_mailsubject in
2948 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2949 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2950 { (exit 1); exit 1; }; }
2952 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2953 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2955 *) mailsub="$with_mailsubject"
2956 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2957 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2958 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2959 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2965 cat >>confdefs.h <<_ACEOF
2966 #define MAILSUBJECT "$mailsub"
2970 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2971 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2973 # Check whether --with-passprompt was given.
2974 if test "${with_passprompt+set}" = set; then
2975 withval=$with_passprompt; case $with_passprompt in
2976 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2977 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2978 { (exit 1); exit 1; }; }
2980 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2981 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2983 *) passprompt="$with_passprompt"
2987 { echo "$as_me:$LINENO: result: $passprompt" >&5
2988 echo "${ECHO_T}$passprompt" >&6; }
2990 cat >>confdefs.h <<_ACEOF
2991 #define PASSPROMPT "$passprompt"
2995 { echo "$as_me:$LINENO: checking for bad password message" >&5
2996 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
2998 # Check whether --with-badpass-message was given.
2999 if test "${with_badpass_message+set}" = set; then
3000 withval=$with_badpass_message; case $with_badpass_message in
3001 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3002 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3003 { (exit 1); exit 1; }; }
3005 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3006 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3008 *) badpass_message="$with_badpass_message"
3014 cat >>confdefs.h <<_ACEOF
3015 #define INCORRECT_PASSWORD "$badpass_message"
3018 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3019 echo "${ECHO_T}$badpass_message" >&6; }
3021 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3022 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3024 # Check whether --with-fqdn was given.
3025 if test "${with_fqdn+set}" = set; then
3026 withval=$with_fqdn; case $with_fqdn in
3031 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3032 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3033 { (exit 1); exit 1; }; }
3038 if test "$fqdn" = "on"; then
3039 cat >>confdefs.h <<\_ACEOF
3043 { echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6; }
3046 { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3051 # Check whether --with-timedir was given.
3052 if test "${with_timedir+set}" = set; then
3053 withval=$with_timedir; case $with_timedir in
3054 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3055 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3056 { (exit 1); exit 1; }; }
3058 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3059 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3060 { (exit 1); exit 1; }; }
3067 # Check whether --with-sendmail was given.
3068 if test "${with_sendmail+set}" = set; then
3069 withval=$with_sendmail; case $with_sendmail in
3070 yes) with_sendmail=""
3073 *) cat >>confdefs.h <<EOF
3074 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3083 # Check whether --with-sudoers-mode was given.
3084 if test "${with_sudoers_mode+set}" = set; then
3085 withval=$with_sudoers_mode; case $with_sudoers_mode in
3086 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3087 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3088 { (exit 1); exit 1; }; }
3090 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3091 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3092 { (exit 1); exit 1; }; }
3094 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3096 0*) SUDOERS_MODE=$with_sudoers_mode
3098 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3099 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3100 { (exit 1); exit 1; }; }
3107 # Check whether --with-sudoers-uid was given.
3108 if test "${with_sudoers_uid+set}" = set; then
3109 withval=$with_sudoers_uid; case $with_sudoers_uid in
3110 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3111 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3112 { (exit 1); exit 1; }; }
3114 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3115 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3116 { (exit 1); exit 1; }; }
3118 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3120 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3121 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3122 { (exit 1); exit 1; }; }
3129 # Check whether --with-sudoers-gid was given.
3130 if test "${with_sudoers_gid+set}" = set; then
3131 withval=$with_sudoers_gid; case $with_sudoers_gid in
3132 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3133 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3134 { (exit 1); exit 1; }; }
3136 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3137 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3138 { (exit 1); exit 1; }; }
3140 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3142 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3143 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3144 { (exit 1); exit 1; }; }
3150 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3151 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3153 # Check whether --with-umask was given.
3154 if test "${with_umask+set}" = set; then
3155 withval=$with_umask; case $with_umask in
3156 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3157 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3158 { (exit 1); exit 1; }; }
3162 [0-9]*) sudo_umask=$with_umask
3164 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3165 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3166 { (exit 1); exit 1; }; }
3172 cat >>confdefs.h <<_ACEOF
3173 #define SUDO_UMASK $sudo_umask
3176 if test "$sudo_umask" = "0777"; then
3177 { echo "$as_me:$LINENO: result: user" >&5
3178 echo "${ECHO_T}user" >&6; }
3180 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3181 echo "${ECHO_T}$sudo_umask" >&6; }
3184 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3185 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3187 # Check whether --with-runas-default was given.
3188 if test "${with_runas_default+set}" = set; then
3189 withval=$with_runas_default; case $with_runas_default in
3190 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3191 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3192 { (exit 1); exit 1; }; }
3194 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3195 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3196 { (exit 1); exit 1; }; }
3198 *) runas_default="$with_runas_default"
3204 cat >>confdefs.h <<_ACEOF
3205 #define RUNAS_DEFAULT "$runas_default"
3208 { echo "$as_me:$LINENO: result: $runas_default" >&5
3209 echo "${ECHO_T}$runas_default" >&6; }
3212 # Check whether --with-exempt was given.
3213 if test "${with_exempt+set}" = set; then
3214 withval=$with_exempt; case $with_exempt in
3215 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3216 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3217 { (exit 1); exit 1; }; }
3219 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3220 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3221 { (exit 1); exit 1; }; }
3224 cat >>confdefs.h <<_ACEOF
3225 #define EXEMPTGROUP "$with_exempt"
3228 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3229 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3230 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3231 echo "${ECHO_T}$with_exempt" >&6; }
3237 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3238 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3240 # Check whether --with-editor was given.
3241 if test "${with_editor+set}" = set; then
3242 withval=$with_editor; case $with_editor in
3243 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3244 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3245 { (exit 1); exit 1; }; }
3247 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3248 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3249 { (exit 1); exit 1; }; }
3252 cat >>confdefs.h <<_ACEOF
3253 #define EDITOR "$with_editor"
3256 { echo "$as_me:$LINENO: result: $with_editor" >&5
3257 echo "${ECHO_T}$with_editor" >&6; }
3261 cat >>confdefs.h <<\_ACEOF
3262 #define EDITOR _PATH_VI
3264 { echo "$as_me:$LINENO: result: vi" >&5
3265 echo "${ECHO_T}vi" >&6; }
3269 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3270 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3272 # Check whether --with-env-editor was given.
3273 if test "${with_env_editor+set}" = set; then
3274 withval=$with_env_editor; case $with_env_editor in
3279 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3280 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3281 { (exit 1); exit 1; }; }
3286 if test "$env_editor" = "on"; then
3287 cat >>confdefs.h <<\_ACEOF
3288 #define ENV_EDITOR 1
3291 { echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6; }
3294 { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3298 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3299 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3301 # Check whether --with-passwd-tries was given.
3302 if test "${with_passwd_tries+set}" = set; then
3303 withval=$with_passwd_tries; case $with_passwd_tries in
3305 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3306 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3307 { (exit 1); exit 1; }; }
3309 [1-9]*) passwd_tries=$with_passwd_tries
3311 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3312 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3313 { (exit 1); exit 1; }; }
3319 cat >>confdefs.h <<_ACEOF
3320 #define TRIES_FOR_PASSWORD $passwd_tries
3323 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3324 echo "${ECHO_T}$passwd_tries" >&6; }
3326 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3327 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3329 # Check whether --with-timeout was given.
3330 if test "${with_timeout+set}" = set; then
3331 withval=$with_timeout; case $with_timeout in
3335 [0-9]*) timeout=$with_timeout
3337 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3338 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3339 { (exit 1); exit 1; }; }
3345 cat >>confdefs.h <<_ACEOF
3346 #define TIMEOUT $timeout
3349 { echo "$as_me:$LINENO: result: $timeout" >&5
3350 echo "${ECHO_T}$timeout" >&6; }
3352 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3353 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3355 # Check whether --with-password-timeout was given.
3356 if test "${with_password_timeout+set}" = set; then
3357 withval=$with_password_timeout; case $with_password_timeout in
3359 no) password_timeout=0
3361 [0-9]*) password_timeout=$with_password_timeout
3363 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3364 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3365 { (exit 1); exit 1; }; }
3371 cat >>confdefs.h <<_ACEOF
3372 #define PASSWORD_TIMEOUT $password_timeout
3375 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3376 echo "${ECHO_T}$password_timeout" >&6; }
3378 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3379 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3381 # Check whether --with-tty-tickets was given.
3382 if test "${with_tty_tickets+set}" = set; then
3383 withval=$with_tty_tickets; case $with_tty_tickets in
3388 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3389 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3390 { (exit 1); exit 1; }; }
3395 if test "$tty_tickets" = "on"; then
3396 cat >>confdefs.h <<\_ACEOF
3397 #define USE_TTY_TICKETS 1
3400 { echo "$as_me:$LINENO: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6; }
3403 { echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6; }
3407 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3408 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3410 # Check whether --with-insults was given.
3411 if test "${with_insults+set}" = set; then
3412 withval=$with_insults; case $with_insults in
3414 with_classic_insults=yes
3415 with_csops_insults=yes
3419 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3420 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3421 { (exit 1); exit 1; }; }
3426 if test "$insults" = "on"; then
3427 cat >>confdefs.h <<\_ACEOF
3428 #define USE_INSULTS 1
3431 { echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6; }
3434 { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3439 # Check whether --with-all-insults was given.
3440 if test "${with_all_insults+set}" = set; then
3441 withval=$with_all_insults; case $with_all_insults in
3442 yes) with_classic_insults=yes
3443 with_csops_insults=yes
3444 with_hal_insults=yes
3445 with_goons_insults=yes
3448 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3449 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3450 { (exit 1); exit 1; }; }
3457 # Check whether --with-classic-insults was given.
3458 if test "${with_classic_insults+set}" = set; then
3459 withval=$with_classic_insults; case $with_classic_insults in
3460 yes) cat >>confdefs.h <<\_ACEOF
3461 #define CLASSIC_INSULTS 1
3466 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3467 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3468 { (exit 1); exit 1; }; }
3475 # Check whether --with-csops-insults was given.
3476 if test "${with_csops_insults+set}" = set; then
3477 withval=$with_csops_insults; case $with_csops_insults in
3478 yes) cat >>confdefs.h <<\_ACEOF
3479 #define CSOPS_INSULTS 1
3484 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3485 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3486 { (exit 1); exit 1; }; }
3493 # Check whether --with-hal-insults was given.
3494 if test "${with_hal_insults+set}" = set; then
3495 withval=$with_hal_insults; case $with_hal_insults in
3496 yes) cat >>confdefs.h <<\_ACEOF
3497 #define HAL_INSULTS 1
3502 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3503 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3504 { (exit 1); exit 1; }; }
3511 # Check whether --with-goons-insults was given.
3512 if test "${with_goons_insults+set}" = set; then
3513 withval=$with_goons_insults; case $with_goons_insults in
3514 yes) cat >>confdefs.h <<\_ACEOF
3515 #define GOONS_INSULTS 1
3520 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3521 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3522 { (exit 1); exit 1; }; }
3529 # Check whether --with-ldap was given.
3530 if test "${with_ldap+set}" = set; then
3531 withval=$with_ldap; case $with_ldap in
3533 *) cat >>confdefs.h <<\_ACEOF
3537 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3538 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3539 { echo "$as_me:$LINENO: result: yes" >&5
3540 echo "${ECHO_T}yes" >&6; }
3546 # Check whether --with-ldap-conf-file was given.
3547 if test "${with_ldap_conf_file+set}" = set; then
3548 withval=$with_ldap_conf_file;
3549 cat >>confdefs.h <<_ACEOF
3550 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3556 # Check whether --with-ldap-secret-file was given.
3557 if test "${with_ldap_secret_file+set}" = set; then
3558 withval=$with_ldap_secret_file;
3559 cat >>confdefs.h <<_ACEOF
3560 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3567 # Check whether --with-pc-insults was given.
3568 if test "${with_pc_insults+set}" = set; then
3569 withval=$with_pc_insults; case $with_pc_insults in
3570 yes) cat >>confdefs.h <<\_ACEOF
3571 #define PC_INSULTS 1
3576 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3577 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3578 { (exit 1); exit 1; }; }
3584 if test "$insults" = "on"; then
3585 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3586 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3588 test "$with_goons_insults" = "yes" && i="goons ${i}"
3589 test "$with_hal_insults" = "yes" && i="hal ${i}"
3590 test "$with_csops_insults" = "yes" && i="csops ${i}"
3591 test "$with_classic_insults" = "yes" && i="classic ${i}"
3592 { echo "$as_me:$LINENO: result: $i" >&5
3593 echo "${ECHO_T}$i" >&6; }
3596 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3597 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3599 # Check whether --with-secure-path was given.
3600 if test "${with_secure_path+set}" = set; then
3601 withval=$with_secure_path; case $with_secure_path in
3602 yes) cat >>confdefs.h <<_ACEOF
3603 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3606 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3607 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3609 no) { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3612 *) cat >>confdefs.h <<_ACEOF
3613 #define SECURE_PATH "$with_secure_path"
3616 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3617 echo "${ECHO_T}$with_secure_path" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3626 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3627 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3629 # Check whether --with-interfaces was given.
3630 if test "${with_interfaces+set}" = set; then
3631 withval=$with_interfaces; case $with_interfaces in
3632 yes) { echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6; }
3635 no) cat >>confdefs.h <<\_ACEOF
3636 #define STUB_LOAD_INTERFACES 1
3639 { echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6; }
3642 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3643 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3644 { (exit 1); exit 1; }; }
3648 { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3653 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3654 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3656 # Check whether --with-stow was given.
3657 if test "${with_stow+set}" = set; then
3658 withval=$with_stow; case $with_stow in
3659 yes) { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3661 cat >>confdefs.h <<\_ACEOF
3666 no) { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3669 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3670 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3671 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3681 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3682 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3683 # Check whether --enable-authentication was given.
3684 if test "${enable_authentication+set}" = set; then
3685 enableval=$enable_authentication; case "$enableval" in
3686 yes) { echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6; }
3689 no) { echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6; }
3691 cat >>confdefs.h <<\_ACEOF
3692 #define NO_AUTHENTICATION 1
3696 *) { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3698 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3699 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3704 { echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6; }
3709 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3710 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3711 # Check whether --enable-root-mailer was given.
3712 if test "${enable_root_mailer+set}" = set; then
3713 enableval=$enable_root_mailer; case "$enableval" in
3714 yes) { echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6; }
3717 no) { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3719 cat >>confdefs.h <<\_ACEOF
3720 #define NO_ROOT_MAILER 1
3724 *) { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3726 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3727 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3737 # Check whether --enable-setreuid was given.
3738 if test "${enable_setreuid+set}" = set; then
3739 enableval=$enable_setreuid; case "$enableval" in
3740 no) SKIP_SETREUID=yes
3748 # Check whether --enable-setresuid was given.
3749 if test "${enable_setresuid+set}" = set; then
3750 enableval=$enable_setresuid; case "$enableval" in
3751 no) SKIP_SETRESUID=yes
3759 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3760 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3761 # Check whether --enable-shadow was given.
3762 if test "${enable_shadow+set}" = set; then
3763 enableval=$enable_shadow; case "$enableval" in
3764 yes) { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3767 no) { echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6; }
3771 *) { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3773 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3774 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3779 { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3784 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3785 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3786 # Check whether --enable-root-sudo was given.
3787 if test "${enable_root_sudo+set}" = set; then
3788 enableval=$enable_root_sudo; case "$enableval" in
3789 yes) { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3792 no) cat >>confdefs.h <<\_ACEOF
3793 #define NO_ROOT_SUDO 1
3796 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3800 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3801 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3802 { (exit 1); exit 1; }; }
3807 { echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6; }
3812 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3813 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3814 # Check whether --enable-log-host was given.
3815 if test "${enable_log_host+set}" = set; then
3816 enableval=$enable_log_host; case "$enableval" in
3817 yes) { echo "$as_me:$LINENO: result: yes" >&5
3818 echo "${ECHO_T}yes" >&6; }
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HOST_IN_LOG 1
3824 no) { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3827 *) { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3829 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3830 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3835 { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3840 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3841 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3842 # Check whether --enable-noargs-shell was given.
3843 if test "${enable_noargs_shell+set}" = set; then
3844 enableval=$enable_noargs_shell; case "$enableval" in
3845 yes) { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3847 cat >>confdefs.h <<\_ACEOF
3848 #define SHELL_IF_NO_ARGS 1
3852 no) { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3855 *) { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3857 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3858 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3863 { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3868 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3869 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3870 # Check whether --enable-shell-sets-home was given.
3871 if test "${enable_shell_sets_home+set}" = set; then
3872 enableval=$enable_shell_sets_home; case "$enableval" in
3873 yes) { echo "$as_me:$LINENO: result: yes" >&5
3874 echo "${ECHO_T}yes" >&6; }
3875 cat >>confdefs.h <<\_ACEOF
3876 #define SHELL_SETS_HOME 1
3880 no) { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3883 *) { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3886 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3891 { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3896 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3897 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3898 # Check whether --enable-path_info was given.
3899 if test "${enable_path_info+set}" = set; then
3900 enableval=$enable_path_info; case "$enableval" in
3901 yes) { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3904 no) { echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6; }
3906 cat >>confdefs.h <<\_ACEOF
3907 #define DONT_LEAK_PATH_INFO 1
3912 *) { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3915 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3920 { echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6; }
3925 # Extract the first word of "egrep", so it can be a program name with args.
3926 set dummy egrep; ac_word=$2
3927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 if test -n "$EGREPPROG"; then
3933 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_EGREPPROG="egrep"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 EGREPPROG=$ac_cv_prog_EGREPPROG
3953 if test -n "$EGREPPROG"; then
3954 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3955 echo "${ECHO_T}$EGREPPROG" >&6; }
3957 { echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6; }
3962 if test -z "$EGREPPROG"; then
3963 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3964 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3965 { (exit 1); exit 1; }; }
3968 if test "$with_devel" != "yes"; then
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3982 if test "${ac_cv_prog_CC+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$CC"; then
4007 { echo "$as_me:$LINENO: result: $CC" >&5
4008 echo "${ECHO_T}$CC" >&6; }
4010 { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4016 if test -z "$ac_cv_prog_CC"; then
4018 # Extract the first word of "gcc", so it can be a program name with args.
4019 set dummy gcc; ac_word=$2
4020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_CC="gcc"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4048 echo "${ECHO_T}$ac_ct_CC" >&6; }
4050 { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4054 if test "x$ac_ct_CC" = x; then
4057 case $cross_compiling:$ac_tool_warned in
4059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet. If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&5
4062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4063 whose name does not start with the host triplet. If you think this
4064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4065 ac_tool_warned=yes ;;
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_prog_CC="${ac_tool_prefix}cc"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 if test -n "$CC"; then
4104 { echo "$as_me:$LINENO: result: $CC" >&5
4105 echo "${ECHO_T}$CC" >&6; }
4107 { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4114 if test -z "$CC"; then
4115 # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134 ac_prog_rejected=yes
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 if test $ac_prog_rejected = yes; then
4146 # We found a bogon in the path, so make sure we never use it.
4147 set dummy $ac_cv_prog_CC
4149 if test $# != 0; then
4150 # We chose a different compiler from the bogus one.
4151 # However, it has the same basename, so the bogon will be chosen
4152 # first if we set CC to just the basename; use the full file name.
4154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4160 if test -n "$CC"; then
4161 { echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6; }
4164 { echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6; }
4170 if test -z "$CC"; then
4171 if test -n "$ac_tool_prefix"; then
4172 for ac_prog in cl.exe
4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$CC"; then
4203 { echo "$as_me:$LINENO: result: $CC" >&5
4204 echo "${ECHO_T}$CC" >&6; }
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4211 test -n "$CC" && break
4214 if test -z "$CC"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 if test -n "$ac_ct_CC"; then
4226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_ac_ct_CC="$ac_prog"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4248 echo "${ECHO_T}$ac_ct_CC" >&6; }
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4255 test -n "$ac_ct_CC" && break
4258 if test "x$ac_ct_CC" = x; then
4261 case $cross_compiling:$ac_tool_warned in
4263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&5
4266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4267 whose name does not start with the host triplet. If you think this
4268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4269 ac_tool_warned=yes ;;
4278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details." >&2;}
4282 { (exit 1); exit 1; }; }
4284 # Provide some information about the compiler.
4285 echo "$as_me:$LINENO: checking for C compiler version" >&5
4286 ac_compiler=`set X $ac_compile; echo $2`
4287 { (ac_try="$ac_compiler --version >&5"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compiler --version >&5") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }
4297 { (ac_try="$ac_compiler -v >&5"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_compiler -v >&5") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }
4307 { (ac_try="$ac_compiler -V >&5"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_compiler -V >&5") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4333 ac_clean_files_save=$ac_clean_files
4334 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4335 # Try to create an executable without -o first, disregard a.out.
4336 # It will help us diagnose broken compilers, and finding out an intuition
4338 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4339 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4340 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4342 # List of possible output files, starting from the most likely.
4343 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4344 # only as a last resort. b.out is created by i960 compilers.
4345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4347 # The IRIX 6 linker writes into existing files which may not be
4348 # executable, retaining their permissions. Remove them first so a
4349 # subsequent execution test works.
4351 for ac_file in $ac_files
4354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4360 if { (ac_try="$ac_link_default"
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link_default") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; then
4370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4373 # so that the user can short-circuit this test for compilers unknown to
4375 for ac_file in $ac_files ''
4377 test -f "$ac_file" || continue
4379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4382 # We found the default executable, but exeext='' is most
4386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 # We set ac_cv_exeext here because the later test for it is not
4391 # safe: cross compilers may not add the suffix if given an `-o'
4392 # argument, so we may need to know it at that point already.
4393 # Even if this section looks crufty: it has the advantage of
4400 test "$ac_cv_exeext" = no && ac_cv_exeext=
4406 { echo "$as_me:$LINENO: result: $ac_file" >&5
4407 echo "${ECHO_T}$ac_file" >&6; }
4408 if test -z "$ac_file"; then
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&5
4414 echo "$as_me: error: C compiler cannot create executables
4415 See \`config.log' for more details." >&2;}
4416 { (exit 77); exit 77; }; }
4419 ac_exeext=$ac_cv_exeext
4421 # Check that the compiler produces executables we can run. If not, either
4422 # the compiler is broken, or we cross compile.
4423 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428 if { ac_try='./$ac_file'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4440 if test "$cross_compiling" = maybe; then
4443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4444 If you meant to cross compile, use \`--host'.
4445 See \`config.log' for more details." >&5
4446 echo "$as_me: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&2;}
4449 { (exit 1); exit 1; }; }
4453 { echo "$as_me:$LINENO: result: yes" >&5
4454 echo "${ECHO_T}yes" >&6; }
4456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4457 ac_clean_files=$ac_clean_files_save
4458 # Check that the compiler produces executables we can run. If not, either
4459 # the compiler is broken, or we cross compile.
4460 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4462 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4463 echo "${ECHO_T}$cross_compiling" >&6; }
4465 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4467 if { (ac_try="$ac_link"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_link") 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; then
4477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4481 for ac_file in conftest.exe conftest conftest.*; do
4482 test -f "$ac_file" || continue
4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4492 See \`config.log' for more details." >&5
4493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details." >&2;}
4495 { (exit 1); exit 1; }; }
4498 rm -f conftest$ac_cv_exeext
4499 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4500 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4502 rm -f conftest.$ac_ext
4503 EXEEXT=$ac_cv_exeext
4505 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4506 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4507 if test "${ac_cv_objext+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4525 rm -f conftest.o conftest.obj
4526 if { (ac_try="$ac_compile"
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_compile") 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; then
4536 for ac_file in conftest.o conftest.obj conftest.*; do
4537 test -f "$ac_file" || continue;
4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4551 See \`config.log' for more details." >&2;}
4552 { (exit 1); exit 1; }; }
4555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4557 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4558 echo "${ECHO_T}$ac_cv_objext" >&6; }
4559 OBJEXT=$ac_cv_objext
4561 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4562 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4563 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_compile") 2>conftest.er1
4593 grep -v '^ *+' conftest.er1 >conftest.err
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && {
4598 test -z "$ac_c_werror_flag" ||
4599 test ! -s conftest.err
4600 } && test -s conftest.$ac_objext; then
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4613 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4614 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4615 GCC=`test $ac_compiler_gnu = yes && echo yes`
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4619 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_save_c_werror_flag=$ac_c_werror_flag
4624 ac_c_werror_flag=yes
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.$ac_objext; then
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_compile") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && {
4694 test -z "$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 } && test -s conftest.$ac_objext; then
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_c_werror_flag=$ac_save_c_werror_flag
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_compile") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 ac_c_werror_flag=$ac_save_c_werror_flag
4753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4754 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4755 if test "$ac_test_CFLAGS" = set; then
4756 CFLAGS=$ac_save_CFLAGS
4757 elif test $ac_cv_prog_cc_g = yes; then
4758 if test "$GCC" = yes; then
4764 if test "$GCC" = yes; then
4770 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4771 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_cc_c89+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 ac_cv_prog_cc_c89=no
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4785 #include <sys/types.h>
4786 #include <sys/stat.h>
4787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4788 struct buf { int x; };
4789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4790 static char *e (p, i)
4796 static char *f (char * (*g) (char **, int), char **p, ...)
4801 s = g (p, va_arg (v,int));
4806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4807 function prototypes and stuff, but not '\xHH' hex character constants.
4808 These don't provoke an error unfortunately, instead are silently treated
4809 as 'x'. The following induces an error, until -std is added to get
4810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4811 array size at least. It's necessary to write '\x00'==0 to get something
4812 that's true only with -std. */
4813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4816 inside strings and character constants. */
4818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4820 int test (int i, double x);
4821 struct s1 {int (*f) (int a);};
4822 struct s2 {int (*f) (double a);};
4823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4837 CC="$ac_save_CC $ac_arg"
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_cv_prog_cc_c89=$ac_arg
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f core conftest.err conftest.$ac_objext
4864 test "x$ac_cv_prog_cc_c89" != "xno" && break
4866 rm -f conftest.$ac_ext
4871 case "x$ac_cv_prog_cc_c89" in
4873 { echo "$as_me:$LINENO: result: none needed" >&5
4874 echo "${ECHO_T}none needed" >&6; } ;;
4876 { echo "$as_me:$LINENO: result: unsupported" >&5
4877 echo "${ECHO_T}unsupported" >&6; } ;;
4879 CC="$CC $ac_cv_prog_cc_c89"
4880 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4893 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4894 if test "${ac_cv_search_strerror+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 ac_func_search_save_LIBS=$LIBS
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 /* Override any GCC internal prototype to avoid an error.
4906 Use char because int might match the return type of a GCC
4907 builtin and then its argument prototype would still apply. */
4920 for ac_lib in '' cposix; do
4921 if test -z "$ac_lib"; then
4922 ac_res="none required"
4925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4927 rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_link") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest$ac_exeext &&
4944 $as_test_x conftest$ac_exeext; then
4945 ac_cv_search_strerror=$ac_res
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4955 if test "${ac_cv_search_strerror+set}" = set; then
4959 if test "${ac_cv_search_strerror+set}" = set; then
4962 ac_cv_search_strerror=no
4965 LIBS=$ac_func_search_save_LIBS
4967 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4968 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4969 ac_res=$ac_cv_search_strerror
4970 if test "$ac_res" != no; then
4971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4981 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4982 # On Suns, sometimes $CPP names a directory.
4983 if test -n "$CPP" && test -d "$CPP"; then
4986 if test -z "$CPP"; then
4987 if test "${ac_cv_prog_CPP+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 # Double quotes because CPP needs to be expanded
4991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4994 for ac_c_preproc_warn_flag in '' yes
4996 # Use a header file that comes with gcc, so configuring glibc
4997 # with a fresh cross-compiler works.
4998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999 # <limits.h> exists even on freestanding compilers.
5000 # On the NeXT, cc -E runs the code through the compiler's parser,
5001 # not just through cpp. "Syntax error" is here to catch this case.
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 # include <limits.h>
5011 # include <assert.h>
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null && {
5028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 # Broken: fails on valid input.
5040 rm -f conftest.err conftest.$ac_ext
5042 # OK, works on sane cases. Now check whether nonexistent headers
5043 # can be detected and how.
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <ac_nonexistent.h>
5052 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
5065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5068 # Broken: success on invalid input.
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 # Passes both tests.
5079 rm -f conftest.err conftest.$ac_ext
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then
5096 { echo "$as_me:$LINENO: result: $CPP" >&5
5097 echo "${ECHO_T}$CPP" >&6; }
5099 for ac_c_preproc_warn_flag in '' yes
5101 # Use a header file that comes with gcc, so configuring glibc
5102 # with a fresh cross-compiler works.
5103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104 # <limits.h> exists even on freestanding compilers.
5105 # On the NeXT, cc -E runs the code through the compiler's parser,
5106 # not just through cpp. "Syntax error" is here to catch this case.
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5114 # include <limits.h>
5116 # include <assert.h>
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null && {
5133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 # Broken: fails on valid input.
5145 rm -f conftest.err conftest.$ac_ext
5147 # OK, works on sane cases. Now check whether nonexistent headers
5148 # can be detected and how.
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <ac_nonexistent.h>
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null && {
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5173 # Broken: success on invalid input.
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Passes both tests.
5184 rm -f conftest.err conftest.$ac_ext
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5195 See \`config.log' for more details." >&2;}
5196 { (exit 1); exit 1; }; }
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5208 if test -f "$ac_dir/install-sh"; then
5210 ac_install_sh="$ac_aux_dir/install-sh -c"
5212 elif test -f "$ac_dir/install.sh"; then
5214 ac_install_sh="$ac_aux_dir/install.sh -c"
5216 elif test -f "$ac_dir/shtool"; then
5218 ac_install_sh="$ac_aux_dir/shtool install -c"
5222 if test -z "$ac_aux_dir"; then
5223 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5224 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5225 { (exit 1); exit 1; }; }
5228 # These three variables are undocumented and unsupported,
5229 # and are intended to be withdrawn in a future Autoconf release.
5230 # They can cause serious problems if a builder's source tree is in a directory
5231 # whose full name contains unusual characters.
5232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5237 # Make sure we can run config.sub.
5238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5239 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5241 { (exit 1); exit 1; }; }
5243 { echo "$as_me:$LINENO: checking build system type" >&5
5244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5245 if test "${ac_cv_build+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_build_alias=$build_alias
5249 test "x$ac_build_alias" = x &&
5250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5251 test "x$ac_build_alias" = x &&
5252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5254 { (exit 1); exit 1; }; }
5255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5256 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5258 { (exit 1); exit 1; }; }
5261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5262 echo "${ECHO_T}$ac_cv_build" >&6; }
5263 case $ac_cv_build in
5265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5266 echo "$as_me: error: invalid value of canonical build" >&2;}
5267 { (exit 1); exit 1; }; };;
5270 ac_save_IFS=$IFS; IFS='-'
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5283 { echo "$as_me:$LINENO: checking host system type" >&5
5284 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5285 if test "${ac_cv_host+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 if test "x$host_alias" = x; then
5289 ac_cv_host=$ac_cv_build
5291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5292 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5294 { (exit 1); exit 1; }; }
5298 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5299 echo "${ECHO_T}$ac_cv_host" >&6; }
5302 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5303 echo "$as_me: error: invalid value of canonical host" >&2;}
5304 { (exit 1); exit 1; }; };;
5307 ac_save_IFS=$IFS; IFS='-'
5313 # Remember, the first character of IFS is used to create $*,
5314 # except with old shells:
5317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5320 { echo "$as_me:$LINENO: checking target system type" >&5
5321 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5322 if test "${ac_cv_target+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test "x$target_alias" = x; then
5326 ac_cv_target=$ac_cv_host
5328 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5329 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5330 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5331 { (exit 1); exit 1; }; }
5335 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5336 echo "${ECHO_T}$ac_cv_target" >&6; }
5337 case $ac_cv_target in
5339 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5340 echo "$as_me: error: invalid value of canonical target" >&2;}
5341 { (exit 1); exit 1; }; };;
5343 target=$ac_cv_target
5344 ac_save_IFS=$IFS; IFS='-'
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5357 # The aliases save the names the user supplied, while $host etc.
5358 # will get canonicalized.
5359 test -n "$target_alias" &&
5360 test "$program_prefix$program_suffix$program_transform_name" = \
5362 program_prefix=${target_alias}-
5363 # Check whether --enable-static was given.
5364 if test "${enable_static+set}" = set; then
5365 enableval=$enable_static; p=${PACKAGE-default}
5367 yes) enable_static=yes ;;
5368 no) enable_static=no ;;
5371 # Look at the argument we got. We use all the common list separators.
5372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5373 for pkg in $enableval; do
5375 if test "X$pkg" = "X$p"; then
5388 # Check whether --enable-shared was given.
5389 if test "${enable_shared+set}" = set; then
5390 enableval=$enable_shared; p=${PACKAGE-default}
5392 yes) enable_shared=yes ;;
5393 no) enable_shared=no ;;
5396 # Look at the argument we got. We use all the common list separators.
5397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5398 for pkg in $enableval; do
5400 if test "X$pkg" = "X$p"; then
5412 # Check whether --enable-fast-install was given.
5413 if test "${enable_fast_install+set}" = set; then
5414 enableval=$enable_fast_install; p=${PACKAGE-default}
5416 yes) enable_fast_install=yes ;;
5417 no) enable_fast_install=no ;;
5419 enable_fast_install=no
5420 # Look at the argument we got. We use all the common list separators.
5421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5422 for pkg in $enableval; do
5424 if test "X$pkg" = "X$p"; then
5425 enable_fast_install=yes
5432 enable_fast_install=yes
5436 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5437 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5438 if test "${lt_cv_path_SED+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 # Loop through the user's path and test for sed and gsed.
5442 # Then use that list of sed's as ones to test for truncation.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for lt_ac_prog in sed gsed; do
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5451 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5459 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5460 # along with /bin/sed that truncates output.
5461 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5462 test ! -f $lt_ac_sed && continue
5463 cat /dev/null > conftest.in
5465 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5466 # Check for GNU sed and select it if it is found.
5467 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5468 lt_cv_path_SED=$lt_ac_sed
5472 cat conftest.in conftest.in >conftest.tmp
5473 mv conftest.tmp conftest.in
5474 cp conftest.in conftest.nl
5476 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5477 cmp -s conftest.out conftest.nl || break
5478 # 10000 chars as input seems more than enough
5479 test $lt_ac_count -gt 10 && break
5480 lt_ac_count=`expr $lt_ac_count + 1`
5481 if test $lt_ac_count -gt $lt_ac_max; then
5482 lt_ac_max=$lt_ac_count
5483 lt_cv_path_SED=$lt_ac_sed
5492 { echo "$as_me:$LINENO: result: $SED" >&5
5493 echo "${ECHO_T}$SED" >&6; }
5495 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5496 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_GREP+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 # Extract the first word of "grep ggrep" to use in msg output
5501 if test -z "$GREP"; then
5502 set dummy grep ggrep; ac_prog_name=$2
5503 if test "${ac_cv_path_GREP+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_path_GREP_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512 test -z "$as_dir" && as_dir=.
5513 for ac_prog in grep ggrep; do
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5516 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5517 # Check for GNU ac_path_GREP and select it if it is found.
5518 # Check for GNU $ac_path_GREP
5519 case `"$ac_path_GREP" --version 2>&1` in
5521 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5524 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5527 cat "conftest.in" "conftest.in" >"conftest.tmp"
5528 mv "conftest.tmp" "conftest.in"
5529 cp "conftest.in" "conftest.nl"
5530 echo 'GREP' >> "conftest.nl"
5531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533 ac_count=`expr $ac_count + 1`
5534 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5535 # Best one so far, save it but keep looking for a better one
5536 ac_cv_path_GREP="$ac_path_GREP"
5537 ac_path_GREP_max=$ac_count
5539 # 10*(2^10) chars as input seems more than enough
5540 test $ac_count -gt 10 && break
5542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 $ac_path_GREP_found && break 3
5556 GREP="$ac_cv_path_GREP"
5557 if test -z "$GREP"; then
5558 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5559 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5560 { (exit 1); exit 1; }; }
5564 ac_cv_path_GREP=$GREP
5569 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5570 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5571 GREP="$ac_cv_path_GREP"
5574 { echo "$as_me:$LINENO: checking for egrep" >&5
5575 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5576 if test "${ac_cv_path_EGREP+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5580 then ac_cv_path_EGREP="$GREP -E"
5582 # Extract the first word of "egrep" to use in msg output
5583 if test -z "$EGREP"; then
5584 set dummy egrep; ac_prog_name=$2
5585 if test "${ac_cv_path_EGREP+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 ac_path_EGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in egrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5599 # Check for GNU ac_path_EGREP and select it if it is found.
5600 # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5606 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 echo 'EGREP' >> "conftest.nl"
5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 ac_count=`expr $ac_count + 1`
5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_EGREP="$ac_path_EGREP"
5619 ac_path_EGREP_max=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 $ac_path_EGREP_found && break 3
5638 EGREP="$ac_cv_path_EGREP"
5639 if test -z "$EGREP"; then
5640 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5641 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5642 { (exit 1); exit 1; }; }
5646 ac_cv_path_EGREP=$EGREP
5652 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5653 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5654 EGREP="$ac_cv_path_EGREP"
5658 # Check whether --with-gnu-ld was given.
5659 if test "${with_gnu_ld+set}" = set; then
5660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5666 if test "$GCC" = yes; then
5667 # Check if gcc -print-prog-name=ld gives a path.
5668 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5672 # gcc leaves a trailing carriage return which upsets mingw
5673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5678 # Accept absolute paths.
5680 re_direlt='/[^/][^/]*/\.\./'
5681 # Canonicalize the pathname of ld
5682 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5684 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5686 test -z "$LD" && LD="$ac_prog"
5689 # If it fails, then pretend we aren't using GCC.
5693 # If it is relative, then search for the first ld in PATH.
5697 elif test "$with_gnu_ld" = yes; then
5698 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5701 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5704 if test "${lt_cv_path_LD+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 if test -z "$LD"; then
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 for ac_dir in $PATH; do
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713 lt_cv_path_LD="$ac_dir/$ac_prog"
5714 # Check to see if the program is GNU ld. I'd rather use --version,
5715 # but apparently some variants of GNU ld only accept -v.
5716 # Break only if it was the GNU/non-GNU ld that we prefer.
5717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718 *GNU* | *'with BFD'*)
5719 test "$with_gnu_ld" != no && break
5722 test "$with_gnu_ld" != yes && break
5729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5734 if test -n "$LD"; then
5735 { echo "$as_me:$LINENO: result: $LD" >&5
5736 echo "${ECHO_T}$LD" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5743 { (exit 1); exit 1; }; }
5744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752 lt_cv_prog_gnu_ld=yes
5755 lt_cv_prog_gnu_ld=no
5759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5761 with_gnu_ld=$lt_cv_prog_gnu_ld
5764 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5765 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5766 if test "${lt_cv_ld_reload_flag+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 lt_cv_ld_reload_flag='-r'
5771 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5772 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5773 reload_flag=$lt_cv_ld_reload_flag
5774 case $reload_flag in
5776 *) reload_flag=" $reload_flag" ;;
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5781 if test "$GCC" = yes; then
5782 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5789 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791 if test "${lt_cv_path_NM+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$NM"; then
5795 # Let the user override the test.
5798 lt_nm_to_check="${ac_tool_prefix}nm"
5799 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800 lt_nm_to_check="$lt_nm_to_check nm"
5802 for lt_tmp_nm in $lt_nm_to_check; do
5803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5806 test -z "$ac_dir" && ac_dir=.
5807 tmp_nm="$ac_dir/$lt_tmp_nm"
5808 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809 # Check to see if the nm accepts a BSD-compat flag.
5810 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811 # nm: unknown option "B" ignored
5812 # Tru64's nm complains that /dev/null is an invalid object file
5813 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814 */dev/null* | *'Invalid file or object type'*)
5815 lt_cv_path_NM="$tmp_nm -B"
5819 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5821 lt_cv_path_NM="$tmp_nm -p"
5825 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826 continue # so that we can try to find one that supports BSD flags
5835 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5838 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5842 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5843 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5845 if test "$LN_S" = "ln -s"; then
5846 { echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6; }
5849 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5850 echo "${ECHO_T}no, using $LN_S" >&6; }
5853 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5854 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5855 if test "${lt_cv_deplibs_check_method+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # `unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # which responds to the $file_magic_cmd with a given extended regex.
5869 # If you have `file' or equivalent on your system and you're not sure
5870 # whether `pass_all' will *always* work, you probably want this one.
5874 lt_cv_deplibs_check_method=pass_all
5878 lt_cv_deplibs_check_method=pass_all
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883 lt_cv_file_magic_cmd='/usr/bin/file -L'
5884 lt_cv_file_magic_test_file=/shlib/libc.so
5888 # func_win32_libid is a shell function defined in ltmain.sh
5889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890 lt_cv_file_magic_cmd='func_win32_libid'
5894 # Base MSYS/MinGW do not provide the 'file' command needed by
5895 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896 # unless we find 'file', for example because we are cross-compiling.
5897 if ( file / ) >/dev/null 2>&1; then
5898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5899 lt_cv_file_magic_cmd='func_win32_libid'
5901 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5902 lt_cv_file_magic_cmd='$OBJDUMP -f'
5906 darwin* | rhapsody*)
5907 lt_cv_deplibs_check_method=pass_all
5910 freebsd* | dragonfly*)
5911 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5914 # Not sure whether the presence of OpenBSD here was a mistake.
5915 # Let's accept both of them until this is cleared up.
5916 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5917 lt_cv_file_magic_cmd=/usr/bin/file
5918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5922 lt_cv_deplibs_check_method=pass_all
5927 lt_cv_deplibs_check_method=pass_all
5930 hpux10.20* | hpux11*)
5931 lt_cv_file_magic_cmd=/usr/bin/file
5934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5935 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5938 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5939 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5943 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5953 irix5* | irix6* | nonstopux*)
5955 *-32|*"-32 ") libmagic=32-bit;;
5956 *-n32|*"-n32 ") libmagic=N32;;
5957 *-64|*"-64 ") libmagic=64-bit;;
5958 *) libmagic=never-match;;
5960 lt_cv_deplibs_check_method=pass_all
5963 # This must be Linux ELF.
5964 linux* | k*bsd*-gnu)
5965 lt_cv_deplibs_check_method=pass_all
5969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5978 lt_cv_file_magic_cmd=/usr/bin/file
5979 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5983 lt_cv_deplibs_check_method=unknown
5987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5994 osf3* | osf4* | osf5*)
5995 lt_cv_deplibs_check_method=pass_all
5999 lt_cv_deplibs_check_method=pass_all
6003 lt_cv_deplibs_check_method=pass_all
6007 case $host_vendor in
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6013 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_file_magic_cmd='/bin/file'
6017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6020 lt_cv_file_magic_cmd='/bin/file'
6021 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022 lt_cv_file_magic_test_file=/lib/libc.so
6025 lt_cv_deplibs_check_method=pass_all
6028 lt_cv_deplibs_check_method=pass_all
6033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6034 lt_cv_deplibs_check_method=pass_all
6039 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6040 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6048 # If no C compiler was specified, use CC.
6051 # If no C compiler flags were specified, use CFLAGS.
6052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6054 # Allow CC to be a program name with arguments.
6057 # Check whether --enable-libtool-lock was given.
6058 if test "${enable_libtool_lock+set}" = set; then
6059 enableval=$enable_libtool_lock;
6062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6064 # Some flags need to be propagated to the compiler or linker for good
6068 # Find out which ABI we are using.
6069 echo 'int i;' > conftest.$ac_ext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; then
6075 case `/usr/bin/file conftest.$ac_objext` in
6087 # Find out which ABI we are using.
6088 echo '#line 6088 "configure"' > conftest.$ac_ext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; then
6094 if test "$lt_cv_prog_gnu_ld" = yes; then
6095 case `/usr/bin/file conftest.$ac_objext` in
6097 LD="${LD-ld} -melf32bsmip"
6100 LD="${LD-ld} -melf32bmipn32"
6103 LD="${LD-ld} -melf64bmip"
6107 case `/usr/bin/file conftest.$ac_objext` in
6123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6124 s390*-*linux*|sparc*-*linux*)
6125 # Find out which ABI we are using.
6126 echo 'int i;' > conftest.$ac_ext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; then
6132 case `/usr/bin/file conftest.o` in
6135 x86_64-*kfreebsd*-gnu)
6136 LD="${LD-ld} -m elf_i386_fbsd"
6139 LD="${LD-ld} -m elf_i386"
6141 ppc64-*linux*|powerpc64-*linux*)
6142 LD="${LD-ld} -m elf32ppclinux"
6145 LD="${LD-ld} -m elf_s390"
6148 LD="${LD-ld} -m elf32_sparc"
6154 x86_64-*kfreebsd*-gnu)
6155 LD="${LD-ld} -m elf_x86_64_fbsd"
6158 LD="${LD-ld} -m elf_x86_64"
6160 ppc*-*linux*|powerpc*-*linux*)
6161 LD="${LD-ld} -m elf64ppc"
6164 LD="${LD-ld} -m elf64_s390"
6167 LD="${LD-ld} -m elf64_sparc"
6177 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6178 SAVE_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS -belf"
6180 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6181 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6182 if test "${lt_cv_cc_needs_belf+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 lt_cv_cc_needs_belf=yes
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 lt_cv_cc_needs_belf=no
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6242 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6243 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6244 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6245 CFLAGS="$SAVE_CFLAGS"
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
6258 case $lt_cv_prog_gnu_ld in
6259 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6260 *) LD="${LD-ld} -64" ;;
6271 need_locks="$enable_libtool_lock"
6275 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6276 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6277 if test "${ac_cv_header_stdc+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 cat >conftest.$ac_ext <<_ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 ac_cv_header_stdc=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_header_stdc=no
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 if test $ac_cv_header_stdc = yes; then
6327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6338 $EGREP "memchr" >/dev/null 2>&1; then
6341 ac_cv_header_stdc=no
6347 if test $ac_cv_header_stdc = yes; then
6348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359 $EGREP "free" >/dev/null 2>&1; then
6362 ac_cv_header_stdc=no
6368 if test $ac_cv_header_stdc = yes; then
6369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6370 if test "$cross_compiling" = yes; then
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6381 #if ((' ' & 0x0FF) == 0x020)
6382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6385 # define ISLOWER(c) \
6386 (('a' <= (c) && (c) <= 'i') \
6387 || ('j' <= (c) && (c) <= 'r') \
6388 || ('s' <= (c) && (c) <= 'z'))
6389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6397 for (i = 0; i < 256; i++)
6398 if (XOR (islower (i), ISLOWER (i))
6399 || toupper (i) != TOUPPER (i))
6404 rm -f conftest$ac_exeext
6405 if { (ac_try="$ac_link"
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_link") 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6426 echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_header_stdc=no
6433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6441 if test $ac_cv_header_stdc = yes; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6460 inttypes.h stdint.h unistd.h
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6476 #include <$ac_header>
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 eval "$as_ac_Header=yes"
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 eval "$as_ac_Header=no"
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506 { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 for ac_header in dlfcn.h
6521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_res=`eval echo '${'$as_ac_Header'}'`
6529 { echo "$as_me:$LINENO: result: $ac_res" >&5
6530 echo "${ECHO_T}$ac_res" >&6; }
6532 # Is the header compilable?
6533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 #include <$ac_header>
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6561 ac_header_compiler=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_header_compiler=no
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6; }
6573 # Is the header present?
6574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <$ac_header>
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592 grep -v '^ *+' conftest.er1 >conftest.err
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } >/dev/null && {
6597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6600 ac_header_preproc=yes
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_header_preproc=no
6608 rm -f conftest.err conftest.$ac_ext
6609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6610 echo "${ECHO_T}$ac_header_preproc" >&6; }
6612 # So? What about this header?
6613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6619 ac_header_preproc=yes
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 eval "$as_ac_Header=\$ac_header_preproc"
6644 ac_res=`eval echo '${'$as_ac_Header'}'`
6645 { echo "$as_me:$LINENO: result: $ac_res" >&5
6646 echo "${ECHO_T}$ac_res" >&6; }
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650 cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6661 # find the maximum length of command line arguments
6662 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6663 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6664 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 # On DJGPP, this test can blow up pretty badly due to problems in libc
6673 # (any single argument exceeding 2000 bytes causes a buffer overrun
6674 # during glob expansion). Even if it were fixed, the result of this
6675 # check would be larger than it should be.
6676 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6680 # Under GNU Hurd, this test is not required because there is
6681 # no limit to the length of command line arguments.
6682 # Libtool will interpret -1 as no limit whatsoever
6683 lt_cv_sys_max_cmd_len=-1;
6687 # On Win9x/ME, this test blows up -- it succeeds, but takes
6688 # about 5 minutes as the teststring grows exponentially.
6689 # Worse, since 9x/ME are not pre-emptively multitasking,
6690 # you end up with a "frozen" computer, even though with patience
6691 # the test eventually succeeds (with a max line length of 256k).
6692 # Instead, let's just punt: use the minimum linelength reported by
6693 # all of the supported platforms: 8192 (on NT/2K/XP).
6694 lt_cv_sys_max_cmd_len=8192;
6698 # On AmigaOS with pdksh, this test takes hours, literally.
6699 # So we just punt and use a minimum line length of 8192.
6700 lt_cv_sys_max_cmd_len=8192;
6703 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6704 # This has been around since 386BSD, at least. Likely further.
6705 if test -x /sbin/sysctl; then
6706 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6707 elif test -x /usr/sbin/sysctl; then
6708 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6710 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6712 # And add a safety zone
6713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6718 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6719 lt_cv_sys_max_cmd_len=196608
6723 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6724 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6725 # nice to cause kernel panics so lets avoid the loop below.
6726 # First set a reasonable default.
6727 lt_cv_sys_max_cmd_len=16384
6729 if test -x /sbin/sysconfig; then
6730 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6731 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6736 lt_cv_sys_max_cmd_len=102400
6738 sysv5* | sco5v6* | sysv4.2uw2*)
6739 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6740 if test -n "$kargmax"; then
6741 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6743 lt_cv_sys_max_cmd_len=32768
6747 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6748 if test -n "$lt_cv_sys_max_cmd_len"; then
6749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6752 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6753 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6754 = "XX$teststring") >/dev/null 2>&1 &&
6755 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6756 lt_cv_sys_max_cmd_len=$new_result &&
6757 test $i != 17 # 1/2 MB should be enough
6760 teststring=$teststring$teststring
6763 # Add a significant safety factor because C++ compilers can tack on massive
6764 # amounts of additional arguments before passing them to the linker.
6765 # It appears as though 1/2 is a usable value.
6766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6773 if test -n $lt_cv_sys_max_cmd_len ; then
6774 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6775 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6777 { echo "$as_me:$LINENO: result: none" >&5
6778 echo "${ECHO_T}none" >&6; }
6785 # Check for command to grab the raw symbol name followed by C symbol from nm.
6786 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 # These are sane defaults that work on at least a few old systems.
6793 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6795 # Character class describing NM global symbol codes.
6796 symcode='[BCDEGRST]'
6798 # Regexp to match symbols that can be accessed directly from C.
6799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6801 # Transform an extracted symbol line into a proper C declaration
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6807 # Define system-specific variables.
6812 cygwin* | mingw* | pw32*)
6813 symcode='[ABCDGISTW]'
6815 hpux*) # Its linker distinguishes data from code symbols
6816 if test "$host_cpu" = ia64; then
6817 symcode='[ABCDEGRST]'
6819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6822 linux* | k*bsd*-gnu)
6823 if test "$host_cpu" = ia64; then
6824 symcode='[ABCDGIRSTW]'
6825 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6830 symcode='[BCDEGRST]'
6833 symcode='[BCDEGQRST]'
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6852 # Handle CRLF in mingw tool chain
6856 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6860 # If we're using GNU nm, then use its standard symbol codes.
6861 case `$NM -V 2>&1` in
6862 *GNU* | *'with BFD'*)
6863 symcode='[ABCDGIRSTW]' ;;
6866 # Try without a prefix undercore, then with it.
6867 for ac_symprfx in "" "_"; do
6869 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6870 symxfrm="\\1 $ac_symprfx\\2 \\2"
6872 # Write the raw and C identifiers.
6873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6875 # Check to see that the pipe works correctly.
6879 cat > conftest.$ac_ext <<EOF
6884 void nm_test_func(){}
6888 int main(){nm_test_var='a';nm_test_func();return(0);}
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; then
6896 # Now try to grab the symbols.
6898 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6899 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && test -s "$nlist"; then
6903 # Try sorting and uniquifying the output.
6904 if sort "$nlist" | uniq > "$nlist"T; then
6905 mv -f "$nlist"T "$nlist"
6910 # Make sure that we snagged all the symbols we need.
6911 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6912 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6913 cat <<EOF > conftest.$ac_ext
6919 # Now generate the symbol file.
6920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6922 cat <<EOF >> conftest.$ac_ext
6923 #if defined (__STDC__) && __STDC__
6924 # define lt_ptr_t void *
6926 # define lt_ptr_t char *
6930 /* The mapping between symbol names and symbols. */
6935 lt_preloaded_symbols[] =
6938 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6939 cat <<\EOF >> conftest.$ac_ext
6947 # Now try linking the two files.
6948 mv conftest.$ac_objext conftstm.$ac_objext
6949 lt_save_LIBS="$LIBS"
6950 lt_save_CFLAGS="$CFLAGS"
6951 LIBS="conftstm.$ac_objext"
6952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954 (eval $ac_link) 2>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6960 LIBS="$lt_save_LIBS"
6961 CFLAGS="$lt_save_CFLAGS"
6963 echo "cannot find nm_test_func in $nlist" >&5
6966 echo "cannot find nm_test_var in $nlist" >&5
6969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6972 echo "$progname: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6975 rm -f conftest* conftst*
6977 # Do not use the global_symbol_pipe unless it works.
6978 if test "$pipe_works" = yes; then
6981 lt_cv_sys_global_symbol_pipe=
6987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6988 lt_cv_sys_global_symbol_to_cdecl=
6990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6991 { echo "$as_me:$LINENO: result: failed" >&5
6992 echo "${ECHO_T}failed" >&6; }
6994 { echo "$as_me:$LINENO: result: ok" >&5
6995 echo "${ECHO_T}ok" >&6; }
6998 { echo "$as_me:$LINENO: checking for objdir" >&5
6999 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7000 if test "${lt_cv_objdir+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 rm -f .libs 2>/dev/null
7004 mkdir .libs 2>/dev/null
7005 if test -d .libs; then
7008 # MS-DOS does not allow filenames that begin with a dot.
7011 rmdir .libs 2>/dev/null
7013 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7014 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7015 objdir=$lt_cv_objdir
7023 # AIX sometimes has problems with the GCC collect2 program. For some
7024 # reason, if we set the COLLECT_NAMES environment variable, the problems
7025 # vanish in a puff of smoke.
7026 if test "X${COLLECT_NAMES+set}" != Xset; then
7028 export COLLECT_NAMES
7033 # Sed substitution that helps us do robust quoting. It backslashifies
7034 # metacharacters that are still active within double-quoted strings.
7035 Xsed='sed -e 1s/^X//'
7036 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7038 # Same as above, but do not quote variable references.
7039 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7041 # Sed substitution to delay expansion of an escaped shell variable in a
7042 # double_quote_subst'ed string.
7043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045 # Sed substitution to avoid accidental globbing in evaled expressions
7046 no_glob_subst='s/\*/\\\*/g'
7052 default_ofile=libtool
7053 can_build_shared=yes
7055 # All known linkers require a `.a' archive for static linking (except MSVC,
7056 # which needs '.lib').
7058 ltmain="$ac_aux_dir/ltmain.sh"
7059 ofile="$default_ofile"
7060 with_gnu_ld="$lt_cv_prog_gnu_ld"
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}ar; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_AR+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 if test -n "$AR"; then
7071 ac_cv_prog_AR="$AR" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_AR="${ac_tool_prefix}ar"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 if test -n "$AR"; then
7092 { echo "$as_me:$LINENO: result: $AR" >&5
7093 echo "${ECHO_T}$AR" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7101 if test -z "$ac_cv_prog_AR"; then
7103 # Extract the first word of "ar", so it can be a program name with args.
7104 set dummy ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$ac_ct_AR"; then
7111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_AR="ar"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7131 if test -n "$ac_ct_AR"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7133 echo "${ECHO_T}$ac_ct_AR" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7139 if test "x$ac_ct_AR" = x; then
7142 case $cross_compiling:$ac_tool_warned in
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet. If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_RANLIB+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test -n "$RANLIB"; then
7167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 RANLIB=$ac_cv_prog_RANLIB
7187 if test -n "$RANLIB"; then
7188 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7189 echo "${ECHO_T}$RANLIB" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7197 if test -z "$ac_cv_prog_RANLIB"; then
7198 ac_ct_RANLIB=$RANLIB
7199 # Extract the first word of "ranlib", so it can be a program name with args.
7200 set dummy ranlib; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test -n "$ac_ct_RANLIB"; then
7207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_ac_ct_RANLIB="ranlib"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7227 if test -n "$ac_ct_RANLIB"; then
7228 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7229 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7235 if test "x$ac_ct_RANLIB" = x; then
7238 case $cross_compiling:$ac_tool_warned in
7240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7241 whose name does not start with the host triplet. If you think this
7242 configuration is useful to you, please write to autoconf@gnu.org." >&5
7243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7244 whose name does not start with the host triplet. If you think this
7245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7246 ac_tool_warned=yes ;;
7248 RANLIB=$ac_ct_RANLIB
7251 RANLIB="$ac_cv_prog_RANLIB"
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}strip; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_STRIP+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 if test -n "$STRIP"; then
7263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 STRIP=$ac_cv_prog_STRIP
7283 if test -n "$STRIP"; then
7284 { echo "$as_me:$LINENO: result: $STRIP" >&5
7285 echo "${ECHO_T}$STRIP" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7293 if test -z "$ac_cv_prog_STRIP"; then
7295 # Extract the first word of "strip", so it can be a program name with args.
7296 set dummy strip; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 if test -n "$ac_ct_STRIP"; then
7303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_ac_ct_STRIP="strip"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7323 if test -n "$ac_ct_STRIP"; then
7324 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7325 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7331 if test "x$ac_ct_STRIP" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7337 whose name does not start with the host triplet. If you think this
7338 configuration is useful to you, please write to autoconf@gnu.org." >&5
7339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7340 whose name does not start with the host triplet. If you think this
7341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7342 ac_tool_warned=yes ;;
7347 STRIP="$ac_cv_prog_STRIP"
7352 old_CFLAGS="$CFLAGS"
7354 # Set sane defaults for various variables
7355 test -z "$AR" && AR=ar
7356 test -z "$AR_FLAGS" && AR_FLAGS=cru
7357 test -z "$AS" && AS=as
7358 test -z "$CC" && CC=cc
7359 test -z "$LTCC" && LTCC=$CC
7360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7361 test -z "$DLLTOOL" && DLLTOOL=dlltool
7362 test -z "$LD" && LD=ld
7363 test -z "$LN_S" && LN_S="ln -s"
7364 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7365 test -z "$NM" && NM=nm
7366 test -z "$SED" && SED=sed
7367 test -z "$OBJDUMP" && OBJDUMP=objdump
7368 test -z "$RANLIB" && RANLIB=:
7369 test -z "$STRIP" && STRIP=:
7370 test -z "$ac_objext" && ac_objext=o
7372 # Determine commands to create old-style static archives.
7373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7374 old_postinstall_cmds='chmod 644 $oldlib'
7375 old_postuninstall_cmds=
7377 if test -n "$RANLIB"; then
7380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7386 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7389 for cc_temp in $compiler""; do
7391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7400 # Only perform the check for file, if the check method requires it
7401 case $deplibs_check_method in
7403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7404 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7405 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7414 lt_save_MAGIC_CMD="$MAGIC_CMD"
7415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7417 for ac_dir in $ac_dummy; do
7419 test -z "$ac_dir" && ac_dir=.
7420 if test -f $ac_dir/${ac_tool_prefix}file; then
7421 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7422 if test -n "$file_magic_test_file"; then
7423 case $deplibs_check_method in
7425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7428 $EGREP "$file_magic_regex" > /dev/null; then
7433 *** Warning: the command libtool uses to detect shared libraries,
7434 *** $file_magic_cmd, produces output that libtool cannot recognize.
7435 *** The result is that libtool may fail to recognize shared libraries
7436 *** as such. This will affect the creation of libtool libraries that
7437 *** depend on shared libraries, but programs linked with such libtool
7438 *** libraries will work regardless of this problem. Nevertheless, you
7439 *** may want to report the problem to your system manager and/or to
7440 *** bug-libtool@gnu.org
7450 MAGIC_CMD="$lt_save_MAGIC_CMD"
7455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7456 if test -n "$MAGIC_CMD"; then
7457 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7458 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7464 if test -z "$lt_cv_path_MAGIC_CMD"; then
7465 if test -n "$ac_tool_prefix"; then
7466 { echo "$as_me:$LINENO: checking for file" >&5
7467 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7476 lt_save_MAGIC_CMD="$MAGIC_CMD"
7477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7479 for ac_dir in $ac_dummy; do
7481 test -z "$ac_dir" && ac_dir=.
7482 if test -f $ac_dir/file; then
7483 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7484 if test -n "$file_magic_test_file"; then
7485 case $deplibs_check_method in
7487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490 $EGREP "$file_magic_regex" > /dev/null; then
7495 *** Warning: the command libtool uses to detect shared libraries,
7496 *** $file_magic_cmd, produces output that libtool cannot recognize.
7497 *** The result is that libtool may fail to recognize shared libraries
7498 *** as such. This will affect the creation of libtool libraries that
7499 *** depend on shared libraries, but programs linked with such libtool
7500 *** libraries will work regardless of this problem. Nevertheless, you
7501 *** may want to report the problem to your system manager and/or to
7502 *** bug-libtool@gnu.org
7512 MAGIC_CMD="$lt_save_MAGIC_CMD"
7517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518 if test -n "$MAGIC_CMD"; then
7519 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7538 # Check whether --enable-libtool-lock was given.
7539 if test "${enable_libtool_lock+set}" = set; then
7540 enableval=$enable_libtool_lock;
7543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7546 # Check whether --with-pic was given.
7547 if test "${with_pic+set}" = set; then
7548 withval=$with_pic; pic_mode="$withval"
7553 test -z "$pic_mode" && pic_mode=default
7555 # Use C for the default configuration in the libtool script
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7565 # Source file extension for C test sources.
7568 # Object file extension for compiled C test sources.
7572 # Code to be used in simple compile tests
7573 lt_simple_compile_test_code="int some_variable = 0;"
7575 # Code to be used in simple link tests
7576 lt_simple_link_test_code='int main(){return(0);}'
7579 # If no C compiler was specified, use CC.
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7585 # Allow CC to be a program name with arguments.
7589 # save warnings/boilerplate of simple test code
7590 ac_outfile=conftest.$ac_objext
7591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7593 _lt_compiler_boilerplate=`cat conftest.err`
7596 ac_outfile=conftest.$ac_objext
7597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7599 _lt_linker_boilerplate=`cat conftest.err`
7604 ## There is no encapsulation within the following macros, do not change
7605 ## the running order or otherwise move them around unless you know exactly
7606 ## what you are doing...
7608 lt_prog_compiler_no_builtin_flag=
7610 if test "$GCC" = yes; then
7611 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7614 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 lt_cv_prog_compiler_rtti_exceptions=no
7620 ac_outfile=conftest.$ac_objext
7621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622 lt_compiler_flag="-fno-rtti -fno-exceptions"
7623 # Insert the option either (1) after the last *FLAGS variable, or
7624 # (2) before a word containing "conftest.", or (3) at the end.
7625 # Note that $ac_compile itself does not contain backslashes and begins
7626 # with a dollar sign (not a hyphen), so the echo should work correctly.
7627 # The option is referenced via a variable to avoid confusing sed.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>conftest.err)
7635 cat conftest.err >&5
7636 echo "$as_me:7636: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s "$ac_outfile"; then
7638 # The compiler can only warn and ignore the option if not recognized
7639 # So say no if there are warnings other than the usual output.
7640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643 lt_cv_prog_compiler_rtti_exceptions=yes
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7667 if test "$GCC" = yes; then
7668 lt_prog_compiler_wl='-Wl,'
7669 lt_prog_compiler_static='-static'
7673 # All AIX code is PIC.
7674 if test "$host_cpu" = ia64; then
7675 # AIX 5 now supports IA64 processor
7676 lt_prog_compiler_static='-Bstatic'
7681 # FIXME: we need at least 68020 code to build shared libraries, but
7682 # adding the `-m68020' flag to GCC prevents building anything better,
7684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7687 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688 # PIC is the default for these OSes.
7691 mingw* | cygwin* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7695 # (--disable-auto-import) libraries
7696 lt_prog_compiler_pic='-DDLL_EXPORT'
7699 darwin* | rhapsody*)
7700 # PIC is the default on this platform
7701 # Common symbols not allowed in MH_DYLIB files
7702 lt_prog_compiler_pic='-fno-common'
7706 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7707 # Instead, we relocate shared libraries at runtime.
7711 # Just because we use GCC doesn't mean we suddenly get shared libraries
7712 # on systems that don't support them.
7713 lt_prog_compiler_can_build_shared=no
7718 if test -d /usr/nec; then
7719 lt_prog_compiler_pic=-Kconform_pic
7724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7731 lt_prog_compiler_pic='-fPIC'
7737 lt_prog_compiler_pic='-fPIC'
7741 # PORTME Check for flag to pass linker flags through the system compiler.
7744 lt_prog_compiler_wl='-Wl,'
7745 if test "$host_cpu" = ia64; then
7746 # AIX 5 now supports IA64 processor
7747 lt_prog_compiler_static='-Bstatic'
7749 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7753 # PIC is the default on this platform
7754 # Common symbols not allowed in MH_DYLIB files
7755 case $cc_basename in
7757 lt_prog_compiler_pic='-qnocommon'
7758 lt_prog_compiler_wl='-Wl,'
7763 mingw* | cygwin* | pw32* | os2*)
7764 # This hack is so that the source file can tell whether it is being
7765 # built for inclusion in a dll (and should export symbols for example).
7766 lt_prog_compiler_pic='-DDLL_EXPORT'
7769 hpux9* | hpux10* | hpux11*)
7770 lt_prog_compiler_wl='-Wl,'
7771 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7778 lt_prog_compiler_pic='+Z'
7781 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7782 lt_prog_compiler_static='${wl}-a ${wl}archive'
7785 irix5* | irix6* | nonstopux*)
7786 lt_prog_compiler_wl='-Wl,'
7787 # PIC (with -KPIC) is the default.
7788 lt_prog_compiler_static='-non_shared'
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7796 linux* | k*bsd*-gnu)
7797 case $cc_basename in
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-KPIC'
7801 lt_prog_compiler_static='-static'
7803 pgcc* | pgf77* | pgf90* | pgf95*)
7804 # Portland Group compilers (*not* the Pentium gcc compiler,
7805 # which looks to be a dead project)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_pic='-fpic'
7808 lt_prog_compiler_static='-Bstatic'
7811 lt_prog_compiler_wl='-Wl,'
7812 # All Alpha code is PIC.
7813 lt_prog_compiler_static='-non_shared'
7816 case `$CC -V 2>&1 | sed 5q` in
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7821 lt_prog_compiler_wl='-Wl,'
7824 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7825 lt_prog_compiler_pic='-KPIC'
7826 lt_prog_compiler_static='-Bstatic'
7827 lt_prog_compiler_wl=''
7834 osf3* | osf4* | osf5*)
7835 lt_prog_compiler_wl='-Wl,'
7836 # All OSF/1 code is PIC.
7837 lt_prog_compiler_static='-non_shared'
7841 lt_prog_compiler_static='-non_shared'
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-Bstatic'
7847 case $cc_basename in
7849 lt_prog_compiler_wl='-Qoption ld ';;
7851 lt_prog_compiler_wl='-Wl,';;
7856 lt_prog_compiler_wl='-Qoption ld '
7857 lt_prog_compiler_pic='-PIC'
7858 lt_prog_compiler_static='-Bstatic'
7861 sysv4 | sysv4.2uw2* | sysv4.3*)
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
7868 if test -d /usr/nec ;then
7869 lt_prog_compiler_pic='-Kconform_pic'
7870 lt_prog_compiler_static='-Bstatic'
7874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_pic='-KPIC'
7877 lt_prog_compiler_static='-Bstatic'
7881 lt_prog_compiler_wl='-Wl,'
7882 lt_prog_compiler_can_build_shared=no
7886 lt_prog_compiler_pic='-pic'
7887 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_can_build_shared=no
7896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7897 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7900 # Check to make sure the PIC flag actually works.
7902 if test -n "$lt_prog_compiler_pic"; then
7904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7906 if test "${lt_prog_compiler_pic_works+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 lt_prog_compiler_pic_works=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7925 cat conftest.err >&5
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_prog_compiler_pic_works=yes
7939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7940 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7942 if test x"$lt_prog_compiler_pic_works" = xyes; then
7943 case $lt_prog_compiler_pic in
7945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_can_build_shared=no
7954 # For platforms which do not support PIC, -DPIC is meaningless:
7956 lt_prog_compiler_pic=
7959 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7964 # Check to make sure the static flag actually works.
7966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7969 if test "${lt_prog_compiler_static_works+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 lt_prog_compiler_static_works=no
7973 save_LDFLAGS="$LDFLAGS"
7974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7977 # The linker can only warn and ignore the option if not recognized
7978 # So say no if there are warnings
7979 if test -s conftest.err; then
7980 # Append any errors to the config.log.
7981 cat conftest.err 1>&5
7982 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984 if diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_prog_compiler_static_works=yes
7988 lt_prog_compiler_static_works=yes
7992 LDFLAGS="$save_LDFLAGS"
7995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7996 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7998 if test x"$lt_prog_compiler_static_works" = xyes; then
8001 lt_prog_compiler_static=
8005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 lt_cv_prog_compiler_c_o=no
8011 $rm -r conftest 2>/dev/null
8015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8017 lt_compiler_flag="-o out/conftest2.$ac_objext"
8018 # Insert the option either (1) after the last *FLAGS variable, or
8019 # (2) before a word containing "conftest.", or (3) at the end.
8020 # Note that $ac_compile itself does not contain backslashes and begins
8021 # with a dollar sign (not a hyphen), so the echo should work correctly.
8022 lt_compile=`echo "$ac_compile" | $SED \
8023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025 -e 's:$: $lt_compiler_flag:'`
8026 (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
8027 (eval "$lt_compile" 2>out/conftest.err)
8029 cat out/conftest.err >&5
8030 echo "$as_me:8030: \$? = $ac_status" >&5
8031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033 # The compiler can only warn and ignore the option if not recognized
8034 # So say no if there are warnings
8035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038 lt_cv_prog_compiler_c_o=yes
8043 # SGI C++ compiler will create directory out/ii_files/ for
8044 # template instantiation
8045 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8046 $rm out/* && rmdir out
8052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8056 hard_links="nottested"
8057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8058 # do not overwrite the value of need_locks provided by the user
8059 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8065 ln conftest.a conftest.b 2>&5 || hard_links=no
8066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067 { echo "$as_me:$LINENO: result: $hard_links" >&5
8068 echo "${ECHO_T}$hard_links" >&6; }
8069 if test "$hard_links" = no; then
8070 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8082 allow_undefined_flag=
8083 enable_shared_with_static_runtimes=no
8085 archive_expsym_cmds=
8086 old_archive_From_new_cmds=
8087 old_archive_from_expsyms_cmds=
8088 export_dynamic_flag_spec=
8089 whole_archive_flag_spec=
8090 thread_safe_flag_spec=
8091 hardcode_libdir_flag_spec=
8092 hardcode_libdir_flag_spec_ld=
8093 hardcode_libdir_separator=
8096 hardcode_shlibpath_var=unsupported
8097 link_all_deplibs=unknown
8098 hardcode_automatic=no
8101 always_export_symbols=no
8102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8103 # include_expsyms should be a list of space-separated symbols to be *always*
8104 # included in the symbol list
8106 # exclude_expsyms can be an extended regexp of symbols to exclude
8107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8109 # as well as any symbol that contains `d'.
8110 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8112 # platforms (ab)use it in PIC code, but their linkers get confused if
8113 # the symbol is explicitly referenced. Since portable code cannot
8114 # rely on this symbol name, it's probably fine to never include it in
8115 # preloaded symbol tables.
8116 extract_expsyms_cmds=
8117 # Just being paranoid about ensuring that cc_basename is set.
8118 for cc_temp in $compiler""; do
8120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8129 cygwin* | mingw* | pw32*)
8130 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8131 # When not using gcc, we currently assume that we are using
8132 # Microsoft Visual C++.
8133 if test "$GCC" != yes; then
8138 # we just hope/assume this is gcc and not c89 (= MSVC++)
8147 if test "$with_gnu_ld" = yes; then
8148 # If archive_cmds runs LD, not CC, wlarc should be empty
8151 # Set some defaults for GNU ld with shared library support. These
8152 # are reset later if shared libraries are not supported. Putting them
8153 # here allows them to be overridden if necessary.
8154 runpath_var=LD_RUN_PATH
8155 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8156 export_dynamic_flag_spec='${wl}--export-dynamic'
8157 # ancient GNU ld didn't support --whole-archive et. al.
8158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8159 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8161 whole_archive_flag_spec=
8163 supports_anon_versioning=no
8164 case `$LD -v 2>/dev/null` in
8165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8168 *\ 2.11.*) ;; # other 2.11 versions
8169 *) supports_anon_versioning=yes ;;
8172 # See if GNU ld supports shared libraries.
8174 aix3* | aix4* | aix5*)
8175 # On AIX/PPC, the GNU linker is very broken
8176 if test "$host_cpu" != ia64; then
8180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8181 *** to be unable to reliably create shared libraries on AIX.
8182 *** Therefore, libtool is disabling shared libraries support. If you
8183 *** really care for shared libraries, you may want to modify your PATH
8184 *** so that a non-GNU linker is found, and then restart.
8191 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8192 hardcode_libdir_flag_spec='-L$libdir'
8193 hardcode_minus_L=yes
8195 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8196 # that the semantics of dynamic libraries on AmigaOS, at least up
8197 # to version 4, is to share data among multiple programs linked
8198 # with the same dynamic library. Since this doesn't match the
8199 # behavior of shared libraries on other platforms, we can't use
8205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 allow_undefined_flag=unsupported
8207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8208 # support --undefined. This deserves some investigation. FIXME
8209 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 cygwin* | mingw* | pw32*)
8216 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8217 # as there is no search path for DLLs.
8218 hardcode_libdir_flag_spec='-L$libdir'
8219 allow_undefined_flag=unsupported
8220 always_export_symbols=no
8221 enable_shared_with_static_runtimes=yes
8222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8226 # If the export-symbols file already is a .def file (1st line
8227 # is EXPORTS), use it as is; otherwise, prepend...
8228 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8229 cp $export_symbols $output_objdir/$soname.def;
8231 echo EXPORTS > $output_objdir/$soname.def;
8232 cat $export_symbols >> $output_objdir/$soname.def;
8234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8242 hardcode_shlibpath_var=no
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244 export_dynamic_flag_spec='${wl}-E'
8245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8246 # Instead, shared libraries are loaded at an image base (0x10000000 by
8247 # default) and relocated if they conflict, which is a slow very memory
8248 # consuming and fragmenting process. To avoid this, we pick a random,
8249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8250 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8252 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8255 gnu* | linux* | k*bsd*-gnu)
8256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 case $cc_basename,$host_cpu in
8259 pgcc*) # Portland Group C compiler
8260 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8261 tmp_addflag=' $pic_flag'
8263 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8264 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8265 tmp_addflag=' $pic_flag -Mnomain' ;;
8266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8267 tmp_addflag=' -i_dynamic' ;;
8268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8269 tmp_addflag=' -i_dynamic -nofor_main' ;;
8270 ifc* | ifort*) # Intel Fortran compiler
8271 tmp_addflag=' -nofor_main' ;;
8273 case `$CC -V 2>&1 | sed 5q` in
8274 *Sun\ C*) # Sun C 5.9
8275 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8276 tmp_sharedflag='-G' ;;
8277 *Sun\ F*) # Sun Fortran 8.3
8278 tmp_sharedflag='-G' ;;
8280 tmp_sharedflag='-shared' ;;
8282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8284 if test $supports_anon_versioning = yes; then
8285 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8287 $echo "local: *; };" >> $output_objdir/$libname.ver~
8288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8297 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8311 *** create shared libraries on Solaris systems. Therefore, libtool
8312 *** is disabling shared libraries support. We urge you to upgrade GNU
8313 *** binutils to release 2.9.1 or newer. Another option is to modify
8314 *** your PATH or compiler configuration so that the native linker is
8315 *** used, and then restart.
8318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8327 case `$LD -v 2>&1` in
8328 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8333 *** reliably create shared libraries on SCO systems. Therefore, libtool
8334 *** is disabling shared libraries support. We urge you to upgrade GNU
8335 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8336 *** your PATH or compiler configuration so that the native linker is
8337 *** used, and then restart.
8342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8354 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370 if test "$ld_shlibs" = no; then
8372 hardcode_libdir_flag_spec=
8373 export_dynamic_flag_spec=
8374 whole_archive_flag_spec=
8377 # PORTME fill in a description of your system's linker (not GNU ld)
8380 allow_undefined_flag=unsupported
8381 always_export_symbols=yes
8382 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8383 # Note: this linker hardcodes the directories in LIBPATH if there
8384 # are no directories specified by -L.
8385 hardcode_minus_L=yes
8386 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8387 # Neither direct hardcoding nor static linking is supported with a
8389 hardcode_direct=unsupported
8394 if test "$host_cpu" = ia64; then
8395 # On IA64, the linker does run time linking by default, so we don't
8396 # have to do anything special.
8397 aix_use_runtimelinking=no
8398 exp_sym_flag='-Bexport'
8401 # If we're using GNU nm, then we don't want the "-C" option.
8402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8404 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8406 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8408 aix_use_runtimelinking=no
8410 # Test if we are trying to use run time linking or normal
8411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8412 # need to do runtime linking.
8413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8414 for ld_flag in $LDFLAGS; do
8415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8416 aix_use_runtimelinking=yes
8423 exp_sym_flag='-bexport'
8424 no_entry_flag='-bnoentry'
8427 # When large executables or shared objects are built, AIX ld can
8428 # have problems creating the table of contents. If linking a library
8429 # or program results in "error TOC overflow" add -mminimal-toc to
8430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8435 hardcode_libdir_separator=':'
8436 link_all_deplibs=yes
8438 if test "$GCC" = yes; then
8439 case $host_os in aix4.[012]|aix4.[012].*)
8440 # We only want to do this on AIX 4.2 and lower, the check
8441 # below for broken collect2 doesn't work under 4.3+
8442 collect2name=`${CC} -print-prog-name=collect2`
8443 if test -f "$collect2name" && \
8444 strings "$collect2name" | grep resolve_lib_name >/dev/null
8446 # We have reworked collect2
8449 # We have old collect2
8450 hardcode_direct=unsupported
8451 # It fails to find uninstalled libraries when the uninstalled
8452 # path is not listed in the libpath. Setting hardcode_minus_L
8453 # to unsupported forces relinking
8454 hardcode_minus_L=yes
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_libdir_separator=
8460 shared_flag='-shared'
8461 if test "$aix_use_runtimelinking" = yes; then
8462 shared_flag="$shared_flag "'${wl}-G'
8466 if test "$host_cpu" = ia64; then
8467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8468 # chokes on -Wl,-G. The following line is correct:
8471 if test "$aix_use_runtimelinking" = yes; then
8472 shared_flag='${wl}-G'
8474 shared_flag='${wl}-bM:SRE'
8479 # It seems that -bexpall does not export symbols beginning with
8480 # underscore (_), so it is better to generate a list of symbols to export.
8481 always_export_symbols=yes
8482 if test "$aix_use_runtimelinking" = yes; then
8483 # Warning - without using the other runtime loading flags (-brtl),
8484 # -berok will link without error, but may produce a broken library.
8485 allow_undefined_flag='-berok'
8486 # Determine the default libpath from the value encoded in an empty executable.
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (ac_try="$ac_link"
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_link") 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_c_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest$ac_exeext &&
8519 $as_test_x conftest$ac_exeext; then
8521 lt_aix_libpath_sed='
8522 /Import File Strings/,/^$/ {
8528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529 # Check for a 64-bit object if we didn't find anything.
8530 if test -z "$aix_libpath"; then
8531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541 conftest$ac_exeext conftest.$ac_ext
8542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8545 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8547 if test "$host_cpu" = ia64; then
8548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8549 allow_undefined_flag="-z nodefs"
8550 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8552 # Determine the default libpath from the value encoded in an empty executable.
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_link") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest$ac_exeext &&
8585 $as_test_x conftest$ac_exeext; then
8587 lt_aix_libpath_sed='
8588 /Import File Strings/,/^$/ {
8594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595 # Check for a 64-bit object if we didn't find anything.
8596 if test -z "$aix_libpath"; then
8597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 conftest$ac_exeext conftest.$ac_ext
8608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8610 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8611 # Warning - without using the other run time loading flags,
8612 # -berok will link without error, but may produce a broken library.
8613 no_undefined_flag=' ${wl}-bernotok'
8614 allow_undefined_flag=' ${wl}-berok'
8615 # Exported symbols can be pulled into shared objects from archives
8616 whole_archive_flag_spec='$convenience'
8617 archive_cmds_need_lc=yes
8618 # This is similar to how AIX traditionally builds its shared libraries.
8619 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8625 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_minus_L=yes
8628 # see comment about different semantics on the GNU ld section
8633 export_dynamic_flag_spec=-rdynamic
8636 cygwin* | mingw* | pw32*)
8637 # When not using gcc, we currently assume that we are using
8638 # Microsoft Visual C++.
8639 # hardcode_libdir_flag_spec is actually meaningless, as there is
8640 # no search path for DLLs.
8641 hardcode_libdir_flag_spec=' '
8642 allow_undefined_flag=unsupported
8643 # Tell ltmain to make .lib files, not .a files.
8645 # Tell ltmain to make .dll files, not .so files.
8647 # FIXME: Setting linknames here is a bad hack.
8648 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8649 # The linker will automatically build a .lib file if we build a DLL.
8650 old_archive_From_new_cmds='true'
8651 # FIXME: Should let the user specify the lib program.
8652 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8653 fix_srcfile_path='`cygpath -w "$srcfile"`'
8654 enable_shared_with_static_runtimes=yes
8657 darwin* | rhapsody*)
8659 rhapsody* | darwin1.[012])
8660 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8663 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8664 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8666 case ${MACOSX_DEPLOYMENT_TARGET} in
8668 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8671 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8677 archive_cmds_need_lc=no
8679 hardcode_automatic=yes
8680 hardcode_shlibpath_var=unsupported
8681 whole_archive_flag_spec=''
8682 link_all_deplibs=yes
8683 if test "$GCC" = yes ; then
8684 output_verbose_link_cmd='echo'
8685 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8686 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8688 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8689 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8691 case $cc_basename in
8693 output_verbose_link_cmd='echo'
8694 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8695 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8698 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_shlibpath_var=no
8717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718 # support. Future versions do this automatically, but an explicit c++rt0.o
8719 # does not break anything, and helps significantly (at the cost of a little
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723 hardcode_libdir_flag_spec='-R$libdir'
8725 hardcode_shlibpath_var=no
8728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_minus_L=yes
8733 hardcode_shlibpath_var=no
8736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737 freebsd* | dragonfly*)
8738 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739 hardcode_libdir_flag_spec='-R$libdir'
8741 hardcode_shlibpath_var=no
8745 if test "$GCC" = yes; then
8746 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8748 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751 hardcode_libdir_separator=:
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L=yes
8757 export_dynamic_flag_spec='${wl}-E'
8761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8766 if test "$with_gnu_ld" = no; then
8767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768 hardcode_libdir_separator=:
8771 export_dynamic_flag_spec='${wl}-E'
8773 # hardcode_minus_L: Not really in the search PATH,
8774 # but as the default location of the library.
8775 hardcode_minus_L=yes
8780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8805 if test "$with_gnu_ld" = no; then
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8811 hardcode_libdir_flag_spec_ld='+b $libdir'
8813 hardcode_shlibpath_var=no
8817 export_dynamic_flag_spec='${wl}-E'
8819 # hardcode_minus_L: Not really in the search PATH,
8820 # but as the default location of the library.
8821 hardcode_minus_L=yes
8827 irix5* | irix6* | nonstopux*)
8828 if test "$GCC" = yes; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8831 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8832 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 hardcode_libdir_separator=:
8836 link_all_deplibs=yes
8840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8845 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_shlibpath_var=no
8851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855 hardcode_shlibpath_var=no
8859 if test -f /usr/libexec/ld.so; then
8861 hardcode_shlibpath_var=no
8862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871 hardcode_libdir_flag_spec='-R$libdir'
8874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_minus_L=yes
8887 allow_undefined_flag=unsupported
8888 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8889 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893 if test "$GCC" = yes; then
8894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8897 allow_undefined_flag=' -expect_unresolved \*'
8898 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901 hardcode_libdir_separator=:
8904 osf4* | osf5*) # as osf3* with the addition of -msym flag
8905 if test "$GCC" = yes; then
8906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910 allow_undefined_flag=' -expect_unresolved \*'
8911 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8912 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8913 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8915 # Both c and cxx compiler support -rpath directly
8916 hardcode_libdir_flag_spec='-rpath $libdir'
8918 hardcode_libdir_separator=:
8922 no_undefined_flag=' -z text'
8923 if test "$GCC" = yes; then
8925 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8930 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8934 hardcode_libdir_flag_spec='-R$libdir'
8935 hardcode_shlibpath_var=no
8937 solaris2.[0-5] | solaris2.[0-5].*) ;;
8939 # The compiler driver will combine and reorder linker options,
8940 # but understands `-z linker_flag'. GCC discards it without `$wl',
8941 # but is careful enough not to reorder.
8942 # Supported since Solaris 2.6 (maybe 2.5.1?)
8943 if test "$GCC" = yes; then
8944 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8946 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8950 link_all_deplibs=yes
8954 if test "x$host_vendor" = xsequent; then
8955 # Use $CC to link under sequent, because it throws in some extra .o
8956 # files that make .init and .fini sections work.
8957 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_minus_L=yes
8964 hardcode_shlibpath_var=no
8968 case $host_vendor in
8970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_direct=yes # is this really true???
8974 ## LD is ld it makes a PLAMLIB
8975 ## CC just makes a GrossModule.
8976 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8977 reload_cmds='$CC -r -o $output$reload_objs'
8981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8985 runpath_var='LD_RUN_PATH'
8986 hardcode_shlibpath_var=no
8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_shlibpath_var=no
8992 export_dynamic_flag_spec='-Bexport'
8996 if test -d /usr/nec; then
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_shlibpath_var=no
8999 runpath_var=LD_RUN_PATH
9000 hardcode_runpath_var=yes
9005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9006 no_undefined_flag='${wl}-z,text'
9007 archive_cmds_need_lc=no
9008 hardcode_shlibpath_var=no
9009 runpath_var='LD_RUN_PATH'
9011 if test "$GCC" = yes; then
9012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 sysv5* | sco3.2v5* | sco5v6*)
9021 # Note: We can NOT use -z defs as we might desire, because we do not
9022 # link with -lc, and that would cause any symbols used from libc to
9023 # always be unresolved, which means just about no library would
9024 # ever link correctly. If we're not using GNU ld we use -z text
9025 # though, which does catch some bad symbols but isn't as heavy-handed
9027 no_undefined_flag='${wl}-z,text'
9028 allow_undefined_flag='${wl}-z,nodefs'
9029 archive_cmds_need_lc=no
9030 hardcode_shlibpath_var=no
9031 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9032 hardcode_libdir_separator=':'
9033 link_all_deplibs=yes
9034 export_dynamic_flag_spec='${wl}-Bexport'
9035 runpath_var='LD_RUN_PATH'
9037 if test "$GCC" = yes; then
9038 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 hardcode_shlibpath_var=no
9058 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9059 echo "${ECHO_T}$ld_shlibs" >&6; }
9060 test "$ld_shlibs" = no && can_build_shared=no
9063 # Do we need to explicitly link libc?
9065 case "x$archive_cmds_need_lc" in
9067 # Assume -lc should be added
9068 archive_cmds_need_lc=yes
9070 if test "$enable_shared" = yes && test "$GCC" = yes; then
9071 case $archive_cmds in
9073 # FIXME: we may have to deal with multi-command sequences.
9076 # Test whether the compiler implicitly links with -lc since on some
9077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078 # to ld, don't add -lc before -lgcc.
9079 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9080 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } 2>conftest.err; then
9091 libobjs=conftest.$ac_objext
9093 wl=$lt_prog_compiler_wl
9094 pic_flag=$lt_prog_compiler_pic
9100 lt_save_allow_undefined_flag=$allow_undefined_flag
9101 allow_undefined_flag=
9102 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9103 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }
9108 archive_cmds_need_lc=no
9110 archive_cmds_need_lc=yes
9112 allow_undefined_flag=$lt_save_allow_undefined_flag
9114 cat conftest.err 1>&5
9117 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9118 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9125 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9126 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9128 libname_spec='lib$name'
9136 shlibpath_overrides_runpath=unknown
9138 dynamic_linker="$host_os ld.so"
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9141 if test "$GCC" = yes; then
9143 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9144 *) lt_awk_arg="/^libraries:/" ;;
9146 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9147 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9148 # if the path contains ";" then we assume it to be the separator
9149 # otherwise default to the standard path separator (i.e. ":") - it is
9150 # assumed that no part of a normal pathname contains ";" but that should
9151 # okay in the real world where ";" in dirpaths is itself problematic.
9152 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9154 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9156 # Ok, now we have the path, separated by spaces, we can step through it
9157 # and add multilib dir if necessary.
9158 lt_tmp_lt_search_path_spec=
9159 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9160 for lt_sys_path in $lt_search_path_spec; do
9161 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9162 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9164 test -d "$lt_sys_path" && \
9165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9168 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9169 BEGIN {RS=" "; FS="/|\n";} {
9172 for (lt_i = NF; lt_i > 0; lt_i--) {
9173 if ($lt_i != "" && $lt_i != ".") {
9174 if ($lt_i == "..") {
9177 if (lt_count == 0) {
9178 lt_foo="/" $lt_i lt_foo;
9185 if (lt_foo != "") { lt_freq[lt_foo]++; }
9186 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9188 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9193 hardcode_into_libs=no
9195 # when you set need_version to no, make sure it does not cause -set_version
9196 # flags to be left without arguments
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203 shlibpath_var=LIBPATH
9205 # AIX 3 has no versioning support, so we append a major version to the name.
9206 soname_spec='${libname}${release}${shared_ext}$major'
9213 hardcode_into_libs=yes
9214 if test "$host_cpu" = ia64; then
9215 # AIX 5 supports IA64
9216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217 shlibpath_var=LD_LIBRARY_PATH
9219 # With GCC up to 2.95.x, collect2 would create an import file
9220 # for dependence libraries. The import file would start with
9221 # the line `#! .'. This would cause the generated library to
9222 # depend on `.', always an invalid library. This was fixed in
9223 # development snapshots of GCC prior to 3.0.
9225 aix4 | aix4.[01] | aix4.[01].*)
9226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9228 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236 # soname into executable. Probably we can add versioning support to
9237 # collect2, so additional links can be useful in future.
9238 if test "$aix_use_runtimelinking" = yes; then
9239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240 # instead of lib<name>.a to let people know that these are not
9241 # typical AIX shared libraries.
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 # We preserve .a as extension for shared libraries through AIX4.2
9245 # and later when we are not doing run time linking.
9246 library_names_spec='${libname}${release}.a $libname.a'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LIBPATH
9254 library_names_spec='$libname.ixlibrary $libname.a'
9255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9260 library_names_spec='${libname}${shared_ext}'
9261 dynamic_linker="$host_os ld.so"
9262 shlibpath_var=LIBRARY_PATH
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274 # the default ld.so.conf also contains /usr/contrib/lib and
9275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276 # libtool to hard-code these into programs
9279 cygwin* | mingw* | pw32*)
9280 version_type=windows
9285 case $GCC,$host_os in
9286 yes,cygwin* | yes,mingw* | yes,pw32*)
9287 library_names_spec='$libname.dll.a'
9288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289 postinstall_cmds='base_file=`basename \${file}`~
9290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291 dldir=$destdir/`dirname \$dlpath`~
9292 test -d \$dldir || mkdir -p \$dldir~
9293 $install_prog $dir/$dlname \$dldir/$dlname~
9294 chmod a+x \$dldir/$dlname'
9295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296 dlpath=$dir/\$dldll~
9298 shlibpath_overrides_runpath=yes
9302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9307 # MinGW DLLs use traditional 'lib' prefix
9308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311 # It is most probably a Windows format PATH printed by
9312 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313 # path with ; separators, and with drive letters. We can handle the
9314 # drive letters (cygwin fileutils understands them), so leave them,
9315 # especially as we might pass files found there to a mingw objdump,
9316 # which wouldn't understand a cygwinified path. Ahh.
9317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 # pw32 DLLs use 'pw' prefix rather than 'lib'
9324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9333 dynamic_linker='Win32 ld.exe'
9334 # FIXME: first we should search . and the directory the executable is in
9338 darwin* | rhapsody*)
9339 dynamic_linker="$host_os dyld"
9343 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344 soname_spec='${libname}${release}${major}$shared_ext'
9345 shlibpath_overrides_runpath=yes
9346 shlibpath_var=DYLD_LIBRARY_PATH
9347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9349 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9366 freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9373 freebsd[123]*) objformat=aout ;;
9377 version_type=freebsd-$objformat
9378 case $version_type in
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9394 freebsd3.[01]* | freebsdelf3.[01]*)
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9403 *) # from 4.6 on, and DragonFly
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9420 hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 if test "X$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 dynamic_linker="$host_os dld.sl"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9478 irix5* | irix6* | nonstopux*)
9480 nonstopux*) version_type=nonstopux ;;
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9493 irix5* | nonstopux*)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512 hardcode_into_libs=yes
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9520 # This must be Linux ELF.
9521 linux* | k*bsd*-gnu)
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
9537 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9557 dynamic_linker='NetBSD (a.out) ld.so'
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 dynamic_linker='NetBSD ld.elf_so'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes
9565 hardcode_into_libs=yes
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 shlibpath_overrides_runpath=yes
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes
9587 sys_lib_dlsearch_path_spec="/usr/lib"
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9595 openbsd2.[89] | openbsd2.[89].*)
9596 shlibpath_overrides_runpath=no
9599 shlibpath_overrides_runpath=yes
9603 shlibpath_overrides_runpath=yes
9608 libname_spec='$name'
9611 library_names_spec='$libname${shared_ext} $libname.a'
9612 dynamic_linker='OS/2 ld.exe'
9613 shlibpath_var=LIBPATH
9616 osf3* | osf4* | osf5*)
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9624 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 shlibpath_overrides_runpath=yes
9639 hardcode_into_libs=yes
9640 # ldd complains unless libraries are executable
9641 postinstall_cmds='chmod +x $lib'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes
9650 if test "$with_gnu_ld" = yes; then
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 case $host_vendor in
9663 shlibpath_overrides_runpath=no
9665 export_dynamic_flag_spec='${wl}-Blargedynsym'
9666 runpath_var=LD_RUN_PATH
9674 shlibpath_overrides_runpath=no
9675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9681 if test -d /usr/nec ;then
9683 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9684 soname_spec='$libname${shared_ext}.$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9690 version_type=freebsd-elf
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 hardcode_into_libs=yes
9697 if test "$with_gnu_ld" = yes; then
9698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9699 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9702 shlibpath_overrides_runpath=yes
9705 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9709 sys_lib_dlsearch_path_spec='/usr/lib'
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 shlibpath_var=LD_LIBRARY_PATH
9723 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9724 echo "${ECHO_T}$dynamic_linker" >&6; }
9725 test "$dynamic_linker" = no && can_build_shared=no
9727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9728 if test "$GCC" = yes; then
9729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9732 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9735 if test -n "$hardcode_libdir_flag_spec" || \
9736 test -n "$runpath_var" || \
9737 test "X$hardcode_automatic" = "Xyes" ; then
9739 # We can hardcode non-existent directories.
9740 if test "$hardcode_direct" != no &&
9741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9742 # have to relink, otherwise we might link with an installed library
9743 # when we should be linking with a yet-to-be-installed one
9744 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9745 test "$hardcode_minus_L" != no; then
9746 # Linking always hardcodes the temporary library directory.
9747 hardcode_action=relink
9749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9750 hardcode_action=immediate
9753 # We cannot hardcode anything, or else we can only hardcode existing
9755 hardcode_action=unsupported
9757 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9758 echo "${ECHO_T}$hardcode_action" >&6; }
9760 if test "$hardcode_action" = relink; then
9761 # Fast installation is not supported
9762 enable_fast_install=no
9763 elif test "$shlibpath_overrides_runpath" = yes ||
9764 test "$enable_shared" = no; then
9765 # Fast installation is not necessary
9766 enable_fast_install=needless
9771 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9772 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9773 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9774 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9775 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9776 { echo "$as_me:$LINENO: result: yes" >&5
9777 echo "${ECHO_T}yes" >&6; }
9779 # FIXME - insert some real tests, host_os isn't really good enough
9782 if test -n "$STRIP" ; then
9783 striplib="$STRIP -x"
9784 old_striplib="$STRIP -S"
9785 { echo "$as_me:$LINENO: result: yes" >&5
9786 echo "${ECHO_T}yes" >&6; }
9788 { echo "$as_me:$LINENO: result: no" >&5
9789 echo "${ECHO_T}no" >&6; }
9793 { echo "$as_me:$LINENO: result: no" >&5
9794 echo "${ECHO_T}no" >&6; }
9799 if test "x$enable_dlopen" != xyes; then
9800 enable_dlopen=unknown
9801 enable_dlopen_self=unknown
9802 enable_dlopen_self_static=unknown
9809 lt_cv_dlopen="load_add_on"
9811 lt_cv_dlopen_self=yes
9815 lt_cv_dlopen="LoadLibrary"
9820 lt_cv_dlopen="dlopen"
9825 # if libdl is installed we need to link against it
9826 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 ac_check_lib_save_LIBS=$LIBS
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest$ac_exeext &&
9872 $as_test_x conftest$ac_exeext; then
9873 ac_cv_lib_dl_dlopen=yes
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_cv_lib_dl_dlopen=no
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9885 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9887 if test $ac_cv_lib_dl_dlopen = yes; then
9888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9893 lt_cv_dlopen_self=yes
9900 { echo "$as_me:$LINENO: checking for shl_load" >&5
9901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9902 if test "${ac_cv_func_shl_load+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define shl_load innocuous_shl_load
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char shl_load (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined __stub_shl_load || defined __stub___shl_load
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
9968 ac_cv_func_shl_load=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_func_shl_load=no
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9981 if test $ac_cv_func_shl_load = yes; then
9982 lt_cv_dlopen="shl_load"
9984 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
10008 return shl_load ();
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest$ac_exeext &&
10030 $as_test_x conftest$ac_exeext; then
10031 ac_cv_lib_dld_shl_load=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_cv_lib_dld_shl_load=no
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10045 if test $ac_cv_lib_dld_shl_load = yes; then
10046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10048 { echo "$as_me:$LINENO: checking for dlopen" >&5
10049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10050 if test "${ac_cv_func_dlopen+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10061 #define dlopen innocuous_dlopen
10063 /* System header to define __stub macros and hopefully few prototypes,
10064 which can conflict with char dlopen (); below.
10065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066 <limits.h> exists even on freestanding compilers. */
10069 # include <limits.h>
10071 # include <assert.h>
10076 /* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10083 /* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086 #if defined __stub_dlopen || defined __stub___dlopen
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest$ac_exeext &&
10115 $as_test_x conftest$ac_exeext; then
10116 ac_cv_func_dlopen=yes
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_cv_func_dlopen=no
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125 conftest$ac_exeext conftest.$ac_ext
10127 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10128 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10129 if test $ac_cv_func_dlopen = yes; then
10130 lt_cv_dlopen="dlopen"
10132 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 ac_check_lib_save_LIBS=$LIBS
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10179 ac_cv_lib_dl_dlopen=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_dl_dlopen=no
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10193 if test $ac_cv_lib_dl_dlopen = yes; then
10194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10196 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10197 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10198 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-lsvld $LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10210 /* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10234 grep -v '^ *+' conftest.er1 >conftest.err
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest$ac_exeext &&
10242 $as_test_x conftest$ac_exeext; then
10243 ac_cv_lib_svld_dlopen=yes
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 ac_cv_lib_svld_dlopen=no
10251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10257 if test $ac_cv_lib_svld_dlopen = yes; then
10258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10260 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10261 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 ac_check_lib_save_LIBS=$LIBS
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10284 return dld_link ();
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest$ac_exeext &&
10306 $as_test_x conftest$ac_exeext; then
10307 ac_cv_lib_dld_dld_link=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_dld_dld_link=no
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10321 if test $ac_cv_lib_dld_dld_link = yes; then
10322 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10343 if test "x$lt_cv_dlopen" != xno; then
10349 case $lt_cv_dlopen in
10351 save_CPPFLAGS="$CPPFLAGS"
10352 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10354 save_LDFLAGS="$LDFLAGS"
10355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10358 LIBS="$lt_cv_dlopen_libs $LIBS"
10360 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10361 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10362 if test "${lt_cv_dlopen_self+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 if test "$cross_compiling" = yes; then :
10366 lt_cv_dlopen_self=cross
10368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10369 lt_status=$lt_dlunknown
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10381 # define LT_DLGLOBAL RTLD_GLOBAL
10384 # define LT_DLGLOBAL DL_GLOBAL
10386 # define LT_DLGLOBAL 0
10390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10391 find out it does not work in some platform. */
10392 #ifndef LT_DLLAZY_OR_NOW
10394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10397 # define LT_DLLAZY_OR_NOW DL_LAZY
10400 # define LT_DLLAZY_OR_NOW RTLD_NOW
10403 # define LT_DLLAZY_OR_NOW DL_NOW
10405 # define LT_DLLAZY_OR_NOW 0
10413 extern "C" void exit (int);
10416 void fnord() { int i=42;}
10419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10420 int status = $lt_dlunknown;
10424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10425 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10426 /* dlclose (self); */
10434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435 (eval $ac_link) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10439 (./conftest; exit; ) >&5 2>/dev/null
10441 case x$lt_status in
10442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10444 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10447 # compilation failed
10448 lt_cv_dlopen_self=no
10455 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10458 if test "x$lt_cv_dlopen_self" = xyes; then
10459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10460 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10462 if test "${lt_cv_dlopen_self_static+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 if test "$cross_compiling" = yes; then :
10466 lt_cv_dlopen_self_static=cross
10468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10469 lt_status=$lt_dlunknown
10470 cat > conftest.$ac_ext <<EOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10481 # define LT_DLGLOBAL RTLD_GLOBAL
10484 # define LT_DLGLOBAL DL_GLOBAL
10486 # define LT_DLGLOBAL 0
10490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10491 find out it does not work in some platform. */
10492 #ifndef LT_DLLAZY_OR_NOW
10494 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10497 # define LT_DLLAZY_OR_NOW DL_LAZY
10500 # define LT_DLLAZY_OR_NOW RTLD_NOW
10503 # define LT_DLLAZY_OR_NOW DL_NOW
10505 # define LT_DLLAZY_OR_NOW 0
10513 extern "C" void exit (int);
10516 void fnord() { int i=42;}
10519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10520 int status = $lt_dlunknown;
10524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10526 /* dlclose (self); */
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10539 (./conftest; exit; ) >&5 2>/dev/null
10541 case x$lt_status in
10542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10547 # compilation failed
10548 lt_cv_dlopen_self_static=no
10555 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10556 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10559 CPPFLAGS="$save_CPPFLAGS"
10560 LDFLAGS="$save_LDFLAGS"
10565 case $lt_cv_dlopen_self in
10566 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10567 *) enable_dlopen_self=unknown ;;
10570 case $lt_cv_dlopen_self_static in
10571 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10572 *) enable_dlopen_self_static=unknown ;;
10577 # Report which library types will actually be built
10578 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10579 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10580 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10581 echo "${ECHO_T}$can_build_shared" >&6; }
10583 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10584 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10585 test "$can_build_shared" = "no" && enable_shared=no
10587 # On AIX, shared libraries and static libraries use the same namespace, and
10588 # are all built from PIC.
10591 test "$enable_shared" = yes && enable_static=no
10592 if test -n "$RANLIB"; then
10593 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10594 postinstall_cmds='$RANLIB $lib'
10599 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10600 test "$enable_shared" = yes && enable_static=no
10604 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10605 echo "${ECHO_T}$enable_shared" >&6; }
10607 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10608 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10609 # Make sure either enable_shared or enable_static is yes.
10610 test "$enable_shared" = yes || enable_static=yes
10611 { echo "$as_me:$LINENO: result: $enable_static" >&5
10612 echo "${ECHO_T}$enable_static" >&6; }
10614 # The else clause should only fire when bootstrapping the
10615 # libtool distribution, otherwise you forgot to ship ltmain.sh
10616 # with your package, and you will get complaints that there are
10617 # no rules to generate ltmain.sh.
10618 if test -f "$ltmain"; then
10619 # See if we are running on zsh, and set the options which allow our commands through
10620 # without removal of \ escapes.
10621 if test -n "${ZSH_VERSION+set}" ; then
10622 setopt NO_GLOB_SUBST
10624 # Now quote all the things that may contain metacharacters while being
10625 # careful not to overquote the AC_SUBSTed values. We take copies of the
10626 # variables and quote the copies for generation of the libtool script.
10627 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10629 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10630 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10631 deplibs_check_method reload_flag reload_cmds need_locks \
10632 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10633 lt_cv_sys_global_symbol_to_c_name_address \
10634 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10635 old_postinstall_cmds old_postuninstall_cmds \
10639 lt_prog_compiler_wl \
10640 lt_prog_compiler_pic \
10641 lt_prog_compiler_static \
10642 lt_prog_compiler_no_builtin_flag \
10643 export_dynamic_flag_spec \
10644 thread_safe_flag_spec \
10645 whole_archive_flag_spec \
10646 enable_shared_with_static_runtimes \
10648 old_archive_from_new_cmds \
10653 compiler_lib_search_path \
10655 archive_expsym_cmds \
10657 postuninstall_cmds \
10658 old_archive_from_expsyms_cmds \
10659 allow_undefined_flag \
10660 no_undefined_flag \
10661 export_symbols_cmds \
10662 hardcode_libdir_flag_spec \
10663 hardcode_libdir_flag_spec_ld \
10664 hardcode_libdir_separator \
10665 hardcode_automatic \
10667 module_expsym_cmds \
10668 lt_cv_prog_compiler_c_o \
10671 include_expsyms; do
10674 old_archive_cmds | \
10675 old_archive_from_new_cmds | \
10677 archive_expsym_cmds | \
10679 module_expsym_cmds | \
10680 old_archive_from_expsyms_cmds | \
10681 export_symbols_cmds | \
10682 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10683 postinstall_cmds | postuninstall_cmds | \
10684 old_postinstall_cmds | old_postuninstall_cmds | \
10685 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10686 # Double-quote double-evaled strings.
10687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10696 *'\$0 --fallback-echo"')
10697 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10701 cfgfile="${ofile}T"
10702 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10704 { echo "$as_me:$LINENO: creating $ofile" >&5
10705 echo "$as_me: creating $ofile" >&6;}
10707 cat <<__EOF__ >> "$cfgfile"
10710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10715 # Free Software Foundation, Inc.
10717 # This file is part of GNU Libtool:
10718 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10720 # This program is free software; you can redistribute it and/or modify
10721 # it under the terms of the GNU General Public License as published by
10722 # the Free Software Foundation; either version 2 of the License, or
10723 # (at your option) any later version.
10725 # This program is distributed in the hope that it will be useful, but
10726 # WITHOUT ANY WARRANTY; without even the implied warranty of
10727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10728 # General Public License for more details.
10730 # You should have received a copy of the GNU General Public License
10731 # along with this program; if not, write to the Free Software
10732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10734 # As a special exception to the GNU General Public License, if you
10735 # distribute this file as part of a program that contains a
10736 # configuration script generated by Autoconf, you may include it under
10737 # the same distribution terms that you use for the rest of that program.
10739 # A sed program that does not truncate output.
10742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10743 Xsed="$SED -e 1s/^X//"
10745 # The HP-UX ksh and POSIX shell print the target directory to stdout
10746 # if CDPATH is set.
10747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10749 # The names of the tagged configurations supported by this script.
10752 # ### BEGIN LIBTOOL CONFIG
10754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10756 # Shell to use when invoking shell scripts.
10759 # Whether or not to build shared libraries.
10760 build_libtool_libs=$enable_shared
10762 # Whether or not to build static libraries.
10763 build_old_libs=$enable_static
10765 # Whether or not to add -lc for building shared libraries.
10766 build_libtool_need_lc=$archive_cmds_need_lc
10768 # Whether or not to disallow shared libs when runtime libs are static
10769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10771 # Whether or not to optimize for fast installation.
10772 fast_install=$enable_fast_install
10775 host_alias=$host_alias
10779 # The build system.
10780 build_alias=$build_alias
10784 # An echo program that does not interpret backslashes.
10789 AR_FLAGS=$lt_AR_FLAGS
10794 # LTCC compiler flags.
10795 LTCFLAGS=$lt_LTCFLAGS
10797 # A language-specific compiler.
10800 # Is the compiler the GNU C compiler?
10806 # The linker used to build libraries.
10809 # Whether we need hard or soft links.
10812 # A BSD-compatible nm program.
10815 # A symbol stripping program
10818 # Used to examine libraries when file_magic_cmd begins "file"
10819 MAGIC_CMD=$MAGIC_CMD
10821 # Used on cygwin: DLL creation program.
10824 # Used on cygwin: object dumper.
10827 # Used on cygwin: assembler.
10830 # The name of the directory that contains temporary libtool files.
10833 # How to create reloadable object files.
10834 reload_flag=$lt_reload_flag
10835 reload_cmds=$lt_reload_cmds
10837 # How to pass a linker flag through the compiler.
10838 wl=$lt_lt_prog_compiler_wl
10840 # Object file suffix (normally "o").
10841 objext="$ac_objext"
10843 # Old archive suffix (normally "a").
10846 # Shared library suffix (normally ".so").
10847 shrext_cmds='$shrext_cmds'
10849 # Executable file suffix (normally "").
10852 # Additional compiler flags for building library objects.
10853 pic_flag=$lt_lt_prog_compiler_pic
10856 # What is the maximum length of a command?
10857 max_cmd_len=$lt_cv_sys_max_cmd_len
10859 # Does compiler simultaneously support -c and -o options?
10860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10862 # Must we lock files when doing compilation?
10863 need_locks=$lt_need_locks
10865 # Do we need the lib prefix for modules?
10866 need_lib_prefix=$need_lib_prefix
10868 # Do we need a version for libraries?
10869 need_version=$need_version
10871 # Whether dlopen is supported.
10872 dlopen_support=$enable_dlopen
10874 # Whether dlopen of programs is supported.
10875 dlopen_self=$enable_dlopen_self
10877 # Whether dlopen of statically linked programs is supported.
10878 dlopen_self_static=$enable_dlopen_self_static
10880 # Compiler flag to prevent dynamic linking.
10881 link_static_flag=$lt_lt_prog_compiler_static
10883 # Compiler flag to turn off builtin functions.
10884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10886 # Compiler flag to allow reflexive dlopens.
10887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10889 # Compiler flag to generate shared objects directly from archives.
10890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10892 # Compiler flag to generate thread-safe objects.
10893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10895 # Library versioning type.
10896 version_type=$version_type
10898 # Format of library name prefix.
10899 libname_spec=$lt_libname_spec
10901 # List of archive names. First name is the real one, the rest are links.
10902 # The last name is the one that the linker finds with -lNAME.
10903 library_names_spec=$lt_library_names_spec
10905 # The coded name of the library, if different from the real name.
10906 soname_spec=$lt_soname_spec
10908 # Commands used to build and install an old-style archive.
10910 old_archive_cmds=$lt_old_archive_cmds
10911 old_postinstall_cmds=$lt_old_postinstall_cmds
10912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10914 # Create an old-style archive from a shared archive.
10915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10917 # Create a temporary old-style archive to link instead of a shared archive.
10918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10920 # Commands used to build and install a shared archive.
10921 archive_cmds=$lt_archive_cmds
10922 archive_expsym_cmds=$lt_archive_expsym_cmds
10923 postinstall_cmds=$lt_postinstall_cmds
10924 postuninstall_cmds=$lt_postuninstall_cmds
10926 # Commands used to build a loadable module (assumed same as above if empty)
10927 module_cmds=$lt_module_cmds
10928 module_expsym_cmds=$lt_module_expsym_cmds
10930 # Commands to strip libraries.
10931 old_striplib=$lt_old_striplib
10932 striplib=$lt_striplib
10934 # Dependencies to place before the objects being linked to create a
10936 predep_objects=$lt_predep_objects
10938 # Dependencies to place after the objects being linked to create a
10940 postdep_objects=$lt_postdep_objects
10942 # Dependencies to place before the objects being linked to create a
10944 predeps=$lt_predeps
10946 # Dependencies to place after the objects being linked to create a
10948 postdeps=$lt_postdeps
10950 # The library search path used internally by the compiler when linking
10951 # a shared library.
10952 compiler_lib_search_path=$lt_compiler_lib_search_path
10954 # Method to check whether dependent libraries are shared objects.
10955 deplibs_check_method=$lt_deplibs_check_method
10957 # Command to use when deplibs_check_method == file_magic.
10958 file_magic_cmd=$lt_file_magic_cmd
10960 # Flag that allows shared libraries with undefined symbols to be built.
10961 allow_undefined_flag=$lt_allow_undefined_flag
10963 # Flag that forces no undefined symbols.
10964 no_undefined_flag=$lt_no_undefined_flag
10966 # Commands used to finish a libtool library installation in a directory.
10967 finish_cmds=$lt_finish_cmds
10969 # Same as above, but a single script fragment to be evaled but not shown.
10970 finish_eval=$lt_finish_eval
10972 # Take the output of nm and produce a listing of raw symbols and C names.
10973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10975 # Transform the output of nm in a proper C declaration
10976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10978 # Transform the output of nm in a C name address pair
10979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10981 # This is the shared library runtime path variable.
10982 runpath_var=$runpath_var
10984 # This is the shared library path variable.
10985 shlibpath_var=$shlibpath_var
10987 # Is shlibpath searched before the hard-coded library search path?
10988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10990 # How to hardcode a shared library path into an executable.
10991 hardcode_action=$hardcode_action
10993 # Whether we should hardcode library paths into libraries.
10994 hardcode_into_libs=$hardcode_into_libs
10996 # Flag to hardcode \$libdir into a binary during linking.
10997 # This must work even if \$libdir does not exist.
10998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11000 # If ld is used when linking, flag to hardcode \$libdir into
11001 # a binary during linking. This must work even if \$libdir does
11003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11005 # Whether we need a single -rpath flag with a separated argument.
11006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11009 # resulting binary.
11010 hardcode_direct=$hardcode_direct
11012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11013 # resulting binary.
11014 hardcode_minus_L=$hardcode_minus_L
11016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11017 # the resulting binary.
11018 hardcode_shlibpath_var=$hardcode_shlibpath_var
11020 # Set to yes if building a shared library automatically hardcodes DIR into the library
11021 # and all subsequent libraries and executables linked against it.
11022 hardcode_automatic=$hardcode_automatic
11024 # Variables whose values should be saved in libtool wrapper scripts and
11025 # restored at relink time.
11026 variables_saved_for_relink="$variables_saved_for_relink"
11028 # Whether libtool must link a program against all its dependency libraries.
11029 link_all_deplibs=$link_all_deplibs
11031 # Compile-time system search path for libraries
11032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11034 # Run-time system search path for libraries
11035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11037 # Fix the shell variable \$srcfile for the compiler.
11038 fix_srcfile_path=$lt_fix_srcfile_path
11040 # Set to yes if exported symbols are required.
11041 always_export_symbols=$always_export_symbols
11043 # The commands to list exported symbols.
11044 export_symbols_cmds=$lt_export_symbols_cmds
11046 # The commands to extract the exported symbol list from a shared archive.
11047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11049 # Symbols that should not be listed in the preloaded symbols.
11050 exclude_expsyms=$lt_exclude_expsyms
11052 # Symbols that must always be exported.
11053 include_expsyms=$lt_include_expsyms
11055 # ### END LIBTOOL CONFIG
11062 cat <<\EOF >> "$cfgfile"
11064 # AIX sometimes has problems with the GCC collect2 program. For some
11065 # reason, if we set the COLLECT_NAMES environment variable, the problems
11066 # vanish in a puff of smoke.
11067 if test "X${COLLECT_NAMES+set}" != Xset; then
11069 export COLLECT_NAMES
11075 # We use sed instead of cat because bash on DJGPP gets confused if
11076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11077 # text mode, it properly converts lines to CR/LF. This bash problem
11078 # is reportedly fixed, but why not run on old versions too?
11079 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11081 mv -f "$cfgfile" "$ofile" || \
11082 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11086 # If there is no Makefile yet, we rely on a make rule to execute
11087 # `config.status --recheck' to rerun these tests and create the
11088 # libtool script then.
11089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11090 if test -f "$ltmain_in"; then
11091 test -f Makefile && make "$ltmain"
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11106 # This can be used to rebuild libtool when needed
11107 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11109 # Always use our own libtool.
11110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11112 # Prevent multiple expansion
11123 if test "$enable_shared" = "no"; then
11126 eval _shrext="$shrext_cmds"
11128 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11129 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11131 # Check whether --with-noexec was given.
11132 if test "${with_noexec+set}" = set; then
11133 withval=$with_noexec; case $with_noexec in
11134 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11140 with_noexec="$libexecdir/sudo_noexec$_shrext"
11143 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11144 echo "${ECHO_T}$with_noexec" >&6; }
11145 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11147 if test "$with_devel" = "yes" -a -n "$GCC"; then
11148 CFLAGS="${CFLAGS} -Wall"
11151 # Extract the first word of "uname", so it can be a program name with args.
11152 set dummy uname; ac_word=$2
11153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11155 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 if test -n "$UNAMEPROG"; then
11159 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168 ac_cv_prog_UNAMEPROG="uname"
11169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11179 if test -n "$UNAMEPROG"; then
11180 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11181 echo "${ECHO_T}$UNAMEPROG" >&6; }
11183 { echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6; }
11188 # Extract the first word of "tr", so it can be a program name with args.
11189 set dummy tr; ac_word=$2
11190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192 if test "${ac_cv_prog_TRPROG+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 if test -n "$TRPROG"; then
11196 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_prog_TRPROG="tr"
11206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 TRPROG=$ac_cv_prog_TRPROG
11216 if test -n "$TRPROG"; then
11217 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11218 echo "${ECHO_T}$TRPROG" >&6; }
11220 { echo "$as_me:$LINENO: result: no" >&5
11221 echo "${ECHO_T}no" >&6; }
11225 # Extract the first word of "nroff", so it can be a program name with args.
11226 set dummy nroff; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 if test -n "$NROFFPROG"; then
11233 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_NROFFPROG="nroff"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 NROFFPROG=$ac_cv_prog_NROFFPROG
11253 if test -n "$NROFFPROG"; then
11254 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11255 echo "${ECHO_T}$NROFFPROG" >&6; }
11257 { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11262 if test -z "$NROFFPROG"; then
11264 mansrcdir='$(srcdir)'
11267 if test -n "$sudo_cv_prev_host"; then
11268 if test "$sudo_cv_prev_host" != "$host"; then
11269 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11270 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11271 { (exit 1); exit 1; }; }
11273 { echo "$as_me:$LINENO: checking previous host type" >&5
11274 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11275 if test "${sudo_cv_prev_host+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 sudo_cv_prev_host="$host"
11281 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11282 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11285 # this will produce no output since there is no cached value
11286 if test "${sudo_cv_prev_host+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 sudo_cv_prev_host="$host"
11294 if test -n "$host_os"; then
11295 OS=`echo $host_os | sed 's/[0-9].*//'`
11296 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11297 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11306 # getcwd(3) opens a pipe to getpwd(1)!?!
11309 # system headers lack prototypes but gcc helps...
11310 if test -n "$GCC"; then
11311 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11314 shadow_funcs="getpwanam issecure"
11317 # To get the crypt(3) prototype (so we pass -Wall)
11318 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11319 # AFS support needs -lucb
11320 if test "$with_AFS" = "yes"; then
11321 AFS_LIBS="-lc -lucb"
11323 : ${mansectsu='1m'}
11324 : ${mansectform='4'}
11325 : ${with_rpath='yes'}
11326 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11329 # To get all prototypes (so we pass -Wall)
11330 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11331 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11332 if test X"$with_blibpath" != X"no"; then
11333 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11334 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11335 O_LDFLAGS="$LDFLAGS"
11336 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest$ac_exeext &&
11369 $as_test_x conftest$ac_exeext; then
11371 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11372 blibpath="$with_blibpath"
11373 elif test -n "$GCC"; then
11374 blibpath="/usr/lib:/lib:/usr/local/lib"
11376 blibpath="/usr/lib:/lib"
11378 { echo "$as_me:$LINENO: result: yes" >&5
11379 echo "${ECHO_T}yes" >&6; }
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11390 conftest$ac_exeext conftest.$ac_ext
11392 LDFLAGS="$O_LDFLAGS"
11394 # Use authenticate(3) as the default authentication method
11395 if test X"$with_aixauth" = X""; then
11397 for ac_func in authenticate
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11413 #define $ac_func innocuous_$ac_func
11415 /* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char $ac_func (); below.
11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418 <limits.h> exists even on freestanding compilers. */
11421 # include <limits.h>
11423 # include <assert.h>
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined __stub_$ac_func || defined __stub___$ac_func
11445 return $ac_func ();
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_link") 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_c_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest$ac_exeext &&
11467 $as_test_x conftest$ac_exeext; then
11468 eval "$as_ac_var=yes"
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 eval "$as_ac_var=no"
11476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11477 conftest$ac_exeext conftest.$ac_ext
11479 ac_res=`eval echo '${'$as_ac_var'}'`
11480 { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 AUTH_EXCL_DEF="AIX_AUTH"
11493 : ${mansectsu='1m'}
11494 : ${mansectform='4'}
11497 # AFS support needs -lBSD
11498 if test "$with_AFS" = "yes"; then
11499 AFS_LIBS="-lc -lBSD"
11501 : ${mansectsu='1m'}
11502 : ${mansectform='4'}
11506 cat >>confdefs.h <<\_ACEOF
11507 #define BROKEN_SYSLOG 1
11511 # Not sure if setuid binaries are safe in < 9.x
11512 if test -n "$GCC"; then
11513 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11515 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11519 cat >>confdefs.h <<\_ACEOF
11520 #define BROKEN_SYSLOG 1
11524 shadow_funcs="getspwuid"
11526 # DCE support (requires ANSI C compiler)
11527 if test "$with_DCE" = "yes"; then
11528 # order of libs in 9.X is important. -lc_r must be last
11529 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11530 LIBS="${LIBS} -ldce -lM -lc_r"
11531 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11535 shadow_funcs="getprpwnam iscomsec"
11536 shadow_libs="-lsec"
11539 shadow_funcs="getspnam iscomsec"
11540 shadow_libs="-lsec"
11541 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11546 # ignore envariables wrt dynamic lib path
11547 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11549 : ${CHECKSIA='true'}
11550 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11551 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11552 # Check whether --enable-sia was given.
11553 if test "${enable_sia+set}" = set; then
11554 enableval=$enable_sia; case "$enableval" in
11555 yes) { echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6; }
11559 no) { echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6; }
11563 *) { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
11565 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11566 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11571 { echo "$as_me:$LINENO: result: no" >&5
11572 echo "${ECHO_T}no" >&6; }
11576 shadow_funcs="getprpwnam dispcrypt"
11577 # OSF/1 4.x and higher need -ldb too
11578 if test $OSMAJOR -lt 4; then
11579 shadow_libs="-lsecurity -laud -lm"
11581 shadow_libs="-lsecurity -ldb -laud -lm"
11584 # use SIA by default, if we have it
11585 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11588 # Some versions of Digital Unix ship with a broken
11589 # copy of prot.h, which we need for shadow passwords.
11590 # XXX - make should remove this as part of distclean
11592 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11593 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11601 #include <sys/types.h>
11602 #include <sys/security.h>
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } && {
11627 test -z "$ac_c_werror_flag" ||
11628 test ! -s conftest.err
11629 } && test -s conftest.$ac_objext; then
11630 { echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6; }
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11637 echo "${ECHO_T}yes, fixing locally" >&6; }
11638 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 : ${mansectform='4'}
11647 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11648 if test -z "$NROFFPROG"; then
11649 MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
11650 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11651 if test -d /usr/share/catman/local; then
11652 mandir="/usr/share/catman/local"
11654 mandir="/usr/catman/local"
11658 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11659 if test -d "/usr/share/man/local"; then
11660 mandir="/usr/share/man/local"
11662 mandir="/usr/man/local"
11666 # IRIX <= 4 needs -lsun
11667 if test "$OSMAJOR" -le 4; then
11668 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11669 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11670 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 ac_check_lib_save_LIBS=$LIBS
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11692 return getpwnam ();
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_link") 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_c_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest$ac_exeext &&
11714 $as_test_x conftest$ac_exeext; then
11715 ac_cv_lib_sun_getpwnam=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_cv_lib_sun_getpwnam=no
11723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11727 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11728 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11729 if test $ac_cv_lib_sun_getpwnam = yes; then
11730 LIBS="${LIBS} -lsun"
11734 : ${mansectsu='1m'}
11735 : ${mansectform='4'}
11738 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11739 # Some Linux versions need to link with -lshadow
11740 shadow_funcs="getspnam"
11741 shadow_libs_optional="-lshadow"
11742 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11745 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11746 if test -z "$GCC"; then
11747 CFLAGS="${CFLAGS} -D__STDC__"
11750 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11751 shadow_funcs="getprpwnam"
11752 shadow_libs="-lprot"
11756 shadow_funcs="getauthuid"
11757 shadow_libs="-lauth"
11760 LIBS="${LIBS} -lsun -lbsd"
11761 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11762 OSDEFS="${OSDEFS} -D_MIPS"
11763 : ${mansectsu='1m'}
11764 : ${mansectform='4'}
11767 OSDEFS="${OSDEFS} -D_ISC"
11769 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11770 LIBS="${LIBS} -lcrypt"
11772 shadow_funcs="getspnam"
11773 shadow_libs="-lsec"
11775 : ${mansectsu='1m'}
11776 : ${mansectform='4'}
11779 shadow_funcs="getprpwnam"
11780 shadow_libs="-lprot -lx"
11781 : ${mansectsu='1m'}
11782 : ${mansectform='4'}
11784 m88k-motorola-sysv*)
11785 # motorolla's cc (a variant of gcc) does -O but not -O2
11786 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11787 : ${mansectsu='1m'}
11788 : ${mansectform='4'}
11791 shadow_funcs="getspnam"
11792 shadow_libs="-lsec"
11793 : ${mansectsu='1m'}
11794 : ${mansectform='4'}
11795 : ${with_rpath='yes'}
11797 *-ncr-sysv4*|*-ncr-sysvr4*)
11798 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11799 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11800 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_check_lib_save_LIBS=$LIBS
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11812 /* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11818 char strcasecmp ();
11822 return strcasecmp ();
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_link") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest$ac_exeext &&
11844 $as_test_x conftest$ac_exeext; then
11845 ac_cv_lib_c89_strcasecmp=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_cv_lib_c89_strcasecmp=no
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11857 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11858 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11859 if test $ac_cv_lib_c89_strcasecmp = yes; then
11860 cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_STRCASECMP 1
11863 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11866 : ${mansectsu='1m'}
11867 : ${mansectform='4'}
11868 : ${with_rpath='yes'}
11870 *-ccur-sysv4*|*-ccur-sysvr4*)
11871 LIBS="${LIBS} -lgen"
11872 SUDO_LIBS="${SUDO_LIBS} -lgen"
11873 : ${mansectsu='1m'}
11874 : ${mansectform='4'}
11875 : ${with_rpath='yes'}
11879 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11880 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11882 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
11883 echo "$as_me: using shlicc as CC" >&6;}
11884 ac_cv_prog_CC=shlicc
11885 CC="$ac_cv_prog_CC"
11889 # Check for newer BSD auth API (just check for >= 3.0?)
11890 if test -z "$with_bsdauth"; then
11892 for ac_func in auth_challenge
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11916 # include <limits.h>
11918 # include <assert.h>
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 return $ac_func ();
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext &&
11962 $as_test_x conftest$ac_exeext; then
11963 eval "$as_ac_var=yes"
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 eval "$as_ac_var=no"
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972 conftest$ac_exeext conftest.$ac_ext
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975 { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11981 AUTH_EXCL_DEF="BSD_AUTH"
11988 # FreeBSD has a real setreuid(2) starting with 2.1 and
11989 # backported to 2.0.5. We just take 2.1 and above...
11995 if test "$with_skey" = "yes"; then
11996 SUDO_LIBS="${SUDO_LIBS} -lmd"
11998 CHECKSHADOW="false"
11999 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12000 : ${with_logincap='maybe'}
12003 # OpenBSD has a real setreuid(2) starting with 3.3 but
12004 # we will use setreuid(2) instead.
12006 CHECKSHADOW="false"
12007 # OpenBSD >= 3.0 supports BSD auth
12008 if test -z "$with_bsdauth"; then
12013 AUTH_EXCL_DEF="BSD_AUTH"
12017 : ${with_logincap='maybe'}
12020 # NetBSD has a real setreuid(2) starting with 1.3.2
12022 0.9*|1.012*|1.3|1.3.1)
12026 CHECKSHADOW="false"
12027 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12028 : ${with_logincap='maybe'}
12031 if test "$with_skey" = "yes"; then
12032 SUDO_LIBS="${SUDO_LIBS} -lmd"
12034 CHECKSHADOW="false"
12035 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12036 : ${with_logincap='yes'}
12039 CHECKSHADOW="false"
12043 CHECKSHADOW="false"
12044 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12045 : ${with_logincap='yes'}
12048 # lockf() on is broken on the NeXT -- use flock instead
12049 ac_cv_func_lockf=no
12050 ac_cv_func_flock=yes
12053 : ${mansectsu='1m'}
12054 : ${mansectform='4'}
12055 : ${with_rpath='yes'}
12058 : ${mansectsu='1m'}
12059 : ${mansectform='4'}
12062 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12066 AUTH_REG=${AUTH_REG# }
12067 AUTH_EXCL=${AUTH_EXCL# }
12068 if test -n "$AUTH_EXCL"; then
12070 if test $# != 1; then
12071 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12072 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12073 { (exit 1); exit 1; }; }
12075 if test -n "$AUTH_REG"; then
12076 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12077 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12078 { (exit 1); exit 1; }; }
12081 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12082 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12083 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12084 { (exit 1); exit 1; }; }
12088 : ${mansectform='5'}
12090 if test -n "$with_libpath"; then
12091 for i in ${with_libpath}; do
12093 if test X"$with_rpath" = X"yes"; then
12094 LDFLAGS="${LDFLAGS} -L$i -R$i"
12096 LDFLAGS="${LDFLAGS} -L$i"
12098 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12099 blibpath_add="${blibpath_add}:$i"
12104 if test -n "$with_libraries"; then
12105 for i in ${with_libraries}; do
12112 LIBS="${LIBS} ${i}"
12116 if test $ac_cv_c_compiler_gnu = yes; then
12117 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12118 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12119 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 ac_pattern="Autoconf.*'x'"
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12133 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12134 ac_cv_prog_gcc_traditional=yes
12136 ac_cv_prog_gcc_traditional=no
12141 if test $ac_cv_prog_gcc_traditional = no; then
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 #include <termio.h>
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12153 ac_cv_prog_gcc_traditional=yes
12159 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12160 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12161 if test $ac_cv_prog_gcc_traditional = yes; then
12162 CC="$CC -traditional"
12166 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12168 if test "${ac_cv_c_const+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12181 /* FIXME: Include the comments suggested by Paul. */
12182 #ifndef __cplusplus
12183 /* Ultrix mips cc rejects this. */
12184 typedef int charset[2];
12186 /* SunOS 4.1.1 cc rejects this. */
12187 char const *const *pcpcc;
12189 /* NEC SVR4.0.2 mips cc rejects this. */
12190 struct point {int x, y;};
12191 static struct point const zero = {0,0};
12192 /* AIX XL C 1.02.0.0 rejects this.
12193 It does not let you subtract one const X* pointer from another in
12194 an arm of an if-expression whose if-part is not a constant
12196 const char *g = "string";
12197 pcpcc = &g + (g ? g-g : 0);
12198 /* HPUX 7.0 cc rejects these. */
12200 ppc = (char**) pcpcc;
12201 pcpcc = (char const *const *) ppc;
12202 { /* SCO 3.2v4 cc rejects this. */
12204 char const *s = 0 ? (char *) 0 : (char const *) 0;
12209 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12210 int x[] = {25, 17};
12211 const int *foo = &x[0];
12214 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12215 typedef const int *iptr;
12219 { /* AIX XL C 1.02.0.0 rejects this saying
12220 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12221 struct s { int j; const int *ap[3]; };
12222 struct s *b; b->j = 5;
12224 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12225 const int foo = 10;
12226 if (!foo) return 0;
12228 return !cs[0] && !zero.x;
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest.$ac_objext; then
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12263 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12264 if test $ac_cv_c_const = no; then
12266 cat >>confdefs.h <<\_ACEOF
12272 { echo "$as_me:$LINENO: checking for working volatile" >&5
12273 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12274 if test "${ac_cv_c_volatile+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12289 int * volatile y = (int *) 0;
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 ac_cv_c_volatile=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_c_volatile=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12323 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12324 if test $ac_cv_c_volatile = no; then
12326 cat >>confdefs.h <<\_ACEOF
12332 for ac_prog in 'bison -y' byacc
12334 # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12338 if test "${ac_cv_prog_YACC+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 if test -n "$YACC"; then
12342 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_prog_YACC="$ac_prog"
12352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 YACC=$ac_cv_prog_YACC
12362 if test -n "$YACC"; then
12363 { echo "$as_me:$LINENO: result: $YACC" >&5
12364 echo "${ECHO_T}$YACC" >&6; }
12366 { echo "$as_me:$LINENO: result: no" >&5
12367 echo "${ECHO_T}no" >&6; }
12371 test -n "$YACC" && break
12373 test -n "$YACC" || YACC="yacc"
12375 { echo "$as_me:$LINENO: checking for mv" >&5
12376 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12377 if test -f "/usr/bin/mv"; then
12378 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12379 echo "${ECHO_T}/usr/bin/mv" >&6; }
12380 cat >>confdefs.h <<\EOF
12381 #define _PATH_MV "/usr/bin/mv"
12384 elif test -f "/bin/mv"; then
12385 { echo "$as_me:$LINENO: result: /bin/mv" >&5
12386 echo "${ECHO_T}/bin/mv" >&6; }
12387 cat >>confdefs.h <<\EOF
12388 #define _PATH_MV "/bin/mv"
12391 elif test -f "/usr/ucb/mv"; then
12392 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12393 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12394 cat >>confdefs.h <<\EOF
12395 #define _PATH_MV "/usr/ucb/mv"
12398 elif test -f "/usr/sbin/mv"; then
12399 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12400 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12401 cat >>confdefs.h <<\EOF
12402 #define _PATH_MV "/usr/sbin/mv"
12406 { echo "$as_me:$LINENO: result: not found" >&5
12407 echo "${ECHO_T}not found" >&6; }
12410 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12411 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12412 if test -f "/bin/sh"; then
12413 { echo "$as_me:$LINENO: result: /bin/sh" >&5
12414 echo "${ECHO_T}/bin/sh" >&6; }
12415 cat >>confdefs.h <<\EOF
12416 #define _PATH_BSHELL "/bin/sh"
12419 elif test -f "/usr/bin/sh"; then
12420 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12421 echo "${ECHO_T}/usr/bin/sh" >&6; }
12422 cat >>confdefs.h <<\EOF
12423 #define _PATH_BSHELL "/usr/bin/sh"
12426 elif test -f "/sbin/sh"; then
12427 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12428 echo "${ECHO_T}/sbin/sh" >&6; }
12429 cat >>confdefs.h <<\EOF
12430 #define _PATH_BSHELL "/sbin/sh"
12433 elif test -f "/usr/sbin/sh"; then
12434 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12435 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12436 cat >>confdefs.h <<\EOF
12437 #define _PATH_BSHELL "/usr/sbin/sh"
12440 elif test -f "/bin/ksh"; then
12441 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12442 echo "${ECHO_T}/bin/ksh" >&6; }
12443 cat >>confdefs.h <<\EOF
12444 #define _PATH_BSHELL "/bin/ksh"
12447 elif test -f "/usr/bin/ksh"; then
12448 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12449 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12450 cat >>confdefs.h <<\EOF
12451 #define _PATH_BSHELL "/usr/bin/ksh"
12454 elif test -f "/bin/bash"; then
12455 { echo "$as_me:$LINENO: result: /bin/bash" >&5
12456 echo "${ECHO_T}/bin/bash" >&6; }
12457 cat >>confdefs.h <<\EOF
12458 #define _PATH_BSHELL "/bin/bash"
12461 elif test -f "/usr/bin/bash"; then
12462 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12463 echo "${ECHO_T}/usr/bin/bash" >&6; }
12464 cat >>confdefs.h <<\EOF
12465 #define _PATH_BSHELL "/usr/bin/bash"
12469 { echo "$as_me:$LINENO: result: not found" >&5
12470 echo "${ECHO_T}not found" >&6; }
12473 if test -z "$with_sendmail"; then
12474 { echo "$as_me:$LINENO: checking for sendmail" >&5
12475 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12476 if test -f "/usr/sbin/sendmail"; then
12477 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12478 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12479 cat >>confdefs.h <<\EOF
12480 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12483 elif test -f "/usr/lib/sendmail"; then
12484 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12485 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12486 cat >>confdefs.h <<\EOF
12487 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12490 elif test -f "/usr/etc/sendmail"; then
12491 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12492 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12493 cat >>confdefs.h <<\EOF
12494 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12497 elif test -f "/usr/ucblib/sendmail"; then
12498 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12499 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12500 cat >>confdefs.h <<\EOF
12501 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12504 elif test -f "/usr/local/lib/sendmail"; then
12505 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12506 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12507 cat >>confdefs.h <<\EOF
12508 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12511 elif test -f "/usr/local/bin/sendmail"; then
12512 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12513 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12514 cat >>confdefs.h <<\EOF
12515 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12519 { echo "$as_me:$LINENO: result: not found" >&5
12520 echo "${ECHO_T}not found" >&6; }
12524 if test -z "$with_editor"; then
12525 { echo "$as_me:$LINENO: checking for vi" >&5
12526 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12527 if test -f "/usr/bin/vi"; then
12528 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12529 echo "${ECHO_T}/usr/bin/vi" >&6; }
12530 cat >>confdefs.h <<\EOF
12531 #define _PATH_VI "/usr/bin/vi"
12534 elif test -f "/usr/ucb/vi"; then
12535 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12536 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12537 cat >>confdefs.h <<\EOF
12538 #define _PATH_VI "/usr/ucb/vi"
12541 elif test -f "/usr/bsd/vi"; then
12542 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12543 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12544 cat >>confdefs.h <<\EOF
12545 #define _PATH_VI "/usr/bsd/vi"
12548 elif test -f "/bin/vi"; then
12549 { echo "$as_me:$LINENO: result: /bin/vi" >&5
12550 echo "${ECHO_T}/bin/vi" >&6; }
12551 cat >>confdefs.h <<\EOF
12552 #define _PATH_VI "/bin/vi"
12555 elif test -f "/usr/local/bin/vi"; then
12556 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12557 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12558 cat >>confdefs.h <<\EOF
12559 #define _PATH_VI "/usr/local/bin/vi"
12563 { echo "$as_me:$LINENO: result: not found" >&5
12564 echo "${ECHO_T}not found" >&6; }
12568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12570 if test "${ac_cv_header_stdc+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 #include <stdlib.h>
12580 #include <stdarg.h>
12581 #include <string.h>
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_compile") 2>conftest.er1
12601 grep -v '^ *+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
12609 ac_cv_header_stdc=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ac_cv_header_stdc=no
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 if test $ac_cv_header_stdc = yes; then
12620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 #include <string.h>
12630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12631 $EGREP "memchr" >/dev/null 2>&1; then
12634 ac_cv_header_stdc=no
12640 if test $ac_cv_header_stdc = yes; then
12641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 #include <stdlib.h>
12651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12652 $EGREP "free" >/dev/null 2>&1; then
12655 ac_cv_header_stdc=no
12661 if test $ac_cv_header_stdc = yes; then
12662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12663 if test "$cross_compiling" = yes; then
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 #include <stdlib.h>
12674 #if ((' ' & 0x0FF) == 0x020)
12675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12678 # define ISLOWER(c) \
12679 (('a' <= (c) && (c) <= 'i') \
12680 || ('j' <= (c) && (c) <= 'r') \
12681 || ('s' <= (c) && (c) <= 'z'))
12682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12690 for (i = 0; i < 256; i++)
12691 if (XOR (islower (i), ISLOWER (i))
12692 || toupper (i) != TOUPPER (i))
12697 rm -f conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_link") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12708 { (case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_try") 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12719 echo "$as_me: program exited with status $ac_status" >&5
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ( exit $ac_status )
12724 ac_cv_header_stdc=no
12726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12734 if test $ac_cv_header_stdc = yes; then
12736 cat >>confdefs.h <<\_ACEOF
12737 #define STDC_HEADERS 1
12747 ac_header_dirent=no
12748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 #include <sys/types.h>
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
12790 eval "$as_ac_Header=yes"
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 eval "$as_ac_Header=no"
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 ac_res=`eval echo '${'$as_ac_Header'}'`
12801 { echo "$as_me:$LINENO: result: $ac_res" >&5
12802 echo "${ECHO_T}$ac_res" >&6; }
12803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12804 cat >>confdefs.h <<_ACEOF
12805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12808 ac_header_dirent=$ac_hdr; break
12812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12813 if test $ac_header_dirent = dirent.h; then
12814 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12816 if test "${ac_cv_search_opendir+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 ac_func_search_save_LIBS=$LIBS
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12842 for ac_lib in '' dir; do
12843 if test -z "$ac_lib"; then
12844 ac_res="none required"
12847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12858 grep -v '^ *+' conftest.er1 >conftest.err
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest$ac_exeext &&
12866 $as_test_x conftest$ac_exeext; then
12867 ac_cv_search_opendir=$ac_res
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12877 if test "${ac_cv_search_opendir+set}" = set; then
12881 if test "${ac_cv_search_opendir+set}" = set; then
12884 ac_cv_search_opendir=no
12886 rm conftest.$ac_ext
12887 LIBS=$ac_func_search_save_LIBS
12889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12891 ac_res=$ac_cv_search_opendir
12892 if test "$ac_res" != no; then
12893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12898 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_opendir+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12926 for ac_lib in '' x; do
12927 if test -z "$ac_lib"; then
12928 ac_res="none required"
12931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_link") 2>conftest.er1
12942 grep -v '^ *+' conftest.er1 >conftest.err
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext &&
12950 $as_test_x conftest$ac_exeext; then
12951 ac_cv_search_opendir=$ac_res
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12961 if test "${ac_cv_search_opendir+set}" = set; then
12965 if test "${ac_cv_search_opendir+set}" = set; then
12968 ac_cv_search_opendir=no
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12975 ac_res=$ac_cv_search_opendir
12976 if test "$ac_res" != no; then
12977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12983 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12985 if test "${ac_cv_header_time+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 cat >conftest.$ac_ext <<_ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994 #include <sys/types.h>
12995 #include <sys/time.h>
13001 if ((struct tm *) 0)
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_compile") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest.$ac_objext; then
13024 ac_cv_header_time=yes
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_cv_header_time=no
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13036 if test $ac_cv_header_time = yes; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define TIME_WITH_SYS_TIME 1
13051 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 ac_res=`eval echo '${'$as_ac_Header'}'`
13061 { echo "$as_me:$LINENO: result: $ac_res" >&5
13062 echo "${ECHO_T}$ac_res" >&6; }
13064 # Is the header compilable?
13065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13074 #include <$ac_header>
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 ac_header_compiler=yes
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_header_compiler=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13103 echo "${ECHO_T}$ac_header_compiler" >&6; }
13105 # Is the header present?
13106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 #include <$ac_header>
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } >/dev/null && {
13129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13132 ac_header_preproc=yes
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_header_preproc=no
13140 rm -f conftest.err conftest.$ac_ext
13141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13142 echo "${ECHO_T}$ac_header_preproc" >&6; }
13144 # So? What about this header?
13145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13151 ac_header_preproc=yes
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 eval "$as_ac_Header=\$ac_header_preproc"
13176 ac_res=`eval echo '${'$as_ac_Header'}'`
13177 { echo "$as_me:$LINENO: result: $ac_res" >&5
13178 echo "${ECHO_T}$ac_res" >&6; }
13181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13191 for ac_header in err.h
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201 { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13204 # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 #include <$ac_header>
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } && {
13230 test -z "$ac_c_werror_flag" ||
13231 test ! -s conftest.err
13232 } && test -s conftest.$ac_objext; then
13233 ac_header_compiler=yes
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 ac_header_compiler=no
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 #include <$ac_header>
13256 if { (ac_try="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null && {
13269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13272 ac_header_preproc=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_header_preproc=no
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13284 # So? What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291 ac_header_preproc=yes
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 eval "$as_ac_Header=\$ac_header_preproc"
13316 ac_res=`eval echo '${'$as_ac_Header'}'`
13317 { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13327 case " $LIBOBJS " in
13328 *" err.$ac_objext "* ) ;;
13329 *) LIBOBJS="$LIBOBJS err.$ac_objext"
13337 if test "$OS" != "ultrix"; then
13338 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13339 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13340 if test "${ac_cv_sys_posix_termios+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 #include <unistd.h>
13351 #include <termios.h>
13356 /* SunOS 4.0.3 has termios.h but not the library calls. */
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_link") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } && {
13376 test -z "$ac_c_werror_flag" ||
13377 test ! -s conftest.err
13378 } && test -s conftest$ac_exeext &&
13379 $as_test_x conftest$ac_exeext; then
13380 ac_cv_sys_posix_termios=yes
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_cv_sys_posix_termios=no
13388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13389 conftest$ac_exeext conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13392 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13394 if test "$ac_cv_sys_posix_termios" = "yes"; then
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_TERMIOS_H 1
13401 for ac_header in termio.h
13403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 ac_res=`eval echo '${'$as_ac_Header'}'`
13411 { echo "$as_me:$LINENO: result: $ac_res" >&5
13412 echo "${ECHO_T}$ac_res" >&6; }
13414 # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 #include <$ac_header>
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 ac_header_compiler=yes
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_compiler=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <$ac_header>
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null && {
13479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13482 ac_header_preproc=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_preproc=no
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13494 # So? What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13501 ac_header_preproc=yes
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 eval "$as_ac_Header=\$ac_header_preproc"
13526 ac_res=`eval echo '${'$as_ac_Header'}'`
13527 { echo "$as_me:$LINENO: result: $ac_res" >&5
13528 echo "${ECHO_T}$ac_res" >&6; }
13531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13542 if test ${with_logincap-'no'} != "no"; then
13544 for ac_header in login_cap.h
13546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 ac_res=`eval echo '${'$as_ac_Header'}'`
13554 { echo "$as_me:$LINENO: result: $ac_res" >&5
13555 echo "${ECHO_T}$ac_res" >&6; }
13557 # Is the header compilable?
13558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 $ac_includes_default
13567 #include <$ac_header>
13569 rm -f conftest.$ac_objext
13570 if { (ac_try="$ac_compile"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_compile") 2>conftest.er1
13578 grep -v '^ *+' conftest.er1 >conftest.err
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest.$ac_objext; then
13586 ac_header_compiler=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_compiler=no
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
13598 # Is the header present?
13599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <$ac_header>
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null && {
13622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13625 ac_header_preproc=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_header_preproc=no
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13637 # So? What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 eval "$as_ac_Header=\$ac_header_preproc"
13669 ac_res=`eval echo '${'$as_ac_Header'}'`
13670 { echo "$as_me:$LINENO: result: $ac_res" >&5
13671 echo "${ECHO_T}$ac_res" >&6; }
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13680 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
13689 if test ${with_project-'no'} != "no"; then
13690 if test "${ac_cv_header_project_h+set}" = set; then
13691 { echo "$as_me:$LINENO: checking for project.h" >&5
13692 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13693 if test "${ac_cv_header_project_h+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13697 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13699 # Is the header compilable?
13700 { echo "$as_me:$LINENO: checking project.h usability" >&5
13701 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 $ac_includes_default
13709 #include <project.h>
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
13720 grep -v '^ *+' conftest.er1 >conftest.err
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } && {
13725 test -z "$ac_c_werror_flag" ||
13726 test ! -s conftest.err
13727 } && test -s conftest.$ac_objext; then
13728 ac_header_compiler=yes
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 ac_header_compiler=no
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6; }
13740 # Is the header present?
13741 { echo "$as_me:$LINENO: checking project.h presence" >&5
13742 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13743 cat >conftest.$ac_ext <<_ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #include <project.h>
13751 if { (ac_try="$ac_cpp conftest.$ac_ext"
13752 case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13759 grep -v '^ *+' conftest.er1 >conftest.err
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } >/dev/null && {
13764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13765 test ! -s conftest.err
13767 ac_header_preproc=yes
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_header_preproc=no
13775 rm -f conftest.err conftest.$ac_ext
13776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13777 echo "${ECHO_T}$ac_header_preproc" >&6; }
13779 # So? What about this header?
13780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13782 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13783 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13785 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13786 ac_header_preproc=yes
13789 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13790 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
13792 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13794 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
13796 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13800 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13804 { echo "$as_me:$LINENO: checking for project.h" >&5
13805 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13806 if test "${ac_cv_header_project_h+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_cv_header_project_h=$ac_header_preproc
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13815 if test $ac_cv_header_project_h = yes; then
13816 cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_PROJECT_H 1
13820 SUDO_LIBS="${SUDO_LIBS} -lproject"
13827 { echo "$as_me:$LINENO: checking for mode_t" >&5
13828 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13829 if test "${ac_cv_type_mode_t+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 typedef mode_t ac__type_new_;
13843 if ((ac__type_new_ *) 0)
13845 if (sizeof (ac__type_new_))
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_compile") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
13868 ac_cv_type_mode_t=yes
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_type_mode_t=no
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13879 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13880 if test $ac_cv_type_mode_t = yes; then
13884 cat >>confdefs.h <<_ACEOF
13890 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13891 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13892 if test "${ac_cv_type_uid_t+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 cat >conftest.$ac_ext <<_ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 #include <sys/types.h>
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905 $EGREP "uid_t" >/dev/null 2>&1; then
13906 ac_cv_type_uid_t=yes
13908 ac_cv_type_uid_t=no
13913 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13914 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13915 if test $ac_cv_type_uid_t = no; then
13917 cat >>confdefs.h <<\_ACEOF
13922 cat >>confdefs.h <<\_ACEOF
13928 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13929 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 #include <sys/types.h>
13940 #include <signal.h>
13942 typedef sig_atomic_t ac__type_new_;
13946 if ((ac__type_new_ *) 0)
13948 if (sizeof (ac__type_new_))
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_compile") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest.$ac_objext; then
13971 ac_cv_type_sig_atomic_t=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_cv_type_sig_atomic_t=no
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13982 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
13983 if test $ac_cv_type_sig_atomic_t = yes; then
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SIG_ATOMIC_T 1
13991 cat >>confdefs.h <<\_ACEOF
13992 #define sig_atomic_t int
13997 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
13998 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
13999 if test "${ac_cv_type_sigaction_t+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 #include <sys/types.h>
14009 #include <signal.h>
14011 typedef sigaction_t ac__type_new_;
14015 if ((ac__type_new_ *) 0)
14017 if (sizeof (ac__type_new_))
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 ac_cv_type_sigaction_t=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_type_sigaction_t=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14051 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14052 if test $ac_cv_type_sigaction_t = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_SIGACTION_T 1
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_SIGACTION_T 1
14064 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14065 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14066 if test "${ac_cv_type_struct_timespec+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <sys/types.h>
14076 #if TIME_WITH_SYS_TIME
14077 # include <sys/time.h>
14081 typedef struct timespec ac__type_new_;
14085 if ((ac__type_new_ *) 0)
14087 if (sizeof (ac__type_new_))
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.$ac_objext; then
14110 ac_cv_type_struct_timespec=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_cv_type_struct_timespec=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14121 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14122 if test $ac_cv_type_struct_timespec = yes; then
14123 cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_TIMESPEC 1
14129 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14130 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14131 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <sys/types.h>
14141 #include <netinet/in.h>
14143 typedef struct in6_addr ac__type_new_;
14147 if ((ac__type_new_ *) 0)
14149 if (sizeof (ac__type_new_))
14155 rm -f conftest.$ac_objext
14156 if { (ac_try="$ac_compile"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_compile") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest.$ac_objext; then
14172 ac_cv_type_struct_in6_addr=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_type_struct_in6_addr=no
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14183 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14184 if test $ac_cv_type_struct_in6_addr = yes; then
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STRUCT_IN6_ADDR 1
14190 cat >>confdefs.h <<\_ACEOF
14191 #define HAVE_IN6_ADDR 1
14196 { echo "$as_me:$LINENO: checking for size_t" >&5
14197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14198 if test "${sudo_cv_type_size_t+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 cat >conftest.$ac_ext <<_ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14207 #include <sys/types.h>
14210 #include <stdlib.h>
14213 #include <unistd.h>
14216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14217 $EGREP "size_t" >/dev/null 2>&1; then
14218 sudo_cv_type_size_t=yes
14220 sudo_cv_type_size_t=no
14225 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14226 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14227 if test $sudo_cv_type_size_t = no; then
14229 cat >>confdefs.h <<\_ACEOF
14235 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14236 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14237 if test "${sudo_cv_type_ssize_t+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 #include <sys/types.h>
14249 #include <stdlib.h>
14252 #include <unistd.h>
14255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14256 $EGREP "ssize_t" >/dev/null 2>&1; then
14257 sudo_cv_type_ssize_t=yes
14259 sudo_cv_type_ssize_t=no
14264 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14265 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14266 if test $sudo_cv_type_ssize_t = no; then
14268 cat >>confdefs.h <<\_ACEOF
14269 #define ssize_t int
14274 { echo "$as_me:$LINENO: checking for dev_t" >&5
14275 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14276 if test "${sudo_cv_type_dev_t+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <sys/types.h>
14288 #include <stdlib.h>
14291 #include <unistd.h>
14294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295 $EGREP "dev_t" >/dev/null 2>&1; then
14296 sudo_cv_type_dev_t=yes
14298 sudo_cv_type_dev_t=no
14303 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14304 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14305 if test $sudo_cv_type_dev_t = no; then
14307 cat >>confdefs.h <<\_ACEOF
14313 { echo "$as_me:$LINENO: checking for ino_t" >&5
14314 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14315 if test "${sudo_cv_type_ino_t+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 #include <sys/types.h>
14327 #include <stdlib.h>
14330 #include <unistd.h>
14333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334 $EGREP "ino_t" >/dev/null 2>&1; then
14335 sudo_cv_type_ino_t=yes
14337 sudo_cv_type_ino_t=no
14342 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14343 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14344 if test $sudo_cv_type_ino_t = no; then
14346 cat >>confdefs.h <<\_ACEOF
14347 #define ino_t unsigned int
14352 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14353 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14365 foo = (void *)0; (void *)"test";
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_compile") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest.$ac_objext; then
14388 cat >>confdefs.h <<\_ACEOF
14392 { echo "$as_me:$LINENO: result: yes" >&5
14393 echo "${ECHO_T}yes" >&6; }
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 cat >>confdefs.h <<\_ACEOF
14402 { echo "$as_me:$LINENO: result: no" >&5
14403 echo "${ECHO_T}no" >&6; }
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14409 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14410 if test "${sudo_cv_uid_t_len+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 if test "$cross_compiling" = yes; then
14415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&5
14417 echo "$as_me: error: cannot run test program while cross compiling
14418 See \`config.log' for more details." >&2;}
14419 { (exit 1); exit 1; }; }
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14429 #include <limits.h>
14430 #include <sys/types.h>
14431 #include <sys/param.h>
14435 uid_t u = (uid_t) -1;
14437 if ((f = fopen("conftestdata", "w")) == NULL)
14440 (void) sprintf(b, "%lu", (unsigned long) u);
14441 (void) fprintf(f, "%d\n", strlen(b));
14446 rm -f conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_link") 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 sudo_cv_uid_t_len=`cat conftestdata`
14468 echo "$as_me: program exited with status $ac_status" >&5
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ( exit $ac_status )
14473 sudo_cv_uid_t_len=10
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14483 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14484 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14486 cat >>confdefs.h <<_ACEOF
14487 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14491 { echo "$as_me:$LINENO: checking for long long" >&5
14492 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_long_long+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.$ac_ext <<_ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14503 typedef long long ac__type_new_;
14507 if ((ac__type_new_ *) 0)
14509 if (sizeof (ac__type_new_))
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_compile") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest.$ac_objext; then
14532 ac_cv_type_long_long=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_type_long_long=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14543 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14544 if test $ac_cv_type_long_long = yes; then
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_LONG_LONG 1
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_LONG_LONG 1
14555 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14556 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14557 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 if test "$cross_compiling" = yes; then
14561 sudo_cv_type_long_is_quad=no
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14571 if (sizeof(long long) == sizeof(long)) exit(0);
14575 rm -f conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14586 { (case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_try") 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 sudo_cv_type_long_is_quad=yes
14597 echo "$as_me: program exited with status $ac_status" >&5
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ( exit $ac_status )
14602 sudo_cv_type_long_is_quad=no
14604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14608 rm -f core core.* *.core
14610 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14611 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14612 if test $sudo_cv_type_long_is_quad = yes; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define LONG_IS_QUAD 1
14622 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14623 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14624 if test "${sudo_cv_sock_sa_len+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 if test "$cross_compiling" = yes; then
14628 sudo_cv_sock_sa_len=no
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <sys/types.h>
14637 #include <sys/socket.h>
14644 rm -f conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_link") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655 { (case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_try") 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 sudo_cv_sock_sa_len=yes
14666 echo "$as_me: program exited with status $ac_status" >&5
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ( exit $ac_status )
14671 sudo_cv_sock_sa_len=no
14673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14677 rm -f core core.* *.core
14679 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14680 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14681 if test $sudo_cv_sock_sa_len = yes; then
14683 cat >>confdefs.h <<\_ACEOF
14684 #define HAVE_SA_LEN 1
14691 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14692 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14693 if test "${ac_cv_type_signal+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702 #include <sys/types.h>
14703 #include <signal.h>
14708 return *(signal (0, 0)) (0) == 1;
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
14722 grep -v '^ *+' conftest.er1 >conftest.err
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && {
14727 test -z "$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14729 } && test -s conftest.$ac_objext; then
14730 ac_cv_type_signal=int
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_cv_type_signal=void
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14741 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14743 cat >>confdefs.h <<_ACEOF
14744 #define RETSIGTYPE $ac_cv_type_signal
14749 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14750 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
14751 if test "${ac_cv_type_getgroups+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 if test "$cross_compiling" = yes; then
14755 ac_cv_type_getgroups=cross
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 /* Thanks to Mike Rendell for this test. */
14764 $ac_includes_default
14767 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14772 gid_t gidset[NGID];
14774 union { gid_t gval; long int lval; } val;
14777 for (i = 0; i < NGID; i++)
14778 gidset[i] = val.gval;
14779 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14781 /* Exit non-zero if getgroups seems to require an array of ints. This
14782 happens when gid_t is short int but getgroups modifies an array
14784 return n > 0 && gidset[n] != val.gval;
14787 rm -f conftest$ac_exeext
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_link") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_type_getgroups=gid_t
14809 echo "$as_me: program exited with status $ac_status" >&5
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 ( exit $ac_status )
14814 ac_cv_type_getgroups=int
14816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14820 if test $ac_cv_type_getgroups = cross; then
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <unistd.h>
14830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14831 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14832 ac_cv_type_getgroups=gid_t
14834 ac_cv_type_getgroups=int
14840 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14841 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
14843 cat >>confdefs.h <<_ACEOF
14844 #define GETGROUPS_T $ac_cv_type_getgroups
14848 { echo "$as_me:$LINENO: checking for size_t" >&5
14849 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14850 if test "${ac_cv_type_size_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 $ac_includes_default
14860 typedef size_t ac__type_new_;
14864 if ((ac__type_new_ *) 0)
14866 if (sizeof (ac__type_new_))
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } && {
14886 test -z "$ac_c_werror_flag" ||
14887 test ! -s conftest.err
14888 } && test -s conftest.$ac_objext; then
14889 ac_cv_type_size_t=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_type_size_t=no
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14900 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14901 if test $ac_cv_type_size_t = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define size_t unsigned int
14911 { echo "$as_me:$LINENO: checking for getgroups" >&5
14912 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
14913 if test "${ac_cv_func_getgroups+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 cat >conftest.$ac_ext <<_ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
14923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14924 #define getgroups innocuous_getgroups
14926 /* System header to define __stub macros and hopefully few prototypes,
14927 which can conflict with char getgroups (); below.
14928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929 <limits.h> exists even on freestanding compilers. */
14932 # include <limits.h>
14934 # include <assert.h>
14939 /* Override any GCC internal prototype to avoid an error.
14940 Use char because int might match the return type of a GCC
14941 builtin and then its argument prototype would still apply. */
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 #if defined __stub_getgroups || defined __stub___getgroups
14956 return getgroups ();
14961 rm -f conftest.$ac_objext conftest$ac_exeext
14962 if { (ac_try="$ac_link"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_link") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } && {
14975 test -z "$ac_c_werror_flag" ||
14976 test ! -s conftest.err
14977 } && test -s conftest$ac_exeext &&
14978 $as_test_x conftest$ac_exeext; then
14979 ac_cv_func_getgroups=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_cv_func_getgroups=no
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988 conftest$ac_exeext conftest.$ac_ext
14990 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
14991 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
14994 # If we don't yet have getgroups, see if it's in -lbsd.
14995 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14997 if test $ac_cv_func_getgroups = no; then
14998 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
14999 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15000 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 ac_check_lib_save_LIBS=$LIBS
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15012 /* Override any GCC internal prototype to avoid an error.
15013 Use char because int might match the return type of a GCC
15014 builtin and then its argument prototype would still apply. */
15022 return getgroups ();
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_link") 2>conftest.er1
15036 grep -v '^ *+' conftest.er1 >conftest.err
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest$ac_exeext &&
15044 $as_test_x conftest$ac_exeext; then
15045 ac_cv_lib_bsd_getgroups=yes
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ac_cv_lib_bsd_getgroups=no
15053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15054 conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15057 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15058 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15059 if test $ac_cv_lib_bsd_getgroups = yes; then
15060 GETGROUPS_LIB=-lbsd
15065 # Run the program to test the functionality of the system-supplied
15066 # getgroups function only if there is such a function.
15067 if test $ac_cv_func_getgroups = yes; then
15068 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15069 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15070 if test "${ac_cv_func_getgroups_works+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 if test "$cross_compiling" = yes; then
15074 ac_cv_func_getgroups_works=no
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 $ac_includes_default
15086 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15087 return getgroups (0, 0) == -1;
15092 rm -f conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_link") 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_func_getgroups_works=yes
15114 echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ( exit $ac_status )
15119 ac_cv_func_getgroups_works=no
15121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15127 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15128 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15129 if test $ac_cv_func_getgroups_works = yes; then
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_GETGROUPS 1
15154 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15155 strftime setrlimit initgroups getgroups fstat gettimeofday \
15156 setlocale getaddrinfo
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15172 #define $ac_func innocuous_$ac_func
15174 /* System header to define __stub macros and hopefully few prototypes,
15175 which can conflict with char $ac_func (); below.
15176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177 <limits.h> exists even on freestanding compilers. */
15180 # include <limits.h>
15182 # include <assert.h>
15187 /* Override any GCC internal prototype to avoid an error.
15188 Use char because int might match the return type of a GCC
15189 builtin and then its argument prototype would still apply. */
15194 /* The GNU C library defines this for functions which it implements
15195 to always fail with ENOSYS. Some functions are actually named
15196 something starting with __ and the normal name is an alias. */
15197 #if defined __stub_$ac_func || defined __stub___$ac_func
15204 return $ac_func ();
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest$ac_exeext &&
15226 $as_test_x conftest$ac_exeext; then
15227 eval "$as_ac_var=yes"
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 eval "$as_ac_var=no"
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15238 ac_res=`eval echo '${'$as_ac_var'}'`
15239 { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15249 if test -z "$SKIP_SETRESUID"; then
15251 for ac_func in setresuid
15253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15267 #define $ac_func innocuous_$ac_func
15269 /* System header to define __stub macros and hopefully few prototypes,
15270 which can conflict with char $ac_func (); below.
15271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272 <limits.h> exists even on freestanding compilers. */
15275 # include <limits.h>
15277 # include <assert.h>
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15289 /* The GNU C library defines this for functions which it implements
15290 to always fail with ENOSYS. Some functions are actually named
15291 something starting with __ and the normal name is an alias. */
15292 #if defined __stub_$ac_func || defined __stub___$ac_func
15299 return $ac_func ();
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_link") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && {
15318 test -z "$ac_c_werror_flag" ||
15319 test ! -s conftest.err
15320 } && test -s conftest$ac_exeext &&
15321 $as_test_x conftest$ac_exeext; then
15322 eval "$as_ac_var=yes"
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 eval "$as_ac_var=no"
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331 conftest$ac_exeext conftest.$ac_ext
15333 ac_res=`eval echo '${'$as_ac_var'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336 if test `eval echo '${'$as_ac_var'}'` = yes; then
15337 cat >>confdefs.h <<_ACEOF
15338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15345 if test -z "$SKIP_SETREUID"; then
15347 for ac_func in setreuid
15349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15363 #define $ac_func innocuous_$ac_func
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char $ac_func (); below.
15367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368 <limits.h> exists even on freestanding compilers. */
15371 # include <limits.h>
15373 # include <assert.h>
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15385 /* The GNU C library defines this for functions which it implements
15386 to always fail with ENOSYS. Some functions are actually named
15387 something starting with __ and the normal name is an alias. */
15388 #if defined __stub_$ac_func || defined __stub___$ac_func
15395 return $ac_func ();
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext &&
15417 $as_test_x conftest$ac_exeext; then
15418 eval "$as_ac_var=yes"
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 eval "$as_ac_var=no"
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15429 ac_res=`eval echo '${'$as_ac_var'}'`
15430 { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15441 if test -z "$SKIP_SETEUID"; then
15443 for ac_func in seteuid
15445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15459 #define $ac_func innocuous_$ac_func
15461 /* System header to define __stub macros and hopefully few prototypes,
15462 which can conflict with char $ac_func (); below.
15463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15464 <limits.h> exists even on freestanding compilers. */
15467 # include <limits.h>
15469 # include <assert.h>
15474 /* Override any GCC internal prototype to avoid an error.
15475 Use char because int might match the return type of a GCC
15476 builtin and then its argument prototype would still apply. */
15481 /* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484 #if defined __stub_$ac_func || defined __stub___$ac_func
15491 return $ac_func ();
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_c_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest$ac_exeext &&
15513 $as_test_x conftest$ac_exeext; then
15514 eval "$as_ac_var=yes"
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 eval "$as_ac_var=no"
15522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15523 conftest$ac_exeext conftest.$ac_ext
15525 ac_res=`eval echo '${'$as_ac_var'}'`
15526 { echo "$as_me:$LINENO: result: $ac_res" >&5
15527 echo "${ECHO_T}$ac_res" >&6; }
15528 if test `eval echo '${'$as_ac_var'}'` = yes; then
15529 cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15537 if test X"$with_interfaces" != X"no"; then
15539 for ac_func in getifaddrs
15541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15555 #define $ac_func innocuous_$ac_func
15557 /* System header to define __stub macros and hopefully few prototypes,
15558 which can conflict with char $ac_func (); below.
15559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15560 <limits.h> exists even on freestanding compilers. */
15563 # include <limits.h>
15565 # include <assert.h>
15570 /* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined __stub_$ac_func || defined __stub___$ac_func
15587 return $ac_func ();
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && {
15606 test -z "$ac_c_werror_flag" ||
15607 test ! -s conftest.err
15608 } && test -s conftest$ac_exeext &&
15609 $as_test_x conftest$ac_exeext; then
15610 eval "$as_ac_var=yes"
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 eval "$as_ac_var=no"
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619 conftest$ac_exeext conftest.$ac_ext
15621 ac_res=`eval echo '${'$as_ac_var'}'`
15622 { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15624 if test `eval echo '${'$as_ac_var'}'` = yes; then
15625 cat >>confdefs.h <<_ACEOF
15626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629 for ac_func in freeifaddrs
15631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15645 #define $ac_func innocuous_$ac_func
15647 /* System header to define __stub macros and hopefully few prototypes,
15648 which can conflict with char $ac_func (); below.
15649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15650 <limits.h> exists even on freestanding compilers. */
15653 # include <limits.h>
15655 # include <assert.h>
15660 /* Override any GCC internal prototype to avoid an error.
15661 Use char because int might match the return type of a GCC
15662 builtin and then its argument prototype would still apply. */
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined __stub_$ac_func || defined __stub___$ac_func
15677 return $ac_func ();
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15700 eval "$as_ac_var=yes"
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 eval "$as_ac_var=no"
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15711 ac_res=`eval echo '${'$as_ac_var'}'`
15712 { echo "$as_me:$LINENO: result: $ac_res" >&5
15713 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15726 if test -z "$BROKEN_GETCWD"; then
15728 for ac_func in getcwd
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15744 #define $ac_func innocuous_$ac_func
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func (); below.
15748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749 <limits.h> exists even on freestanding compilers. */
15752 # include <limits.h>
15754 # include <assert.h>
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15776 return $ac_func ();
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 eval "$as_ac_var=yes"
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 eval "$as_ac_var=no"
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15819 case " $LIBOBJS " in
15820 *" $ac_func.$ac_objext "* ) ;;
15821 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15831 for ac_func in glob
15833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15847 #define $ac_func innocuous_$ac_func
15849 /* System header to define __stub macros and hopefully few prototypes,
15850 which can conflict with char $ac_func (); below.
15851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15852 <limits.h> exists even on freestanding compilers. */
15855 # include <limits.h>
15857 # include <assert.h>
15862 /* Override any GCC internal prototype to avoid an error.
15863 Use char because int might match the return type of a GCC
15864 builtin and then its argument prototype would still apply. */
15869 /* The GNU C library defines this for functions which it implements
15870 to always fail with ENOSYS. Some functions are actually named
15871 something starting with __ and the normal name is an alias. */
15872 #if defined __stub_$ac_func || defined __stub___$ac_func
15879 return $ac_func ();
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_link") 2>conftest.er1
15893 grep -v '^ *+' conftest.er1 >conftest.err
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } && {
15898 test -z "$ac_c_werror_flag" ||
15899 test ! -s conftest.err
15900 } && test -s conftest$ac_exeext &&
15901 $as_test_x conftest$ac_exeext; then
15902 eval "$as_ac_var=yes"
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 eval "$as_ac_var=no"
15910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15911 conftest$ac_exeext conftest.$ac_ext
15913 ac_res=`eval echo '${'$as_ac_var'}'`
15914 { echo "$as_me:$LINENO: result: $ac_res" >&5
15915 echo "${ECHO_T}$ac_res" >&6; }
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15920 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15921 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15932 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_compile") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && {
15951 test -z "$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15953 } && test -s conftest.$ac_objext; then
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_EXTENDED_GLOB 1
15958 { echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6; }
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 case " $LIBOBJS " in
15965 *" glob.$ac_objext "* ) ;;
15966 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15970 { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 case " $LIBOBJS " in
15977 *" glob.$ac_objext "* ) ;;
15978 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15987 for ac_func in lockf flock
15989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16003 #define $ac_func innocuous_$ac_func
16005 /* System header to define __stub macros and hopefully few prototypes,
16006 which can conflict with char $ac_func (); below.
16007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16008 <limits.h> exists even on freestanding compilers. */
16011 # include <limits.h>
16013 # include <assert.h>
16018 /* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16025 /* The GNU C library defines this for functions which it implements
16026 to always fail with ENOSYS. Some functions are actually named
16027 something starting with __ and the normal name is an alias. */
16028 #if defined __stub_$ac_func || defined __stub___$ac_func
16035 return $ac_func ();
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_link") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest$ac_exeext &&
16057 $as_test_x conftest$ac_exeext; then
16058 eval "$as_ac_var=yes"
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 eval "$as_ac_var=no"
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16069 ac_res=`eval echo '${'$as_ac_var'}'`
16070 { echo "$as_me:$LINENO: result: $ac_res" >&5
16071 echo "${ECHO_T}$ac_res" >&6; }
16072 if test `eval echo '${'$as_ac_var'}'` = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16082 for ac_func in waitpid wait3
16084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16098 #define $ac_func innocuous_$ac_func
16100 /* System header to define __stub macros and hopefully few prototypes,
16101 which can conflict with char $ac_func (); below.
16102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 <limits.h> exists even on freestanding compilers. */
16106 # include <limits.h>
16108 # include <assert.h>
16113 /* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined __stub_$ac_func || defined __stub___$ac_func
16130 return $ac_func ();
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_link") 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } && {
16149 test -z "$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 } && test -s conftest$ac_exeext &&
16152 $as_test_x conftest$ac_exeext; then
16153 eval "$as_ac_var=yes"
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 eval "$as_ac_var=no"
16161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16162 conftest$ac_exeext conftest.$ac_ext
16164 ac_res=`eval echo '${'$as_ac_var'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 if test `eval echo '${'$as_ac_var'}'` = yes; then
16168 cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 for ac_func in innetgr _innetgr
16179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.$ac_ext <<_ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16193 #define $ac_func innocuous_$ac_func
16195 /* System header to define __stub macros and hopefully few prototypes,
16196 which can conflict with char $ac_func (); below.
16197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16198 <limits.h> exists even on freestanding compilers. */
16201 # include <limits.h>
16203 # include <assert.h>
16208 /* Override any GCC internal prototype to avoid an error.
16209 Use char because int might match the return type of a GCC
16210 builtin and then its argument prototype would still apply. */
16215 /* The GNU C library defines this for functions which it implements
16216 to always fail with ENOSYS. Some functions are actually named
16217 something starting with __ and the normal name is an alias. */
16218 #if defined __stub_$ac_func || defined __stub___$ac_func
16225 return $ac_func ();
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_link") 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
16246 } && test -s conftest$ac_exeext &&
16247 $as_test_x conftest$ac_exeext; then
16248 eval "$as_ac_var=yes"
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 eval "$as_ac_var=no"
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16259 ac_res=`eval echo '${'$as_ac_var'}'`
16260 { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16262 if test `eval echo '${'$as_ac_var'}'` = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16267 for ac_func in getdomainname
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define $ac_func innocuous_$ac_func
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16291 # include <limits.h>
16293 # include <assert.h>
16298 /* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16305 /* The GNU C library defines this for functions which it implements
16306 to always fail with ENOSYS. Some functions are actually named
16307 something starting with __ and the normal name is an alias. */
16308 #if defined __stub_$ac_func || defined __stub___$ac_func
16315 return $ac_func ();
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext &&
16337 $as_test_x conftest$ac_exeext; then
16338 eval "$as_ac_var=yes"
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 eval "$as_ac_var=no"
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347 conftest$ac_exeext conftest.$ac_ext
16349 ac_res=`eval echo '${'$as_ac_var'}'`
16350 { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16364 for ac_func in lsearch
16366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16380 #define $ac_func innocuous_$ac_func
16382 /* System header to define __stub macros and hopefully few prototypes,
16383 which can conflict with char $ac_func (); below.
16384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385 <limits.h> exists even on freestanding compilers. */
16388 # include <limits.h>
16390 # include <assert.h>
16395 /* Override any GCC internal prototype to avoid an error.
16396 Use char because int might match the return type of a GCC
16397 builtin and then its argument prototype would still apply. */
16402 /* The GNU C library defines this for functions which it implements
16403 to always fail with ENOSYS. Some functions are actually named
16404 something starting with __ and the normal name is an alias. */
16405 #if defined __stub_$ac_func || defined __stub___$ac_func
16412 return $ac_func ();
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_link") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } && {
16431 test -z "$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 } && test -s conftest$ac_exeext &&
16434 $as_test_x conftest$ac_exeext; then
16435 eval "$as_ac_var=yes"
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 eval "$as_ac_var=no"
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444 conftest$ac_exeext conftest.$ac_ext
16446 ac_res=`eval echo '${'$as_ac_var'}'`
16447 { echo "$as_me:$LINENO: result: $ac_res" >&5
16448 echo "${ECHO_T}$ac_res" >&6; }
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450 cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16456 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16457 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 ac_check_lib_save_LIBS=$LIBS
16461 LIBS="-lcompat $LIBS"
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16469 /* Override any GCC internal prototype to avoid an error.
16470 Use char because int might match the return type of a GCC
16471 builtin and then its argument prototype would still apply. */
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_link") 2>conftest.er1
16493 grep -v '^ *+' conftest.er1 >conftest.err
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest$ac_exeext &&
16501 $as_test_x conftest$ac_exeext; then
16502 ac_cv_lib_compat_lsearch=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_cv_lib_compat_lsearch=no
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511 conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16515 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16516 if test $ac_cv_lib_compat_lsearch = yes; then
16517 { echo "$as_me:$LINENO: checking for search.h" >&5
16518 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16519 if test "${ac_cv_header_search_h+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 cat >conftest.$ac_ext <<_ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 #include <search.h>
16530 if { (ac_try="$ac_cpp conftest.$ac_ext"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null && {
16543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16546 ac_cv_header_search_h=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_header_search_h=no
16554 rm -f conftest.err conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16557 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16558 if test $ac_cv_header_search_h = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_LSEARCH 1
16562 LIBS="${LIBS} -lcompat"
16564 case " $LIBOBJS " in
16565 *" lsearch.$ac_objext "* ) ;;
16566 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16574 case " $LIBOBJS " in
16575 *" lsearch.$ac_objext "* ) ;;
16576 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16586 for ac_func in utimes
16588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16602 #define $ac_func innocuous_$ac_func
16604 /* System header to define __stub macros and hopefully few prototypes,
16605 which can conflict with char $ac_func (); below.
16606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607 <limits.h> exists even on freestanding compilers. */
16610 # include <limits.h>
16612 # include <assert.h>
16617 /* Override any GCC internal prototype to avoid an error.
16618 Use char because int might match the return type of a GCC
16619 builtin and then its argument prototype would still apply. */
16624 /* The GNU C library defines this for functions which it implements
16625 to always fail with ENOSYS. Some functions are actually named
16626 something starting with __ and the normal name is an alias. */
16627 #if defined __stub_$ac_func || defined __stub___$ac_func
16634 return $ac_func ();
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_link") 2>conftest.er1
16648 grep -v '^ *+' conftest.er1 >conftest.err
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } && {
16653 test -z "$ac_c_werror_flag" ||
16654 test ! -s conftest.err
16655 } && test -s conftest$ac_exeext &&
16656 $as_test_x conftest$ac_exeext; then
16657 eval "$as_ac_var=yes"
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 eval "$as_ac_var=no"
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16668 ac_res=`eval echo '${'$as_ac_var'}'`
16669 { echo "$as_me:$LINENO: result: $ac_res" >&5
16670 echo "${ECHO_T}$ac_res" >&6; }
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677 for ac_func in futimes futimesat
16679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16693 #define $ac_func innocuous_$ac_func
16695 /* System header to define __stub macros and hopefully few prototypes,
16696 which can conflict with char $ac_func (); below.
16697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698 <limits.h> exists even on freestanding compilers. */
16701 # include <limits.h>
16703 # include <assert.h>
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined __stub_$ac_func || defined __stub___$ac_func
16725 return $ac_func ();
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_link") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest$ac_exeext &&
16747 $as_test_x conftest$ac_exeext; then
16748 eval "$as_ac_var=yes"
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 eval "$as_ac_var=no"
16756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16757 conftest$ac_exeext conftest.$ac_ext
16759 ac_res=`eval echo '${'$as_ac_var'}'`
16760 { echo "$as_me:$LINENO: result: $ac_res" >&5
16761 echo "${ECHO_T}$ac_res" >&6; }
16762 if test `eval echo '${'$as_ac_var'}'` = yes; then
16763 cat >>confdefs.h <<_ACEOF
16764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772 for ac_func in futime
16774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 cat >conftest.$ac_ext <<_ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16788 #define $ac_func innocuous_$ac_func
16790 /* System header to define __stub macros and hopefully few prototypes,
16791 which can conflict with char $ac_func (); below.
16792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793 <limits.h> exists even on freestanding compilers. */
16796 # include <limits.h>
16798 # include <assert.h>
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16810 /* The GNU C library defines this for functions which it implements
16811 to always fail with ENOSYS. Some functions are actually named
16812 something starting with __ and the normal name is an alias. */
16813 #if defined __stub_$ac_func || defined __stub___$ac_func
16820 return $ac_func ();
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } && {
16839 test -z "$ac_c_werror_flag" ||
16840 test ! -s conftest.err
16841 } && test -s conftest$ac_exeext &&
16842 $as_test_x conftest$ac_exeext; then
16843 eval "$as_ac_var=yes"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_var=no"
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855 { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16864 case " $LIBOBJS " in
16865 *" utimes.$ac_objext "* ) ;;
16866 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16873 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16874 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16875 if test "${sudo_cv_func_fnmatch+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 rm -f conftestdata; > conftestdata
16879 if test "$cross_compiling" = yes; then
16880 sudo_cv_func_fnmatch=no
16882 cat >conftest.$ac_ext <<_ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #include <fnmatch.h>
16889 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16891 rm -f conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_link") 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 sudo_cv_func_fnmatch=yes
16913 echo "$as_me: program exited with status $ac_status" >&5
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 ( exit $ac_status )
16918 sudo_cv_func_fnmatch=no
16920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16924 rm -f core core.* *.core
16927 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16928 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16929 if test $sudo_cv_func_fnmatch = yes; then
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_FNMATCH 1
16935 case " $LIBOBJS " in
16936 *" fnmatch.$ac_objext "* ) ;;
16937 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16943 { echo "$as_me:$LINENO: checking for isblank" >&5
16944 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16945 if test "${sudo_cv_func_isblank+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16958 return (isblank('a'));
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest$ac_exeext &&
16980 $as_test_x conftest$ac_exeext; then
16981 sudo_cv_func_isblank=yes
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 sudo_cv_func_isblank=no
16989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16990 conftest$ac_exeext conftest.$ac_ext
16992 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
16993 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
16995 if test "$sudo_cv_func_isblank" = "yes"; then
16997 cat >>confdefs.h <<\_ACEOF
16998 #define HAVE_ISBLANK 1
17009 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17025 #define $ac_func innocuous_$ac_func
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char $ac_func (); below.
17029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030 <limits.h> exists even on freestanding compilers. */
17033 # include <limits.h>
17035 # include <assert.h>
17040 /* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17047 /* The GNU C library defines this for functions which it implements
17048 to always fail with ENOSYS. Some functions are actually named
17049 something starting with __ and the normal name is an alias. */
17050 #if defined __stub_$ac_func || defined __stub___$ac_func
17057 return $ac_func ();
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest$ac_exeext &&
17079 $as_test_x conftest$ac_exeext; then
17080 eval "$as_ac_var=yes"
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 eval "$as_ac_var=no"
17088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089 conftest$ac_exeext conftest.$ac_ext
17091 ac_res=`eval echo '${'$as_ac_var'}'`
17092 { echo "$as_me:$LINENO: result: $ac_res" >&5
17093 echo "${ECHO_T}$ac_res" >&6; }
17094 if test `eval echo '${'$as_ac_var'}'` = yes; then
17095 cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17100 case " $LIBOBJS " in
17101 *" $ac_func.$ac_objext "* ) ;;
17102 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17111 for ac_func in closefrom
17113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17127 #define $ac_func innocuous_$ac_func
17129 /* System header to define __stub macros and hopefully few prototypes,
17130 which can conflict with char $ac_func (); below.
17131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132 <limits.h> exists even on freestanding compilers. */
17135 # include <limits.h>
17137 # include <assert.h>
17142 /* Override any GCC internal prototype to avoid an error.
17143 Use char because int might match the return type of a GCC
17144 builtin and then its argument prototype would still apply. */
17149 /* The GNU C library defines this for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined __stub_$ac_func || defined __stub___$ac_func
17159 return $ac_func ();
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_link") 2>conftest.er1
17173 grep -v '^ *+' conftest.er1 >conftest.err
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext &&
17181 $as_test_x conftest$ac_exeext; then
17182 eval "$as_ac_var=yes"
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 eval "$as_ac_var=no"
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191 conftest$ac_exeext conftest.$ac_ext
17193 ac_res=`eval echo '${'$as_ac_var'}'`
17194 { echo "$as_me:$LINENO: result: $ac_res" >&5
17195 echo "${ECHO_T}$ac_res" >&6; }
17196 if test `eval echo '${'$as_ac_var'}'` = yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17202 case " $LIBOBJS " in
17203 *" closefrom.$ac_objext "* ) ;;
17204 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17208 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17209 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17210 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 cat >conftest.$ac_ext <<_ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <limits.h>
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_compile") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest.$ac_objext; then
17250 ac_cv_have_decl_F_CLOSEM=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_cv_have_decl_F_CLOSEM=no
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17261 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17262 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_FCNTL_CLOSEM 1
17274 for ac_func in mkstemp
17276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17290 #define $ac_func innocuous_$ac_func
17292 /* System header to define __stub macros and hopefully few prototypes,
17293 which can conflict with char $ac_func (); below.
17294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17295 <limits.h> exists even on freestanding compilers. */
17298 # include <limits.h>
17300 # include <assert.h>
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17312 /* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
17315 #if defined __stub_$ac_func || defined __stub___$ac_func
17322 return $ac_func ();
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_link") 2>conftest.er1
17336 grep -v '^ *+' conftest.er1 >conftest.err
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } && {
17341 test -z "$ac_c_werror_flag" ||
17342 test ! -s conftest.err
17343 } && test -s conftest$ac_exeext &&
17344 $as_test_x conftest$ac_exeext; then
17345 eval "$as_ac_var=yes"
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 eval "$as_ac_var=no"
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17356 ac_res=`eval echo '${'$as_ac_var'}'`
17357 { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359 if test `eval echo '${'$as_ac_var'}'` = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17365 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17368 for ac_func in random lrand48
17370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17384 #define $ac_func innocuous_$ac_func
17386 /* System header to define __stub macros and hopefully few prototypes,
17387 which can conflict with char $ac_func (); below.
17388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17389 <limits.h> exists even on freestanding compilers. */
17392 # include <limits.h>
17394 # include <assert.h>
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17406 /* The GNU C library defines this for functions which it implements
17407 to always fail with ENOSYS. Some functions are actually named
17408 something starting with __ and the normal name is an alias. */
17409 #if defined __stub_$ac_func || defined __stub___$ac_func
17416 return $ac_func ();
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (ac_try="$ac_link"
17423 case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_link") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest$ac_exeext &&
17438 $as_test_x conftest$ac_exeext; then
17439 eval "$as_ac_var=yes"
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 eval "$as_ac_var=no"
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448 conftest$ac_exeext conftest.$ac_ext
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 for ac_func in snprintf vsnprintf asprintf vasprintf
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485 #define $ac_func innocuous_$ac_func
17487 /* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17493 # include <limits.h>
17495 # include <assert.h>
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17507 /* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17517 return $ac_func ();
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest$ac_exeext &&
17539 $as_test_x conftest$ac_exeext; then
17540 eval "$as_ac_var=yes"
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 eval "$as_ac_var=no"
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext conftest.$ac_ext
17551 ac_res=`eval echo '${'$as_ac_var'}'`
17552 { echo "$as_me:$LINENO: result: $ac_res" >&5
17553 echo "${ECHO_T}$ac_res" >&6; }
17554 if test `eval echo '${'$as_ac_var'}'` = yes; then
17555 cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17564 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17565 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17566 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17567 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 $ac_includes_default
17580 static struct stat ac_aggr;
17581 if (ac_aggr.st_mtim)
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_compile") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && {
17601 test -z "$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 } && test -s conftest.$ac_objext; then
17604 ac_cv_member_struct_stat_st_mtim=yes
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 $ac_includes_default
17619 static struct stat ac_aggr;
17620 if (sizeof ac_aggr.st_mtim)
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_compile") 2>conftest.er1
17635 grep -v '^ *+' conftest.er1 >conftest.err
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest.$ac_objext; then
17643 ac_cv_member_struct_stat_st_mtim=yes
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17648 ac_cv_member_struct_stat_st_mtim=no
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17657 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17658 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17659 cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_ST_MTIM 1
17663 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17664 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17665 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 $ac_includes_default
17678 static struct stat ac_aggr;
17679 if (ac_aggr.st_mtim.st__tim)
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } && {
17699 test -z "$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17701 } && test -s conftest.$ac_objext; then
17702 ac_cv_member_struct_stat_st_mtim_st__tim=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 $ac_includes_default
17717 static struct stat ac_aggr;
17718 if (sizeof ac_aggr.st_mtim.st__tim)
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && {
17738 test -z "$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 } && test -s conftest.$ac_objext; then
17741 ac_cv_member_struct_stat_st_mtim_st__tim=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_member_struct_stat_st_mtim_st__tim=no
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
17755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
17756 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_ST__TIM 1
17764 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17765 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17766 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 $ac_includes_default
17779 static struct stat ac_aggr;
17780 if (ac_aggr.st_mtimespec)
17786 rm -f conftest.$ac_objext
17787 if { (ac_try="$ac_compile"
17788 case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_compile") 2>conftest.er1
17795 grep -v '^ *+' conftest.er1 >conftest.err
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && {
17800 test -z "$ac_c_werror_flag" ||
17801 test ! -s conftest.err
17802 } && test -s conftest.$ac_objext; then
17803 ac_cv_member_struct_stat_st_mtimespec=yes
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 $ac_includes_default
17818 static struct stat ac_aggr;
17819 if (sizeof ac_aggr.st_mtimespec)
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_compile") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest.$ac_objext; then
17842 ac_cv_member_struct_stat_st_mtimespec=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_member_struct_stat_st_mtimespec=no
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17856 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17857 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17858 cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_ST_MTIMESPEC 1
17866 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17867 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 #include <sys/types.h>
17875 #include <sys/time.h>
17879 struct timespec ts1, ts2;
17880 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17881 #ifndef timespecsub
17882 #error missing timespecsub
17884 timespecsub(&ts1, &ts2);
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 cat >>confdefs.h <<\_ACEOF
17907 #define HAVE_TIMESPECSUB2 1
17910 { echo "$as_me:$LINENO: result: yes" >&5
17911 echo "${ECHO_T}yes" >&6; }
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 { echo "$as_me:$LINENO: result: no" >&5
17917 echo "${ECHO_T}no" >&6; }
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <sys/types.h>
17929 #include <$ac_header_dirent>
17933 DIR d; (void)dirfd(&d);
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_DIRFD 1
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 #include <sys/types.h>
17971 #include <$ac_header_dirent>
17975 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17980 rm -f conftest.$ac_objext conftest$ac_exeext
17981 if { (ac_try="$ac_link"
17982 case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_link") 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && {
17994 test -z "$ac_c_werror_flag" ||
17995 test ! -s conftest.err
17996 } && test -s conftest$ac_exeext &&
17997 $as_test_x conftest$ac_exeext; then
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_DD_FD 1
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010 conftest$ac_exeext conftest.$ac_ext
18013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18014 conftest$ac_exeext conftest.$ac_ext
18015 if test -n "$NEED_SNPRINTF"; then
18016 case " $LIBOBJS " in
18017 *" snprintf.$ac_objext "* ) ;;
18018 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18023 { echo "$as_me:$LINENO: checking for socket" >&5
18024 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18025 if test "${ac_cv_func_socket+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18036 #define socket innocuous_socket
18038 /* System header to define __stub macros and hopefully few prototypes,
18039 which can conflict with char socket (); below.
18040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18041 <limits.h> exists even on freestanding compilers. */
18044 # include <limits.h>
18046 # include <assert.h>
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18058 /* The GNU C library defines this for functions which it implements
18059 to always fail with ENOSYS. Some functions are actually named
18060 something starting with __ and the normal name is an alias. */
18061 #if defined __stub_socket || defined __stub___socket
18073 rm -f conftest.$ac_objext conftest$ac_exeext
18074 if { (ac_try="$ac_link"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_link") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && {
18087 test -z "$ac_c_werror_flag" ||
18088 test ! -s conftest.err
18089 } && test -s conftest$ac_exeext &&
18090 $as_test_x conftest$ac_exeext; then
18091 ac_cv_func_socket=yes
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_func_socket=no
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100 conftest$ac_exeext conftest.$ac_ext
18102 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18103 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18104 if test $ac_cv_func_socket = yes; then
18107 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18108 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_socket_socket+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lsocket $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 ac_cv_lib_socket_socket=yes
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 ac_cv_lib_socket_socket=no
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18166 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18167 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18168 if test $ac_cv_lib_socket_socket = yes; then
18169 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18171 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18172 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18173 if test "${ac_cv_lib_inet_socket+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 ac_check_lib_save_LIBS=$LIBS
18177 LIBS="-linet $LIBS"
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18185 /* Override any GCC internal prototype to avoid an error.
18186 Use char because int might match the return type of a GCC
18187 builtin and then its argument prototype would still apply. */
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (ac_try="$ac_link"
18202 case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_link") 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && {
18214 test -z "$ac_c_werror_flag" ||
18215 test ! -s conftest.err
18216 } && test -s conftest$ac_exeext &&
18217 $as_test_x conftest$ac_exeext; then
18218 ac_cv_lib_inet_socket=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_lib_inet_socket=no
18226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18231 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18232 if test $ac_cv_lib_inet_socket = yes; then
18233 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18235 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18236 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18237 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18238 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18239 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-lsocket -lnsl $LIBS"
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest$ac_exeext &&
18283 $as_test_x conftest$ac_exeext; then
18284 ac_cv_lib_socket_socket_lnsl=yes
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_lib_socket_socket_lnsl=no
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18297 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18298 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18299 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18308 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18309 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18310 if test "${ac_cv_func_inet_addr+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18321 #define inet_addr innocuous_inet_addr
18323 /* System header to define __stub macros and hopefully few prototypes,
18324 which can conflict with char inet_addr (); below.
18325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18326 <limits.h> exists even on freestanding compilers. */
18329 # include <limits.h>
18331 # include <assert.h>
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18343 /* The GNU C library defines this for functions which it implements
18344 to always fail with ENOSYS. Some functions are actually named
18345 something starting with __ and the normal name is an alias. */
18346 #if defined __stub_inet_addr || defined __stub___inet_addr
18353 return inet_addr ();
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (ac_try="$ac_link"
18360 case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_link") 2>conftest.er1
18367 grep -v '^ *+' conftest.er1 >conftest.err
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } && {
18372 test -z "$ac_c_werror_flag" ||
18373 test ! -s conftest.err
18374 } && test -s conftest$ac_exeext &&
18375 $as_test_x conftest$ac_exeext; then
18376 ac_cv_func_inet_addr=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_func_inet_addr=no
18384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18385 conftest$ac_exeext conftest.$ac_ext
18387 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18388 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18389 if test $ac_cv_func_inet_addr = yes; then
18392 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18393 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18394 if test "${ac_cv_func___inet_addr+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18405 #define __inet_addr innocuous___inet_addr
18407 /* System header to define __stub macros and hopefully few prototypes,
18408 which can conflict with char __inet_addr (); below.
18409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410 <limits.h> exists even on freestanding compilers. */
18413 # include <limits.h>
18415 # include <assert.h>
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18426 char __inet_addr ();
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined __stub___inet_addr || defined __stub_____inet_addr
18437 return __inet_addr ();
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } && {
18456 test -z "$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 } && test -s conftest$ac_exeext &&
18459 $as_test_x conftest$ac_exeext; then
18460 ac_cv_func___inet_addr=yes
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18465 ac_cv_func___inet_addr=no
18468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18469 conftest$ac_exeext conftest.$ac_ext
18471 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18472 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18473 if test $ac_cv_func___inet_addr = yes; then
18476 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18477 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18478 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_check_lib_save_LIBS=$LIBS
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 /* Override any GCC internal prototype to avoid an error.
18491 Use char because int might match the return type of a GCC
18492 builtin and then its argument prototype would still apply. */
18500 return inet_addr ();
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_link") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest$ac_exeext &&
18522 $as_test_x conftest$ac_exeext; then
18523 ac_cv_lib_nsl_inet_addr=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_lib_nsl_inet_addr=no
18531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18536 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18537 if test $ac_cv_lib_nsl_inet_addr = yes; then
18538 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18540 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18541 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18542 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 ac_check_lib_save_LIBS=$LIBS
18546 LIBS="-linet $LIBS"
18547 cat >conftest.$ac_ext <<_ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18554 /* Override any GCC internal prototype to avoid an error.
18555 Use char because int might match the return type of a GCC
18556 builtin and then its argument prototype would still apply. */
18564 return inet_addr ();
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18578 grep -v '^ *+' conftest.er1 >conftest.err
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest$ac_exeext &&
18586 $as_test_x conftest$ac_exeext; then
18587 ac_cv_lib_inet_inet_addr=yes
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 ac_cv_lib_inet_inet_addr=no
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18599 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18600 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18601 if test $ac_cv_lib_inet_inet_addr = yes; then
18602 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18604 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18605 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18606 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18607 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18608 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-lsocket -lnsl $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18630 return inet_addr ();
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (ac_try="$ac_link"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_link") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest$ac_exeext &&
18652 $as_test_x conftest$ac_exeext; then
18653 ac_cv_lib_socket_inet_addr_lnsl=yes
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_cv_lib_socket_inet_addr_lnsl=no
18661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18662 conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18666 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18667 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18668 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18679 { echo "$as_me:$LINENO: checking for syslog" >&5
18680 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18681 if test "${ac_cv_func_syslog+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 cat >conftest.$ac_ext <<_ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18692 #define syslog innocuous_syslog
18694 /* System header to define __stub macros and hopefully few prototypes,
18695 which can conflict with char syslog (); below.
18696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18697 <limits.h> exists even on freestanding compilers. */
18700 # include <limits.h>
18702 # include <assert.h>
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18714 /* The GNU C library defines this for functions which it implements
18715 to always fail with ENOSYS. Some functions are actually named
18716 something starting with __ and the normal name is an alias. */
18717 #if defined __stub_syslog || defined __stub___syslog
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>conftest.er1
18738 grep -v '^ *+' conftest.er1 >conftest.err
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext &&
18746 $as_test_x conftest$ac_exeext; then
18747 ac_cv_func_syslog=yes
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_cv_func_syslog=no
18755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18756 conftest$ac_exeext conftest.$ac_ext
18758 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18759 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18760 if test $ac_cv_func_syslog = yes; then
18763 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18764 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18765 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 ac_check_lib_save_LIBS=$LIBS
18769 LIBS="-lsocket $LIBS"
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18777 /* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext &&
18809 $as_test_x conftest$ac_exeext; then
18810 ac_cv_lib_socket_syslog=yes
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_cv_lib_socket_syslog=no
18818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819 conftest$ac_exeext conftest.$ac_ext
18820 LIBS=$ac_check_lib_save_LIBS
18822 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18823 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18824 if test $ac_cv_lib_socket_syslog = yes; then
18825 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18827 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18828 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18829 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 ac_check_lib_save_LIBS=$LIBS
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18841 /* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest$ac_exeext &&
18873 $as_test_x conftest$ac_exeext; then
18874 ac_cv_lib_nsl_syslog=yes
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18879 ac_cv_lib_nsl_syslog=no
18882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18887 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18888 if test $ac_cv_lib_nsl_syslog = yes; then
18889 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18891 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18892 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18893 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-linet $LIBS"
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>conftest.er1
18929 grep -v '^ *+' conftest.er1 >conftest.err
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest$ac_exeext &&
18937 $as_test_x conftest$ac_exeext; then
18938 ac_cv_lib_inet_syslog=yes
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 ac_cv_lib_inet_syslog=no
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18950 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18951 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18952 if test $ac_cv_lib_inet_syslog = yes; then
18953 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18962 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
18963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18964 # for constant arguments. Useless!
18965 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18966 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18967 if test "${ac_cv_working_alloca_h+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #include <alloca.h>
18980 char *p = (char *) alloca (2 * sizeof (int));
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest$ac_exeext &&
19003 $as_test_x conftest$ac_exeext; then
19004 ac_cv_working_alloca_h=yes
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19009 ac_cv_working_alloca_h=no
19012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19013 conftest$ac_exeext conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19016 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19017 if test $ac_cv_working_alloca_h = yes; then
19019 cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_ALLOCA_H 1
19025 { echo "$as_me:$LINENO: checking for alloca" >&5
19026 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19027 if test "${ac_cv_func_alloca_works+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19037 # define alloca __builtin_alloca
19040 # include <malloc.h>
19041 # define alloca _alloca
19043 # ifdef HAVE_ALLOCA_H
19044 # include <alloca.h>
19049 # ifndef alloca /* predefined by HP cc +Olibcalls */
19060 char *p = (char *) alloca (1);
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (ac_try="$ac_link"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_link") 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } && {
19080 test -z "$ac_c_werror_flag" ||
19081 test ! -s conftest.err
19082 } && test -s conftest$ac_exeext &&
19083 $as_test_x conftest$ac_exeext; then
19084 ac_cv_func_alloca_works=yes
19086 echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19089 ac_cv_func_alloca_works=no
19092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19093 conftest$ac_exeext conftest.$ac_ext
19095 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19096 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19098 if test $ac_cv_func_alloca_works = yes; then
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ALLOCA 1
19105 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19106 # that cause trouble. Some versions do not even contain alloca or
19107 # contain a buggy version. If you still want to use their alloca,
19108 # use ar to extract alloca.o from them instead of compiling alloca.c.
19110 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19112 cat >>confdefs.h <<\_ACEOF
19117 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19118 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19119 if test "${ac_cv_os_cray+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 cat >conftest.$ac_ext <<_ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 #if defined CRAY && ! defined CRAY2
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136 $EGREP "webecray" >/dev/null 2>&1; then
19144 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19145 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19146 if test $ac_cv_os_cray = yes; then
19147 for ac_func in _getb67 GETB67 getb67; do
19148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19162 #define $ac_func innocuous_$ac_func
19164 /* System header to define __stub macros and hopefully few prototypes,
19165 which can conflict with char $ac_func (); below.
19166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19167 <limits.h> exists even on freestanding compilers. */
19170 # include <limits.h>
19172 # include <assert.h>
19177 /* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19184 /* The GNU C library defines this for functions which it implements
19185 to always fail with ENOSYS. Some functions are actually named
19186 something starting with __ and the normal name is an alias. */
19187 #if defined __stub_$ac_func || defined __stub___$ac_func
19194 return $ac_func ();
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (ac_try="$ac_link"
19201 case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_link") 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest$ac_exeext &&
19216 $as_test_x conftest$ac_exeext; then
19217 eval "$as_ac_var=yes"
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 eval "$as_ac_var=no"
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226 conftest$ac_exeext conftest.$ac_ext
19228 ac_res=`eval echo '${'$as_ac_var'}'`
19229 { echo "$as_me:$LINENO: result: $ac_res" >&5
19230 echo "${ECHO_T}$ac_res" >&6; }
19231 if test `eval echo '${'$as_ac_var'}'` = yes; then
19233 cat >>confdefs.h <<_ACEOF
19234 #define CRAY_STACKSEG_END $ac_func
19243 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19244 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19245 if test "${ac_cv_c_stack_direction+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 if test "$cross_compiling" = yes; then
19249 ac_cv_c_stack_direction=0
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 $ac_includes_default
19259 find_stack_direction ()
19261 static char *addr = 0;
19266 return find_stack_direction ();
19269 return (&dummy > addr) ? 1 : -1;
19275 return find_stack_direction () < 0;
19278 rm -f conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_c_stack_direction=1
19300 echo "$as_me: program exited with status $ac_status" >&5
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ( exit $ac_status )
19305 ac_cv_c_stack_direction=-1
19307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19312 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19313 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19315 cat >>confdefs.h <<_ACEOF
19316 #define STACK_DIRECTION $ac_cv_c_stack_direction
19324 for ac_func in getprogname
19326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19340 #define $ac_func innocuous_$ac_func
19342 /* System header to define __stub macros and hopefully few prototypes,
19343 which can conflict with char $ac_func (); below.
19344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19345 <limits.h> exists even on freestanding compilers. */
19348 # include <limits.h>
19350 # include <assert.h>
19355 /* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19362 /* The GNU C library defines this for functions which it implements
19363 to always fail with ENOSYS. Some functions are actually named
19364 something starting with __ and the normal name is an alias. */
19365 #if defined __stub_$ac_func || defined __stub___$ac_func
19372 return $ac_func ();
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest$ac_exeext &&
19394 $as_test_x conftest$ac_exeext; then
19395 eval "$as_ac_var=yes"
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 eval "$as_ac_var=no"
19403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19404 conftest$ac_exeext conftest.$ac_ext
19406 ac_res=`eval echo '${'$as_ac_var'}'`
19407 { echo "$as_me:$LINENO: result: $ac_res" >&5
19408 echo "${ECHO_T}$ac_res" >&6; }
19409 if test `eval echo '${'$as_ac_var'}'` = yes; then
19410 cat >>confdefs.h <<_ACEOF
19411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19416 { echo "$as_me:$LINENO: checking for __progname" >&5
19417 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19418 if test "${sudo_cv___progname+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19432 extern char *__progname; (void)puts(__progname);
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_link") 2>conftest.er1
19446 grep -v '^ *+' conftest.er1 >conftest.err
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } && {
19451 test -z "$ac_c_werror_flag" ||
19452 test ! -s conftest.err
19453 } && test -s conftest$ac_exeext &&
19454 $as_test_x conftest$ac_exeext; then
19455 sudo_cv___progname=yes
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 sudo_cv___progname=no
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464 conftest$ac_exeext conftest.$ac_ext
19467 if test "$sudo_cv___progname" = "yes"; then
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE___PROGNAME 1
19473 case " $LIBOBJS " in
19474 *" getprogname.$ac_objext "* ) ;;
19475 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19480 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19481 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19488 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19489 for auth in $AUTH_EXCL_DEF; do
19491 AIX_AUTH) with_aixauth=maybe;;
19492 BSD_AUTH) with_bsdauth=maybe;;
19493 PAM) with_pam=maybe;;
19494 SIA) CHECKSIA=true;;
19499 if test ${with_pam-"no"} != "no"; then
19500 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19501 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_dl_main+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 ac_check_lib_save_LIBS=$LIBS
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest$ac_exeext &&
19540 $as_test_x conftest$ac_exeext; then
19541 ac_cv_lib_dl_main=yes
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19546 ac_cv_lib_dl_main=no
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19551 LIBS=$ac_check_lib_save_LIBS
19553 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19554 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19555 if test $ac_cv_lib_dl_main = yes; then
19556 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19558 SUDO_LIBS="${SUDO_LIBS} -lpam"
19561 ac_cv_lib_dl=ac_cv_lib_dl_main
19565 for ac_header in security/pam_appl.h pam/pam_appl.h
19567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 ac_res=`eval echo '${'$as_ac_Header'}'`
19575 { echo "$as_me:$LINENO: result: $ac_res" >&5
19576 echo "${ECHO_T}$ac_res" >&6; }
19578 # Is the header compilable?
19579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 $ac_includes_default
19588 #include <$ac_header>
19590 rm -f conftest.$ac_objext
19591 if { (ac_try="$ac_compile"
19592 case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_compile") 2>conftest.er1
19599 grep -v '^ *+' conftest.er1 >conftest.err
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } && {
19604 test -z "$ac_c_werror_flag" ||
19605 test ! -s conftest.err
19606 } && test -s conftest.$ac_objext; then
19607 ac_header_compiler=yes
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19612 ac_header_compiler=no
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6; }
19619 # Is the header present?
19620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <$ac_header>
19630 if { (ac_try="$ac_cpp conftest.$ac_ext"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null && {
19643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19646 ac_header_preproc=yes
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_header_preproc=no
19654 rm -f conftest.err conftest.$ac_ext
19655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 echo "${ECHO_T}$ac_header_preproc" >&6; }
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19665 ac_header_preproc=yes
19668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 eval "$as_ac_Header=\$ac_header_preproc"
19690 ac_res=`eval echo '${'$as_ac_Header'}'`
19691 { echo "$as_me:$LINENO: result: $ac_res" >&5
19692 echo "${ECHO_T}$ac_res" >&6; }
19695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19696 cat >>confdefs.h <<_ACEOF
19697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19699 with_pam=yes; break
19704 if test "$with_pam" = "yes"; then
19705 cat >>confdefs.h <<\_ACEOF
19709 AUTH_OBJS="$AUTH_OBJS pam.o";
19711 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19712 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19713 # Check whether --enable-pam_session was given.
19714 if test "${enable_pam_session+set}" = set; then
19715 enableval=$enable_pam_session; case "$enableval" in
19716 yes) { echo "$as_me:$LINENO: result: yes" >&5
19717 echo "${ECHO_T}yes" >&6; }
19719 no) { echo "$as_me:$LINENO: result: no" >&5
19720 echo "${ECHO_T}no" >&6; }
19721 cat >>confdefs.h <<\_ACEOF
19722 #define NO_PAM_SESSION 1
19726 *) { echo "$as_me:$LINENO: result: no" >&5
19727 echo "${ECHO_T}no" >&6; }
19728 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19729 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19733 { echo "$as_me:$LINENO: result: yes" >&5
19734 echo "${ECHO_T}yes" >&6; }
19738 *-*-linux*|*-*-solaris*)
19740 for ac_func in dgettext
19742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19756 #define $ac_func innocuous_$ac_func
19758 /* System header to define __stub macros and hopefully few prototypes,
19759 which can conflict with char $ac_func (); below.
19760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761 <limits.h> exists even on freestanding compilers. */
19764 # include <limits.h>
19766 # include <assert.h>
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19778 /* The GNU C library defines this for functions which it implements
19779 to always fail with ENOSYS. Some functions are actually named
19780 something starting with __ and the normal name is an alias. */
19781 #if defined __stub_$ac_func || defined __stub___$ac_func
19788 return $ac_func ();
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_link") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && {
19807 test -z "$ac_c_werror_flag" ||
19808 test ! -s conftest.err
19809 } && test -s conftest$ac_exeext &&
19810 $as_test_x conftest$ac_exeext; then
19811 eval "$as_ac_var=yes"
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 eval "$as_ac_var=no"
19819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19820 conftest$ac_exeext conftest.$ac_ext
19822 ac_res=`eval echo '${'$as_ac_var'}'`
19823 { echo "$as_me:$LINENO: result: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19825 if test `eval echo '${'$as_ac_var'}'` = yes; then
19826 cat >>confdefs.h <<_ACEOF
19827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19831 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19832 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19833 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lintl $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19855 return dgettext ();
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 ac_cv_lib_intl_dgettext=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_cv_lib_intl_dgettext=no
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19890 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19891 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19892 if test $ac_cv_lib_intl_dgettext = yes; then
19893 LIBS="${LIBS} -lintl"
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_DGETTEXT 1
19908 if test ${with_aixauth-'no'} != "no"; then
19909 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19910 { echo "$as_me:$LINENO: using AIX general authentication" >&5
19911 echo "$as_me: using AIX general authentication" >&6;}
19912 cat >>confdefs.h <<\_ACEOF
19913 #define HAVE_AIXAUTH 1
19916 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19917 SUDO_LIBS="${SUDO_LIBS} -ls"
19922 if test ${with_bsdauth-'no'} != "no"; then
19923 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19924 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19925 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19926 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19930 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19932 # Is the header compilable?
19933 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19934 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 $ac_includes_default
19942 #include <bsd_auth.h>
19944 rm -f conftest.$ac_objext
19945 if { (ac_try="$ac_compile"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest.$ac_objext; then
19961 ac_header_compiler=yes
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 ac_header_compiler=no
19969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19971 echo "${ECHO_T}$ac_header_compiler" >&6; }
19973 # Is the header present?
19974 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19975 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #include <bsd_auth.h>
19984 if { (ac_try="$ac_cpp conftest.$ac_ext"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } >/dev/null && {
19997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19998 test ! -s conftest.err
20000 ac_header_preproc=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_header_preproc=no
20008 rm -f conftest.err conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20010 echo "${ECHO_T}$ac_header_preproc" >&6; }
20012 # So? What about this header?
20013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20015 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20016 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20017 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20018 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20019 ac_header_preproc=yes
20022 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20023 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20024 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20025 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20027 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20029 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20030 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20031 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20033 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20037 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20038 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20039 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 ac_cv_header_bsd_auth_h=$ac_header_preproc
20044 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20045 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20048 if test $ac_cv_header_bsd_auth_h = yes; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_BSD_AUTH_H 1
20053 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20054 BSDAUTH_USAGE='[-a auth_type] '
20057 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20058 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20059 { (exit 1); exit 1; }; }
20065 if test ${CHECKSIA-'false'} = "true"; then
20067 for ac_func in sia_ses_init
20069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20083 #define $ac_func innocuous_$ac_func
20085 /* System header to define __stub macros and hopefully few prototypes,
20086 which can conflict with char $ac_func (); below.
20087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20088 <limits.h> exists even on freestanding compilers. */
20091 # include <limits.h>
20093 # include <assert.h>
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20105 /* The GNU C library defines this for functions which it implements
20106 to always fail with ENOSYS. Some functions are actually named
20107 something starting with __ and the normal name is an alias. */
20108 #if defined __stub_$ac_func || defined __stub___$ac_func
20115 return $ac_func ();
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_link") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest$ac_exeext &&
20137 $as_test_x conftest$ac_exeext; then
20138 eval "$as_ac_var=yes"
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 eval "$as_ac_var=no"
20146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20147 conftest$ac_exeext conftest.$ac_ext
20149 ac_res=`eval echo '${'$as_ac_var'}'`
20150 { echo "$as_me:$LINENO: result: $ac_res" >&5
20151 echo "${ECHO_T}$ac_res" >&6; }
20152 if test `eval echo '${'$as_ac_var'}'` = yes; then
20153 cat >>confdefs.h <<_ACEOF
20154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20162 if test "$found" = "true"; then
20164 AUTH_OBJS="$AUTH_OBJS sia.o"
20168 if test ${with_fwtk-'no'} != "no"; then
20169 if test "$with_fwtk" != "yes"; then
20171 if test X"$with_rpath" = X"yes"; then
20172 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20174 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20176 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20177 blibpath_add="${blibpath_add}:${with_fwtk}"
20180 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20183 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20184 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20187 if test ${with_SecurID-'no'} != "no"; then
20188 if test "$with_SecurID" != "yes"; then
20190 elif test -d /usr/ace/examples; then
20191 with_SecurID=/usr/ace/examples
20193 with_SecurID=/usr/ace
20195 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20196 _LDFLAGS="${LDFLAGS}"
20198 if test X"$with_rpath" = X"yes"; then
20199 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20201 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20203 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20204 blibpath_add="${blibpath_add}:${with_SecurID}"
20208 # Determine whether to use the new or old SecurID API
20210 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20211 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20212 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_check_lib_save_LIBS=$LIBS
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20227 /* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20242 rm -f conftest.$ac_objext conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_link") 2>conftest.er1
20251 grep -v '^ *+' conftest.er1 >conftest.err
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest$ac_exeext &&
20259 $as_test_x conftest$ac_exeext; then
20260 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20273 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20274 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20276 AUTH_OBJS="$AUTH_OBJS securid5.o";
20277 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20281 if test X"$with_rpath" = X"yes"; then
20282 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20284 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20286 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20287 blibpath_add="${blibpath_add}:${with_SecurID}"
20293 AUTH_OBJS="$AUTH_OBJS securid.o";
20294 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20298 LDFLAGS="${_LDFLAGS}"
20302 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20303 for auth in $AUTH_DEF; do
20305 passwd) : ${with_passwd='maybe'};;
20310 if test ${with_kerb4-'no'} != "no"; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_KERB4 1
20315 O_LDFLAGS="$LDFLAGS"
20316 if test "$with_kerb4" = "yes"; then
20318 O_CPPFLAGS="$CPPFLAGS"
20319 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20320 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20321 cat >conftest.$ac_ext <<_ACEOF
20324 if { (ac_try="$ac_cpp conftest.$ac_ext"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } >/dev/null && {
20337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20348 rm -f conftest.err conftest.$ac_ext
20350 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20353 if test X"$with_rpath" = X"yes"; then
20354 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20356 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20358 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20359 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20363 if test X"$with_rpath" = X"yes"; then
20364 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20366 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20368 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20369 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20372 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20373 if test "${ac_cv_header_krb_h+set}" = set; then
20374 { echo "$as_me:$LINENO: checking for krb.h" >&5
20375 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_krb_h+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20380 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20382 # Is the header compilable?
20383 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20384 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 $ac_includes_default
20394 rm -f conftest.$ac_objext
20395 if { (ac_try="$ac_compile"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_compile") 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest.$ac_objext; then
20411 ac_header_compiler=yes
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 ac_header_compiler=no
20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20421 echo "${ECHO_T}$ac_header_compiler" >&6; }
20423 # Is the header present?
20424 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20425 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20434 if { (ac_try="$ac_cpp conftest.$ac_ext"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } >/dev/null && {
20447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20450 ac_header_preproc=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_header_preproc=no
20458 rm -f conftest.err conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20460 echo "${ECHO_T}$ac_header_preproc" >&6; }
20462 # So? What about this header?
20463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20465 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20466 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20467 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20468 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20469 ac_header_preproc=yes
20472 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20473 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20474 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20475 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20476 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20477 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20479 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20481 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20483 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20487 { echo "$as_me:$LINENO: checking for krb.h" >&5
20488 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20489 if test "${ac_cv_header_krb_h+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 ac_cv_header_krb_h=$ac_header_preproc
20494 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20495 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20498 if test $ac_cv_header_krb_h = yes; then
20506 if test X"$found" = X"no"; then
20507 { 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
20508 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;}
20511 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20512 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20513 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 ac_check_lib_save_LIBS=$LIBS
20518 cat >conftest.$ac_ext <<_ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20525 /* Override any GCC internal prototype to avoid an error.
20526 Use char because int might match the return type of a GCC
20527 builtin and then its argument prototype would still apply. */
20531 char des_cbc_encrypt ();
20535 return des_cbc_encrypt ();
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && {
20554 test -z "$ac_c_werror_flag" ||
20555 test ! -s conftest.err
20556 } && test -s conftest$ac_exeext &&
20557 $as_test_x conftest$ac_exeext; then
20558 ac_cv_lib_des_des_cbc_encrypt=yes
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ac_cv_lib_des_des_cbc_encrypt=no
20566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20567 conftest$ac_exeext conftest.$ac_ext
20568 LIBS=$ac_check_lib_save_LIBS
20570 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20571 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20572 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20576 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20577 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20578 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-ldes425 $LIBS"
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 /* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20596 char des_cbc_encrypt ();
20600 return des_cbc_encrypt ();
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_link") 2>conftest.er1
20614 grep -v '^ *+' conftest.er1 >conftest.err
20616 cat conftest.err >&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && {
20619 test -z "$ac_c_werror_flag" ||
20620 test ! -s conftest.err
20621 } && test -s conftest$ac_exeext &&
20622 $as_test_x conftest$ac_exeext; then
20623 ac_cv_lib_des425_des_cbc_encrypt=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_lib_des425_des_cbc_encrypt=no
20631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20635 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20636 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20637 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20646 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20647 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20658 const char *tmp = krb4_version;
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest.$ac_objext; then
20681 { echo "$as_me:$LINENO: result: yes" >&5
20682 echo "${ECHO_T}yes" >&6; }
20683 K4LIBS="${K4LIBS} -lcom_err"
20684 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20685 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20686 if test "${ac_cv_lib_roken_main+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 ac_check_lib_save_LIBS=$LIBS
20690 LIBS="-lroken $LIBS"
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest$ac_exeext &&
20724 $as_test_x conftest$ac_exeext; then
20725 ac_cv_lib_roken_main=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_cv_lib_roken_main=no
20733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20737 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20738 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20739 if test $ac_cv_lib_roken_main = yes; then
20740 K4LIBS="${K4LIBS} -lroken"
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20749 { echo "$as_me:$LINENO: result: no" >&5
20750 echo "${ECHO_T}no" >&6; }
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20757 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20758 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20759 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 ac_check_lib_save_LIBS=$LIBS
20763 LIBS="-lkrb $K4LIBS $LIBS"
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (ac_try="$ac_link"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
20798 eval "$as_ac_Lib=yes"
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 eval "$as_ac_Lib=no"
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 ac_res=`eval echo '${'$as_ac_Lib'}'`
20811 { echo "$as_me:$LINENO: result: $ac_res" >&5
20812 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20814 K4LIBS="-lkrb $K4LIBS"
20817 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20818 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20819 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lkrb4 $K4LIBS $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_link") 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest$ac_exeext &&
20858 $as_test_x conftest$ac_exeext; then
20859 eval "$as_ac_Lib=yes"
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 eval "$as_ac_Lib=no"
20867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20868 conftest$ac_exeext conftest.$ac_ext
20869 LIBS=$ac_check_lib_save_LIBS
20871 ac_res=`eval echo '${'$as_ac_Lib'}'`
20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20874 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20875 K4LIBS="-lkrb4 $K4LIBS"
20877 K4LIBS="-lkrb $K4LIBS"
20878 { 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
20879 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;}
20886 LDFLAGS="$O_LDFLAGS"
20887 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20888 AUTH_OBJS="$AUTH_OBJS kerb4.o"
20891 if test ${with_kerb5-'no'} != "no"; then
20892 # Extract the first word of "krb5-config", so it can be a program name with args.
20893 set dummy krb5-config; ac_word=$2
20894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20896 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 if test -n "$KRB5CONFIG"; then
20900 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20903 for as_dir in $PATH
20906 test -z "$as_dir" && as_dir=.
20907 for ac_exec_ext in '' $ac_executable_extensions; do
20908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20909 ac_cv_prog_KRB5CONFIG="yes"
20910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20917 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20920 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20921 if test -n "$KRB5CONFIG"; then
20922 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20923 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20925 { echo "$as_me:$LINENO: result: no" >&5
20926 echo "${ECHO_T}no" >&6; }
20930 if test -n "$KRB5CONFIG"; then
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_KERB5 1
20935 AUTH_OBJS="$AUTH_OBJS kerb5.o"
20936 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20937 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20938 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20939 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20950 const char *tmp = heimdal_version;
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_compile") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest.$ac_objext; then
20973 { echo "$as_me:$LINENO: result: yes" >&5
20974 echo "${ECHO_T}yes" >&6; }
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_HEIMDAL 1
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20985 { echo "$as_me:$LINENO: result: no" >&5
20986 echo "${ECHO_T}no" >&6; }
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_KERB5 1
20999 if test "$with_kerb5" = "yes"; then
21001 O_CPPFLAGS="$CPPFLAGS"
21002 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21003 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21004 cat >conftest.$ac_ext <<_ACEOF
21007 if { (ac_try="$ac_cpp conftest.$ac_ext"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } >/dev/null && {
21020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21031 rm -f conftest.err conftest.$ac_ext
21033 if test X"$found" = X"no"; then
21034 CPPFLAGS="$O_CPPFLAGS"
21035 { 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
21036 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;}
21040 if test X"$with_rpath" = X"yes"; then
21041 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21043 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21045 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21046 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21049 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21052 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21053 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21064 const char *tmp = heimdal_version;
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21087 { echo "$as_me:$LINENO: result: yes" >&5
21088 echo "${ECHO_T}yes" >&6; }
21089 cat >>confdefs.h <<\_ACEOF
21090 #define HAVE_HEIMDAL 1
21093 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21094 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21095 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21096 if test "${ac_cv_lib_roken_main+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 ac_check_lib_save_LIBS=$LIBS
21100 LIBS="-lroken $LIBS"
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_link") 2>conftest.er1
21126 grep -v '^ *+' conftest.er1 >conftest.err
21128 cat conftest.err >&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest$ac_exeext &&
21134 $as_test_x conftest$ac_exeext; then
21135 ac_cv_lib_roken_main=yes
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_lib_roken_main=no
21143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21144 conftest$ac_exeext conftest.$ac_ext
21145 LIBS=$ac_check_lib_save_LIBS
21147 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21148 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21149 if test $ac_cv_lib_roken_main = yes; then
21150 SUDO_LIBS="${SUDO_LIBS} -lroken"
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21159 { echo "$as_me:$LINENO: result: no" >&5
21160 echo "${ECHO_T}no" >&6; }
21161 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21162 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21163 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21164 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 ac_check_lib_save_LIBS=$LIBS
21168 LIBS="-lkrb5support $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (ac_try="$ac_link"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_link") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest$ac_exeext &&
21202 $as_test_x conftest$ac_exeext; then
21203 ac_cv_lib_krb5support_main=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_lib_krb5support_main=no
21211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21212 conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21215 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21216 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21217 if test $ac_cv_lib_krb5support_main = yes; then
21218 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21227 LIBS="${LIBS} ${SUDO_LIBS}"
21230 for ac_func in krb5_verify_user krb5_init_secure_context
21232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21246 #define $ac_func innocuous_$ac_func
21248 /* System header to define __stub macros and hopefully few prototypes,
21249 which can conflict with char $ac_func (); below.
21250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21251 <limits.h> exists even on freestanding compilers. */
21254 # include <limits.h>
21256 # include <assert.h>
21261 /* Override any GCC internal prototype to avoid an error.
21262 Use char because int might match the return type of a GCC
21263 builtin and then its argument prototype would still apply. */
21268 /* The GNU C library defines this for functions which it implements
21269 to always fail with ENOSYS. Some functions are actually named
21270 something starting with __ and the normal name is an alias. */
21271 #if defined __stub_$ac_func || defined __stub___$ac_func
21278 return $ac_func ();
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_link") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1 >conftest.err
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && {
21297 test -z "$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 } && test -s conftest$ac_exeext &&
21300 $as_test_x conftest$ac_exeext; then
21301 eval "$as_ac_var=yes"
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 eval "$as_ac_var=no"
21309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21310 conftest$ac_exeext conftest.$ac_ext
21312 ac_res=`eval echo '${'$as_ac_var'}'`
21313 { echo "$as_me:$LINENO: result: $ac_res" >&5
21314 echo "${ECHO_T}$ac_res" >&6; }
21315 if test `eval echo '${'$as_ac_var'}'` = yes; then
21316 cat >>confdefs.h <<_ACEOF
21317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21326 if test ${with_AFS-'no'} = "yes"; then
21328 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21329 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21330 for i in $AFSLIBDIRS; do
21331 if test -d ${i}; then
21333 if test X"$with_rpath" = X"yes"; then
21334 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21336 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21338 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21339 blibpath_add="${blibpath_add}:$i"
21342 FOUND_AFSLIBDIR=true
21345 if test -z "$FOUND_AFSLIBDIR"; then
21346 { 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
21347 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;}
21350 # Order is important here. Note that we build AFS_LIBS from right to left
21351 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21352 AFS_LIBS="-laudit ${AFS_LIBS}"
21353 for i in $AFSLIBDIRS; do
21354 if test -f ${i}/util.a; then
21355 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21360 if test -z "$FOUND_UTIL_A"; then
21361 AFS_LIBS="-lutil ${AFS_LIBS}"
21363 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21365 # AFS includes may live in /usr/include on some machines...
21366 for i in /usr/afsws/include; do
21367 if test -d ${i}; then
21368 CPPFLAGS="${CPPFLAGS} -I${i}"
21369 FOUND_AFSINCDIR=true
21373 if test -z "$FOUND_AFSLIBDIR"; then
21374 { 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
21375 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;}
21378 AUTH_OBJS="$AUTH_OBJS afs.o"
21381 if test ${with_DCE-'no'} = "yes"; then
21382 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21383 SUDO_LIBS="${SUDO_LIBS} -ldce"
21384 AUTH_OBJS="$AUTH_OBJS dce.o"
21387 if test ${with_skey-'no'} = "yes"; then
21388 O_LDFLAGS="$LDFLAGS"
21389 if test "$with_skey" != "yes"; then
21390 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21392 if test X"$with_rpath" = X"yes"; then
21393 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21395 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21397 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21398 blibpath_add="${blibpath_add}:${with_skey}/lib"
21402 if test X"$with_rpath" = X"yes"; then
21403 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21405 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21407 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21408 blibpath_add="${blibpath_add}:${with_skey}/lib"
21411 cat >conftest.$ac_ext <<_ACEOF
21414 if { (ac_try="$ac_cpp conftest.$ac_ext"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } >/dev/null && {
21427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21438 rm -f conftest.err conftest.$ac_ext
21441 O_CPPFLAGS="$CPPFLAGS"
21442 for dir in "" "/usr/local" "/usr/contrib"; do
21443 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21444 cat >conftest.$ac_ext <<_ACEOF
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21471 rm -f conftest.err conftest.$ac_ext
21473 if test "$found" = "no" -o -z "$dir"; then
21474 CPPFLAGS="$O_CPPFLAGS"
21477 if test X"$with_rpath" = X"yes"; then
21478 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21480 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21482 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21483 blibpath_add="${blibpath_add}:${dir}/lib"
21487 if test X"$with_rpath" = X"yes"; then
21488 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21490 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21492 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21493 blibpath_add="${blibpath_add}:${dir}/lib"
21498 if test "$found" = "no"; then
21499 { 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
21500 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;}
21502 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21503 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21504 if test "${ac_cv_lib_skey_main+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 ac_check_lib_save_LIBS=$LIBS
21508 LIBS="-lskey $LIBS"
21509 cat >conftest.$ac_ext <<_ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21525 rm -f conftest.$ac_objext conftest$ac_exeext
21526 if { (ac_try="$ac_link"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_link") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest$ac_exeext &&
21542 $as_test_x conftest$ac_exeext; then
21543 ac_cv_lib_skey_main=yes
21545 echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 ac_cv_lib_skey_main=no
21551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21552 conftest$ac_exeext conftest.$ac_ext
21553 LIBS=$ac_check_lib_save_LIBS
21555 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21556 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21557 if test $ac_cv_lib_skey_main = yes; then
21560 { 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
21561 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;}
21564 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21565 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21566 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 ac_check_lib_save_LIBS=$LIBS
21570 LIBS="-lskey $LIBS"
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21578 /* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21584 char skeyaccess ();
21588 return skeyaccess ();
21593 rm -f conftest.$ac_objext conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_link") 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest$ac_exeext &&
21610 $as_test_x conftest$ac_exeext; then
21611 ac_cv_lib_skey_skeyaccess=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_cv_lib_skey_skeyaccess=no
21619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21620 conftest$ac_exeext conftest.$ac_ext
21621 LIBS=$ac_check_lib_save_LIBS
21623 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21624 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21625 if test $ac_cv_lib_skey_skeyaccess = yes; then
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_SKEYACCESS 1
21632 LDFLAGS="$O_LDFLAGS"
21633 SUDO_LIBS="${SUDO_LIBS} -lskey"
21634 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21637 if test ${with_opie-'no'} = "yes"; then
21638 O_LDFLAGS="$LDFLAGS"
21639 if test "$with_opie" != "yes"; then
21640 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21642 if test X"$with_rpath" = X"yes"; then
21643 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21645 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21647 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21648 blibpath_add="${blibpath_add}:${with_opie}/lib"
21652 if test X"$with_rpath" = X"yes"; then
21653 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21655 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21657 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21658 blibpath_add="${blibpath_add}:${with_opie}/lib"
21661 cat >conftest.$ac_ext <<_ACEOF
21664 if { (ac_try="$ac_cpp conftest.$ac_ext"
21665 case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev/null && {
21677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21688 rm -f conftest.err conftest.$ac_ext
21691 O_CPPFLAGS="$CPPFLAGS"
21692 for dir in "" "/usr/local" "/usr/contrib"; do
21693 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21694 cat >conftest.$ac_ext <<_ACEOF
21697 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21721 rm -f conftest.err conftest.$ac_ext
21723 if test "$found" = "no" -o -z "$dir"; then
21724 CPPFLAGS="$O_CPPFLAGS"
21727 if test X"$with_rpath" = X"yes"; then
21728 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21730 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21732 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21733 blibpath_add="${blibpath_add}:${dir}/lib"
21737 if test X"$with_rpath" = X"yes"; then
21738 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21740 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21742 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21743 blibpath_add="${blibpath_add}:${dir}/lib"
21748 if test "$found" = "no"; then
21749 { 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
21750 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;}
21752 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21753 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21754 if test "${ac_cv_lib_opie_main+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 ac_check_lib_save_LIBS=$LIBS
21758 LIBS="-lopie $LIBS"
21759 cat >conftest.$ac_ext <<_ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21775 rm -f conftest.$ac_objext conftest$ac_exeext
21776 if { (ac_try="$ac_link"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_link") 2>conftest.er1
21784 grep -v '^ *+' conftest.er1 >conftest.err
21786 cat conftest.err >&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest$ac_exeext &&
21792 $as_test_x conftest$ac_exeext; then
21793 ac_cv_lib_opie_main=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_lib_opie_main=no
21801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21802 conftest$ac_exeext conftest.$ac_ext
21803 LIBS=$ac_check_lib_save_LIBS
21805 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21806 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21807 if test $ac_cv_lib_opie_main = yes; then
21810 { 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
21811 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;}
21814 LDFLAGS="$O_LDFLAGS"
21815 SUDO_LIBS="${SUDO_LIBS} -lopie"
21816 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21819 if test ${with_passwd-'no'} != "no"; then
21820 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21821 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21822 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21823 if test "${ac_cv_search_crypt+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 ac_func_search_save_LIBS=$LIBS
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21834 /* Override any GCC internal prototype to avoid an error.
21835 Use char because int might match the return type of a GCC
21836 builtin and then its argument prototype would still apply. */
21849 for ac_lib in '' crypt crypt_d ufc; do
21850 if test -z "$ac_lib"; then
21851 ac_res="none required"
21854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21856 rm -f conftest.$ac_objext conftest$ac_exeext
21857 if { (ac_try="$ac_link"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_link") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest$ac_exeext &&
21873 $as_test_x conftest$ac_exeext; then
21874 ac_cv_search_crypt=$ac_res
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21884 if test "${ac_cv_search_crypt+set}" = set; then
21888 if test "${ac_cv_search_crypt+set}" = set; then
21891 ac_cv_search_crypt=no
21893 rm conftest.$ac_ext
21894 LIBS=$ac_func_search_save_LIBS
21896 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21897 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21898 ac_res=$ac_cv_search_crypt
21899 if test "$ac_res" != no; then
21900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21901 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21906 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21908 LIBS="$LIBS $shadow_libs"
21911 for ac_func in $shadow_funcs
21913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 cat >conftest.$ac_ext <<_ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21927 #define $ac_func innocuous_$ac_func
21929 /* System header to define __stub macros and hopefully few prototypes,
21930 which can conflict with char $ac_func (); below.
21931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21932 <limits.h> exists even on freestanding compilers. */
21935 # include <limits.h>
21937 # include <assert.h>
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21949 /* The GNU C library defines this for functions which it implements
21950 to always fail with ENOSYS. Some functions are actually named
21951 something starting with __ and the normal name is an alias. */
21952 #if defined __stub_$ac_func || defined __stub___$ac_func
21959 return $ac_func ();
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (ac_try="$ac_link"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_link") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest$ac_exeext &&
21981 $as_test_x conftest$ac_exeext; then
21982 eval "$as_ac_var=yes"
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 eval "$as_ac_var=no"
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991 conftest$ac_exeext conftest.$ac_ext
21993 ac_res=`eval echo '${'$as_ac_var'}'`
21994 { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21996 if test `eval echo '${'$as_ac_var'}'` = yes; then
21997 cat >>confdefs.h <<_ACEOF
21998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 if test "$found" = "yes"; then
22005 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22006 elif test -n "$shadow_libs_optional"; then
22007 LIBS="$LIBS $shadow_libs_optional"
22009 for ac_func in $shadow_funcs
22011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22025 #define $ac_func innocuous_$ac_func
22027 /* System header to define __stub macros and hopefully few prototypes,
22028 which can conflict with char $ac_func (); below.
22029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22030 <limits.h> exists even on freestanding compilers. */
22033 # include <limits.h>
22035 # include <assert.h>
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22047 /* The GNU C library defines this for functions which it implements
22048 to always fail with ENOSYS. Some functions are actually named
22049 something starting with __ and the normal name is an alias. */
22050 #if defined __stub_$ac_func || defined __stub___$ac_func
22057 return $ac_func ();
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_link") 2>conftest.er1
22071 grep -v '^ *+' conftest.er1 >conftest.err
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && {
22076 test -z "$ac_c_werror_flag" ||
22077 test ! -s conftest.err
22078 } && test -s conftest$ac_exeext &&
22079 $as_test_x conftest$ac_exeext; then
22080 eval "$as_ac_var=yes"
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 eval "$as_ac_var=no"
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22091 ac_res=`eval echo '${'$as_ac_var'}'`
22092 { echo "$as_me:$LINENO: result: $ac_res" >&5
22093 echo "${ECHO_T}$ac_res" >&6; }
22094 if test `eval echo '${'$as_ac_var'}'` = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22102 if test "$found" = "yes"; then
22103 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22106 if test "$found" = "yes"; then
22107 case "$shadow_funcs" in
22108 *getprpwnam*) SECUREWARE=1;;
22110 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22116 if test "$CHECKSHADOW" = "true"; then
22117 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22118 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22119 if test "${ac_cv_search_getspnam+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 ac_func_search_save_LIBS=$LIBS
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22130 /* Override any GCC internal prototype to avoid an error.
22131 Use char because int might match the return type of a GCC
22132 builtin and then its argument prototype would still apply. */
22140 return getspnam ();
22145 for ac_lib in '' gen; do
22146 if test -z "$ac_lib"; then
22147 ac_res="none required"
22150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22152 rm -f conftest.$ac_objext conftest$ac_exeext
22153 if { (ac_try="$ac_link"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_link") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest$ac_exeext &&
22169 $as_test_x conftest$ac_exeext; then
22170 ac_cv_search_getspnam=$ac_res
22172 echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180 if test "${ac_cv_search_getspnam+set}" = set; then
22184 if test "${ac_cv_search_getspnam+set}" = set; then
22187 ac_cv_search_getspnam=no
22189 rm conftest.$ac_ext
22190 LIBS=$ac_func_search_save_LIBS
22192 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22193 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22194 ac_res=$ac_cv_search_getspnam
22195 if test "$ac_res" != no; then
22196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22197 cat >>confdefs.h <<\_ACEOF
22198 #define HAVE_GETSPNAM 1
22200 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22204 if test "$CHECKSHADOW" = "true"; then
22205 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22206 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22207 if test "${ac_cv_search_getprpwnam+set}" = set; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 ac_func_search_save_LIBS=$LIBS
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22218 /* Override any GCC internal prototype to avoid an error.
22219 Use char because int might match the return type of a GCC
22220 builtin and then its argument prototype would still apply. */
22224 char getprpwnam ();
22228 return getprpwnam ();
22233 for ac_lib in '' sec security prot; do
22234 if test -z "$ac_lib"; then
22235 ac_res="none required"
22238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22240 rm -f conftest.$ac_objext conftest$ac_exeext
22241 if { (ac_try="$ac_link"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_link") 2>conftest.er1
22249 grep -v '^ *+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest$ac_exeext &&
22257 $as_test_x conftest$ac_exeext; then
22258 ac_cv_search_getprpwnam=$ac_res
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 if test "${ac_cv_search_getprpwnam+set}" = set; then
22272 if test "${ac_cv_search_getprpwnam+set}" = set; then
22275 ac_cv_search_getprpwnam=no
22277 rm conftest.$ac_ext
22278 LIBS=$ac_func_search_save_LIBS
22280 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22281 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22282 ac_res=$ac_cv_search_getprpwnam
22283 if test "$ac_res" != no; then
22284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_GETPRPWNAM 1
22288 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22292 if test -n "$SECUREWARE"; then
22296 for ac_func in bigcrypt set_auth_parameters initprivs
22298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22312 #define $ac_func innocuous_$ac_func
22314 /* System header to define __stub macros and hopefully few prototypes,
22315 which can conflict with char $ac_func (); below.
22316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22317 <limits.h> exists even on freestanding compilers. */
22320 # include <limits.h>
22322 # include <assert.h>
22327 /* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
22334 /* The GNU C library defines this for functions which it implements
22335 to always fail with ENOSYS. Some functions are actually named
22336 something starting with __ and the normal name is an alias. */
22337 #if defined __stub_$ac_func || defined __stub___$ac_func
22344 return $ac_func ();
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (ac_try="$ac_link"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_link") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest$ac_exeext &&
22366 $as_test_x conftest$ac_exeext; then
22367 eval "$as_ac_var=yes"
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 eval "$as_ac_var=no"
22375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22376 conftest$ac_exeext conftest.$ac_ext
22378 ac_res=`eval echo '${'$as_ac_var'}'`
22379 { echo "$as_me:$LINENO: result: $ac_res" >&5
22380 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_var'}'` = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22389 AUTH_OBJS="$AUTH_OBJS secureware.o"
22393 if test ${with_ldap-'no'} != "no"; then
22394 _LDFLAGS="$LDFLAGS"
22395 if test "$with_ldap" != "yes"; then
22397 if test X"$with_rpath" = X"yes"; then
22398 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22400 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22402 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22403 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22407 if test X"$with_rpath" = X"yes"; then
22408 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22410 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22412 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22413 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22416 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22419 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22421 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22422 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22426 for l in -lldap -llber '-lssl -lcrypto'; do
22428 LDAP_LIBS="${LDAP_LIBS} $l"
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435 #include <sys/types.h>
22441 (void)ldap_init(0, 0)
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (ac_try="$ac_link"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_link") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext &&
22463 $as_test_x conftest$ac_exeext; then
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22475 if test "$found" = "no"; then
22476 LIBS="${_LIBS} -lldap"
22478 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22479 echo "${ECHO_T}not found, using -lldap" >&6; }
22481 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22482 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22485 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22486 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22487 if test "${ac_cv_search_ber_set_option+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 ac_func_search_save_LIBS=$LIBS
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22498 /* Override any GCC internal prototype to avoid an error.
22499 Use char because int might match the return type of a GCC
22500 builtin and then its argument prototype would still apply. */
22504 char ber_set_option ();
22508 return ber_set_option ();
22513 for ac_lib in '' lber; do
22514 if test -z "$ac_lib"; then
22515 ac_res="none required"
22518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22520 rm -f conftest.$ac_objext conftest$ac_exeext
22521 if { (ac_try="$ac_link"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_link") 2>conftest.er1
22529 grep -v '^ *+' conftest.er1 >conftest.err
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && {
22534 test -z "$ac_c_werror_flag" ||
22535 test ! -s conftest.err
22536 } && test -s conftest$ac_exeext &&
22537 $as_test_x conftest$ac_exeext; then
22538 ac_cv_search_ber_set_option=$ac_res
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22548 if test "${ac_cv_search_ber_set_option+set}" = set; then
22552 if test "${ac_cv_search_ber_set_option+set}" = set; then
22555 ac_cv_search_ber_set_option=no
22557 rm conftest.$ac_ext
22558 LIBS=$ac_func_search_save_LIBS
22560 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22561 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22562 ac_res=$ac_cv_search_ber_set_option
22563 if test "$ac_res" != no; then
22564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22570 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22571 LDAP_LIBS="$LDAP_LIBS -llber"
22573 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22574 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <sys/types.h>
22586 (void)ldap_init(0, 0)
22591 rm -f conftest.$ac_objext conftest$ac_exeext
22592 if { (ac_try="$ac_link"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_link") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest$ac_exeext &&
22608 $as_test_x conftest$ac_exeext; then
22609 { echo "$as_me:$LINENO: result: no" >&5
22610 echo "${ECHO_T}no" >&6; }
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22616 { echo "$as_me:$LINENO: result: yes" >&5
22617 echo "${ECHO_T}yes" >&6; }
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_LBER_H 1
22624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22625 conftest$ac_exeext conftest.$ac_ext
22631 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
22633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22647 #define $ac_func innocuous_$ac_func
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char $ac_func (); below.
22651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22652 <limits.h> exists even on freestanding compilers. */
22655 # include <limits.h>
22657 # include <assert.h>
22662 /* Override any GCC internal prototype to avoid an error.
22663 Use char because int might match the return type of a GCC
22664 builtin and then its argument prototype would still apply. */
22669 /* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672 #if defined __stub_$ac_func || defined __stub___$ac_func
22679 return $ac_func ();
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_link") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest$ac_exeext &&
22701 $as_test_x conftest$ac_exeext; then
22702 eval "$as_ac_var=yes"
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 eval "$as_ac_var=no"
22710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711 conftest$ac_exeext conftest.$ac_ext
22713 ac_res=`eval echo '${'$as_ac_var'}'`
22714 { echo "$as_me:$LINENO: result: $ac_res" >&5
22715 echo "${ECHO_T}$ac_res" >&6; }
22716 if test `eval echo '${'$as_ac_var'}'` = yes; then
22717 cat >>confdefs.h <<_ACEOF
22718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22726 for ac_header in ldap_ssl.h mps/ldap_ssl.h
22728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22733 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 ac_res=`eval echo '${'$as_ac_Header'}'`
22736 { echo "$as_me:$LINENO: result: $ac_res" >&5
22737 echo "${ECHO_T}$ac_res" >&6; }
22739 # Is the header compilable?
22740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22742 cat >conftest.$ac_ext <<_ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 $ac_includes_default
22749 #include <$ac_header>
22751 rm -f conftest.$ac_objext
22752 if { (ac_try="$ac_compile"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_compile") 2>conftest.er1
22760 grep -v '^ *+' conftest.er1 >conftest.err
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest.$ac_objext; then
22768 ac_header_compiler=yes
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22773 ac_header_compiler=no
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22778 echo "${ECHO_T}$ac_header_compiler" >&6; }
22780 # Is the header present?
22781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22783 cat >conftest.$ac_ext <<_ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789 #include <$ac_header>
22791 if { (ac_try="$ac_cpp conftest.$ac_ext"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } >/dev/null && {
22804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22807 ac_header_preproc=yes
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_header_preproc=no
22815 rm -f conftest.err conftest.$ac_ext
22816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22817 echo "${ECHO_T}$ac_header_preproc" >&6; }
22819 # So? What about this header?
22820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22826 ac_header_preproc=yes
22829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 eval "$as_ac_Header=\$ac_header_preproc"
22851 ac_res=`eval echo '${'$as_ac_Header'}'`
22852 { echo "$as_me:$LINENO: result: $ac_res" >&5
22853 echo "${ECHO_T}$ac_res" >&6; }
22856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22857 cat >>confdefs.h <<_ACEOF
22858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22866 SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
22868 LDFLAGS="$_LDFLAGS"
22869 # XXX - OpenLDAP has deprecated ldap_get_values()
22870 CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
22873 if test -n "$blibpath"; then
22874 if test -n "$blibpath_add"; then
22875 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
22876 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
22877 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
22881 { echo "$as_me:$LINENO: checking for log file location" >&5
22882 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
22883 if test -n "$with_logpath"; then
22884 { echo "$as_me:$LINENO: result: $with_logpath" >&5
22885 echo "${ECHO_T}$with_logpath" >&6; }
22886 cat >>confdefs.h <<EOF
22887 #define _PATH_SUDO_LOGFILE "$with_logpath"
22890 elif test -d "/var/log"; then
22891 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
22892 echo "${ECHO_T}/var/log/sudo.log" >&6; }
22893 cat >>confdefs.h <<\EOF
22894 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
22897 elif test -d "/var/adm"; then
22898 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
22899 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
22900 cat >>confdefs.h <<\EOF
22901 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
22904 elif test -d "/usr/adm"; then
22905 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
22906 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
22907 cat >>confdefs.h <<\EOF
22908 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
22912 { echo "$as_me:$LINENO: result: unknown" >&5
22913 echo "${ECHO_T}unknown" >&6; }
22916 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
22917 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
22918 if test -n "$with_timedir"; then
22919 { echo "$as_me:$LINENO: result: $with_timedir" >&5
22920 echo "${ECHO_T}$with_timedir" >&6; }
22921 cat >>confdefs.h <<EOF
22922 #define _PATH_SUDO_TIMEDIR "$with_timedir"
22925 timedir="$with_timedir"
22926 elif test -d "/var/run"; then
22927 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
22928 echo "${ECHO_T}/var/run/sudo" >&6; }
22929 cat >>confdefs.h <<\EOF
22930 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
22933 timedir="/var/run/sudo"
22934 elif test -d "/var/adm"; then
22935 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
22936 echo "${ECHO_T}/var/adm/sudo" >&6; }
22937 cat >>confdefs.h <<\EOF
22938 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
22941 timedir="/var/adm/sudo"
22943 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
22944 echo "${ECHO_T}/usr/adm/sudo" >&6; }
22945 cat >>confdefs.h <<\EOF
22946 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
22949 timedir="/usr/adm/sudo"
22953 case "$with_passwd" in
22955 AUTH_OBJS="$AUTH_OBJS passwd.o"
22958 cat >>confdefs.h <<\_ACEOF
22959 #define WITHOUT_PASSWD 1
22962 if test -z "$AUTH_OBJS"; then
22963 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22964 echo "$as_me: error: no authentication methods defined." >&2;}
22965 { (exit 1); exit 1; }; }
22969 AUTH_OBJS=${AUTH_OBJS# }
22970 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22971 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22972 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22974 if test -n "$LIBS"; then
22979 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22980 test $l = $sl && dupe=1
22982 test $dupe = 0 && LIBS="${LIBS} $l"
22986 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22988 if test "$with_noexec" != "no"; then
22989 PROGS="${PROGS} sudo_noexec.la"
22990 INSTALL_NOEXEC="install-noexec"
22992 oexec_prefix="$exec_prefix"
22993 if test "$exec_prefix" = '$(prefix)'; then
22994 if test "$prefix" = "NONE"; then
22995 exec_prefix="$ac_default_prefix"
22997 exec_prefix="$prefix"
23000 eval noexec_file="$with_noexec"
23002 cat >>confdefs.h <<_ACEOF
23003 #define _PATH_SUDO_NOEXEC "$noexec_file"
23006 exec_prefix="$oexec_prefix"
23009 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
23011 cat >confcache <<\_ACEOF
23012 # This file is a shell script that caches the results of configure
23013 # tests run on this system so they can be shared between configure
23014 # scripts and configure runs, see configure's option --config-cache.
23015 # It is not useful on other systems. If it contains results you don't
23016 # want to keep, you may remove or edit it.
23018 # config.status only pays attention to the cache file if you give it
23019 # the --recheck option to rerun configure.
23021 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23022 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23023 # following values.
23027 # The following way of writing the cache mishandles newlines in values,
23028 # but we know of no workaround that is simple, portable, and efficient.
23029 # So, we kill variables containing newlines.
23030 # Ultrix sh set writes to stderr and can't be redirected directly,
23031 # and sets the high bit in the cache file unless we assign to the vars.
23033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23034 eval ac_val=\$$ac_var
23038 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23039 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23042 _ | IFS | as_nl) ;; #(
23043 *) $as_unset $ac_var ;;
23049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23050 *${as_nl}ac_space=\ *)
23051 # `set' does not quote correctly, so add quotes (double-quote
23052 # substitution turns \\\\ into \\, and sed turns \\ into \).
23055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23058 # `set' quotes correctly as required by POSIX, so do not add quotes.
23059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23073 if test -w "$cache_file"; then
23074 test "x$cache_file" != "x/dev/null" &&
23075 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23076 echo "$as_me: updating cache $cache_file" >&6;}
23077 cat confcache >$cache_file
23079 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23080 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23086 # Let make expand exec_prefix.
23087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23089 DEFS=-DHAVE_CONFIG_H
23093 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23094 # 1. Remove the extension, and $U if already installed.
23095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23096 ac_i=`echo "$ac_i" | sed "$ac_script"`
23097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23098 # will be set to the directory where LIBOBJS objects are built.
23099 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23100 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23102 LIBOBJS=$ac_libobjs
23104 LTLIBOBJS=$ac_ltlibobjs
23108 : ${CONFIG_STATUS=./config.status}
23109 ac_clean_files_save=$ac_clean_files
23110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23111 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23112 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23113 cat >$CONFIG_STATUS <<_ACEOF
23115 # Generated by $as_me.
23116 # Run this file to recreate the current configuration.
23117 # Compiler output produced by configure, useful for debugging
23118 # configure, is in config.log if it exists.
23121 ac_cs_recheck=false
23123 SHELL=\${CONFIG_SHELL-$SHELL}
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23127 ## --------------------- ##
23128 ## M4sh Initialization. ##
23129 ## --------------------- ##
23131 # Be more Bourne compatible
23132 DUALCASE=1; export DUALCASE # for MKS sh
23133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23136 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23137 # is contrary to our usage. Disable this feature.
23138 alias -g '${1+"$@"}'='"$@"'
23139 setopt NO_GLOB_SUBST
23141 case `(set -o) 2>/dev/null` in
23142 *posix*) set -o posix ;;
23151 # Avoid depending upon Character Ranges.
23152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23155 as_cr_digits='0123456789'
23156 as_cr_alnum=$as_cr_Letters$as_cr_digits
23158 # The user is always right.
23159 if test "${PATH_SEPARATOR+set}" != set; then
23160 echo "#! /bin/sh" >conf$$.sh
23161 echo "exit 0" >>conf$$.sh
23163 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23171 # Support unset when possible.
23172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23180 # We need space, tab and new line, in precisely that order. Quoting is
23181 # there to prevent editors from complaining about space-tab.
23182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23183 # splitting by setting IFS to empty value.)
23188 # Find who we are. Look in the path if we contain no directory separator.
23190 *[\\/]* ) as_myself=$0 ;;
23191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23192 for as_dir in $PATH
23195 test -z "$as_dir" && as_dir=.
23196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23202 # We did not find ourselves, most probably we were run as `sh COMMAND'
23203 # in which case we are not to be found in the path.
23204 if test "x$as_myself" = x; then
23207 if test ! -f "$as_myself"; then
23208 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23209 { (exit 1); exit 1; }
23212 # Work around bugs in pre-3.0 UWIN ksh.
23213 for as_var in ENV MAIL MAILPATH
23214 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23222 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23223 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23224 LC_TELEPHONE LC_TIME
23226 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23227 eval $as_var=C; export $as_var
23229 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23233 # Required to use basename.
23234 if expr a : '\(a\)' >/dev/null 2>&1 &&
23235 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23242 as_basename=basename
23248 # Name of the executable.
23249 as_me=`$as_basename -- "$0" ||
23250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23251 X"$0" : 'X\(//\)$' \| \
23252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23254 sed '/^.*\/\([^/][^/]*\)\/*$/{
23273 as_lineno_1=$LINENO
23274 as_lineno_2=$LINENO
23275 test "x$as_lineno_1" != "x$as_lineno_2" &&
23276 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23278 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23279 # uniformly replaced by the line number. The first 'sed' inserts a
23280 # line-number line after each line using $LINENO; the second 'sed'
23281 # does the real work. The second script uses 'N' to pair each
23282 # line-number line with the line containing $LINENO, and appends
23283 # trailing '-' during substitution so that $LINENO is not a special
23284 # case at line end.
23285 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23286 # scripts with optimization help from Paolo Bonzini. Blame Lee
23287 # E. McMahon (1931-1989) for sed's syntax. :-)
23299 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23302 ' >$as_me.lineno &&
23303 chmod +x "$as_me.lineno" ||
23304 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23305 { (exit 1); exit 1; }; }
23307 # Don't try to exec as it changes $[0], causing all sort of problems
23308 # (the dirname of $[0] is not the place where we might find the
23309 # original and so on. Autoconf is especially sensitive to this).
23310 . "./$as_me.lineno"
23311 # Exit status is that of the last command.
23316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23322 ECHO_C= ECHO_N= ECHO_T=
23323 case `echo -n x` in
23325 case `echo 'x\c'` in
23326 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23333 if expr a : '\(a\)' >/dev/null 2>&1 &&
23334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23340 rm -f conf$$ conf$$.exe conf$$.file
23341 if test -d conf$$.dir; then
23342 rm -f conf$$.dir/conf$$.file
23348 if ln -s conf$$.file conf$$ 2>/dev/null; then
23350 # ... but there are two gotchas:
23351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23353 # In both cases, we have to default to `cp -p'.
23354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23356 elif ln conf$$.file conf$$ 2>/dev/null; then
23361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23362 rmdir conf$$.dir 2>/dev/null
23364 if mkdir -p . 2>/dev/null; then
23367 test -d ./-p && rmdir ./-p
23371 if test -x / >/dev/null 2>&1; then
23372 as_test_x='test -x'
23374 if ls -dL / >/dev/null 2>&1; then
23381 if test -d "$1"; then
23387 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23388 ???[sx]*):;;*)false;;esac;fi
23392 as_executable_p=$as_test_x
23394 # Sed expression to map a string onto a valid CPP name.
23395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23397 # Sed expression to map a string onto a valid variable name.
23398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23403 # Save the log message, to keep $[0] and so on meaningful, and to
23404 # report actual input values of CONFIG_FILES etc. instead of their
23405 # values after options handling.
23407 This file was extended by sudo $as_me 1.6.9, which was
23408 generated by GNU Autoconf 2.61. Invocation command line was
23410 CONFIG_FILES = $CONFIG_FILES
23411 CONFIG_HEADERS = $CONFIG_HEADERS
23412 CONFIG_LINKS = $CONFIG_LINKS
23413 CONFIG_COMMANDS = $CONFIG_COMMANDS
23416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23421 cat >>$CONFIG_STATUS <<_ACEOF
23422 # Files that config.status was made for.
23423 config_files="$ac_config_files"
23424 config_headers="$ac_config_headers"
23428 cat >>$CONFIG_STATUS <<\_ACEOF
23430 \`$as_me' instantiates files from templates according to the
23431 current configuration.
23433 Usage: $0 [OPTIONS] [FILE]...
23435 -h, --help print this help, then exit
23436 -V, --version print version number and configuration settings, then exit
23437 -q, --quiet do not print progress messages
23438 -d, --debug don't remove temporary files
23439 --recheck update $as_me by reconfiguring in the same conditions
23440 --file=FILE[:TEMPLATE]
23441 instantiate the configuration file FILE
23442 --header=FILE[:TEMPLATE]
23443 instantiate the configuration header FILE
23445 Configuration files:
23448 Configuration headers:
23451 Report bugs to <bug-autoconf@gnu.org>."
23454 cat >>$CONFIG_STATUS <<_ACEOF
23456 sudo config.status 1.6.9
23457 configured by $0, generated by GNU Autoconf 2.61,
23458 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23460 Copyright (C) 2006 Free Software Foundation, Inc.
23461 This config.status script is free software; the Free Software Foundation
23462 gives unlimited permission to copy, distribute and modify it."
23468 cat >>$CONFIG_STATUS <<\_ACEOF
23469 # If no file are specified by the user, then we need to provide default
23470 # value. By we need to know if files were specified by the user.
23476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23488 # Handling of the options.
23489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23492 echo "$ac_cs_version"; exit ;;
23493 --debug | --debu | --deb | --de | --d | -d )
23495 --file | --fil | --fi | --f )
23497 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23498 ac_need_defaults=false;;
23499 --header | --heade | --head | --hea )
23501 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23502 ac_need_defaults=false;;
23504 # Conflict between --help and --header
23505 { echo "$as_me: error: ambiguous option: $1
23506 Try \`$0 --help' for more information." >&2
23507 { (exit 1); exit 1; }; };;
23508 --help | --hel | -h )
23509 echo "$ac_cs_usage"; exit ;;
23510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23511 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23514 # This is an error.
23515 -*) { echo "$as_me: error: unrecognized option: $1
23516 Try \`$0 --help' for more information." >&2
23517 { (exit 1); exit 1; }; } ;;
23519 *) ac_config_targets="$ac_config_targets $1"
23520 ac_need_defaults=false ;;
23526 ac_configure_extra_args=
23528 if $ac_cs_silent; then
23530 ac_configure_extra_args="$ac_configure_extra_args --silent"
23534 cat >>$CONFIG_STATUS <<_ACEOF
23535 if \$ac_cs_recheck; then
23536 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23537 CONFIG_SHELL=$SHELL
23538 export CONFIG_SHELL
23539 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23543 cat >>$CONFIG_STATUS <<\_ACEOF
23547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23548 ## Running $as_me. ##
23554 cat >>$CONFIG_STATUS <<_ACEOF
23557 cat >>$CONFIG_STATUS <<\_ACEOF
23559 # Handling of arguments.
23560 for ac_config_target in $ac_config_targets
23562 case $ac_config_target in
23563 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23564 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23566 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23567 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23568 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23572 { (exit 1); exit 1; }; };;
23577 # If the user did not use the arguments to specify the items to instantiate,
23578 # then the envvar interface is used. Set only those that are not.
23579 # We use the long form for the default assignment because of an extremely
23580 # bizarre bug on SunOS 4.1.3.
23581 if $ac_need_defaults; then
23582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23586 # Have a temporary directory for convenience. Make it in the build tree
23587 # simply because there is no reason against having it here, and in addition,
23588 # creating and moving files from /tmp can sometimes cause problems.
23589 # Hook for its removal unless debugging.
23590 # Note that there is a small window in which the directory will not be cleaned:
23591 # after its creation but before its name has been assigned to `$tmp'.
23595 trap 'exit_status=$?
23596 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23598 trap '{ (exit 1); exit 1; }' 1 2 13 15
23600 # Create a (secure) tmp directory for tmp files.
23603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23604 test -n "$tmp" && test -d "$tmp"
23607 tmp=./conf$$-$RANDOM
23608 (umask 077 && mkdir "$tmp")
23611 echo "$me: cannot create a temporary directory in ." >&2
23612 { (exit 1); exit 1; }
23616 # Set up the sed scripts for CONFIG_FILES section.
23619 # No need to generate the scripts if there are no CONFIG_FILES.
23620 # This happens for instance when ./config.status config.h
23621 if test -n "$CONFIG_FILES"; then
23628 for ac_last_try in false false false false false :; do
23629 cat >conf$$subs.sed <<_ACEOF
23630 SHELL!$SHELL$ac_delim
23631 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23632 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23633 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23634 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23635 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23636 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23637 exec_prefix!$exec_prefix$ac_delim
23638 prefix!$prefix$ac_delim
23639 program_transform_name!$program_transform_name$ac_delim
23640 bindir!$bindir$ac_delim
23641 sbindir!$sbindir$ac_delim
23642 libexecdir!$libexecdir$ac_delim
23643 datarootdir!$datarootdir$ac_delim
23644 datadir!$datadir$ac_delim
23645 sysconfdir!$sysconfdir$ac_delim
23646 sharedstatedir!$sharedstatedir$ac_delim
23647 localstatedir!$localstatedir$ac_delim
23648 includedir!$includedir$ac_delim
23649 oldincludedir!$oldincludedir$ac_delim
23650 docdir!$docdir$ac_delim
23651 infodir!$infodir$ac_delim
23652 htmldir!$htmldir$ac_delim
23653 dvidir!$dvidir$ac_delim
23654 pdfdir!$pdfdir$ac_delim
23655 psdir!$psdir$ac_delim
23656 libdir!$libdir$ac_delim
23657 localedir!$localedir$ac_delim
23658 mandir!$mandir$ac_delim
23659 DEFS!$DEFS$ac_delim
23660 ECHO_C!$ECHO_C$ac_delim
23661 ECHO_N!$ECHO_N$ac_delim
23662 ECHO_T!$ECHO_T$ac_delim
23663 LIBS!$LIBS$ac_delim
23664 build_alias!$build_alias$ac_delim
23665 host_alias!$host_alias$ac_delim
23666 target_alias!$target_alias$ac_delim
23667 LIBTOOL!$LIBTOOL$ac_delim
23668 CFLAGS!$CFLAGS$ac_delim
23669 PROGS!$PROGS$ac_delim
23670 CPPFLAGS!$CPPFLAGS$ac_delim
23671 LDFLAGS!$LDFLAGS$ac_delim
23672 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23673 SUDO_OBJS!$SUDO_OBJS$ac_delim
23674 SUDO_LIBS!$SUDO_LIBS$ac_delim
23675 NET_LIBS!$NET_LIBS$ac_delim
23676 AFS_LIBS!$AFS_LIBS$ac_delim
23677 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23678 OSDEFS!$OSDEFS$ac_delim
23679 AUTH_OBJS!$AUTH_OBJS$ac_delim
23680 MANTYPE!$MANTYPE$ac_delim
23681 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23682 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23683 SUDOERS_UID!$SUDOERS_UID$ac_delim
23684 SUDOERS_GID!$SUDOERS_GID$ac_delim
23686 mansectsu!$mansectsu$ac_delim
23687 mansectform!$mansectform$ac_delim
23688 mansrcdir!$mansrcdir$ac_delim
23689 NOEXECDIR!$NOEXECDIR$ac_delim
23690 noexec_file!$noexec_file$ac_delim
23691 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23692 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23693 timedir!$timedir$ac_delim
23694 timeout!$timeout$ac_delim
23695 password_timeout!$password_timeout$ac_delim
23696 sudo_umask!$sudo_umask$ac_delim
23697 passprompt!$passprompt$ac_delim
23698 long_otp_prompt!$long_otp_prompt$ac_delim
23699 lecture!$lecture$ac_delim
23700 logfac!$logfac$ac_delim
23701 goodpri!$goodpri$ac_delim
23702 badpri!$badpri$ac_delim
23703 loglen!$loglen$ac_delim
23704 ignore_dot!$ignore_dot$ac_delim
23705 mail_no_user!$mail_no_user$ac_delim
23706 mail_no_host!$mail_no_host$ac_delim
23707 mail_no_perms!$mail_no_perms$ac_delim
23708 mailto!$mailto$ac_delim
23709 mailsub!$mailsub$ac_delim
23710 badpass_message!$badpass_message$ac_delim
23711 fqdn!$fqdn$ac_delim
23712 runas_default!$runas_default$ac_delim
23713 env_editor!$env_editor$ac_delim
23714 passwd_tries!$passwd_tries$ac_delim
23715 tty_tickets!$tty_tickets$ac_delim
23716 insults!$insults$ac_delim
23717 root_sudo!$root_sudo$ac_delim
23718 path_info!$path_info$ac_delim
23719 EGREPPROG!$EGREPPROG$ac_delim
23721 ac_ct_CC!$ac_ct_CC$ac_delim
23722 EXEEXT!$EXEEXT$ac_delim
23723 OBJEXT!$OBJEXT$ac_delim
23725 build!$build$ac_delim
23726 build_cpu!$build_cpu$ac_delim
23729 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23731 elif $ac_last_try; then
23732 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23733 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23734 { (exit 1); exit 1; }; }
23736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23740 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23741 if test -n "$ac_eof"; then
23742 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23743 ac_eof=`expr $ac_eof + 1`
23746 cat >>$CONFIG_STATUS <<_ACEOF
23747 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23751 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23752 s/^/s,@/; s/!/@,|#_!!_#|/
23755 s/'"$ac_delim"'$/,g/; t
23757 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23758 ' >>$CONFIG_STATUS <conf$$subs.sed
23759 rm -f conf$$subs.sed
23760 cat >>$CONFIG_STATUS <<_ACEOF
23766 for ac_last_try in false false false false false :; do
23767 cat >conf$$subs.sed <<_ACEOF
23768 build_vendor!$build_vendor$ac_delim
23769 build_os!$build_os$ac_delim
23770 host!$host$ac_delim
23771 host_cpu!$host_cpu$ac_delim
23772 host_vendor!$host_vendor$ac_delim
23773 host_os!$host_os$ac_delim
23774 target!$target$ac_delim
23775 target_cpu!$target_cpu$ac_delim
23776 target_vendor!$target_vendor$ac_delim
23777 target_os!$target_os$ac_delim
23779 GREP!$GREP$ac_delim
23780 EGREP!$EGREP$ac_delim
23781 LN_S!$LN_S$ac_delim
23782 ECHO!$ECHO$ac_delim
23784 RANLIB!$RANLIB$ac_delim
23785 STRIP!$STRIP$ac_delim
23786 UNAMEPROG!$UNAMEPROG$ac_delim
23787 TRPROG!$TRPROG$ac_delim
23788 NROFFPROG!$NROFFPROG$ac_delim
23789 YACC!$YACC$ac_delim
23790 YFLAGS!$YFLAGS$ac_delim
23791 LIBOBJS!$LIBOBJS$ac_delim
23792 ALLOCA!$ALLOCA$ac_delim
23793 KRB5CONFIG!$KRB5CONFIG$ac_delim
23794 LTLIBOBJS!$LTLIBOBJS$ac_delim
23797 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
23799 elif $ac_last_try; then
23800 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23802 { (exit 1); exit 1; }; }
23804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23809 if test -n "$ac_eof"; then
23810 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23811 ac_eof=`expr $ac_eof + 1`
23814 cat >>$CONFIG_STATUS <<_ACEOF
23815 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23820 s/^/s,@/; s/!/@,|#_!!_#|/
23823 s/'"$ac_delim"'$/,g/; t
23825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23826 ' >>$CONFIG_STATUS <conf$$subs.sed
23827 rm -f conf$$subs.sed
23828 cat >>$CONFIG_STATUS <<_ACEOF
23835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23837 # trailing colons and then remove the whole line if VPATH becomes empty
23838 # (actually we leave an empty line to preserve line numbers).
23839 if test "x$srcdir" = x.; then
23840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23841 s/:*\$(srcdir):*/:/
23842 s/:*\${srcdir}:*/:/
23844 s/^\([^=]*=[ ]*\):*/\1/
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 fi # test -n "$CONFIG_FILES"
23854 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
23857 :[FHLC]) ac_mode=$ac_tag; continue;;
23859 case $ac_mode$ac_tag in
23861 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23862 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23863 { (exit 1); exit 1; }; };;
23864 :[FH]-) ac_tag=-:-;;
23865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23882 -) ac_f="$tmp/stdin";;
23883 *) # Look for the file first in the build tree, then in the source tree
23884 # (if the path is not absolute). The absolute path cannot be DOS-style,
23885 # because $ac_f cannot contain `:'.
23889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23891 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23892 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23893 { (exit 1); exit 1; }; };;
23895 ac_file_inputs="$ac_file_inputs $ac_f"
23898 # Let's still pretend it is `configure' which instantiates (i.e., don't
23899 # use $as_me), people would be surprised to read:
23900 # /* config.h. Generated by config.status. */
23901 configure_input="Generated from "`IFS=:
23902 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23903 if test x"$ac_file" != x-; then
23904 configure_input="$ac_file. $configure_input"
23905 { echo "$as_me:$LINENO: creating $ac_file" >&5
23906 echo "$as_me: creating $ac_file" >&6;}
23910 *:-:* | *:-) cat >"$tmp/stdin";;
23915 ac_dir=`$as_dirname -- "$ac_file" ||
23916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23917 X"$ac_file" : 'X\(//\)[^/]' \| \
23918 X"$ac_file" : 'X\(//\)$' \| \
23919 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23925 /^X\(\/\/\)[^/].*/{
23940 -*) as_dir=./$as_dir;;
23942 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23946 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23947 *) as_qdir=$as_dir;;
23949 as_dirs="'$as_qdir' $as_dirs"
23950 as_dir=`$as_dirname -- "$as_dir" ||
23951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23952 X"$as_dir" : 'X\(//\)[^/]' \| \
23953 X"$as_dir" : 'X\(//\)$' \| \
23954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23960 /^X\(\/\/\)[^/].*/{
23973 test -d "$as_dir" && break
23975 test -z "$as_dirs" || eval "mkdir $as_dirs"
23976 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23978 { (exit 1); exit 1; }; }; }
23982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23985 # A ".." for each directory in $ac_dir_suffix.
23986 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23987 case $ac_top_builddir_sub in
23988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23992 ac_abs_top_builddir=$ac_pwd
23993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23994 # for backward compatibility:
23995 ac_top_builddir=$ac_top_build_prefix
23998 .) # We are building in place.
24000 ac_top_srcdir=$ac_top_builddir_sub
24001 ac_abs_top_srcdir=$ac_pwd ;;
24002 [\\/]* | ?:[\\/]* ) # Absolute name.
24003 ac_srcdir=$srcdir$ac_dir_suffix;
24004 ac_top_srcdir=$srcdir
24005 ac_abs_top_srcdir=$srcdir ;;
24006 *) # Relative name.
24007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24008 ac_top_srcdir=$ac_top_build_prefix$srcdir
24009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24022 cat >>$CONFIG_STATUS <<\_ACEOF
24023 # If the template does not know about datarootdir, expand it.
24024 # FIXME: This hack should be removed a few years after 2.60.
24025 ac_datarootdir_hack=; ac_datarootdir_seen=
24027 case `sed -n '/datarootdir/ {
24036 ' $ac_file_inputs` in
24037 *datarootdir*) ac_datarootdir_seen=yes;;
24038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24039 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24040 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24042 cat >>$CONFIG_STATUS <<_ACEOF
24043 ac_datarootdir_hack='
24044 s&@datadir@&$datadir&g
24045 s&@docdir@&$docdir&g
24046 s&@infodir@&$infodir&g
24047 s&@localedir@&$localedir&g
24048 s&@mandir@&$mandir&g
24049 s&\\\${datarootdir}&$datarootdir&g' ;;
24053 # Neutralize VPATH when `$srcdir' = `.'.
24054 # Shell code in configure.ac might set extrasub.
24055 # FIXME: do we really want to maintain this feature?
24056 cat >>$CONFIG_STATUS <<_ACEOF
24060 cat >>$CONFIG_STATUS <<\_ACEOF
24062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24063 s&@configure_input@&$configure_input&;t t
24064 s&@top_builddir@&$ac_top_builddir_sub&;t t
24065 s&@srcdir@&$ac_srcdir&;t t
24066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24067 s&@top_srcdir@&$ac_top_srcdir&;t t
24068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24069 s&@builddir@&$ac_builddir&;t t
24070 s&@abs_builddir@&$ac_abs_builddir&;t t
24071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24072 $ac_datarootdir_hack
24073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24079 which seems to be undefined. Please make sure it is defined." >&5
24080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24081 which seems to be undefined. Please make sure it is defined." >&2;}
24085 -) cat "$tmp/out"; rm -f "$tmp/out";;
24086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24095 # Transform confdefs.h into a sed script `conftest.defines', that
24096 # substitutes the proper values into config.h.in to produce config.h.
24097 rm -f conftest.defines conftest.tail
24098 # First, append a space to every undef/define line, to ease matching.
24099 echo 's/$/ /' >conftest.defines
24100 # Then, protect against being on the right side of a sed subst, or in
24101 # an unquoted here document, in config.status. If some macros were
24102 # called several times there might be several #defines for the same
24103 # symbol, which is useless. But do not sort them, since the last
24104 # AC_DEFINE must be honored.
24105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24106 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24107 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24108 # PARAMS is the parameter list in the macro definition--in most cases, it's
24109 # just an empty string.
24110 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24111 ac_dB='\\)[ (].*,\\1define\\2'
24119 s/^[ ]*#[ ]*define[ ][ ]*//
24124 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24125 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24126 ' >>conftest.defines
24128 # Remove the space that was appended to ease matching.
24129 # Then replace #undef with comments. This is necessary, for
24130 # example, in the case of _POSIX_SOURCE, which is predefined and required
24131 # on some systems where configure will not decide to define it.
24132 # (The regexp can be short, since the line contains either #define or #undef.)
24134 s,^[ #]*u.*,/* & */,' >>conftest.defines
24136 # Break up conftest.defines:
24137 ac_max_sed_lines=50
24139 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24140 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24141 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24143 ac_in='$ac_file_inputs'
24144 ac_out='"$tmp/out1"'
24145 ac_nxt='"$tmp/out2"'
24149 # Write a here document:
24150 cat >>$CONFIG_STATUS <<_ACEOF
24151 # First, check the format of the line:
24152 cat >"\$tmp/defines.sed" <<\\CEOF
24153 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24154 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24158 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24160 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24161 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24162 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24163 grep . conftest.tail >/dev/null || break
24164 rm -f conftest.defines
24165 mv conftest.tail conftest.defines
24167 rm -f conftest.defines conftest.tail
24169 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24170 cat >>$CONFIG_STATUS <<\_ACEOF
24171 if test x"$ac_file" != x-; then
24172 echo "/* $configure_input */" >"$tmp/config.h"
24173 cat "$ac_result" >>"$tmp/config.h"
24174 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24176 echo "$as_me: $ac_file is unchanged" >&6;}
24179 mv "$tmp/config.h" $ac_file
24182 echo "/* $configure_input */"
24186 # Compute $ac_file's index in $config_headers.
24188 for _am_header in $config_headers :; do
24189 case $_am_header in
24190 $ac_file | $ac_file:* )
24193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24196 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24197 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24198 X$ac_file : 'X\(//\)[^/]' \| \
24199 X$ac_file : 'X\(//\)$' \| \
24200 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24206 /^X\(\/\/\)[^/].*/{
24218 s/.*/./; q'`/stamp-h$_am_stamp_count
24227 { (exit 0); exit 0; }
24229 chmod +x $CONFIG_STATUS
24230 ac_clean_files=$ac_clean_files_save
24233 # configure is writing to config.log, and then calls config.status.
24234 # config.status does its own redirection, appending to config.log.
24235 # Unfortunately, on DOS this fails, as config.log is still kept open
24236 # by configure, so config.status won't be able to write to it; its
24237 # output is simply discarded. So we exec the FD to /dev/null,
24238 # effectively closing config.log, so it can be properly (re)opened and
24239 # appended to by config.status. When coming back to configure, we
24240 # need to make the FD available again.
24241 if test "$no_create" != yes; then
24243 ac_config_status_args=
24244 test "$silent" = yes &&
24245 ac_config_status_args="$ac_config_status_args --quiet"
24247 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24249 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24250 # would make configure fail if this is the last instruction.
24251 $ac_cs_success || { (exit 1); exit 1; }
24255 if test "$with_pam" = "yes"; then
24258 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24259 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}