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
894 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name=s,x,x,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014 eval enable_$ac_feature=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1197 -site=* | --site=* | --sit=*)
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1224 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269 { (exit 1); exit 1; }; }
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 { echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1290 # Be sure to have absolute directory names.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302 { (exit 1); exit 1; }; }
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used." >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 { echo "$as_me: error: Working directory cannot be determined" >&2
1333 { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 { echo "$as_me: error: pwd does not report name of working directory" >&2
1336 { (exit 1); exit 1; }; }
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$0" : 'X\(//\)[^/]' \| \
1346 X"$0" : 'X\(//\)$' \| \
1347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376 { (exit 1); exit 1; }; }
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381 { (exit 1); exit 1; }; }
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of sudo 1.6.9:";;
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-authentication
1481 Do not require authentication by default
1482 --disable-root-mailer Don't run the mailer as root, run as the user
1483 --disable-setreuid Don't try to use the setreuid() function
1484 --disable-setresuid Don't try to use the setresuid() function
1485 --disable-shadow Never use shadow passwords
1486 --disable-root-sudo Don't allow root to run sudo
1487 --enable-log-host Log the hostname in the log file
1488 --enable-noargs-shell If sudo is given no arguments run a shell
1489 --enable-shell-sets-home
1490 set $HOME to target user in shell mode
1491 --disable-path-info Print 'command not allowed' not 'command not found'
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --disable-sia Disable SIA on Digital UNIX
1498 --disable-pam-session Disable PAM session support
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-otp-only deprecated
1504 --with-alertmail deprecated
1505 --with-CC C compiler to use
1506 --with-rpath pass -R flag in addition to -L for lib paths
1507 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1508 --with-incpath additional places to look for include files
1509 --with-libpath additional places to look for libraries
1510 --with-libraries additional libraries to link with
1511 --with-devel add development options
1512 --with-efence link with -lefence for malloc() debugging
1513 --with-csops add CSOps standard options
1514 --without-passwd don't use passwd/shadow file for authentication
1515 --with-skey=DIR enable S/Key support
1516 --with-opie=DIR enable OPIE support
1517 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1518 --with-SecurID[=DIR] enable SecurID support
1519 --with-fwtk[=DIR] enable FWTK AuthSRV support
1520 --with-kerb4[=DIR] enable Kerberos IV support
1521 --with-kerb5[=DIR] enable Kerberos V support
1522 --with-aixauth enable AIX general authentication support
1523 --with-pam enable PAM support
1524 --with-AFS enable AFS support
1525 --with-DCE enable DCE support
1526 --with-logincap enable BSD login class support
1527 --with-bsdauth enable BSD authentication support
1528 --with-project enable Solaris project support
1529 --without-lecture don't print lecture for first-time sudoer
1530 --with-logging log via syslog, file, or both
1531 --with-logfac syslog facility to log with (default is "local2")
1532 --with-goodpri syslog priority for commands (def is "notice")
1533 --with-badpri syslog priority for failures (def is "alert")
1534 --with-logpath path to the sudo log file
1535 --with-loglen maximum length of a log file line (default is 80)
1536 --with-ignore-dot ignore '.' in the PATH
1537 --without-mail-if-no-user do not send mail if user not in sudoers
1538 --with-mail-if-no-host send mail if user in sudoers but not for this host
1539 --with-mail-if-noperms send mail if user not allowed to run command
1540 --with-mailto who should get sudo mail (default is "root")
1541 --with-mailsubject subject of sudo mail
1542 --with-passprompt default password prompt
1543 --with-badpass-message message the user sees when the password is wrong
1544 --with-fqdn expect fully qualified hosts in sudoers
1545 --with-timedir path to the sudo timestamp dir
1546 --with-sendmail=path set path to sendmail
1547 --without-sendmail do not send mail at all
1548 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1549 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1550 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1551 --with-umask umask with which the prog should run (default is 022)
1552 --without-umask Preserves the umask of the user invoking sudo.
1553 --with-runas-default User to run commands as (default is "root")
1554 --with-exempt=group no passwd needed for users in this group
1555 --with-editor=path Default editor for visudo (defaults to vi)
1556 --with-env-editor Use the environment variable EDITOR for visudo
1557 --with-passwd-tries number of tries to enter password (default is 3)
1558 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1559 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1560 --with-tty-tickets use a different ticket file for each tty
1561 --with-insults insult the user for entering an incorrect password
1562 --with-all-insults include all the sudo insult sets
1563 --with-classic-insults include the insults from the "classic" sudo
1564 --with-csops-insults include CSOps insults
1565 --with-hal-insults include 2001-like insults
1566 --with-goons-insults include the insults from the "Goon Show"
1567 --with-ldap[=DIR] enable LDAP support
1568 --with-ldap-conf-file path to LDAP configuration file
1569 --with-ldap-secret-file path to LDAP secret password file
1570 --with-pc-insults replace politically incorrect insults with less offensive ones
1571 --with-secure-path override the user's path with a built-in one
1572 --without-interfaces don't try to read the ip addr of ether interfaces
1573 --with-stow properly handle GNU stow packaging
1574 --with-selinux enable SELinux support
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1578 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1625 .) # We are building in place.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1658 sudo configure 1.6.9
1659 generated by GNU Autoconf 2.61
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1672 It was created by sudo $as_me 1.6.9, which was
1673 generated by GNU Autoconf 2.61. Invocation command line was
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 echo "PATH: $as_dir"
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_must_keep_next=false
1739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1744 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750 if test $ac_must_keep_next = true; then
1751 ac_must_keep_next=false # Got value, back to normal.
1754 *=* | --config-cache | -C | -disable-* | --disable-* \
1755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757 | -with-* | --with-* | -without-* | --without-* | --x)
1758 case "$ac_configure_args0 " in
1759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 -* ) ac_must_keep_next=true ;;
1765 ac_configure_args="$ac_configure_args '$ac_arg'"
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log. We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779 # Save into config.log some information that might help in debugging.
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1789 # The following way of writing the cache mishandles newlines in values,
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1796 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1797 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 _ | IFS | as_nl) ;; #(
1801 *) $as_unset $ac_var ;;
1806 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807 *${as_nl}ac_space=\ *)
1809 "s/'\''/'\''\\\\'\'''\''/g;
1810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##
1826 for ac_var in $ac_subst_vars
1828 eval ac_val=\$$ac_var
1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 echo "$ac_var='\''$ac_val'\''"
1836 if test -n "$ac_subst_files"; then
1838 ## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##
1843 for ac_var in $ac_subst_files
1845 eval ac_val=\$$ac_var
1847 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 echo "$ac_var='\''$ac_val'\''"
1854 if test -s confdefs.h; then
1864 test "$ac_signal" != 0 &&
1865 echo "$as_me: caught signal $ac_signal"
1866 echo "$as_me: exit $exit_status"
1868 rm -f core *.core core.conftest.* &&
1869 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 for ac_signal in 1 2 13 15; do
1873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1878 rm -f -r conftest* confdefs.h
1880 # Predefined preprocessor variables.
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 # Let the site file select an alternate cache file if it wants to.
1908 # Prefer explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 set x "$CONFIG_SITE"
1911 elif test "x$prefix" != xNONE; then
1912 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1914 set x "$ac_default_prefix/share/config.site" \
1915 "$ac_default_prefix/etc/config.site"
1920 if test -r "$ac_site_file"; then
1921 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 echo "$as_me: loading cache $cache_file" >&6;}
1935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936 *) . "./$cache_file";;
1940 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 echo "$as_me: creating cache $cache_file" >&6;}
1945 # Check that the precious variables saved in the cache have kept the same
1947 ac_cache_corrupted=false
1948 for ac_var in $ac_precious_vars; do
1949 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950 eval ac_new_set=\$ac_env_${ac_var}_set
1951 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952 eval ac_new_val=\$ac_env_${ac_var}_value
1953 case $ac_old_set,$ac_new_set in
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1959 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1964 if test "x$ac_old_val" != "x$ac_new_val"; then
1965 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1968 echo "$as_me: former value: $ac_old_val" >&2;}
1969 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1970 echo "$as_me: current value: $ac_new_val" >&2;}
1971 ac_cache_corrupted=:
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1977 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 if $ac_cache_corrupted; then
1987 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 ac_config_headers="$ac_config_headers config.h pathnames.h"
2027 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2028 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2088 passprompt="Password:"
2100 mailsub='*** SECURITY information for %h ***'
2101 badpass_message='Sorry, try again.'
2114 : ${SUDOERS_MODE='0440'}
2115 : ${SUDOERS_UID='0'}
2116 : ${SUDOERS_GID='0'}
2132 shadow_libs_optional=
2134 if test X"$prefix" = X"NONE"; then
2135 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2137 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2139 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2140 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2141 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2145 # Check whether --with-otp-only was given.
2146 if test "${with_otp_only+set}" = set; then
2147 withval=$with_otp_only; case $with_otp_only in
2148 yes) with_passwd="no"
2149 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2150 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2157 # Check whether --with-alertmail was given.
2158 if test "${with_alertmail+set}" = set; then
2159 withval=$with_alertmail; case $with_alertmail in
2160 *) with_mailto="$with_alertmail"
2161 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2162 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2170 # Check whether --with-CC was given.
2171 if test "${with_CC+set}" = set; then
2172 withval=$with_CC; case $with_CC in
2173 yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2174 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2175 { (exit 1); exit 1; }; }
2177 no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2178 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2179 { (exit 1); exit 1; }; }
2188 # Check whether --with-rpath was given.
2189 if test "${with_rpath+set}" = set; then
2190 withval=$with_rpath; case $with_rpath in
2192 *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2193 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2194 { (exit 1); exit 1; }; }
2201 # Check whether --with-blibpath was given.
2202 if test "${with_blibpath+set}" = set; then
2203 withval=$with_blibpath; case $with_blibpath in
2205 *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2206 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2213 # Check whether --with-incpath was given.
2214 if test "${with_incpath+set}" = set; then
2215 withval=$with_incpath; case $with_incpath in
2216 yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2217 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2218 { (exit 1); exit 1; }; }
2220 no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2221 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2222 { (exit 1); exit 1; }; }
2224 *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2225 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2226 for i in ${with_incpath}; do
2227 CPPFLAGS="${CPPFLAGS} -I${i}"
2235 # Check whether --with-libpath was given.
2236 if test "${with_libpath+set}" = set; then
2237 withval=$with_libpath; case $with_libpath in
2238 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2239 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2240 { (exit 1); exit 1; }; }
2242 no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2243 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2244 { (exit 1); exit 1; }; }
2246 *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2247 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2254 # Check whether --with-libraries was given.
2255 if test "${with_libraries+set}" = set; then
2256 withval=$with_libraries; case $with_libraries in
2257 yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2258 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2259 { (exit 1); exit 1; }; }
2261 no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2262 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2263 { (exit 1); exit 1; }; }
2265 *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2266 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2273 # Check whether --with-devel was given.
2274 if test "${with_devel+set}" = set; then
2275 withval=$with_devel; case $with_devel in
2276 yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2277 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2278 PROGS="${PROGS} testsudoers"
2279 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2283 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2284 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2291 # Check whether --with-efence was given.
2292 if test "${with_efence+set}" = set; then
2293 withval=$with_efence; case $with_efence in
2294 yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2295 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2296 LIBS="${LIBS} -lefence"
2297 if test -f /usr/local/lib/libefence.a; then
2298 with_libpath="${with_libpath} /usr/local/lib"
2302 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2303 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2310 # Check whether --with-csops was given.
2311 if test "${with_csops+set}" = set; then
2312 withval=$with_csops; case $with_csops in
2313 yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2314 echo "$as_me: Adding CSOps standard options" >&6;}
2318 with_classic_insults=yes
2319 with_csops_insults=yes
2322 : ${mansectform='5'}
2325 *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2326 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2333 # Check whether --with-passwd was given.
2334 if test "${with_passwd+set}" = set; then
2335 withval=$with_passwd; case $with_passwd in
2336 yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2337 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2338 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2339 echo "${ECHO_T}$with_passwd" >&6; }
2341 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2343 *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2344 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2345 { (exit 1); exit 1; }; }
2352 # Check whether --with-skey was given.
2353 if test "${with_skey+set}" = set; then
2354 withval=$with_skey; case $with_skey in
2357 *) cat >>confdefs.h <<\_ACEOF
2361 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2362 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2363 { echo "$as_me:$LINENO: result: yes" >&5
2364 echo "${ECHO_T}yes" >&6; }
2365 AUTH_REG="$AUTH_REG S/Key"
2372 # Check whether --with-opie was given.
2373 if test "${with_opie+set}" = set; then
2374 withval=$with_opie; case $with_opie in
2377 *) cat >>confdefs.h <<\_ACEOF
2381 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2382 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2383 { echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6; }
2385 AUTH_REG="$AUTH_REG NRL_OPIE"
2392 # Check whether --with-long-otp-prompt was given.
2393 if test "${with_long_otp_prompt+set}" = set; then
2394 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2395 yes) cat >>confdefs.h <<\_ACEOF
2396 #define LONG_OTP_PROMPT 1
2399 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2400 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2401 { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2405 no) long_otp_prompt=off
2407 *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2408 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2409 { (exit 1); exit 1; }; }
2416 # Check whether --with-SecurID was given.
2417 if test "${with_SecurID+set}" = set; then
2418 withval=$with_SecurID; case $with_SecurID in
2419 no) with_SecurID="";;
2420 *) cat >>confdefs.h <<\_ACEOF
2421 #define HAVE_SECURID 1
2424 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2425 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428 AUTH_EXCL="$AUTH_EXCL SecurID"
2435 # Check whether --with-fwtk was given.
2436 if test "${with_fwtk+set}" = set; then
2437 withval=$with_fwtk; case $with_fwtk in
2439 *) cat >>confdefs.h <<\_ACEOF
2443 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2444 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2445 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2447 AUTH_EXCL="$AUTH_EXCL FWTK"
2454 # Check whether --with-kerb4 was given.
2455 if test "${with_kerb4+set}" = set; then
2456 withval=$with_kerb4; case $with_kerb4 in
2458 *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2459 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2460 { echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6; }
2462 AUTH_REG="$AUTH_REG kerb4"
2469 # Check whether --with-kerb5 was given.
2470 if test "${with_kerb5+set}" = set; then
2471 withval=$with_kerb5; case $with_kerb5 in
2473 *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2474 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2475 { echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6; }
2477 AUTH_REG="$AUTH_REG kerb5"
2484 # Check whether --with-aixauth was given.
2485 if test "${with_aixauth+set}" = set; then
2486 withval=$with_aixauth; case $with_aixauth in
2487 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2489 *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2490 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2491 { (exit 1); exit 1; }; }
2498 # Check whether --with-pam was given.
2499 if test "${with_pam+set}" = set; then
2500 withval=$with_pam; case $with_pam in
2501 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2503 *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2504 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2505 { (exit 1); exit 1; }; }
2512 # Check whether --with-AFS was given.
2513 if test "${with_AFS+set}" = set; then
2514 withval=$with_AFS; case $with_AFS in
2515 yes) cat >>confdefs.h <<\_ACEOF
2519 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2520 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2521 { echo "$as_me:$LINENO: result: yes" >&5
2522 echo "${ECHO_T}yes" >&6; }
2523 AUTH_REG="$AUTH_REG AFS"
2526 *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2527 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2528 { (exit 1); exit 1; }; }
2535 # Check whether --with-DCE was given.
2536 if test "${with_DCE+set}" = set; then
2537 withval=$with_DCE; case $with_DCE in
2538 yes) cat >>confdefs.h <<\_ACEOF
2542 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2543 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2544 { echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6; }
2546 AUTH_REG="$AUTH_REG DCE"
2549 *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2550 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2551 { (exit 1); exit 1; }; }
2558 # Check whether --with-logincap was given.
2559 if test "${with_logincap+set}" = set; then
2560 withval=$with_logincap; case $with_logincap in
2562 *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2563 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2564 { (exit 1); exit 1; }; }
2571 # Check whether --with-bsdauth was given.
2572 if test "${with_bsdauth+set}" = set; then
2573 withval=$with_bsdauth; case $with_bsdauth in
2574 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2576 *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2577 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2578 { (exit 1); exit 1; }; }
2585 # Check whether --with-project was given.
2586 if test "${with_project+set}" = set; then
2587 withval=$with_project; case $with_project in
2590 *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2591 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2592 { (exit 1); exit 1; }; }
2598 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2599 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2601 # Check whether --with-lecture was given.
2602 if test "${with_lecture+set}" = set; then
2603 withval=$with_lecture; case $with_lecture in
2604 yes|short|always) lecture=once
2606 no|none|never) lecture=never
2608 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2609 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2610 { (exit 1); exit 1; }; }
2615 if test "$lecture" = "once"; then
2616 { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 cat >>confdefs.h <<\_ACEOF
2620 #define NO_LECTURE 1
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2627 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2628 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2630 # Check whether --with-logging was given.
2631 if test "${with_logging+set}" = set; then
2632 withval=$with_logging; case $with_logging in
2633 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2634 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2635 { (exit 1); exit 1; }; }
2637 no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2638 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2639 { (exit 1); exit 1; }; }
2641 syslog) cat >>confdefs.h <<\_ACEOF
2642 #define LOGGING SLOG_SYSLOG
2645 { echo "$as_me:$LINENO: result: syslog" >&5
2646 echo "${ECHO_T}syslog" >&6; }
2648 file) cat >>confdefs.h <<\_ACEOF
2649 #define LOGGING SLOG_FILE
2652 { echo "$as_me:$LINENO: result: file" >&5
2653 echo "${ECHO_T}file" >&6; }
2655 both) cat >>confdefs.h <<\_ACEOF
2656 #define LOGGING SLOG_BOTH
2659 { echo "$as_me:$LINENO: result: both" >&5
2660 echo "${ECHO_T}both" >&6; }
2662 *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2663 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2664 { (exit 1); exit 1; }; }
2668 cat >>confdefs.h <<\_ACEOF
2669 #define LOGGING SLOG_SYSLOG
2671 { echo "$as_me:$LINENO: result: syslog" >&5
2672 echo "${ECHO_T}syslog" >&6; }
2676 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2677 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2679 # Check whether --with-logfac was given.
2680 if test "${with_logfac+set}" = set; then
2681 withval=$with_logfac; case $with_logfac in
2682 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2683 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2684 { (exit 1); exit 1; }; }
2686 no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2687 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2688 { (exit 1); exit 1; }; }
2690 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
2692 *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2693 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2694 { (exit 1); exit 1; }; }
2700 cat >>confdefs.h <<_ACEOF
2701 #define LOGFAC "$logfac"
2704 { echo "$as_me:$LINENO: result: $logfac" >&5
2705 echo "${ECHO_T}$logfac" >&6; }
2707 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2708 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2710 # Check whether --with-goodpri was given.
2711 if test "${with_goodpri+set}" = set; then
2712 withval=$with_goodpri; case $with_goodpri in
2713 yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2714 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2715 { (exit 1); exit 1; }; }
2717 no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2718 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2719 { (exit 1); exit 1; }; }
2721 alert|crit|debug|emerg|err|info|notice|warning)
2722 goodpri=$with_goodpri
2724 *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2725 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2726 { (exit 1); exit 1; }; }
2732 cat >>confdefs.h <<_ACEOF
2733 #define PRI_SUCCESS "$goodpri"
2736 { echo "$as_me:$LINENO: result: $goodpri" >&5
2737 echo "${ECHO_T}$goodpri" >&6; }
2739 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2740 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2742 # Check whether --with-badpri was given.
2743 if test "${with_badpri+set}" = set; then
2744 withval=$with_badpri; case $with_badpri in
2745 yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2746 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2747 { (exit 1); exit 1; }; }
2749 no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2750 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2751 { (exit 1); exit 1; }; }
2753 alert|crit|debug|emerg|err|info|notice|warning)
2756 *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2757 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2758 { (exit 1); exit 1; }; }
2764 cat >>confdefs.h <<_ACEOF
2765 #define PRI_FAILURE "$badpri"
2768 { echo "$as_me:$LINENO: result: $badpri" >&5
2769 echo "${ECHO_T}$badpri" >&6; }
2772 # Check whether --with-logpath was given.
2773 if test "${with_logpath+set}" = set; then
2774 withval=$with_logpath; case $with_logpath in
2775 yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2776 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2777 { (exit 1); exit 1; }; }
2779 no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2780 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2781 { (exit 1); exit 1; }; }
2787 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2788 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2790 # Check whether --with-loglen was given.
2791 if test "${with_loglen+set}" = set; then
2792 withval=$with_loglen; case $with_loglen in
2793 yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2794 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2795 { (exit 1); exit 1; }; }
2797 no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2798 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2799 { (exit 1); exit 1; }; }
2801 [0-9]*) loglen=$with_loglen
2803 *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2804 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2805 { (exit 1); exit 1; }; }
2811 cat >>confdefs.h <<_ACEOF
2812 #define MAXLOGFILELEN $loglen
2815 { echo "$as_me:$LINENO: result: $loglen" >&5
2816 echo "${ECHO_T}$loglen" >&6; }
2818 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2819 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2821 # Check whether --with-ignore-dot was given.
2822 if test "${with_ignore_dot+set}" = set; then
2823 withval=$with_ignore_dot; case $with_ignore_dot in
2828 *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2829 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2830 { (exit 1); exit 1; }; }
2835 if test "$ignore_dot" = "on"; then
2836 cat >>confdefs.h <<\_ACEOF
2837 #define IGNORE_DOT_PATH 1
2840 { echo "$as_me:$LINENO: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2847 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2848 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2850 # Check whether --with-mail-if-no-user was given.
2851 if test "${with_mail_if_no_user+set}" = set; then
2852 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2853 yes) mail_no_user=on
2855 no) mail_no_user=off
2857 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2858 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2859 { (exit 1); exit 1; }; }
2864 if test "$mail_no_user" = "on"; then
2865 cat >>confdefs.h <<\_ACEOF
2866 #define SEND_MAIL_WHEN_NO_USER 1
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2876 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2877 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2879 # Check whether --with-mail-if-no-host was given.
2880 if test "${with_mail_if_no_host+set}" = set; then
2881 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2882 yes) mail_no_host=on
2884 no) mail_no_host=off
2886 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2887 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2888 { (exit 1); exit 1; }; }
2893 if test "$mail_no_host" = "on"; then
2894 cat >>confdefs.h <<\_ACEOF
2895 #define SEND_MAIL_WHEN_NO_HOST 1
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2901 { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2905 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2906 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2908 # Check whether --with-mail-if-noperms was given.
2909 if test "${with_mail_if_noperms+set}" = set; then
2910 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2911 yes) mail_noperms=on
2913 no) mail_noperms=off
2915 *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2916 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2917 { (exit 1); exit 1; }; }
2922 if test "$mail_noperms" = "on"; then
2923 cat >>confdefs.h <<\_ACEOF
2924 #define SEND_MAIL_WHEN_NOT_OK 1
2927 { echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6; }
2930 { echo "$as_me:$LINENO: result: no" >&5
2931 echo "${ECHO_T}no" >&6; }
2934 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2935 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2937 # Check whether --with-mailto was given.
2938 if test "${with_mailto+set}" = set; then
2939 withval=$with_mailto; case $with_mailto in
2940 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2941 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2942 { (exit 1); exit 1; }; }
2944 no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2945 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2946 { (exit 1); exit 1; }; }
2948 *) mailto=$with_mailto
2954 cat >>confdefs.h <<_ACEOF
2955 #define MAILTO "$mailto"
2958 { echo "$as_me:$LINENO: result: $mailto" >&5
2959 echo "${ECHO_T}$mailto" >&6; }
2962 # Check whether --with-mailsubject was given.
2963 if test "${with_mailsubject+set}" = set; then
2964 withval=$with_mailsubject; case $with_mailsubject in
2965 yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2966 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2967 { (exit 1); exit 1; }; }
2969 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2970 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2972 *) mailsub="$with_mailsubject"
2973 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2974 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2975 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2976 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2982 cat >>confdefs.h <<_ACEOF
2983 #define MAILSUBJECT "$mailsub"
2987 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2988 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2990 # Check whether --with-passprompt was given.
2991 if test "${with_passprompt+set}" = set; then
2992 withval=$with_passprompt; case $with_passprompt in
2993 yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2994 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2995 { (exit 1); exit 1; }; }
2997 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2998 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3000 *) passprompt="$with_passprompt"
3004 { echo "$as_me:$LINENO: result: $passprompt" >&5
3005 echo "${ECHO_T}$passprompt" >&6; }
3007 cat >>confdefs.h <<_ACEOF
3008 #define PASSPROMPT "$passprompt"
3012 { echo "$as_me:$LINENO: checking for bad password message" >&5
3013 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3015 # Check whether --with-badpass-message was given.
3016 if test "${with_badpass_message+set}" = set; then
3017 withval=$with_badpass_message; case $with_badpass_message in
3018 yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3019 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3020 { (exit 1); exit 1; }; }
3022 no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3023 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3025 *) badpass_message="$with_badpass_message"
3031 cat >>confdefs.h <<_ACEOF
3032 #define INCORRECT_PASSWORD "$badpass_message"
3035 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3036 echo "${ECHO_T}$badpass_message" >&6; }
3038 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3039 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3041 # Check whether --with-fqdn was given.
3042 if test "${with_fqdn+set}" = set; then
3043 withval=$with_fqdn; case $with_fqdn in
3048 *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3049 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3050 { (exit 1); exit 1; }; }
3055 if test "$fqdn" = "on"; then
3056 cat >>confdefs.h <<\_ACEOF
3060 { echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6; }
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3068 # Check whether --with-timedir was given.
3069 if test "${with_timedir+set}" = set; then
3070 withval=$with_timedir; case $with_timedir in
3071 yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3072 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3073 { (exit 1); exit 1; }; }
3075 no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3076 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3077 { (exit 1); exit 1; }; }
3084 # Check whether --with-sendmail was given.
3085 if test "${with_sendmail+set}" = set; then
3086 withval=$with_sendmail; case $with_sendmail in
3087 yes) with_sendmail=""
3090 *) cat >>confdefs.h <<EOF
3091 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3100 # Check whether --with-sudoers-mode was given.
3101 if test "${with_sudoers_mode+set}" = set; then
3102 withval=$with_sudoers_mode; case $with_sudoers_mode in
3103 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3104 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3105 { (exit 1); exit 1; }; }
3107 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3108 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3109 { (exit 1); exit 1; }; }
3111 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3113 0*) SUDOERS_MODE=$with_sudoers_mode
3115 *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3116 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3117 { (exit 1); exit 1; }; }
3124 # Check whether --with-sudoers-uid was given.
3125 if test "${with_sudoers_uid+set}" = set; then
3126 withval=$with_sudoers_uid; case $with_sudoers_uid in
3127 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3128 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3129 { (exit 1); exit 1; }; }
3131 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3132 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3133 { (exit 1); exit 1; }; }
3135 [0-9]*) SUDOERS_UID=$with_sudoers_uid
3137 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3138 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3139 { (exit 1); exit 1; }; }
3146 # Check whether --with-sudoers-gid was given.
3147 if test "${with_sudoers_gid+set}" = set; then
3148 withval=$with_sudoers_gid; case $with_sudoers_gid in
3149 yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3150 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3151 { (exit 1); exit 1; }; }
3153 no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3154 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3155 { (exit 1); exit 1; }; }
3157 [0-9]*) SUDOERS_GID=$with_sudoers_gid
3159 *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3160 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3161 { (exit 1); exit 1; }; }
3167 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3168 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3170 # Check whether --with-umask was given.
3171 if test "${with_umask+set}" = set; then
3172 withval=$with_umask; case $with_umask in
3173 yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3174 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3175 { (exit 1); exit 1; }; }
3179 [0-9]*) sudo_umask=$with_umask
3181 *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3182 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3183 { (exit 1); exit 1; }; }
3189 cat >>confdefs.h <<_ACEOF
3190 #define SUDO_UMASK $sudo_umask
3193 if test "$sudo_umask" = "0777"; then
3194 { echo "$as_me:$LINENO: result: user" >&5
3195 echo "${ECHO_T}user" >&6; }
3197 { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3198 echo "${ECHO_T}$sudo_umask" >&6; }
3201 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3202 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3204 # Check whether --with-runas-default was given.
3205 if test "${with_runas_default+set}" = set; then
3206 withval=$with_runas_default; case $with_runas_default in
3207 yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3208 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3209 { (exit 1); exit 1; }; }
3211 no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3212 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3213 { (exit 1); exit 1; }; }
3215 *) runas_default="$with_runas_default"
3221 cat >>confdefs.h <<_ACEOF
3222 #define RUNAS_DEFAULT "$runas_default"
3225 { echo "$as_me:$LINENO: result: $runas_default" >&5
3226 echo "${ECHO_T}$runas_default" >&6; }
3229 # Check whether --with-exempt was given.
3230 if test "${with_exempt+set}" = set; then
3231 withval=$with_exempt; case $with_exempt in
3232 yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3233 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3234 { (exit 1); exit 1; }; }
3236 no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3237 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3238 { (exit 1); exit 1; }; }
3241 cat >>confdefs.h <<_ACEOF
3242 #define EXEMPTGROUP "$with_exempt"
3245 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3246 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3247 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3248 echo "${ECHO_T}$with_exempt" >&6; }
3254 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3255 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3257 # Check whether --with-editor was given.
3258 if test "${with_editor+set}" = set; then
3259 withval=$with_editor; case $with_editor in
3260 yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3261 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3262 { (exit 1); exit 1; }; }
3264 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3265 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3266 { (exit 1); exit 1; }; }
3269 cat >>confdefs.h <<_ACEOF
3270 #define EDITOR "$with_editor"
3273 { echo "$as_me:$LINENO: result: $with_editor" >&5
3274 echo "${ECHO_T}$with_editor" >&6; }
3278 cat >>confdefs.h <<\_ACEOF
3279 #define EDITOR _PATH_VI
3281 { echo "$as_me:$LINENO: result: vi" >&5
3282 echo "${ECHO_T}vi" >&6; }
3286 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3287 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3289 # Check whether --with-env-editor was given.
3290 if test "${with_env_editor+set}" = set; then
3291 withval=$with_env_editor; case $with_env_editor in
3296 *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3297 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3298 { (exit 1); exit 1; }; }
3303 if test "$env_editor" = "on"; then
3304 cat >>confdefs.h <<\_ACEOF
3305 #define ENV_EDITOR 1
3308 { echo "$as_me:$LINENO: result: yes" >&5
3309 echo "${ECHO_T}yes" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3315 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3316 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3318 # Check whether --with-passwd-tries was given.
3319 if test "${with_passwd_tries+set}" = set; then
3320 withval=$with_passwd_tries; case $with_passwd_tries in
3322 no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3323 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3324 { (exit 1); exit 1; }; }
3326 [1-9]*) passwd_tries=$with_passwd_tries
3328 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3329 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3330 { (exit 1); exit 1; }; }
3336 cat >>confdefs.h <<_ACEOF
3337 #define TRIES_FOR_PASSWORD $passwd_tries
3340 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3341 echo "${ECHO_T}$passwd_tries" >&6; }
3343 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3344 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3346 # Check whether --with-timeout was given.
3347 if test "${with_timeout+set}" = set; then
3348 withval=$with_timeout; case $with_timeout in
3352 [0-9]*) timeout=$with_timeout
3354 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3355 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3356 { (exit 1); exit 1; }; }
3362 cat >>confdefs.h <<_ACEOF
3363 #define TIMEOUT $timeout
3366 { echo "$as_me:$LINENO: result: $timeout" >&5
3367 echo "${ECHO_T}$timeout" >&6; }
3369 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3370 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3372 # Check whether --with-password-timeout was given.
3373 if test "${with_password_timeout+set}" = set; then
3374 withval=$with_password_timeout; case $with_password_timeout in
3376 no) password_timeout=0
3378 [0-9]*) password_timeout=$with_password_timeout
3380 *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3381 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3382 { (exit 1); exit 1; }; }
3388 cat >>confdefs.h <<_ACEOF
3389 #define PASSWORD_TIMEOUT $password_timeout
3392 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3393 echo "${ECHO_T}$password_timeout" >&6; }
3395 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3396 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3398 # Check whether --with-tty-tickets was given.
3399 if test "${with_tty_tickets+set}" = set; then
3400 withval=$with_tty_tickets; case $with_tty_tickets in
3405 *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3406 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3407 { (exit 1); exit 1; }; }
3412 if test "$tty_tickets" = "on"; then
3413 cat >>confdefs.h <<\_ACEOF
3414 #define USE_TTY_TICKETS 1
3417 { echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6; }
3420 { echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6; }
3424 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3425 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3427 # Check whether --with-insults was given.
3428 if test "${with_insults+set}" = set; then
3429 withval=$with_insults; case $with_insults in
3431 with_classic_insults=yes
3432 with_csops_insults=yes
3436 *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3437 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3438 { (exit 1); exit 1; }; }
3443 if test "$insults" = "on"; then
3444 cat >>confdefs.h <<\_ACEOF
3445 #define USE_INSULTS 1
3448 { echo "$as_me:$LINENO: result: yes" >&5
3449 echo "${ECHO_T}yes" >&6; }
3451 { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3456 # Check whether --with-all-insults was given.
3457 if test "${with_all_insults+set}" = set; then
3458 withval=$with_all_insults; case $with_all_insults in
3459 yes) with_classic_insults=yes
3460 with_csops_insults=yes
3461 with_hal_insults=yes
3462 with_goons_insults=yes
3465 *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3466 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3467 { (exit 1); exit 1; }; }
3474 # Check whether --with-classic-insults was given.
3475 if test "${with_classic_insults+set}" = set; then
3476 withval=$with_classic_insults; case $with_classic_insults in
3477 yes) cat >>confdefs.h <<\_ACEOF
3478 #define CLASSIC_INSULTS 1
3483 *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3484 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3485 { (exit 1); exit 1; }; }
3492 # Check whether --with-csops-insults was given.
3493 if test "${with_csops_insults+set}" = set; then
3494 withval=$with_csops_insults; case $with_csops_insults in
3495 yes) cat >>confdefs.h <<\_ACEOF
3496 #define CSOPS_INSULTS 1
3501 *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3502 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3503 { (exit 1); exit 1; }; }
3510 # Check whether --with-hal-insults was given.
3511 if test "${with_hal_insults+set}" = set; then
3512 withval=$with_hal_insults; case $with_hal_insults in
3513 yes) cat >>confdefs.h <<\_ACEOF
3514 #define HAL_INSULTS 1
3519 *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3520 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3521 { (exit 1); exit 1; }; }
3528 # Check whether --with-goons-insults was given.
3529 if test "${with_goons_insults+set}" = set; then
3530 withval=$with_goons_insults; case $with_goons_insults in
3531 yes) cat >>confdefs.h <<\_ACEOF
3532 #define GOONS_INSULTS 1
3537 *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3538 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3539 { (exit 1); exit 1; }; }
3546 # Check whether --with-ldap was given.
3547 if test "${with_ldap+set}" = set; then
3548 withval=$with_ldap; case $with_ldap in
3550 *) cat >>confdefs.h <<\_ACEOF
3554 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3555 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3563 # Check whether --with-ldap-conf-file was given.
3564 if test "${with_ldap_conf_file+set}" = set; then
3565 withval=$with_ldap_conf_file;
3566 cat >>confdefs.h <<_ACEOF
3567 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3573 # Check whether --with-ldap-secret-file was given.
3574 if test "${with_ldap_secret_file+set}" = set; then
3575 withval=$with_ldap_secret_file;
3576 cat >>confdefs.h <<_ACEOF
3577 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3584 # Check whether --with-pc-insults was given.
3585 if test "${with_pc_insults+set}" = set; then
3586 withval=$with_pc_insults; case $with_pc_insults in
3587 yes) cat >>confdefs.h <<\_ACEOF
3588 #define PC_INSULTS 1
3593 *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3594 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3595 { (exit 1); exit 1; }; }
3601 if test "$insults" = "on"; then
3602 { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3603 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3605 test "$with_goons_insults" = "yes" && i="goons ${i}"
3606 test "$with_hal_insults" = "yes" && i="hal ${i}"
3607 test "$with_csops_insults" = "yes" && i="csops ${i}"
3608 test "$with_classic_insults" = "yes" && i="classic ${i}"
3609 { echo "$as_me:$LINENO: result: $i" >&5
3610 echo "${ECHO_T}$i" >&6; }
3613 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3614 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3616 # Check whether --with-secure-path was given.
3617 if test "${with_secure_path+set}" = set; then
3618 withval=$with_secure_path; case $with_secure_path in
3619 yes) cat >>confdefs.h <<_ACEOF
3620 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3623 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3624 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3626 no) { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3629 *) cat >>confdefs.h <<_ACEOF
3630 #define SECURE_PATH "$with_secure_path"
3633 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3634 echo "${ECHO_T}$with_secure_path" >&6; }
3638 { echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6; }
3643 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3644 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3646 # Check whether --with-interfaces was given.
3647 if test "${with_interfaces+set}" = set; then
3648 withval=$with_interfaces; case $with_interfaces in
3649 yes) { echo "$as_me:$LINENO: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6; }
3652 no) cat >>confdefs.h <<\_ACEOF
3653 #define STUB_LOAD_INTERFACES 1
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3659 *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3660 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3661 { (exit 1); exit 1; }; }
3665 { echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6; }
3670 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3671 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3673 # Check whether --with-stow was given.
3674 if test "${with_stow+set}" = set; then
3675 withval=$with_stow; case $with_stow in
3676 yes) { echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6; }
3678 cat >>confdefs.h <<\_ACEOF
3683 no) { echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6; }
3686 *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3687 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3688 { (exit 1); exit 1; }; }
3692 { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3698 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3699 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3700 # Check whether --enable-authentication was given.
3701 if test "${enable_authentication+set}" = set; then
3702 enableval=$enable_authentication; case "$enableval" in
3703 yes) { echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6; }
3706 no) { echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6; }
3708 cat >>confdefs.h <<\_ACEOF
3709 #define NO_AUTHENTICATION 1
3713 *) { echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6; }
3715 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3716 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3721 { echo "$as_me:$LINENO: result: yes" >&5
3722 echo "${ECHO_T}yes" >&6; }
3726 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3727 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3728 # Check whether --enable-root-mailer was given.
3729 if test "${enable_root_mailer+set}" = set; then
3730 enableval=$enable_root_mailer; case "$enableval" in
3731 yes) { echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6; }
3734 no) { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_ROOT_MAILER 1
3741 *) { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3744 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3749 { echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6; }
3754 # Check whether --enable-setreuid was given.
3755 if test "${enable_setreuid+set}" = set; then
3756 enableval=$enable_setreuid; case "$enableval" in
3757 no) SKIP_SETREUID=yes
3765 # Check whether --enable-setresuid was given.
3766 if test "${enable_setresuid+set}" = set; then
3767 enableval=$enable_setresuid; case "$enableval" in
3768 no) SKIP_SETRESUID=yes
3776 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3777 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3778 # Check whether --enable-shadow was given.
3779 if test "${enable_shadow+set}" = set; then
3780 enableval=$enable_shadow; case "$enableval" in
3781 yes) { echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6; }
3784 no) { echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6; }
3788 *) { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3790 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3791 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3796 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3801 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3802 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3803 # Check whether --enable-root-sudo was given.
3804 if test "${enable_root_sudo+set}" = set; then
3805 enableval=$enable_root_sudo; case "$enableval" in
3806 yes) { echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6; }
3809 no) cat >>confdefs.h <<\_ACEOF
3810 #define NO_ROOT_SUDO 1
3813 { echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6; }
3817 *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3818 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3819 { (exit 1); exit 1; }; }
3824 { echo "$as_me:$LINENO: result: yes" >&5
3825 echo "${ECHO_T}yes" >&6; }
3829 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3830 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3831 # Check whether --enable-log-host was given.
3832 if test "${enable_log_host+set}" = set; then
3833 enableval=$enable_log_host; case "$enableval" in
3834 yes) { echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6; }
3836 cat >>confdefs.h <<\_ACEOF
3837 #define HOST_IN_LOG 1
3841 no) { echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6; }
3844 *) { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3847 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3852 { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3857 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3858 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3859 # Check whether --enable-noargs-shell was given.
3860 if test "${enable_noargs_shell+set}" = set; then
3861 enableval=$enable_noargs_shell; case "$enableval" in
3862 yes) { echo "$as_me:$LINENO: result: yes" >&5
3863 echo "${ECHO_T}yes" >&6; }
3864 cat >>confdefs.h <<\_ACEOF
3865 #define SHELL_IF_NO_ARGS 1
3869 no) { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3872 *) { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3874 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3875 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3880 { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3885 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3886 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3887 # Check whether --enable-shell-sets-home was given.
3888 if test "${enable_shell_sets_home+set}" = set; then
3889 enableval=$enable_shell_sets_home; case "$enableval" in
3890 yes) { echo "$as_me:$LINENO: result: yes" >&5
3891 echo "${ECHO_T}yes" >&6; }
3892 cat >>confdefs.h <<\_ACEOF
3893 #define SHELL_SETS_HOME 1
3897 no) { echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6; }
3900 *) { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3902 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3903 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3913 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3914 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3915 # Check whether --enable-path_info was given.
3916 if test "${enable_path_info+set}" = set; then
3917 enableval=$enable_path_info; case "$enableval" in
3918 yes) { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3921 no) { echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6; }
3923 cat >>confdefs.h <<\_ACEOF
3924 #define DONT_LEAK_PATH_INFO 1
3929 *) { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3931 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3932 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3937 { echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6; }
3943 # Check whether --with-selinux was given.
3944 if test "${with_selinux+set}" = set; then
3945 withval=$with_selinux; case $with_selinux in
3946 yes) cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_SELINUX 1
3950 SUDO_LIBS="${SUDO_LIBS} -lselinux"
3951 SUDO_OBJS="${SUDO_OBJS} selinux.o"
3952 PROGS="${PROGS} sesh"
3957 *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
3958 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
3959 { (exit 1); exit 1; }; }
3965 # Extract the first word of "egrep", so it can be a program name with args.
3966 set dummy egrep; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test -n "$EGREPPROG"; then
3973 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_EGREPPROG="egrep"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 EGREPPROG=$ac_cv_prog_EGREPPROG
3993 if test -n "$EGREPPROG"; then
3994 { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3995 echo "${ECHO_T}$EGREPPROG" >&6; }
3997 { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
4002 if test -z "$EGREPPROG"; then
4003 { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4004 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4005 { (exit 1); exit 1; }; }
4008 if test "$with_devel" != "yes"; then
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 if test -n "$ac_tool_prefix"; then
4018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4019 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 if test -n "$CC"; then
4047 { echo "$as_me:$LINENO: result: $CC" >&5
4048 echo "${ECHO_T}$CC" >&6; }
4050 { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4056 if test -z "$ac_cv_prog_CC"; then
4058 # Extract the first word of "gcc", so it can be a program name with args.
4059 set dummy gcc; ac_word=$2
4060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$ac_ct_CC"; then
4066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_ac_ct_CC="gcc"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086 if test -n "$ac_ct_CC"; then
4087 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4088 echo "${ECHO_T}$ac_ct_CC" >&6; }
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4094 if test "x$ac_ct_CC" = x; then
4097 case $cross_compiling:$ac_tool_warned in
4099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4100 whose name does not start with the host triplet. If you think this
4101 configuration is useful to you, please write to autoconf@gnu.org." >&5
4102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4103 whose name does not start with the host triplet. If you think this
4104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4105 ac_tool_warned=yes ;;
4113 if test -z "$CC"; then
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}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.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_CC="${ac_tool_prefix}cc"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 if test -n "$CC"; then
4144 { echo "$as_me:$LINENO: result: $CC" >&5
4145 echo "${ECHO_T}$CC" >&6; }
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4154 if test -z "$CC"; then
4155 # Extract the first word of "cc", so it can be a program name with args.
4156 set dummy cc; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_CC+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4174 ac_prog_rejected=yes
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 if test $ac_prog_rejected = yes; then
4186 # We found a bogon in the path, so make sure we never use it.
4187 set dummy $ac_cv_prog_CC
4189 if test $# != 0; then
4190 # We chose a different compiler from the bogus one.
4191 # However, it has the same basename, so the bogon will be chosen
4192 # first if we set CC to just the basename; use the full file name.
4194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4200 if test -n "$CC"; then
4201 { echo "$as_me:$LINENO: result: $CC" >&5
4202 echo "${ECHO_T}$CC" >&6; }
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4210 if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in cl.exe
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 if test -n "$CC"; then
4243 { echo "$as_me:$LINENO: result: $CC" >&5
4244 echo "${ECHO_T}$CC" >&6; }
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4251 test -n "$CC" && break
4254 if test -z "$CC"; then
4256 for ac_prog in cl.exe
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_CC"; then
4266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_ac_ct_CC="$ac_prog"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286 if test -n "$ac_ct_CC"; then
4287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4288 echo "${ECHO_T}$ac_ct_CC" >&6; }
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 test -n "$ac_ct_CC" && break
4298 if test "x$ac_ct_CC" = x; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4304 whose name does not start with the host triplet. If you think this
4305 configuration is useful to you, please write to autoconf@gnu.org." >&5
4306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4309 ac_tool_warned=yes ;;
4318 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4319 See \`config.log' for more details." >&5
4320 echo "$as_me: error: no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details." >&2;}
4322 { (exit 1); exit 1; }; }
4324 # Provide some information about the compiler.
4325 echo "$as_me:$LINENO: checking for C compiler version" >&5
4326 ac_compiler=`set X $ac_compile; echo $2`
4327 { (ac_try="$ac_compiler --version >&5"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_compiler --version >&5") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }
4337 { (ac_try="$ac_compiler -v >&5"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_compiler -v >&5") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }
4347 { (ac_try="$ac_compiler -V >&5"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_compiler -V >&5") 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4373 ac_clean_files_save=$ac_clean_files
4374 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4375 # Try to create an executable without -o first, disregard a.out.
4376 # It will help us diagnose broken compilers, and finding out an intuition
4378 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4379 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4380 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4382 # List of possible output files, starting from the most likely.
4383 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4384 # only as a last resort. b.out is created by i960 compilers.
4385 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4387 # The IRIX 6 linker writes into existing files which may not be
4388 # executable, retaining their permissions. Remove them first so a
4389 # subsequent execution test works.
4391 for ac_file in $ac_files
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4400 if { (ac_try="$ac_link_default"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_link_default") 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4413 # so that the user can short-circuit this test for compilers unknown to
4415 for ac_file in $ac_files ''
4417 test -f "$ac_file" || continue
4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4422 # We found the default executable, but exeext='' is most
4426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4430 # We set ac_cv_exeext here because the later test for it is not
4431 # safe: cross compilers may not add the suffix if given an `-o'
4432 # argument, so we may need to know it at that point already.
4433 # Even if this section looks crufty: it has the advantage of
4440 test "$ac_cv_exeext" = no && ac_cv_exeext=
4446 { echo "$as_me:$LINENO: result: $ac_file" >&5
4447 echo "${ECHO_T}$ac_file" >&6; }
4448 if test -z "$ac_file"; then
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&5
4454 echo "$as_me: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&2;}
4456 { (exit 77); exit 77; }; }
4459 ac_exeext=$ac_cv_exeext
4461 # Check that the compiler produces executables we can run. If not, either
4462 # the compiler is broken, or we cross compile.
4463 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468 if { ac_try='./$ac_file'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_try") 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4480 if test "$cross_compiling" = maybe; then
4483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; }
4493 { echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6; }
4496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4497 ac_clean_files=$ac_clean_files_save
4498 # Check that the compiler produces executables we can run. If not, either
4499 # the compiler is broken, or we cross compile.
4500 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4502 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6; }
4505 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4507 if { (ac_try="$ac_link"
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_link") 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4531 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." >&2;}
4535 { (exit 1); exit 1; }; }
4538 rm -f conftest$ac_cv_exeext
4539 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4540 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4542 rm -f conftest.$ac_ext
4543 EXEEXT=$ac_cv_exeext
4545 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4546 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4547 if test "${ac_cv_objext+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4565 rm -f conftest.o conftest.obj
4566 if { (ac_try="$ac_compile"
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_compile") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 for ac_file in conftest.o conftest.obj conftest.*; do
4577 test -f "$ac_file" || continue;
4579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4589 See \`config.log' for more details." >&5
4590 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4591 See \`config.log' for more details." >&2;}
4592 { (exit 1); exit 1; }; }
4595 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4597 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4598 echo "${ECHO_T}$ac_cv_objext" >&6; }
4599 OBJEXT=$ac_cv_objext
4601 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4624 rm -f conftest.$ac_objext
4625 if { (ac_try="$ac_compile"
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_compile") 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && {
4638 test -z "$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 } && test -s conftest.$ac_objext; then
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4653 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4654 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4655 GCC=`test $ac_compiler_gnu = yes && echo yes`
4656 ac_test_CFLAGS=${CFLAGS+set}
4657 ac_save_CFLAGS=$CFLAGS
4658 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_cc_g+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_save_c_werror_flag=$ac_c_werror_flag
4664 ac_c_werror_flag=yes
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_compile") 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && {
4696 test -z "$ac_c_werror_flag" ||
4697 test ! -s conftest.err
4698 } && test -s conftest.$ac_objext; then
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_compile") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && {
4734 test -z "$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest.$ac_objext; then
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_c_werror_flag=$ac_save_c_werror_flag
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4759 rm -f conftest.$ac_objext
4760 if { (ac_try="$ac_compile"
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_compile") 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } && {
4773 test -z "$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 } && test -s conftest.$ac_objext; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_c_werror_flag=$ac_save_c_werror_flag
4793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4795 if test "$ac_test_CFLAGS" = set; then
4796 CFLAGS=$ac_save_CFLAGS
4797 elif test $ac_cv_prog_cc_g = yes; then
4798 if test "$GCC" = yes; then
4804 if test "$GCC" = yes; then
4810 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4811 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_cc_c89+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_prog_cc_c89=no
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4825 #include <sys/types.h>
4826 #include <sys/stat.h>
4827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4828 struct buf { int x; };
4829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4830 static char *e (p, i)
4836 static char *f (char * (*g) (char **, int), char **p, ...)
4841 s = g (p, va_arg (v,int));
4846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4847 function prototypes and stuff, but not '\xHH' hex character constants.
4848 These don't provoke an error unfortunately, instead are silently treated
4849 as 'x'. The following induces an error, until -std is added to get
4850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4851 array size at least. It's necessary to write '\x00'==0 to get something
4852 that's true only with -std. */
4853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4856 inside strings and character constants. */
4858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4860 int test (int i, double x);
4861 struct s1 {int (*f) (int a);};
4862 struct s2 {int (*f) (double a);};
4863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4877 CC="$ac_save_CC $ac_arg"
4878 rm -f conftest.$ac_objext
4879 if { (ac_try="$ac_compile"
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_compile") 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && {
4892 test -z "$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4894 } && test -s conftest.$ac_objext; then
4895 ac_cv_prog_cc_c89=$ac_arg
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f core conftest.err conftest.$ac_objext
4904 test "x$ac_cv_prog_cc_c89" != "xno" && break
4906 rm -f conftest.$ac_ext
4911 case "x$ac_cv_prog_cc_c89" in
4913 { echo "$as_me:$LINENO: result: none needed" >&5
4914 echo "${ECHO_T}none needed" >&6; } ;;
4916 { echo "$as_me:$LINENO: result: unsupported" >&5
4917 echo "${ECHO_T}unsupported" >&6; } ;;
4919 CC="$CC $ac_cv_prog_cc_c89"
4920 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4921 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4933 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4934 if test "${ac_cv_search_strerror+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_func_search_save_LIBS=$LIBS
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any GCC internal prototype to avoid an error.
4946 Use char because int might match the return type of a GCC
4947 builtin and then its argument prototype would still apply. */
4960 for ac_lib in '' cposix; do
4961 if test -z "$ac_lib"; then
4962 ac_res="none required"
4965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (ac_try="$ac_link"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_link") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest$ac_exeext &&
4984 $as_test_x conftest$ac_exeext; then
4985 ac_cv_search_strerror=$ac_res
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4995 if test "${ac_cv_search_strerror+set}" = set; then
4999 if test "${ac_cv_search_strerror+set}" = set; then
5002 ac_cv_search_strerror=no
5005 LIBS=$ac_func_search_save_LIBS
5007 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5008 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5009 ac_res=$ac_cv_search_strerror
5010 if test "$ac_res" != no; then
5011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5021 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5022 # On Suns, sometimes $CPP names a directory.
5023 if test -n "$CPP" && test -d "$CPP"; then
5026 if test -z "$CPP"; then
5027 if test "${ac_cv_prog_CPP+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 # Double quotes because CPP needs to be expanded
5031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034 for ac_c_preproc_warn_flag in '' yes
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 # include <limits.h>
5051 # include <assert.h>
5055 if { (ac_try="$ac_cpp conftest.$ac_ext"
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5063 grep -v '^ *+' conftest.er1 >conftest.err
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null && {
5068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 # Broken: fails on valid input.
5080 rm -f conftest.err conftest.$ac_ext
5082 # OK, works on sane cases. Now check whether nonexistent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <ac_nonexistent.h>
5092 if { (ac_try="$ac_cpp conftest.$ac_ext"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } >/dev/null && {
5105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5108 # Broken: success on invalid input.
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 # Passes both tests.
5119 rm -f conftest.err conftest.$ac_ext
5122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5123 rm -f conftest.err conftest.$ac_ext
5124 if $ac_preproc_ok; then
5136 { echo "$as_me:$LINENO: result: $CPP" >&5
5137 echo "${ECHO_T}$CPP" >&6; }
5139 for ac_c_preproc_warn_flag in '' yes
5141 # Use a header file that comes with gcc, so configuring glibc
5142 # with a fresh cross-compiler works.
5143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144 # <limits.h> exists even on freestanding compilers.
5145 # On the NeXT, cc -E runs the code through the compiler's parser,
5146 # not just through cpp. "Syntax error" is here to catch this case.
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5154 # include <limits.h>
5156 # include <assert.h>
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 # Broken: fails on valid input.
5185 rm -f conftest.err conftest.$ac_ext
5187 # OK, works on sane cases. Now check whether nonexistent headers
5188 # can be detected and how.
5189 cat >conftest.$ac_ext <<_ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5197 if { (ac_try="$ac_cpp conftest.$ac_ext"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null && {
5210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5213 # Broken: success on invalid input.
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 # Passes both tests.
5224 rm -f conftest.err conftest.$ac_ext
5227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5228 rm -f conftest.err conftest.$ac_ext
5229 if $ac_preproc_ok; then
5232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details." >&5
5234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5235 See \`config.log' for more details." >&2;}
5236 { (exit 1); exit 1; }; }
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5248 if test -f "$ac_dir/install-sh"; then
5250 ac_install_sh="$ac_aux_dir/install-sh -c"
5252 elif test -f "$ac_dir/install.sh"; then
5254 ac_install_sh="$ac_aux_dir/install.sh -c"
5256 elif test -f "$ac_dir/shtool"; then
5258 ac_install_sh="$ac_aux_dir/shtool install -c"
5262 if test -z "$ac_aux_dir"; then
5263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5265 { (exit 1); exit 1; }; }
5268 # These three variables are undocumented and unsupported,
5269 # and are intended to be withdrawn in a future Autoconf release.
5270 # They can cause serious problems if a builder's source tree is in a directory
5271 # whose full name contains unusual characters.
5272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5277 # Make sure we can run config.sub.
5278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5281 { (exit 1); exit 1; }; }
5283 { echo "$as_me:$LINENO: checking build system type" >&5
5284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5285 if test "${ac_cv_build+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_build_alias=$build_alias
5289 test "x$ac_build_alias" = x &&
5290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5291 test "x$ac_build_alias" = x &&
5292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5294 { (exit 1); exit 1; }; }
5295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5298 { (exit 1); exit 1; }; }
5301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5302 echo "${ECHO_T}$ac_cv_build" >&6; }
5303 case $ac_cv_build in
5305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5306 echo "$as_me: error: invalid value of canonical build" >&2;}
5307 { (exit 1); exit 1; }; };;
5310 ac_save_IFS=$IFS; IFS='-'
5316 # Remember, the first character of IFS is used to create $*,
5317 # except with old shells:
5320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5323 { echo "$as_me:$LINENO: checking host system type" >&5
5324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5325 if test "${ac_cv_host+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test "x$host_alias" = x; then
5329 ac_cv_host=$ac_cv_build
5331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5334 { (exit 1); exit 1; }; }
5338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5339 echo "${ECHO_T}$ac_cv_host" >&6; }
5342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5343 echo "$as_me: error: invalid value of canonical host" >&2;}
5344 { (exit 1); exit 1; }; };;
5347 ac_save_IFS=$IFS; IFS='-'
5353 # Remember, the first character of IFS is used to create $*,
5354 # except with old shells:
5357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5360 { echo "$as_me:$LINENO: checking target system type" >&5
5361 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5362 if test "${ac_cv_target+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 if test "x$target_alias" = x; then
5366 ac_cv_target=$ac_cv_host
5368 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5369 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5370 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5371 { (exit 1); exit 1; }; }
5375 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5376 echo "${ECHO_T}$ac_cv_target" >&6; }
5377 case $ac_cv_target in
5379 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5380 echo "$as_me: error: invalid value of canonical target" >&2;}
5381 { (exit 1); exit 1; }; };;
5383 target=$ac_cv_target
5384 ac_save_IFS=$IFS; IFS='-'
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5397 # The aliases save the names the user supplied, while $host etc.
5398 # will get canonicalized.
5399 test -n "$target_alias" &&
5400 test "$program_prefix$program_suffix$program_transform_name" = \
5402 program_prefix=${target_alias}-
5403 # Check whether --enable-static was given.
5404 if test "${enable_static+set}" = set; then
5405 enableval=$enable_static; p=${PACKAGE-default}
5407 yes) enable_static=yes ;;
5408 no) enable_static=no ;;
5411 # Look at the argument we got. We use all the common list separators.
5412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5413 for pkg in $enableval; do
5415 if test "X$pkg" = "X$p"; then
5428 # Check whether --enable-shared was given.
5429 if test "${enable_shared+set}" = set; then
5430 enableval=$enable_shared; p=${PACKAGE-default}
5432 yes) enable_shared=yes ;;
5433 no) enable_shared=no ;;
5436 # Look at the argument we got. We use all the common list separators.
5437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438 for pkg in $enableval; do
5440 if test "X$pkg" = "X$p"; then
5452 # Check whether --enable-fast-install was given.
5453 if test "${enable_fast_install+set}" = set; then
5454 enableval=$enable_fast_install; p=${PACKAGE-default}
5456 yes) enable_fast_install=yes ;;
5457 no) enable_fast_install=no ;;
5459 enable_fast_install=no
5460 # Look at the argument we got. We use all the common list separators.
5461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5462 for pkg in $enableval; do
5464 if test "X$pkg" = "X$p"; then
5465 enable_fast_install=yes
5472 enable_fast_install=yes
5476 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5477 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5478 if test "${lt_cv_path_SED+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 # Loop through the user's path and test for sed and gsed.
5482 # Then use that list of sed's as ones to test for truncation.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for lt_ac_prog in sed gsed; do
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5491 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5499 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5500 # along with /bin/sed that truncates output.
5501 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5502 test ! -f $lt_ac_sed && continue
5503 cat /dev/null > conftest.in
5505 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5506 # Check for GNU sed and select it if it is found.
5507 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5508 lt_cv_path_SED=$lt_ac_sed
5512 cat conftest.in conftest.in >conftest.tmp
5513 mv conftest.tmp conftest.in
5514 cp conftest.in conftest.nl
5516 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5517 cmp -s conftest.out conftest.nl || break
5518 # 10000 chars as input seems more than enough
5519 test $lt_ac_count -gt 10 && break
5520 lt_ac_count=`expr $lt_ac_count + 1`
5521 if test $lt_ac_count -gt $lt_ac_max; then
5522 lt_ac_max=$lt_ac_count
5523 lt_cv_path_SED=$lt_ac_sed
5532 { echo "$as_me:$LINENO: result: $SED" >&5
5533 echo "${ECHO_T}$SED" >&6; }
5535 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5536 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5537 if test "${ac_cv_path_GREP+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 # Extract the first word of "grep ggrep" to use in msg output
5541 if test -z "$GREP"; then
5542 set dummy grep ggrep; ac_prog_name=$2
5543 if test "${ac_cv_path_GREP+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_path_GREP_found=false
5547 # Loop through the user's path and test for each of PROGNAME-LIST
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5552 test -z "$as_dir" && as_dir=.
5553 for ac_prog in grep ggrep; do
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5557 # Check for GNU ac_path_GREP and select it if it is found.
5558 # Check for GNU $ac_path_GREP
5559 case `"$ac_path_GREP" --version 2>&1` in
5561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5567 cat "conftest.in" "conftest.in" >"conftest.tmp"
5568 mv "conftest.tmp" "conftest.in"
5569 cp "conftest.in" "conftest.nl"
5570 echo 'GREP' >> "conftest.nl"
5571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573 ac_count=`expr $ac_count + 1`
5574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5575 # Best one so far, save it but keep looking for a better one
5576 ac_cv_path_GREP="$ac_path_GREP"
5577 ac_path_GREP_max=$ac_count
5579 # 10*(2^10) chars as input seems more than enough
5580 test $ac_count -gt 10 && break
5582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 $ac_path_GREP_found && break 3
5596 GREP="$ac_cv_path_GREP"
5597 if test -z "$GREP"; then
5598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5600 { (exit 1); exit 1; }; }
5604 ac_cv_path_GREP=$GREP
5609 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5610 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5611 GREP="$ac_cv_path_GREP"
5614 { echo "$as_me:$LINENO: checking for egrep" >&5
5615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5616 if test "${ac_cv_path_EGREP+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5620 then ac_cv_path_EGREP="$GREP -E"
5622 # Extract the first word of "egrep" to use in msg output
5623 if test -z "$EGREP"; then
5624 set dummy egrep; ac_prog_name=$2
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 ac_path_EGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in egrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5639 # Check for GNU ac_path_EGREP and select it if it is found.
5640 # Check for GNU $ac_path_EGREP
5641 case `"$ac_path_EGREP" --version 2>&1` in
5643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 echo 'EGREP' >> "conftest.nl"
5653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 ac_count=`expr $ac_count + 1`
5656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_EGREP="$ac_path_EGREP"
5659 ac_path_EGREP_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 $ac_path_EGREP_found && break 3
5678 EGREP="$ac_cv_path_EGREP"
5679 if test -z "$EGREP"; then
5680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5682 { (exit 1); exit 1; }; }
5686 ac_cv_path_EGREP=$EGREP
5692 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5693 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5694 EGREP="$ac_cv_path_EGREP"
5698 # Check whether --with-gnu-ld was given.
5699 if test "${with_gnu_ld+set}" = set; then
5700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5706 if test "$GCC" = yes; then
5707 # Check if gcc -print-prog-name=ld gives a path.
5708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712 # gcc leaves a trailing carriage return which upsets mingw
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718 # Accept absolute paths.
5720 re_direlt='/[^/][^/]*/\.\./'
5721 # Canonicalize the pathname of ld
5722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5726 test -z "$LD" && LD="$ac_prog"
5729 # If it fails, then pretend we aren't using GCC.
5733 # If it is relative, then search for the first ld in PATH.
5737 elif test "$with_gnu_ld" = yes; then
5738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5744 if test "${lt_cv_path_LD+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -z "$LD"; then
5748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749 for ac_dir in $PATH; do
5751 test -z "$ac_dir" && ac_dir=.
5752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5753 lt_cv_path_LD="$ac_dir/$ac_prog"
5754 # Check to see if the program is GNU ld. I'd rather use --version,
5755 # but apparently some variants of GNU ld only accept -v.
5756 # Break only if it was the GNU/non-GNU ld that we prefer.
5757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5758 *GNU* | *'with BFD'*)
5759 test "$with_gnu_ld" != no && break
5762 test "$with_gnu_ld" != yes && break
5769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5774 if test -n "$LD"; then
5775 { echo "$as_me:$LINENO: result: $LD" >&5
5776 echo "${ECHO_T}$LD" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5783 { (exit 1); exit 1; }; }
5784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5790 case `$LD -v 2>&1 </dev/null` in
5791 *GNU* | *'with BFD'*)
5792 lt_cv_prog_gnu_ld=yes
5795 lt_cv_prog_gnu_ld=no
5799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5801 with_gnu_ld=$lt_cv_prog_gnu_ld
5804 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5805 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5806 if test "${lt_cv_ld_reload_flag+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 lt_cv_ld_reload_flag='-r'
5811 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5812 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5816 *) reload_flag=" $reload_flag" ;;
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821 if test "$GCC" = yes; then
5822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5829 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5830 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5831 if test "${lt_cv_path_NM+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 if test -n "$NM"; then
5835 # Let the user override the test.
5838 lt_nm_to_check="${ac_tool_prefix}nm"
5839 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5840 lt_nm_to_check="$lt_nm_to_check nm"
5842 for lt_tmp_nm in $lt_nm_to_check; do
5843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5844 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5846 test -z "$ac_dir" && ac_dir=.
5847 tmp_nm="$ac_dir/$lt_tmp_nm"
5848 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5849 # Check to see if the nm accepts a BSD-compat flag.
5850 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5851 # nm: unknown option "B" ignored
5852 # Tru64's nm complains that /dev/null is an invalid object file
5853 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5854 */dev/null* | *'Invalid file or object type'*)
5855 lt_cv_path_NM="$tmp_nm -B"
5859 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5861 lt_cv_path_NM="$tmp_nm -p"
5865 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5866 continue # so that we can try to find one that supports BSD flags
5875 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5878 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5879 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5882 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5883 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5885 if test "$LN_S" = "ln -s"; then
5886 { echo "$as_me:$LINENO: result: yes" >&5
5887 echo "${ECHO_T}yes" >&6; }
5889 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5890 echo "${ECHO_T}no, using $LN_S" >&6; }
5893 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5894 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5895 if test "${lt_cv_deplibs_check_method+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 lt_cv_file_magic_cmd='$MAGIC_CMD'
5899 lt_cv_file_magic_test_file=
5900 lt_cv_deplibs_check_method='unknown'
5901 # Need to set the preceding variable on all platforms that support
5902 # interlibrary dependencies.
5903 # 'none' -- dependencies not supported.
5904 # `unknown' -- same as none, but documents that we really don't know.
5905 # 'pass_all' -- all dependencies passed with no checks.
5906 # 'test_compile' -- check by making test program.
5907 # 'file_magic [[regex]]' -- check by looking for files in library path
5908 # which responds to the $file_magic_cmd with a given extended regex.
5909 # If you have `file' or equivalent on your system and you're not sure
5910 # whether `pass_all' will *always* work, you probably want this one.
5914 lt_cv_deplibs_check_method=pass_all
5918 lt_cv_deplibs_check_method=pass_all
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923 lt_cv_file_magic_cmd='/usr/bin/file -L'
5924 lt_cv_file_magic_test_file=/shlib/libc.so
5928 # func_win32_libid is a shell function defined in ltmain.sh
5929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930 lt_cv_file_magic_cmd='func_win32_libid'
5934 # Base MSYS/MinGW do not provide the 'file' command needed by
5935 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936 # unless we find 'file', for example because we are cross-compiling.
5937 if ( file / ) >/dev/null 2>&1; then
5938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5939 lt_cv_file_magic_cmd='func_win32_libid'
5941 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5942 lt_cv_file_magic_cmd='$OBJDUMP -f'
5946 darwin* | rhapsody*)
5947 lt_cv_deplibs_check_method=pass_all
5950 freebsd* | dragonfly*)
5951 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5954 # Not sure whether the presence of OpenBSD here was a mistake.
5955 # Let's accept both of them until this is cleared up.
5956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5957 lt_cv_file_magic_cmd=/usr/bin/file
5958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5962 lt_cv_deplibs_check_method=pass_all
5967 lt_cv_deplibs_check_method=pass_all
5970 hpux10.20* | hpux11*)
5971 lt_cv_file_magic_cmd=/usr/bin/file
5974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5978 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]'
5979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5993 irix5* | irix6* | nonstopux*)
5995 *-32|*"-32 ") libmagic=32-bit;;
5996 *-n32|*"-n32 ") libmagic=N32;;
5997 *-64|*"-64 ") libmagic=64-bit;;
5998 *) libmagic=never-match;;
6000 lt_cv_deplibs_check_method=pass_all
6003 # This must be Linux ELF.
6004 linux* | k*bsd*-gnu)
6005 lt_cv_deplibs_check_method=pass_all
6009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6023 lt_cv_deplibs_check_method=unknown
6027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6034 osf3* | osf4* | osf5*)
6035 lt_cv_deplibs_check_method=pass_all
6039 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6047 case $host_vendor in
6049 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]'
6050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6053 lt_cv_deplibs_check_method=pass_all
6056 lt_cv_file_magic_cmd='/bin/file'
6057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6060 lt_cv_file_magic_cmd='/bin/file'
6061 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6062 lt_cv_file_magic_test_file=/lib/libc.so
6065 lt_cv_deplibs_check_method=pass_all
6068 lt_cv_deplibs_check_method=pass_all
6073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6074 lt_cv_deplibs_check_method=pass_all
6079 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6080 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6081 file_magic_cmd=$lt_cv_file_magic_cmd
6082 deplibs_check_method=$lt_cv_deplibs_check_method
6083 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6088 # If no C compiler was specified, use CC.
6091 # If no C compiler flags were specified, use CFLAGS.
6092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6094 # Allow CC to be a program name with arguments.
6097 # Check whether --enable-libtool-lock was given.
6098 if test "${enable_libtool_lock+set}" = set; then
6099 enableval=$enable_libtool_lock;
6102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6104 # Some flags need to be propagated to the compiler or linker for good
6108 # Find out which ABI we are using.
6109 echo 'int i;' > conftest.$ac_ext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; then
6115 case `/usr/bin/file conftest.$ac_objext` in
6127 # Find out which ABI we are using.
6128 echo '#line 6128 "configure"' > conftest.$ac_ext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; then
6134 if test "$lt_cv_prog_gnu_ld" = yes; then
6135 case `/usr/bin/file conftest.$ac_objext` in
6137 LD="${LD-ld} -melf32bsmip"
6140 LD="${LD-ld} -melf32bmipn32"
6143 LD="${LD-ld} -melf64bmip"
6147 case `/usr/bin/file conftest.$ac_objext` in
6163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6164 s390*-*linux*|sparc*-*linux*)
6165 # Find out which ABI we are using.
6166 echo 'int i;' > conftest.$ac_ext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 case `/usr/bin/file conftest.o` in
6175 x86_64-*kfreebsd*-gnu)
6176 LD="${LD-ld} -m elf_i386_fbsd"
6179 LD="${LD-ld} -m elf_i386"
6181 ppc64-*linux*|powerpc64-*linux*)
6182 LD="${LD-ld} -m elf32ppclinux"
6185 LD="${LD-ld} -m elf_s390"
6188 LD="${LD-ld} -m elf32_sparc"
6194 x86_64-*kfreebsd*-gnu)
6195 LD="${LD-ld} -m elf_x86_64_fbsd"
6198 LD="${LD-ld} -m elf_x86_64"
6200 ppc*-*linux*|powerpc*-*linux*)
6201 LD="${LD-ld} -m elf64ppc"
6204 LD="${LD-ld} -m elf64_s390"
6207 LD="${LD-ld} -m elf64_sparc"
6217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6218 SAVE_CFLAGS="$CFLAGS"
6219 CFLAGS="$CFLAGS -belf"
6220 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6221 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6222 if test "${lt_cv_cc_needs_belf+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (ac_try="$ac_link"
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_link") 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest$ac_exeext &&
6263 $as_test_x conftest$ac_exeext; then
6264 lt_cv_cc_needs_belf=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 lt_cv_cc_needs_belf=no
6272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6273 conftest$ac_exeext conftest.$ac_ext
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6285 CFLAGS="$SAVE_CFLAGS"
6289 # Find out which ABI we are using.
6290 echo 'int i;' > conftest.$ac_ext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; then
6296 case `/usr/bin/file conftest.o` in
6298 case $lt_cv_prog_gnu_ld in
6299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6300 *) LD="${LD-ld} -64" ;;
6311 need_locks="$enable_libtool_lock"
6315 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6317 if test "${ac_cv_header_stdc+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compile") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } && {
6353 test -z "$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest.$ac_objext; then
6356 ac_cv_header_stdc=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_header_stdc=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 if test $ac_cv_header_stdc = yes; then
6367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 $EGREP "memchr" >/dev/null 2>&1; then
6381 ac_cv_header_stdc=no
6387 if test $ac_cv_header_stdc = yes; then
6388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399 $EGREP "free" >/dev/null 2>&1; then
6402 ac_cv_header_stdc=no
6408 if test $ac_cv_header_stdc = yes; then
6409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6410 if test "$cross_compiling" = yes; then
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6421 #if ((' ' & 0x0FF) == 0x020)
6422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6425 # define ISLOWER(c) \
6426 (('a' <= (c) && (c) <= 'i') \
6427 || ('j' <= (c) && (c) <= 'r') \
6428 || ('s' <= (c) && (c) <= 'z'))
6429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6437 for (i = 0; i < 256; i++)
6438 if (XOR (islower (i), ISLOWER (i))
6439 || toupper (i) != TOUPPER (i))
6444 rm -f conftest$ac_exeext
6445 if { (ac_try="$ac_link"
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_link") 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6466 echo "$as_me: program exited with status $ac_status" >&5
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_cv_header_stdc=no
6473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6479 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6480 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6481 if test $ac_cv_header_stdc = yes; then
6483 cat >>confdefs.h <<\_ACEOF
6484 #define STDC_HEADERS 1
6489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6499 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6500 inttypes.h stdint.h unistd.h
6502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6516 #include <$ac_header>
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 eval "$as_ac_Header=yes"
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 eval "$as_ac_Header=no"
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 ac_res=`eval echo '${'$as_ac_Header'}'`
6546 { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549 cat >>confdefs.h <<_ACEOF
6550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 for ac_header in dlfcn.h
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_res=`eval echo '${'$as_ac_Header'}'`
6569 { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6572 # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_header_compiler=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_compiler=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <$ac_header>
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev/null && {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6640 ac_header_preproc=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_header_preproc=no
6648 rm -f conftest.err conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 eval "$as_ac_Header=\$ac_header_preproc"
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6701 # find the maximum length of command line arguments
6702 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6703 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6704 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 # On DJGPP, this test can blow up pretty badly due to problems in libc
6713 # (any single argument exceeding 2000 bytes causes a buffer overrun
6714 # during glob expansion). Even if it were fixed, the result of this
6715 # check would be larger than it should be.
6716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6720 # Under GNU Hurd, this test is not required because there is
6721 # no limit to the length of command line arguments.
6722 # Libtool will interpret -1 as no limit whatsoever
6723 lt_cv_sys_max_cmd_len=-1;
6727 # On Win9x/ME, this test blows up -- it succeeds, but takes
6728 # about 5 minutes as the teststring grows exponentially.
6729 # Worse, since 9x/ME are not pre-emptively multitasking,
6730 # you end up with a "frozen" computer, even though with patience
6731 # the test eventually succeeds (with a max line length of 256k).
6732 # Instead, let's just punt: use the minimum linelength reported by
6733 # all of the supported platforms: 8192 (on NT/2K/XP).
6734 lt_cv_sys_max_cmd_len=8192;
6738 # On AmigaOS with pdksh, this test takes hours, literally.
6739 # So we just punt and use a minimum line length of 8192.
6740 lt_cv_sys_max_cmd_len=8192;
6743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6744 # This has been around since 386BSD, at least. Likely further.
6745 if test -x /sbin/sysctl; then
6746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6747 elif test -x /usr/sbin/sysctl; then
6748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6750 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6752 # And add a safety zone
6753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6758 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6759 lt_cv_sys_max_cmd_len=196608
6763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6765 # nice to cause kernel panics so lets avoid the loop below.
6766 # First set a reasonable default.
6767 lt_cv_sys_max_cmd_len=16384
6769 if test -x /sbin/sysconfig; then
6770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6771 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6776 lt_cv_sys_max_cmd_len=102400
6778 sysv5* | sco5v6* | sysv4.2uw2*)
6779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6780 if test -n "$kargmax"; then
6781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6783 lt_cv_sys_max_cmd_len=32768
6787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6788 if test -n "$lt_cv_sys_max_cmd_len"; then
6789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6793 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6794 = "XX$teststring") >/dev/null 2>&1 &&
6795 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6796 lt_cv_sys_max_cmd_len=$new_result &&
6797 test $i != 17 # 1/2 MB should be enough
6800 teststring=$teststring$teststring
6803 # Add a significant safety factor because C++ compilers can tack on massive
6804 # amounts of additional arguments before passing them to the linker.
6805 # It appears as though 1/2 is a usable value.
6806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6813 if test -n $lt_cv_sys_max_cmd_len ; then
6814 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6817 { echo "$as_me:$LINENO: result: none" >&5
6818 echo "${ECHO_T}none" >&6; }
6825 # Check for command to grab the raw symbol name followed by C symbol from nm.
6826 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6827 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6828 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 # These are sane defaults that work on at least a few old systems.
6833 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6835 # Character class describing NM global symbol codes.
6836 symcode='[BCDEGRST]'
6838 # Regexp to match symbols that can be accessed directly from C.
6839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6841 # Transform an extracted symbol line into a proper C declaration
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 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'"
6847 # Define system-specific variables.
6852 cygwin* | mingw* | pw32*)
6853 symcode='[ABCDGISTW]'
6855 hpux*) # Its linker distinguishes data from code symbols
6856 if test "$host_cpu" = ia64; then
6857 symcode='[ABCDEGRST]'
6859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6860 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'"
6862 linux* | k*bsd*-gnu)
6863 if test "$host_cpu" = ia64; then
6864 symcode='[ABCDGIRSTW]'
6865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6866 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'"
6870 symcode='[BCDEGRST]'
6873 symcode='[BCDEGQRST]'
6884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6892 # Handle CRLF in mingw tool chain
6896 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6900 # If we're using GNU nm, then use its standard symbol codes.
6901 case `$NM -V 2>&1` in
6902 *GNU* | *'with BFD'*)
6903 symcode='[ABCDGIRSTW]' ;;
6906 # Try without a prefix undercore, then with it.
6907 for ac_symprfx in "" "_"; do
6909 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6910 symxfrm="\\1 $ac_symprfx\\2 \\2"
6912 # Write the raw and C identifiers.
6913 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6915 # Check to see that the pipe works correctly.
6919 cat > conftest.$ac_ext <<EOF
6924 void nm_test_func(){}
6928 int main(){nm_test_var='a';nm_test_func();return(0);}
6931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932 (eval $ac_compile) 2>&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; then
6936 # Now try to grab the symbols.
6938 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6939 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && test -s "$nlist"; then
6943 # Try sorting and uniquifying the output.
6944 if sort "$nlist" | uniq > "$nlist"T; then
6945 mv -f "$nlist"T "$nlist"
6950 # Make sure that we snagged all the symbols we need.
6951 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6952 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6953 cat <<EOF > conftest.$ac_ext
6959 # Now generate the symbol file.
6960 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6962 cat <<EOF >> conftest.$ac_ext
6963 #if defined (__STDC__) && __STDC__
6964 # define lt_ptr_t void *
6966 # define lt_ptr_t char *
6970 /* The mapping between symbol names and symbols. */
6975 lt_preloaded_symbols[] =
6978 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6979 cat <<\EOF >> conftest.$ac_ext
6987 # Now try linking the two files.
6988 mv conftest.$ac_objext conftstm.$ac_objext
6989 lt_save_LIBS="$LIBS"
6990 lt_save_CFLAGS="$CFLAGS"
6991 LIBS="conftstm.$ac_objext"
6992 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7000 LIBS="$lt_save_LIBS"
7001 CFLAGS="$lt_save_CFLAGS"
7003 echo "cannot find nm_test_func in $nlist" >&5
7006 echo "cannot find nm_test_var in $nlist" >&5
7009 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7012 echo "$progname: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 rm -f conftest* conftst*
7017 # Do not use the global_symbol_pipe unless it works.
7018 if test "$pipe_works" = yes; then
7021 lt_cv_sys_global_symbol_pipe=
7027 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7028 lt_cv_sys_global_symbol_to_cdecl=
7030 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7031 { echo "$as_me:$LINENO: result: failed" >&5
7032 echo "${ECHO_T}failed" >&6; }
7034 { echo "$as_me:$LINENO: result: ok" >&5
7035 echo "${ECHO_T}ok" >&6; }
7038 { echo "$as_me:$LINENO: checking for objdir" >&5
7039 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7040 if test "${lt_cv_objdir+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 rm -f .libs 2>/dev/null
7044 mkdir .libs 2>/dev/null
7045 if test -d .libs; then
7048 # MS-DOS does not allow filenames that begin with a dot.
7051 rmdir .libs 2>/dev/null
7053 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7054 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7055 objdir=$lt_cv_objdir
7063 # AIX sometimes has problems with the GCC collect2 program. For some
7064 # reason, if we set the COLLECT_NAMES environment variable, the problems
7065 # vanish in a puff of smoke.
7066 if test "X${COLLECT_NAMES+set}" != Xset; then
7068 export COLLECT_NAMES
7073 # Sed substitution that helps us do robust quoting. It backslashifies
7074 # metacharacters that are still active within double-quoted strings.
7075 Xsed='sed -e 1s/^X//'
7076 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7078 # Same as above, but do not quote variable references.
7079 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7081 # Sed substitution to delay expansion of an escaped shell variable in a
7082 # double_quote_subst'ed string.
7083 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7085 # Sed substitution to avoid accidental globbing in evaled expressions
7086 no_glob_subst='s/\*/\\\*/g'
7092 default_ofile=libtool
7093 can_build_shared=yes
7095 # All known linkers require a `.a' archive for static linking (except MSVC,
7096 # which needs '.lib').
7098 ltmain="$ac_aux_dir/ltmain.sh"
7099 ofile="$default_ofile"
7100 with_gnu_ld="$lt_cv_prog_gnu_ld"
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$AR"; then
7111 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}ar"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 if test -n "$AR"; then
7132 { echo "$as_me:$LINENO: result: $AR" >&5
7133 echo "${ECHO_T}$AR" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7141 if test -z "$ac_cv_prog_AR"; then
7143 # Extract the first word of "ar", so it can be a program name with args.
7144 set dummy ar; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 if test -n "$ac_ct_AR"; then
7151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_AR="ar"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7171 if test -n "$ac_ct_AR"; then
7172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7173 echo "${ECHO_T}$ac_ct_AR" >&6; }
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7179 if test "x$ac_ct_AR" = x; then
7182 case $cross_compiling:$ac_tool_warned in
7184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&5
7187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7188 whose name does not start with the host triplet. If you think this
7189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7190 ac_tool_warned=yes ;;
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test -n "$RANLIB"; then
7207 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 RANLIB=$ac_cv_prog_RANLIB
7227 if test -n "$RANLIB"; then
7228 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7229 echo "${ECHO_T}$RANLIB" >&6; }
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7237 if test -z "$ac_cv_prog_RANLIB"; then
7238 ac_ct_RANLIB=$RANLIB
7239 # Extract the first word of "ranlib", so it can be a program name with args.
7240 set dummy ranlib; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 if test -n "$ac_ct_RANLIB"; then
7247 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_ac_ct_RANLIB="ranlib"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7267 if test -n "$ac_ct_RANLIB"; then
7268 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7269 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7271 { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7275 if test "x$ac_ct_RANLIB" = x; then
7278 case $cross_compiling:$ac_tool_warned in
7280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet. If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&5
7283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7284 whose name does not start with the host triplet. If you think this
7285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7286 ac_tool_warned=yes ;;
7288 RANLIB=$ac_ct_RANLIB
7291 RANLIB="$ac_cv_prog_RANLIB"
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 if test -n "$STRIP"; then
7303 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 STRIP=$ac_cv_prog_STRIP
7323 if test -n "$STRIP"; then
7324 { echo "$as_me:$LINENO: result: $STRIP" >&5
7325 echo "${ECHO_T}$STRIP" >&6; }
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7333 if test -z "$ac_cv_prog_STRIP"; then
7335 # Extract the first word of "strip", so it can be a program name with args.
7336 set dummy strip; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 if test -n "$ac_ct_STRIP"; then
7343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_STRIP="strip"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7363 if test -n "$ac_ct_STRIP"; then
7364 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7371 if test "x$ac_ct_STRIP" = x; then
7374 case $cross_compiling:$ac_tool_warned in
7376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7377 whose name does not start with the host triplet. If you think this
7378 configuration is useful to you, please write to autoconf@gnu.org." >&5
7379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7380 whose name does not start with the host triplet. If you think this
7381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7382 ac_tool_warned=yes ;;
7387 STRIP="$ac_cv_prog_STRIP"
7392 old_CFLAGS="$CFLAGS"
7394 # Set sane defaults for various variables
7395 test -z "$AR" && AR=ar
7396 test -z "$AR_FLAGS" && AR_FLAGS=cru
7397 test -z "$AS" && AS=as
7398 test -z "$CC" && CC=cc
7399 test -z "$LTCC" && LTCC=$CC
7400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7401 test -z "$DLLTOOL" && DLLTOOL=dlltool
7402 test -z "$LD" && LD=ld
7403 test -z "$LN_S" && LN_S="ln -s"
7404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7405 test -z "$NM" && NM=nm
7406 test -z "$SED" && SED=sed
7407 test -z "$OBJDUMP" && OBJDUMP=objdump
7408 test -z "$RANLIB" && RANLIB=:
7409 test -z "$STRIP" && STRIP=:
7410 test -z "$ac_objext" && ac_objext=o
7412 # Determine commands to create old-style static archives.
7413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7414 old_postinstall_cmds='chmod 644 $oldlib'
7415 old_postuninstall_cmds=
7417 if test -n "$RANLIB"; then
7420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7426 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7429 for cc_temp in $compiler""; do
7431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7437 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7440 # Only perform the check for file, if the check method requires it
7441 case $deplibs_check_method in
7443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7444 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7445 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454 lt_save_MAGIC_CMD="$MAGIC_CMD"
7455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457 for ac_dir in $ac_dummy; do
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f $ac_dir/${ac_tool_prefix}file; then
7461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7462 if test -n "$file_magic_test_file"; then
7463 case $deplibs_check_method in
7465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468 $EGREP "$file_magic_regex" > /dev/null; then
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such. This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem. Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** bug-libtool@gnu.org
7490 MAGIC_CMD="$lt_save_MAGIC_CMD"
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7498 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7504 if test -z "$lt_cv_path_MAGIC_CMD"; then
7505 if test -n "$ac_tool_prefix"; then
7506 { echo "$as_me:$LINENO: checking for file" >&5
7507 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7516 lt_save_MAGIC_CMD="$MAGIC_CMD"
7517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7519 for ac_dir in $ac_dummy; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f $ac_dir/file; then
7523 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7524 if test -n "$file_magic_test_file"; then
7525 case $deplibs_check_method in
7527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7530 $EGREP "$file_magic_regex" > /dev/null; then
7535 *** Warning: the command libtool uses to detect shared libraries,
7536 *** $file_magic_cmd, produces output that libtool cannot recognize.
7537 *** The result is that libtool may fail to recognize shared libraries
7538 *** as such. This will affect the creation of libtool libraries that
7539 *** depend on shared libraries, but programs linked with such libtool
7540 *** libraries will work regardless of this problem. Nevertheless, you
7541 *** may want to report the problem to your system manager and/or to
7542 *** bug-libtool@gnu.org
7552 MAGIC_CMD="$lt_save_MAGIC_CMD"
7557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7558 if test -n "$MAGIC_CMD"; then
7559 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7560 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7578 # Check whether --enable-libtool-lock was given.
7579 if test "${enable_libtool_lock+set}" = set; then
7580 enableval=$enable_libtool_lock;
7583 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7586 # Check whether --with-pic was given.
7587 if test "${with_pic+set}" = set; then
7588 withval=$with_pic; pic_mode="$withval"
7593 test -z "$pic_mode" && pic_mode=default
7595 # Use C for the default configuration in the libtool script
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605 # Source file extension for C test sources.
7608 # Object file extension for compiled C test sources.
7612 # Code to be used in simple compile tests
7613 lt_simple_compile_test_code="int some_variable = 0;"
7615 # Code to be used in simple link tests
7616 lt_simple_link_test_code='int main(){return(0);}'
7619 # If no C compiler was specified, use CC.
7622 # If no C compiler flags were specified, use CFLAGS.
7623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7625 # Allow CC to be a program name with arguments.
7629 # save warnings/boilerplate of simple test code
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633 _lt_compiler_boilerplate=`cat conftest.err`
7636 ac_outfile=conftest.$ac_objext
7637 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7639 _lt_linker_boilerplate=`cat conftest.err`
7644 ## There is no encapsulation within the following macros, do not change
7645 ## the running order or otherwise move them around unless you know exactly
7646 ## what you are doing...
7648 lt_prog_compiler_no_builtin_flag=
7650 if test "$GCC" = yes; then
7651 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7654 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7656 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 lt_cv_prog_compiler_rtti_exceptions=no
7660 ac_outfile=conftest.$ac_objext
7661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662 lt_compiler_flag="-fno-rtti -fno-exceptions"
7663 # Insert the option either (1) after the last *FLAGS variable, or
7664 # (2) before a word containing "conftest.", or (3) at the end.
7665 # Note that $ac_compile itself does not contain backslashes and begins
7666 # with a dollar sign (not a hyphen), so the echo should work correctly.
7667 # The option is referenced via a variable to avoid confusing sed.
7668 lt_compile=`echo "$ac_compile" | $SED \
7669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671 -e 's:$: $lt_compiler_flag:'`
7672 (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673 (eval "$lt_compile" 2>conftest.err)
7675 cat conftest.err >&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 if (exit $ac_status) && test -s "$ac_outfile"; then
7678 # The compiler can only warn and ignore the option if not recognized
7679 # So say no if there are warnings other than the usual output.
7680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683 lt_cv_prog_compiler_rtti_exceptions=yes
7689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7700 lt_prog_compiler_wl=
7701 lt_prog_compiler_pic=
7702 lt_prog_compiler_static=
7704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7707 if test "$GCC" = yes; then
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_static='-static'
7713 # All AIX code is PIC.
7714 if test "$host_cpu" = ia64; then
7715 # AIX 5 now supports IA64 processor
7716 lt_prog_compiler_static='-Bstatic'
7721 # FIXME: we need at least 68020 code to build shared libraries, but
7722 # adding the `-m68020' flag to GCC prevents building anything better,
7724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728 # PIC is the default for these OSes.
7731 mingw* | cygwin* | pw32* | os2*)
7732 # This hack is so that the source file can tell whether it is being
7733 # built for inclusion in a dll (and should export symbols for example).
7734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7735 # (--disable-auto-import) libraries
7736 lt_prog_compiler_pic='-DDLL_EXPORT'
7739 darwin* | rhapsody*)
7740 # PIC is the default on this platform
7741 # Common symbols not allowed in MH_DYLIB files
7742 lt_prog_compiler_pic='-fno-common'
7746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7747 # Instead, we relocate shared libraries at runtime.
7751 # Just because we use GCC doesn't mean we suddenly get shared libraries
7752 # on systems that don't support them.
7753 lt_prog_compiler_can_build_shared=no
7758 if test -d /usr/nec; then
7759 lt_prog_compiler_pic=-Kconform_pic
7764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7771 lt_prog_compiler_pic='-fPIC'
7777 lt_prog_compiler_pic='-fPIC'
7781 # PORTME Check for flag to pass linker flags through the system compiler.
7784 lt_prog_compiler_wl='-Wl,'
7785 if test "$host_cpu" = ia64; then
7786 # AIX 5 now supports IA64 processor
7787 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7793 # PIC is the default on this platform
7794 # Common symbols not allowed in MH_DYLIB files
7795 case $cc_basename in
7797 lt_prog_compiler_pic='-qnocommon'
7798 lt_prog_compiler_wl='-Wl,'
7803 mingw* | cygwin* | pw32* | os2*)
7804 # This hack is so that the source file can tell whether it is being
7805 # built for inclusion in a dll (and should export symbols for example).
7806 lt_prog_compiler_pic='-DDLL_EXPORT'
7809 hpux9* | hpux10* | hpux11*)
7810 lt_prog_compiler_wl='-Wl,'
7811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7818 lt_prog_compiler_pic='+Z'
7821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7822 lt_prog_compiler_static='${wl}-a ${wl}archive'
7825 irix5* | irix6* | nonstopux*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # PIC (with -KPIC) is the default.
7828 lt_prog_compiler_static='-non_shared'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
7836 linux* | k*bsd*-gnu)
7837 case $cc_basename in
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-static'
7843 pgcc* | pgf77* | pgf90* | pgf95*)
7844 # Portland Group compilers (*not* the Pentium gcc compiler,
7845 # which looks to be a dead project)
7846 lt_prog_compiler_wl='-Wl,'
7847 lt_prog_compiler_pic='-fpic'
7848 lt_prog_compiler_static='-Bstatic'
7851 lt_prog_compiler_wl='-Wl,'
7852 # All Alpha code is PIC.
7853 lt_prog_compiler_static='-non_shared'
7856 case `$CC -V 2>&1 | sed 5q` in
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-Bstatic'
7861 lt_prog_compiler_wl='-Wl,'
7864 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7865 lt_prog_compiler_pic='-KPIC'
7866 lt_prog_compiler_static='-Bstatic'
7867 lt_prog_compiler_wl=''
7874 osf3* | osf4* | osf5*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # All OSF/1 code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7881 lt_prog_compiler_static='-non_shared'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-Bstatic'
7887 case $cc_basename in
7889 lt_prog_compiler_wl='-Qoption ld ';;
7891 lt_prog_compiler_wl='-Wl,';;
7896 lt_prog_compiler_wl='-Qoption ld '
7897 lt_prog_compiler_pic='-PIC'
7898 lt_prog_compiler_static='-Bstatic'
7901 sysv4 | sysv4.2uw2* | sysv4.3*)
7902 lt_prog_compiler_wl='-Wl,'
7903 lt_prog_compiler_pic='-KPIC'
7904 lt_prog_compiler_static='-Bstatic'
7908 if test -d /usr/nec ;then
7909 lt_prog_compiler_pic='-Kconform_pic'
7910 lt_prog_compiler_static='-Bstatic'
7914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-KPIC'
7917 lt_prog_compiler_static='-Bstatic'
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_can_build_shared=no
7926 lt_prog_compiler_pic='-pic'
7927 lt_prog_compiler_static='-Bstatic'
7931 lt_prog_compiler_can_build_shared=no
7936 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7937 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7940 # Check to make sure the PIC flag actually works.
7942 if test -n "$lt_prog_compiler_pic"; then
7944 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7945 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7946 if test "${lt_prog_compiler_pic_works+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 lt_prog_compiler_pic_works=no
7950 ac_outfile=conftest.$ac_objext
7951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7952 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7953 # Insert the option either (1) after the last *FLAGS variable, or
7954 # (2) before a word containing "conftest.", or (3) at the end.
7955 # Note that $ac_compile itself does not contain backslashes and begins
7956 # with a dollar sign (not a hyphen), so the echo should work correctly.
7957 # The option is referenced via a variable to avoid confusing sed.
7958 lt_compile=`echo "$ac_compile" | $SED \
7959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7961 -e 's:$: $lt_compiler_flag:'`
7962 (eval echo "\"\$as_me:7962: $lt_compile\"" >&5)
7963 (eval "$lt_compile" 2>conftest.err)
7965 cat conftest.err >&5
7966 echo "$as_me:7966: \$? = $ac_status" >&5
7967 if (exit $ac_status) && test -s "$ac_outfile"; then
7968 # The compiler can only warn and ignore the option if not recognized
7969 # So say no if there are warnings other than the usual output.
7970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7973 lt_prog_compiler_pic_works=yes
7979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7980 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7982 if test x"$lt_prog_compiler_pic_works" = xyes; then
7983 case $lt_prog_compiler_pic in
7985 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7988 lt_prog_compiler_pic=
7989 lt_prog_compiler_can_build_shared=no
7994 # For platforms which do not support PIC, -DPIC is meaningless:
7996 lt_prog_compiler_pic=
7999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8004 # Check to make sure the static flag actually works.
8006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8007 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8008 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8009 if test "${lt_prog_compiler_static_works+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 lt_prog_compiler_static_works=no
8013 save_LDFLAGS="$LDFLAGS"
8014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8017 # The linker can only warn and ignore the option if not recognized
8018 # So say no if there are warnings
8019 if test -s conftest.err; then
8020 # Append any errors to the config.log.
8021 cat conftest.err 1>&5
8022 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8024 if diff conftest.exp conftest.er2 >/dev/null; then
8025 lt_prog_compiler_static_works=yes
8028 lt_prog_compiler_static_works=yes
8032 LDFLAGS="$save_LDFLAGS"
8035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8036 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8038 if test x"$lt_prog_compiler_static_works" = xyes; then
8041 lt_prog_compiler_static=
8045 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8047 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 lt_cv_prog_compiler_c_o=no
8051 $rm -r conftest 2>/dev/null
8055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057 lt_compiler_flag="-o out/conftest2.$ac_objext"
8058 # Insert the option either (1) after the last *FLAGS variable, or
8059 # (2) before a word containing "conftest.", or (3) at the end.
8060 # Note that $ac_compile itself does not contain backslashes and begins
8061 # with a dollar sign (not a hyphen), so the echo should work correctly.
8062 lt_compile=`echo "$ac_compile" | $SED \
8063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065 -e 's:$: $lt_compiler_flag:'`
8066 (eval echo "\"\$as_me:8066: $lt_compile\"" >&5)
8067 (eval "$lt_compile" 2>out/conftest.err)
8069 cat out/conftest.err >&5
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8073 # The compiler can only warn and ignore the option if not recognized
8074 # So say no if there are warnings
8075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8078 lt_cv_prog_compiler_c_o=yes
8083 # SGI C++ compiler will create directory out/ii_files/ for
8084 # template instantiation
8085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8086 $rm out/* && rmdir out
8092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8096 hard_links="nottested"
8097 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8098 # do not overwrite the value of need_locks provided by the user
8099 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105 ln conftest.a conftest.b 2>&5 || hard_links=no
8106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8107 { echo "$as_me:$LINENO: result: $hard_links" >&5
8108 echo "${ECHO_T}$hard_links" >&6; }
8109 if test "$hard_links" = no; then
8110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8118 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8122 allow_undefined_flag=
8123 enable_shared_with_static_runtimes=no
8125 archive_expsym_cmds=
8126 old_archive_From_new_cmds=
8127 old_archive_from_expsyms_cmds=
8128 export_dynamic_flag_spec=
8129 whole_archive_flag_spec=
8130 thread_safe_flag_spec=
8131 hardcode_libdir_flag_spec=
8132 hardcode_libdir_flag_spec_ld=
8133 hardcode_libdir_separator=
8136 hardcode_shlibpath_var=unsupported
8137 link_all_deplibs=unknown
8138 hardcode_automatic=no
8141 always_export_symbols=no
8142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8143 # include_expsyms should be a list of space-separated symbols to be *always*
8144 # included in the symbol list
8146 # exclude_expsyms can be an extended regexp of symbols to exclude
8147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8149 # as well as any symbol that contains `d'.
8150 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8152 # platforms (ab)use it in PIC code, but their linkers get confused if
8153 # the symbol is explicitly referenced. Since portable code cannot
8154 # rely on this symbol name, it's probably fine to never include it in
8155 # preloaded symbol tables.
8156 extract_expsyms_cmds=
8157 # Just being paranoid about ensuring that cc_basename is set.
8158 for cc_temp in $compiler""; do
8160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8166 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8169 cygwin* | mingw* | pw32*)
8170 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8171 # When not using gcc, we currently assume that we are using
8172 # Microsoft Visual C++.
8173 if test "$GCC" != yes; then
8178 # we just hope/assume this is gcc and not c89 (= MSVC++)
8187 if test "$with_gnu_ld" = yes; then
8188 # If archive_cmds runs LD, not CC, wlarc should be empty
8191 # Set some defaults for GNU ld with shared library support. These
8192 # are reset later if shared libraries are not supported. Putting them
8193 # here allows them to be overridden if necessary.
8194 runpath_var=LD_RUN_PATH
8195 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8196 export_dynamic_flag_spec='${wl}--export-dynamic'
8197 # ancient GNU ld didn't support --whole-archive et. al.
8198 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8199 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8201 whole_archive_flag_spec=
8203 supports_anon_versioning=no
8204 case `$LD -v 2>/dev/null` in
8205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8208 *\ 2.11.*) ;; # other 2.11 versions
8209 *) supports_anon_versioning=yes ;;
8212 # See if GNU ld supports shared libraries.
8214 aix3* | aix4* | aix5*)
8215 # On AIX/PPC, the GNU linker is very broken
8216 if test "$host_cpu" != ia64; then
8220 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8221 *** to be unable to reliably create shared libraries on AIX.
8222 *** Therefore, libtool is disabling shared libraries support. If you
8223 *** really care for shared libraries, you may want to modify your PATH
8224 *** so that a non-GNU linker is found, and then restart.
8231 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)'
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 hardcode_minus_L=yes
8235 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8236 # that the semantics of dynamic libraries on AmigaOS, at least up
8237 # to version 4, is to share data among multiple programs linked
8238 # with the same dynamic library. Since this doesn't match the
8239 # behavior of shared libraries on other platforms, we can't use
8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246 allow_undefined_flag=unsupported
8247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8248 # support --undefined. This deserves some investigation. FIXME
8249 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 cygwin* | mingw* | pw32*)
8256 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8257 # as there is no search path for DLLs.
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 allow_undefined_flag=unsupported
8260 always_export_symbols=no
8261 enable_shared_with_static_runtimes=yes
8262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8264 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8266 # If the export-symbols file already is a .def file (1st line
8267 # is EXPORTS), use it as is; otherwise, prepend...
8268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8269 cp $export_symbols $output_objdir/$soname.def;
8271 echo EXPORTS > $output_objdir/$soname.def;
8272 cat $export_symbols >> $output_objdir/$soname.def;
8274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8282 hardcode_shlibpath_var=no
8283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284 export_dynamic_flag_spec='${wl}-E'
8285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8286 # Instead, shared libraries are loaded at an image base (0x10000000 by
8287 # default) and relocated if they conflict, which is a slow very memory
8288 # consuming and fragmenting process. To avoid this, we pick a random,
8289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8292 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'
8295 gnu* | linux* | k*bsd*-gnu)
8296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8298 case $cc_basename,$host_cpu in
8299 pgcc*) # Portland Group C compiler
8300 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'
8301 tmp_addflag=' $pic_flag'
8303 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8304 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'
8305 tmp_addflag=' $pic_flag -Mnomain' ;;
8306 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8307 tmp_addflag=' -i_dynamic' ;;
8308 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8309 tmp_addflag=' -i_dynamic -nofor_main' ;;
8310 ifc* | ifort*) # Intel Fortran compiler
8311 tmp_addflag=' -nofor_main' ;;
8313 case `$CC -V 2>&1 | sed 5q` in
8314 *Sun\ C*) # Sun C 5.9
8315 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'
8316 tmp_sharedflag='-G' ;;
8317 *Sun\ F*) # Sun Fortran 8.3
8318 tmp_sharedflag='-G' ;;
8320 tmp_sharedflag='-shared' ;;
8322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8324 if test $supports_anon_versioning = yes; then
8325 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8327 $echo "local: *; };" >> $output_objdir/$libname.ver~
8328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8337 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8346 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8351 *** create shared libraries on Solaris systems. Therefore, libtool
8352 *** is disabling shared libraries support. We urge you to upgrade GNU
8353 *** binutils to release 2.9.1 or newer. Another option is to modify
8354 *** your PATH or compiler configuration so that the native linker is
8355 *** used, and then restart.
8358 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8367 case `$LD -v 2>&1` in
8368 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8372 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8373 *** reliably create shared libraries on SCO systems. Therefore, libtool
8374 *** is disabling shared libraries support. We urge you to upgrade GNU
8375 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8376 *** your PATH or compiler configuration so that the native linker is
8377 *** used, and then restart.
8382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8383 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8394 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_shlibpath_var=no
8401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 if test "$ld_shlibs" = no; then
8412 hardcode_libdir_flag_spec=
8413 export_dynamic_flag_spec=
8414 whole_archive_flag_spec=
8417 # PORTME fill in a description of your system's linker (not GNU ld)
8420 allow_undefined_flag=unsupported
8421 always_export_symbols=yes
8422 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'
8423 # Note: this linker hardcodes the directories in LIBPATH if there
8424 # are no directories specified by -L.
8425 hardcode_minus_L=yes
8426 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8427 # Neither direct hardcoding nor static linking is supported with a
8429 hardcode_direct=unsupported
8434 if test "$host_cpu" = ia64; then
8435 # On IA64, the linker does run time linking by default, so we don't
8436 # have to do anything special.
8437 aix_use_runtimelinking=no
8438 exp_sym_flag='-Bexport'
8441 # If we're using GNU nm, then we don't want the "-C" option.
8442 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8443 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8444 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'
8446 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'
8448 aix_use_runtimelinking=no
8450 # Test if we are trying to use run time linking or normal
8451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8452 # need to do runtime linking.
8453 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8454 for ld_flag in $LDFLAGS; do
8455 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8456 aix_use_runtimelinking=yes
8463 exp_sym_flag='-bexport'
8464 no_entry_flag='-bnoentry'
8467 # When large executables or shared objects are built, AIX ld can
8468 # have problems creating the table of contents. If linking a library
8469 # or program results in "error TOC overflow" add -mminimal-toc to
8470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8475 hardcode_libdir_separator=':'
8476 link_all_deplibs=yes
8478 if test "$GCC" = yes; then
8479 case $host_os in aix4.[012]|aix4.[012].*)
8480 # We only want to do this on AIX 4.2 and lower, the check
8481 # below for broken collect2 doesn't work under 4.3+
8482 collect2name=`${CC} -print-prog-name=collect2`
8483 if test -f "$collect2name" && \
8484 strings "$collect2name" | grep resolve_lib_name >/dev/null
8486 # We have reworked collect2
8489 # We have old collect2
8490 hardcode_direct=unsupported
8491 # It fails to find uninstalled libraries when the uninstalled
8492 # path is not listed in the libpath. Setting hardcode_minus_L
8493 # to unsupported forces relinking
8494 hardcode_minus_L=yes
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 hardcode_libdir_separator=
8500 shared_flag='-shared'
8501 if test "$aix_use_runtimelinking" = yes; then
8502 shared_flag="$shared_flag "'${wl}-G'
8506 if test "$host_cpu" = ia64; then
8507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8508 # chokes on -Wl,-G. The following line is correct:
8511 if test "$aix_use_runtimelinking" = yes; then
8512 shared_flag='${wl}-G'
8514 shared_flag='${wl}-bM:SRE'
8519 # It seems that -bexpall does not export symbols beginning with
8520 # underscore (_), so it is better to generate a list of symbols to export.
8521 always_export_symbols=yes
8522 if test "$aix_use_runtimelinking" = yes; then
8523 # Warning - without using the other runtime loading flags (-brtl),
8524 # -berok will link without error, but may produce a broken library.
8525 allow_undefined_flag='-berok'
8526 # Determine the default libpath from the value encoded in an empty executable.
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_link") 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && {
8556 test -z "$ac_c_werror_flag" ||
8557 test ! -s conftest.err
8558 } && test -s conftest$ac_exeext &&
8559 $as_test_x conftest$ac_exeext; then
8561 lt_aix_libpath_sed='
8562 /Import File Strings/,/^$/ {
8568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569 # Check for a 64-bit object if we didn't find anything.
8570 if test -z "$aix_libpath"; then
8571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581 conftest$ac_exeext conftest.$ac_ext
8582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8585 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"
8587 if test "$host_cpu" = ia64; then
8588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8589 allow_undefined_flag="-z nodefs"
8590 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"
8592 # Determine the default libpath from the value encoded in an empty executable.
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest$ac_exeext &&
8625 $as_test_x conftest$ac_exeext; then
8627 lt_aix_libpath_sed='
8628 /Import File Strings/,/^$/ {
8634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8635 # Check for a 64-bit object if we didn't find anything.
8636 if test -z "$aix_libpath"; then
8637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8647 conftest$ac_exeext conftest.$ac_ext
8648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8650 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651 # Warning - without using the other run time loading flags,
8652 # -berok will link without error, but may produce a broken library.
8653 no_undefined_flag=' ${wl}-bernotok'
8654 allow_undefined_flag=' ${wl}-berok'
8655 # Exported symbols can be pulled into shared objects from archives
8656 whole_archive_flag_spec='$convenience'
8657 archive_cmds_need_lc=yes
8658 # This is similar to how AIX traditionally builds its shared libraries.
8659 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'
8665 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)'
8666 hardcode_libdir_flag_spec='-L$libdir'
8667 hardcode_minus_L=yes
8668 # see comment about different semantics on the GNU ld section
8673 export_dynamic_flag_spec=-rdynamic
8676 cygwin* | mingw* | pw32*)
8677 # When not using gcc, we currently assume that we are using
8678 # Microsoft Visual C++.
8679 # hardcode_libdir_flag_spec is actually meaningless, as there is
8680 # no search path for DLLs.
8681 hardcode_libdir_flag_spec=' '
8682 allow_undefined_flag=unsupported
8683 # Tell ltmain to make .lib files, not .a files.
8685 # Tell ltmain to make .dll files, not .so files.
8687 # FIXME: Setting linknames here is a bad hack.
8688 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8689 # The linker will automatically build a .lib file if we build a DLL.
8690 old_archive_From_new_cmds='true'
8691 # FIXME: Should let the user specify the lib program.
8692 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8693 fix_srcfile_path='`cygpath -w "$srcfile"`'
8694 enable_shared_with_static_runtimes=yes
8697 darwin* | rhapsody*)
8699 rhapsody* | darwin1.[012])
8700 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8703 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8704 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8706 case ${MACOSX_DEPLOYMENT_TARGET} in
8708 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8711 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8717 archive_cmds_need_lc=no
8719 hardcode_automatic=yes
8720 hardcode_shlibpath_var=unsupported
8721 whole_archive_flag_spec=''
8722 link_all_deplibs=yes
8723 if test "$GCC" = yes ; then
8724 output_verbose_link_cmd='echo'
8725 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8726 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728 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}'
8729 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}'
8731 case $cc_basename in
8733 output_verbose_link_cmd='echo'
8734 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8735 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8737 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}'
8738 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}'
8748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749 hardcode_libdir_flag_spec='-L$libdir'
8750 hardcode_shlibpath_var=no
8757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8758 # support. Future versions do this automatically, but an explicit c++rt0.o
8759 # does not break anything, and helps significantly (at the cost of a little
8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8763 hardcode_libdir_flag_spec='-R$libdir'
8765 hardcode_shlibpath_var=no
8768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_minus_L=yes
8773 hardcode_shlibpath_var=no
8776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8777 freebsd* | dragonfly*)
8778 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8779 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_shlibpath_var=no
8785 if test "$GCC" = yes; then
8786 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'
8788 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'
8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791 hardcode_libdir_separator=:
8794 # hardcode_minus_L: Not really in the search PATH,
8795 # but as the default location of the library.
8796 hardcode_minus_L=yes
8797 export_dynamic_flag_spec='${wl}-E'
8801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8806 if test "$with_gnu_ld" = no; then
8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8808 hardcode_libdir_separator=:
8811 export_dynamic_flag_spec='${wl}-E'
8813 # hardcode_minus_L: Not really in the search PATH,
8814 # but as the default location of the library.
8815 hardcode_minus_L=yes
8820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8845 if test "$with_gnu_ld" = no; then
8846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8847 hardcode_libdir_separator=:
8851 hardcode_libdir_flag_spec_ld='+b $libdir'
8853 hardcode_shlibpath_var=no
8857 export_dynamic_flag_spec='${wl}-E'
8859 # hardcode_minus_L: Not really in the search PATH,
8860 # but as the default location of the library.
8861 hardcode_minus_L=yes
8867 irix5* | irix6* | nonstopux*)
8868 if test "$GCC" = yes; then
8869 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'
8871 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'
8872 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875 hardcode_libdir_separator=:
8876 link_all_deplibs=yes
8880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8883 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8885 hardcode_libdir_flag_spec='-R$libdir'
8887 hardcode_shlibpath_var=no
8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894 hardcode_libdir_separator=:
8895 hardcode_shlibpath_var=no
8899 if test -f /usr/libexec/ld.so; then
8901 hardcode_shlibpath_var=no
8902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8904 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906 export_dynamic_flag_spec='${wl}-E'
8909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_libdir_flag_spec='-R$libdir'
8914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8925 hardcode_libdir_flag_spec='-L$libdir'
8926 hardcode_minus_L=yes
8927 allow_undefined_flag=unsupported
8928 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'
8929 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8933 if test "$GCC" = yes; then
8934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8935 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'
8937 allow_undefined_flag=' -expect_unresolved \*'
8938 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'
8940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941 hardcode_libdir_separator=:
8944 osf4* | osf5*) # as osf3* with the addition of -msym flag
8945 if test "$GCC" = yes; then
8946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8947 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'
8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 allow_undefined_flag=' -expect_unresolved \*'
8951 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'
8952 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8953 $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'
8955 # Both c and cxx compiler support -rpath directly
8956 hardcode_libdir_flag_spec='-rpath $libdir'
8958 hardcode_libdir_separator=:
8962 no_undefined_flag=' -z text'
8963 if test "$GCC" = yes; then
8965 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8967 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8974 hardcode_libdir_flag_spec='-R$libdir'
8975 hardcode_shlibpath_var=no
8977 solaris2.[0-5] | solaris2.[0-5].*) ;;
8979 # The compiler driver will combine and reorder linker options,
8980 # but understands `-z linker_flag'. GCC discards it without `$wl',
8981 # but is careful enough not to reorder.
8982 # Supported since Solaris 2.6 (maybe 2.5.1?)
8983 if test "$GCC" = yes; then
8984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8990 link_all_deplibs=yes
8994 if test "x$host_vendor" = xsequent; then
8995 # Use $CC to link under sequent, because it throws in some extra .o
8996 # files that make .init and .fini sections work.
8997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_minus_L=yes
9004 hardcode_shlibpath_var=no
9008 case $host_vendor in
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=yes # is this really true???
9014 ## LD is ld it makes a PLAMLIB
9015 ## CC just makes a GrossModule.
9016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9017 reload_cmds='$CC -r -o $output$reload_objs'
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9025 runpath_var='LD_RUN_PATH'
9026 hardcode_shlibpath_var=no
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_shlibpath_var=no
9032 export_dynamic_flag_spec='-Bexport'
9036 if test -d /usr/nec; then
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_shlibpath_var=no
9039 runpath_var=LD_RUN_PATH
9040 hardcode_runpath_var=yes
9045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9046 no_undefined_flag='${wl}-z,text'
9047 archive_cmds_need_lc=no
9048 hardcode_shlibpath_var=no
9049 runpath_var='LD_RUN_PATH'
9051 if test "$GCC" = yes; then
9052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 sysv5* | sco3.2v5* | sco5v6*)
9061 # Note: We can NOT use -z defs as we might desire, because we do not
9062 # link with -lc, and that would cause any symbols used from libc to
9063 # always be unresolved, which means just about no library would
9064 # ever link correctly. If we're not using GNU ld we use -z text
9065 # though, which does catch some bad symbols but isn't as heavy-handed
9067 no_undefined_flag='${wl}-z,text'
9068 allow_undefined_flag='${wl}-z,nodefs'
9069 archive_cmds_need_lc=no
9070 hardcode_shlibpath_var=no
9071 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9072 hardcode_libdir_separator=':'
9073 link_all_deplibs=yes
9074 export_dynamic_flag_spec='${wl}-Bexport'
9075 runpath_var='LD_RUN_PATH'
9077 if test "$GCC" = yes; then
9078 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_libdir_flag_spec='-L$libdir'
9089 hardcode_shlibpath_var=no
9098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9099 echo "${ECHO_T}$ld_shlibs" >&6; }
9100 test "$ld_shlibs" = no && can_build_shared=no
9103 # Do we need to explicitly link libc?
9105 case "x$archive_cmds_need_lc" in
9107 # Assume -lc should be added
9108 archive_cmds_need_lc=yes
9110 if test "$enable_shared" = yes && test "$GCC" = yes; then
9111 case $archive_cmds in
9113 # FIXME: we may have to deal with multi-command sequences.
9116 # Test whether the compiler implicitly links with -lc since on some
9117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9118 # to ld, don't add -lc before -lgcc.
9119 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9120 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } 2>conftest.err; then
9131 libobjs=conftest.$ac_objext
9133 wl=$lt_prog_compiler_wl
9134 pic_flag=$lt_prog_compiler_pic
9140 lt_save_allow_undefined_flag=$allow_undefined_flag
9141 allow_undefined_flag=
9142 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9143 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }
9148 archive_cmds_need_lc=no
9150 archive_cmds_need_lc=yes
9152 allow_undefined_flag=$lt_save_allow_undefined_flag
9154 cat conftest.err 1>&5
9157 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9158 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9165 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9168 libname_spec='lib$name'
9176 shlibpath_overrides_runpath=unknown
9178 dynamic_linker="$host_os ld.so"
9179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9181 if test "$GCC" = yes; then
9183 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9184 *) lt_awk_arg="/^libraries:/" ;;
9186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9187 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9188 # if the path contains ";" then we assume it to be the separator
9189 # otherwise default to the standard path separator (i.e. ":") - it is
9190 # assumed that no part of a normal pathname contains ";" but that should
9191 # okay in the real world where ";" in dirpaths is itself problematic.
9192 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9194 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9196 # Ok, now we have the path, separated by spaces, we can step through it
9197 # and add multilib dir if necessary.
9198 lt_tmp_lt_search_path_spec=
9199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9200 for lt_sys_path in $lt_search_path_spec; do
9201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9204 test -d "$lt_sys_path" && \
9205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9208 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9209 BEGIN {RS=" "; FS="/|\n";} {
9212 for (lt_i = NF; lt_i > 0; lt_i--) {
9213 if ($lt_i != "" && $lt_i != ".") {
9214 if ($lt_i == "..") {
9217 if (lt_count == 0) {
9218 lt_foo="/" $lt_i lt_foo;
9225 if (lt_foo != "") { lt_freq[lt_foo]++; }
9226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9228 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9233 hardcode_into_libs=no
9235 # when you set need_version to no, make sure it does not cause -set_version
9236 # flags to be left without arguments
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9243 shlibpath_var=LIBPATH
9245 # AIX 3 has no versioning support, so we append a major version to the name.
9246 soname_spec='${libname}${release}${shared_ext}$major'
9253 hardcode_into_libs=yes
9254 if test "$host_cpu" = ia64; then
9255 # AIX 5 supports IA64
9256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9257 shlibpath_var=LD_LIBRARY_PATH
9259 # With GCC up to 2.95.x, collect2 would create an import file
9260 # for dependence libraries. The import file would start with
9261 # the line `#! .'. This would cause the generated library to
9262 # depend on `.', always an invalid library. This was fixed in
9263 # development snapshots of GCC prior to 3.0.
9265 aix4 | aix4.[01] | aix4.[01].*)
9266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9276 # soname into executable. Probably we can add versioning support to
9277 # collect2, so additional links can be useful in future.
9278 if test "$aix_use_runtimelinking" = yes; then
9279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9280 # instead of lib<name>.a to let people know that these are not
9281 # typical AIX shared libraries.
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 # We preserve .a as extension for shared libraries through AIX4.2
9285 # and later when we are not doing run time linking.
9286 library_names_spec='${libname}${release}.a $libname.a'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LIBPATH
9294 library_names_spec='$libname.ixlibrary $libname.a'
9295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9296 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'
9300 library_names_spec='${libname}${shared_ext}'
9301 dynamic_linker="$host_os ld.so"
9302 shlibpath_var=LIBRARY_PATH
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9314 # the default ld.so.conf also contains /usr/contrib/lib and
9315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9316 # libtool to hard-code these into programs
9319 cygwin* | mingw* | pw32*)
9320 version_type=windows
9325 case $GCC,$host_os in
9326 yes,cygwin* | yes,mingw* | yes,pw32*)
9327 library_names_spec='$libname.dll.a'
9328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9329 postinstall_cmds='base_file=`basename \${file}`~
9330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9331 dldir=$destdir/`dirname \$dlpath`~
9332 test -d \$dldir || mkdir -p \$dldir~
9333 $install_prog $dir/$dlname \$dldir/$dlname~
9334 chmod a+x \$dldir/$dlname'
9335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9336 dlpath=$dir/\$dldll~
9338 shlibpath_overrides_runpath=yes
9342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9347 # MinGW DLLs use traditional 'lib' prefix
9348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9351 # It is most probably a Windows format PATH printed by
9352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9353 # path with ; separators, and with drive letters. We can handle the
9354 # drive letters (cygwin fileutils understands them), so leave them,
9355 # especially as we might pass files found there to a mingw objdump,
9356 # which wouldn't understand a cygwinified path. Ahh.
9357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9363 # pw32 DLLs use 'pw' prefix rather than 'lib'
9364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9373 dynamic_linker='Win32 ld.exe'
9374 # FIXME: first we should search . and the directory the executable is in
9378 darwin* | rhapsody*)
9379 dynamic_linker="$host_os dyld"
9383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9384 soname_spec='${libname}${release}${major}$shared_ext'
9385 shlibpath_overrides_runpath=yes
9386 shlibpath_var=DYLD_LIBRARY_PATH
9387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9389 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9406 freebsd* | dragonfly*)
9407 # DragonFly does not have aout. When/if they implement a new
9408 # versioning mechanism, adjust this.
9409 if test -x /usr/bin/objformat; then
9410 objformat=`/usr/bin/objformat`
9413 freebsd[123]*) objformat=aout ;;
9417 version_type=freebsd-$objformat
9418 case $version_type in
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9429 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9434 freebsd3.[01]* | freebsdelf3.[01]*)
9435 shlibpath_overrides_runpath=yes
9436 hardcode_into_libs=yes
9438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9440 shlibpath_overrides_runpath=no
9441 hardcode_into_libs=yes
9443 *) # from 4.6 on, and DragonFly
9444 shlibpath_overrides_runpath=yes
9445 hardcode_into_libs=yes
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 hardcode_into_libs=yes
9460 hpux9* | hpux10* | hpux11*)
9461 # Give a soname corresponding to the major version so that dld.sl refuses to
9462 # link against other versions.
9469 hardcode_into_libs=yes
9470 dynamic_linker="$host_os dld.so"
9471 shlibpath_var=LD_LIBRARY_PATH
9472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 if test "X$HPUX_IA64_MODE" = X32; then
9476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9484 hardcode_into_libs=yes
9485 dynamic_linker="$host_os dld.sl"
9486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495 dynamic_linker="$host_os dld.sl"
9496 shlibpath_var=SHLIB_PATH
9497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9503 postinstall_cmds='chmod 555 $lib'
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=no
9515 hardcode_into_libs=yes
9518 irix5* | irix6* | nonstopux*)
9520 nonstopux*) version_type=nonstopux ;;
9522 if test "$lt_cv_prog_gnu_ld" = yes; then
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9533 irix5* | nonstopux*)
9537 case $LD in # libtool.m4 will add one of these switches to LD
9538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9539 libsuff= shlibsuff= libmagic=32-bit;;
9540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9541 libsuff=32 shlibsuff=N32 libmagic=N32;;
9542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9544 *) libsuff= shlibsuff= libmagic=never-match;;
9548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9549 shlibpath_overrides_runpath=no
9550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9552 hardcode_into_libs=yes
9555 # No shared lib support for Linux oldld, aout, or coff.
9556 linux*oldld* | linux*aout* | linux*coff*)
9560 # This must be Linux ELF.
9561 linux* | k*bsd*-gnu)
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=no
9570 # This implies no fast_install, which is unacceptable.
9571 # Some rework will be needed to allow for fast_install
9572 # before this can be enabled.
9573 hardcode_into_libs=yes
9575 # Append ld.so.conf contents to the search path
9576 if test -f /etc/ld.so.conf; then
9577 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' ' '`
9578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9581 # We used to test for /lib/ld.so.1 and disable shared libraries on
9582 # powerpc, because MkLinux only supported shared libraries with the
9583 # GNU dynamic linker. Since this was broken with cross compilers,
9584 # most powerpc-linux boxes support dynamic linking these days and
9585 # people can always --disable-shared, the test was removed, and we
9586 # assume the GNU/Linux dynamic linker is in use.
9587 dynamic_linker='GNU/Linux ld.so'
9594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9597 dynamic_linker='NetBSD (a.out) ld.so'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 dynamic_linker='NetBSD ld.elf_so'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9605 hardcode_into_libs=yes
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=yes
9627 sys_lib_dlsearch_path_spec="/usr/lib"
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635 openbsd2.[89] | openbsd2.[89].*)
9636 shlibpath_overrides_runpath=no
9639 shlibpath_overrides_runpath=yes
9643 shlibpath_overrides_runpath=yes
9648 libname_spec='$name'
9651 library_names_spec='$libname${shared_ext} $libname.a'
9652 dynamic_linker='OS/2 ld.exe'
9653 shlibpath_var=LIBPATH
9656 osf3* | osf4* | osf5*)
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9680 # ldd complains unless libraries are executable
9681 postinstall_cmds='chmod +x $lib'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=yes
9690 if test "$with_gnu_ld" = yes; then
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 case $host_vendor in
9703 shlibpath_overrides_runpath=no
9705 export_dynamic_flag_spec='${wl}-Blargedynsym'
9706 runpath_var=LD_RUN_PATH
9714 shlibpath_overrides_runpath=no
9715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9721 if test -d /usr/nec ;then
9723 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9724 soname_spec='$libname${shared_ext}.$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9730 version_type=freebsd-elf
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 hardcode_into_libs=yes
9737 if test "$with_gnu_ld" = yes; then
9738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9739 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9742 shlibpath_overrides_runpath=yes
9745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9749 sys_lib_dlsearch_path_spec='/usr/lib'
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 shlibpath_var=LD_LIBRARY_PATH
9763 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9764 echo "${ECHO_T}$dynamic_linker" >&6; }
9765 test "$dynamic_linker" = no && can_build_shared=no
9767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9768 if test "$GCC" = yes; then
9769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9772 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9775 if test -n "$hardcode_libdir_flag_spec" || \
9776 test -n "$runpath_var" || \
9777 test "X$hardcode_automatic" = "Xyes" ; then
9779 # We can hardcode non-existent directories.
9780 if test "$hardcode_direct" != no &&
9781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9782 # have to relink, otherwise we might link with an installed library
9783 # when we should be linking with a yet-to-be-installed one
9784 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9785 test "$hardcode_minus_L" != no; then
9786 # Linking always hardcodes the temporary library directory.
9787 hardcode_action=relink
9789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9790 hardcode_action=immediate
9793 # We cannot hardcode anything, or else we can only hardcode existing
9795 hardcode_action=unsupported
9797 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9798 echo "${ECHO_T}$hardcode_action" >&6; }
9800 if test "$hardcode_action" = relink; then
9801 # Fast installation is not supported
9802 enable_fast_install=no
9803 elif test "$shlibpath_overrides_runpath" = yes ||
9804 test "$enable_shared" = no; then
9805 # Fast installation is not necessary
9806 enable_fast_install=needless
9811 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9813 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9816 { echo "$as_me:$LINENO: result: yes" >&5
9817 echo "${ECHO_T}yes" >&6; }
9819 # FIXME - insert some real tests, host_os isn't really good enough
9822 if test -n "$STRIP" ; then
9823 striplib="$STRIP -x"
9824 old_striplib="$STRIP -S"
9825 { echo "$as_me:$LINENO: result: yes" >&5
9826 echo "${ECHO_T}yes" >&6; }
9828 { echo "$as_me:$LINENO: result: no" >&5
9829 echo "${ECHO_T}no" >&6; }
9833 { echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6; }
9839 if test "x$enable_dlopen" != xyes; then
9840 enable_dlopen=unknown
9841 enable_dlopen_self=unknown
9842 enable_dlopen_self_static=unknown
9849 lt_cv_dlopen="load_add_on"
9851 lt_cv_dlopen_self=yes
9855 lt_cv_dlopen="LoadLibrary"
9860 lt_cv_dlopen="dlopen"
9865 # if libdl is installed we need to link against it
9866 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 ac_check_lib_save_LIBS=$LIBS
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 /* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_lib_dl_dlopen=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_lib_dl_dlopen=no
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9927 if test $ac_cv_lib_dl_dlopen = yes; then
9928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9933 lt_cv_dlopen_self=yes
9940 { echo "$as_me:$LINENO: checking for shl_load" >&5
9941 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9942 if test "${ac_cv_func_shl_load+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9953 #define shl_load innocuous_shl_load
9955 /* System header to define __stub macros and hopefully few prototypes,
9956 which can conflict with char shl_load (); below.
9957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9958 <limits.h> exists even on freestanding compilers. */
9961 # include <limits.h>
9963 # include <assert.h>
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9975 /* The GNU C library defines this for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978 #if defined __stub_shl_load || defined __stub___shl_load
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (ac_try="$ac_link"
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_link") 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest$ac_exeext &&
10007 $as_test_x conftest$ac_exeext; then
10008 ac_cv_func_shl_load=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_func_shl_load=no
10016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017 conftest$ac_exeext conftest.$ac_ext
10019 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10020 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10021 if test $ac_cv_func_shl_load = yes; then
10022 lt_cv_dlopen="shl_load"
10024 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10025 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10026 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 ac_check_lib_save_LIBS=$LIBS
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10048 return shl_load ();
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext &&
10070 $as_test_x conftest$ac_exeext; then
10071 ac_cv_lib_dld_shl_load=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_lib_dld_shl_load=no
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10085 if test $ac_cv_lib_dld_shl_load = yes; then
10086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10088 { echo "$as_me:$LINENO: checking for dlopen" >&5
10089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10090 if test "${ac_cv_func_dlopen+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 cat >conftest.$ac_ext <<_ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10101 #define dlopen innocuous_dlopen
10103 /* System header to define __stub macros and hopefully few prototypes,
10104 which can conflict with char dlopen (); below.
10105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10106 <limits.h> exists even on freestanding compilers. */
10109 # include <limits.h>
10111 # include <assert.h>
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10123 /* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126 #if defined __stub_dlopen || defined __stub___dlopen
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_link") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext &&
10155 $as_test_x conftest$ac_exeext; then
10156 ac_cv_func_dlopen=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_func_dlopen=no
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10169 if test $ac_cv_func_dlopen = yes; then
10170 lt_cv_dlopen="dlopen"
10172 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 ac_check_lib_save_LIBS=$LIBS
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest$ac_exeext &&
10218 $as_test_x conftest$ac_exeext; then
10219 ac_cv_lib_dl_dlopen=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_lib_dl_dlopen=no
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10233 if test $ac_cv_lib_dl_dlopen = yes; then
10234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10236 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10237 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lsvld $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10274 grep -v '^ *+' conftest.er1 >conftest.err
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 ac_cv_lib_svld_dlopen=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_lib_svld_dlopen=no
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10296 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10297 if test $ac_cv_lib_svld_dlopen = yes; then
10298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10300 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10301 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10302 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_check_lib_save_LIBS=$LIBS
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10314 /* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10324 return dld_link ();
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
10347 ac_cv_lib_dld_dld_link=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_lib_dld_dld_link=no
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10359 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10360 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10361 if test $ac_cv_lib_dld_dld_link = yes; then
10362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10383 if test "x$lt_cv_dlopen" != xno; then
10389 case $lt_cv_dlopen in
10391 save_CPPFLAGS="$CPPFLAGS"
10392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10394 save_LDFLAGS="$LDFLAGS"
10395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10398 LIBS="$lt_cv_dlopen_libs $LIBS"
10400 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10401 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10402 if test "${lt_cv_dlopen_self+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 if test "$cross_compiling" = yes; then :
10406 lt_cv_dlopen_self=cross
10408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10409 lt_status=$lt_dlunknown
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10411 "configure"
10412 #include "confdefs.h"
10421 # define LT_DLGLOBAL RTLD_GLOBAL
10424 # define LT_DLGLOBAL DL_GLOBAL
10426 # define LT_DLGLOBAL 0
10430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10431 find out it does not work in some platform. */
10432 #ifndef LT_DLLAZY_OR_NOW
10434 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10437 # define LT_DLLAZY_OR_NOW DL_LAZY
10440 # define LT_DLLAZY_OR_NOW RTLD_NOW
10443 # define LT_DLLAZY_OR_NOW DL_NOW
10445 # define LT_DLLAZY_OR_NOW 0
10453 extern "C" void exit (int);
10456 void fnord() { int i=42;}
10459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460 int status = $lt_dlunknown;
10464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466 /* dlclose (self); */
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479 (./conftest; exit; ) >&5 2>/dev/null
10481 case x$lt_status in
10482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10487 # compilation failed
10488 lt_cv_dlopen_self=no
10495 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10496 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10498 if test "x$lt_cv_dlopen_self" = xyes; then
10499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10500 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10501 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10502 if test "${lt_cv_dlopen_self_static+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 if test "$cross_compiling" = yes; then :
10506 lt_cv_dlopen_self_static=cross
10508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10509 lt_status=$lt_dlunknown
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10511 "configure"
10512 #include "confdefs.h"
10521 # define LT_DLGLOBAL RTLD_GLOBAL
10524 # define LT_DLGLOBAL DL_GLOBAL
10526 # define LT_DLGLOBAL 0
10530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10531 find out it does not work in some platform. */
10532 #ifndef LT_DLLAZY_OR_NOW
10534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10537 # define LT_DLLAZY_OR_NOW DL_LAZY
10540 # define LT_DLLAZY_OR_NOW RTLD_NOW
10543 # define LT_DLLAZY_OR_NOW DL_NOW
10545 # define LT_DLLAZY_OR_NOW 0
10553 extern "C" void exit (int);
10556 void fnord() { int i=42;}
10559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10560 int status = $lt_dlunknown;
10564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10566 /* dlclose (self); */
10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575 (eval $ac_link) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10579 (./conftest; exit; ) >&5 2>/dev/null
10581 case x$lt_status in
10582 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10583 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10584 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10587 # compilation failed
10588 lt_cv_dlopen_self_static=no
10595 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10596 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10599 CPPFLAGS="$save_CPPFLAGS"
10600 LDFLAGS="$save_LDFLAGS"
10605 case $lt_cv_dlopen_self in
10606 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10607 *) enable_dlopen_self=unknown ;;
10610 case $lt_cv_dlopen_self_static in
10611 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10612 *) enable_dlopen_self_static=unknown ;;
10617 # Report which library types will actually be built
10618 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10619 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10620 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10621 echo "${ECHO_T}$can_build_shared" >&6; }
10623 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10624 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10625 test "$can_build_shared" = "no" && enable_shared=no
10627 # On AIX, shared libraries and static libraries use the same namespace, and
10628 # are all built from PIC.
10631 test "$enable_shared" = yes && enable_static=no
10632 if test -n "$RANLIB"; then
10633 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10634 postinstall_cmds='$RANLIB $lib'
10639 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10640 test "$enable_shared" = yes && enable_static=no
10644 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10645 echo "${ECHO_T}$enable_shared" >&6; }
10647 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10648 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10649 # Make sure either enable_shared or enable_static is yes.
10650 test "$enable_shared" = yes || enable_static=yes
10651 { echo "$as_me:$LINENO: result: $enable_static" >&5
10652 echo "${ECHO_T}$enable_static" >&6; }
10654 # The else clause should only fire when bootstrapping the
10655 # libtool distribution, otherwise you forgot to ship ltmain.sh
10656 # with your package, and you will get complaints that there are
10657 # no rules to generate ltmain.sh.
10658 if test -f "$ltmain"; then
10659 # See if we are running on zsh, and set the options which allow our commands through
10660 # without removal of \ escapes.
10661 if test -n "${ZSH_VERSION+set}" ; then
10662 setopt NO_GLOB_SUBST
10664 # Now quote all the things that may contain metacharacters while being
10665 # careful not to overquote the AC_SUBSTed values. We take copies of the
10666 # variables and quote the copies for generation of the libtool script.
10667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10671 deplibs_check_method reload_flag reload_cmds need_locks \
10672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10673 lt_cv_sys_global_symbol_to_c_name_address \
10674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10675 old_postinstall_cmds old_postuninstall_cmds \
10679 lt_prog_compiler_wl \
10680 lt_prog_compiler_pic \
10681 lt_prog_compiler_static \
10682 lt_prog_compiler_no_builtin_flag \
10683 export_dynamic_flag_spec \
10684 thread_safe_flag_spec \
10685 whole_archive_flag_spec \
10686 enable_shared_with_static_runtimes \
10688 old_archive_from_new_cmds \
10693 compiler_lib_search_path \
10695 archive_expsym_cmds \
10697 postuninstall_cmds \
10698 old_archive_from_expsyms_cmds \
10699 allow_undefined_flag \
10700 no_undefined_flag \
10701 export_symbols_cmds \
10702 hardcode_libdir_flag_spec \
10703 hardcode_libdir_flag_spec_ld \
10704 hardcode_libdir_separator \
10705 hardcode_automatic \
10707 module_expsym_cmds \
10708 lt_cv_prog_compiler_c_o \
10711 include_expsyms; do
10714 old_archive_cmds | \
10715 old_archive_from_new_cmds | \
10717 archive_expsym_cmds | \
10719 module_expsym_cmds | \
10720 old_archive_from_expsyms_cmds | \
10721 export_symbols_cmds | \
10722 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10723 postinstall_cmds | postuninstall_cmds | \
10724 old_postinstall_cmds | old_postuninstall_cmds | \
10725 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10726 # Double-quote double-evaled strings.
10727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10736 *'\$0 --fallback-echo"')
10737 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10741 cfgfile="${ofile}T"
10742 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10744 { echo "$as_me:$LINENO: creating $ofile" >&5
10745 echo "$as_me: creating $ofile" >&6;}
10747 cat <<__EOF__ >> "$cfgfile"
10750 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10751 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10752 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10754 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10755 # Free Software Foundation, Inc.
10757 # This file is part of GNU Libtool:
10758 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10760 # This program is free software; you can redistribute it and/or modify
10761 # it under the terms of the GNU General Public License as published by
10762 # the Free Software Foundation; either version 2 of the License, or
10763 # (at your option) any later version.
10765 # This program is distributed in the hope that it will be useful, but
10766 # WITHOUT ANY WARRANTY; without even the implied warranty of
10767 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10768 # General Public License for more details.
10770 # You should have received a copy of the GNU General Public License
10771 # along with this program; if not, write to the Free Software
10772 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10774 # As a special exception to the GNU General Public License, if you
10775 # distribute this file as part of a program that contains a
10776 # configuration script generated by Autoconf, you may include it under
10777 # the same distribution terms that you use for the rest of that program.
10779 # A sed program that does not truncate output.
10782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10783 Xsed="$SED -e 1s/^X//"
10785 # The HP-UX ksh and POSIX shell print the target directory to stdout
10786 # if CDPATH is set.
10787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10789 # The names of the tagged configurations supported by this script.
10792 # ### BEGIN LIBTOOL CONFIG
10794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10796 # Shell to use when invoking shell scripts.
10799 # Whether or not to build shared libraries.
10800 build_libtool_libs=$enable_shared
10802 # Whether or not to build static libraries.
10803 build_old_libs=$enable_static
10805 # Whether or not to add -lc for building shared libraries.
10806 build_libtool_need_lc=$archive_cmds_need_lc
10808 # Whether or not to disallow shared libs when runtime libs are static
10809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10811 # Whether or not to optimize for fast installation.
10812 fast_install=$enable_fast_install
10815 host_alias=$host_alias
10819 # The build system.
10820 build_alias=$build_alias
10824 # An echo program that does not interpret backslashes.
10829 AR_FLAGS=$lt_AR_FLAGS
10834 # LTCC compiler flags.
10835 LTCFLAGS=$lt_LTCFLAGS
10837 # A language-specific compiler.
10840 # Is the compiler the GNU C compiler?
10846 # The linker used to build libraries.
10849 # Whether we need hard or soft links.
10852 # A BSD-compatible nm program.
10855 # A symbol stripping program
10858 # Used to examine libraries when file_magic_cmd begins "file"
10859 MAGIC_CMD=$MAGIC_CMD
10861 # Used on cygwin: DLL creation program.
10864 # Used on cygwin: object dumper.
10867 # Used on cygwin: assembler.
10870 # The name of the directory that contains temporary libtool files.
10873 # How to create reloadable object files.
10874 reload_flag=$lt_reload_flag
10875 reload_cmds=$lt_reload_cmds
10877 # How to pass a linker flag through the compiler.
10878 wl=$lt_lt_prog_compiler_wl
10880 # Object file suffix (normally "o").
10881 objext="$ac_objext"
10883 # Old archive suffix (normally "a").
10886 # Shared library suffix (normally ".so").
10887 shrext_cmds='$shrext_cmds'
10889 # Executable file suffix (normally "").
10892 # Additional compiler flags for building library objects.
10893 pic_flag=$lt_lt_prog_compiler_pic
10896 # What is the maximum length of a command?
10897 max_cmd_len=$lt_cv_sys_max_cmd_len
10899 # Does compiler simultaneously support -c and -o options?
10900 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10902 # Must we lock files when doing compilation?
10903 need_locks=$lt_need_locks
10905 # Do we need the lib prefix for modules?
10906 need_lib_prefix=$need_lib_prefix
10908 # Do we need a version for libraries?
10909 need_version=$need_version
10911 # Whether dlopen is supported.
10912 dlopen_support=$enable_dlopen
10914 # Whether dlopen of programs is supported.
10915 dlopen_self=$enable_dlopen_self
10917 # Whether dlopen of statically linked programs is supported.
10918 dlopen_self_static=$enable_dlopen_self_static
10920 # Compiler flag to prevent dynamic linking.
10921 link_static_flag=$lt_lt_prog_compiler_static
10923 # Compiler flag to turn off builtin functions.
10924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10926 # Compiler flag to allow reflexive dlopens.
10927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10929 # Compiler flag to generate shared objects directly from archives.
10930 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10932 # Compiler flag to generate thread-safe objects.
10933 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10935 # Library versioning type.
10936 version_type=$version_type
10938 # Format of library name prefix.
10939 libname_spec=$lt_libname_spec
10941 # List of archive names. First name is the real one, the rest are links.
10942 # The last name is the one that the linker finds with -lNAME.
10943 library_names_spec=$lt_library_names_spec
10945 # The coded name of the library, if different from the real name.
10946 soname_spec=$lt_soname_spec
10948 # Commands used to build and install an old-style archive.
10950 old_archive_cmds=$lt_old_archive_cmds
10951 old_postinstall_cmds=$lt_old_postinstall_cmds
10952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10954 # Create an old-style archive from a shared archive.
10955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10957 # Create a temporary old-style archive to link instead of a shared archive.
10958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10960 # Commands used to build and install a shared archive.
10961 archive_cmds=$lt_archive_cmds
10962 archive_expsym_cmds=$lt_archive_expsym_cmds
10963 postinstall_cmds=$lt_postinstall_cmds
10964 postuninstall_cmds=$lt_postuninstall_cmds
10966 # Commands used to build a loadable module (assumed same as above if empty)
10967 module_cmds=$lt_module_cmds
10968 module_expsym_cmds=$lt_module_expsym_cmds
10970 # Commands to strip libraries.
10971 old_striplib=$lt_old_striplib
10972 striplib=$lt_striplib
10974 # Dependencies to place before the objects being linked to create a
10976 predep_objects=$lt_predep_objects
10978 # Dependencies to place after the objects being linked to create a
10980 postdep_objects=$lt_postdep_objects
10982 # Dependencies to place before the objects being linked to create a
10984 predeps=$lt_predeps
10986 # Dependencies to place after the objects being linked to create a
10988 postdeps=$lt_postdeps
10990 # The library search path used internally by the compiler when linking
10991 # a shared library.
10992 compiler_lib_search_path=$lt_compiler_lib_search_path
10994 # Method to check whether dependent libraries are shared objects.
10995 deplibs_check_method=$lt_deplibs_check_method
10997 # Command to use when deplibs_check_method == file_magic.
10998 file_magic_cmd=$lt_file_magic_cmd
11000 # Flag that allows shared libraries with undefined symbols to be built.
11001 allow_undefined_flag=$lt_allow_undefined_flag
11003 # Flag that forces no undefined symbols.
11004 no_undefined_flag=$lt_no_undefined_flag
11006 # Commands used to finish a libtool library installation in a directory.
11007 finish_cmds=$lt_finish_cmds
11009 # Same as above, but a single script fragment to be evaled but not shown.
11010 finish_eval=$lt_finish_eval
11012 # Take the output of nm and produce a listing of raw symbols and C names.
11013 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11015 # Transform the output of nm in a proper C declaration
11016 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11018 # Transform the output of nm in a C name address pair
11019 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11021 # This is the shared library runtime path variable.
11022 runpath_var=$runpath_var
11024 # This is the shared library path variable.
11025 shlibpath_var=$shlibpath_var
11027 # Is shlibpath searched before the hard-coded library search path?
11028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11030 # How to hardcode a shared library path into an executable.
11031 hardcode_action=$hardcode_action
11033 # Whether we should hardcode library paths into libraries.
11034 hardcode_into_libs=$hardcode_into_libs
11036 # Flag to hardcode \$libdir into a binary during linking.
11037 # This must work even if \$libdir does not exist.
11038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11040 # If ld is used when linking, flag to hardcode \$libdir into
11041 # a binary during linking. This must work even if \$libdir does
11043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11045 # Whether we need a single -rpath flag with a separated argument.
11046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11048 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11049 # resulting binary.
11050 hardcode_direct=$hardcode_direct
11052 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11053 # resulting binary.
11054 hardcode_minus_L=$hardcode_minus_L
11056 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11057 # the resulting binary.
11058 hardcode_shlibpath_var=$hardcode_shlibpath_var
11060 # Set to yes if building a shared library automatically hardcodes DIR into the library
11061 # and all subsequent libraries and executables linked against it.
11062 hardcode_automatic=$hardcode_automatic
11064 # Variables whose values should be saved in libtool wrapper scripts and
11065 # restored at relink time.
11066 variables_saved_for_relink="$variables_saved_for_relink"
11068 # Whether libtool must link a program against all its dependency libraries.
11069 link_all_deplibs=$link_all_deplibs
11071 # Compile-time system search path for libraries
11072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11074 # Run-time system search path for libraries
11075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11077 # Fix the shell variable \$srcfile for the compiler.
11078 fix_srcfile_path=$lt_fix_srcfile_path
11080 # Set to yes if exported symbols are required.
11081 always_export_symbols=$always_export_symbols
11083 # The commands to list exported symbols.
11084 export_symbols_cmds=$lt_export_symbols_cmds
11086 # The commands to extract the exported symbol list from a shared archive.
11087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11089 # Symbols that should not be listed in the preloaded symbols.
11090 exclude_expsyms=$lt_exclude_expsyms
11092 # Symbols that must always be exported.
11093 include_expsyms=$lt_include_expsyms
11095 # ### END LIBTOOL CONFIG
11102 cat <<\EOF >> "$cfgfile"
11104 # AIX sometimes has problems with the GCC collect2 program. For some
11105 # reason, if we set the COLLECT_NAMES environment variable, the problems
11106 # vanish in a puff of smoke.
11107 if test "X${COLLECT_NAMES+set}" != Xset; then
11109 export COLLECT_NAMES
11115 # We use sed instead of cat because bash on DJGPP gets confused if
11116 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11117 # text mode, it properly converts lines to CR/LF. This bash problem
11118 # is reportedly fixed, but why not run on old versions too?
11119 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11121 mv -f "$cfgfile" "$ofile" || \
11122 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11126 # If there is no Makefile yet, we rely on a make rule to execute
11127 # `config.status --recheck' to rerun these tests and create the
11128 # libtool script then.
11129 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11130 if test -f "$ltmain_in"; then
11131 test -f Makefile && make "$ltmain"
11137 ac_cpp='$CPP $CPPFLAGS'
11138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11146 # This can be used to rebuild libtool when needed
11147 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11149 # Always use our own libtool.
11150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11152 # Prevent multiple expansion
11163 if test "$enable_shared" = "no"; then
11166 eval _shrext="$shrext_cmds"
11168 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11169 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11171 # Check whether --with-noexec was given.
11172 if test "${with_noexec+set}" = set; then
11173 withval=$with_noexec; case $with_noexec in
11174 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11180 with_noexec="$libexecdir/sudo_noexec$_shrext"
11183 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11184 echo "${ECHO_T}$with_noexec" >&6; }
11185 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11187 if test "$with_devel" = "yes" -a -n "$GCC"; then
11188 CFLAGS="${CFLAGS} -Wall"
11191 # Extract the first word of "uname", so it can be a program name with args.
11192 set dummy uname; ac_word=$2
11193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11195 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 if test -n "$UNAMEPROG"; then
11199 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_prog_UNAMEPROG="uname"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11219 if test -n "$UNAMEPROG"; then
11220 { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11221 echo "${ECHO_T}$UNAMEPROG" >&6; }
11223 { echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6; }
11228 # Extract the first word of "tr", so it can be a program name with args.
11229 set dummy tr; ac_word=$2
11230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11232 if test "${ac_cv_prog_TRPROG+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 if test -n "$TRPROG"; then
11236 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_prog_TRPROG="tr"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 TRPROG=$ac_cv_prog_TRPROG
11256 if test -n "$TRPROG"; then
11257 { echo "$as_me:$LINENO: result: $TRPROG" >&5
11258 echo "${ECHO_T}$TRPROG" >&6; }
11260 { echo "$as_me:$LINENO: result: no" >&5
11261 echo "${ECHO_T}no" >&6; }
11265 # Extract the first word of "nroff", so it can be a program name with args.
11266 set dummy nroff; ac_word=$2
11267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11269 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 if test -n "$NROFFPROG"; then
11273 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_prog_NROFFPROG="nroff"
11283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 NROFFPROG=$ac_cv_prog_NROFFPROG
11293 if test -n "$NROFFPROG"; then
11294 { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11295 echo "${ECHO_T}$NROFFPROG" >&6; }
11297 { echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6; }
11302 if test -z "$NROFFPROG"; then
11304 mansrcdir='$(srcdir)'
11307 if test -n "$sudo_cv_prev_host"; then
11308 if test "$sudo_cv_prev_host" != "$host"; then
11309 { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11310 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11311 { (exit 1); exit 1; }; }
11313 { echo "$as_me:$LINENO: checking previous host type" >&5
11314 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11315 if test "${sudo_cv_prev_host+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 sudo_cv_prev_host="$host"
11321 { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11322 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11325 # this will produce no output since there is no cached value
11326 if test "${sudo_cv_prev_host+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 sudo_cv_prev_host="$host"
11334 if test -n "$host_os"; then
11335 OS=`echo $host_os | sed 's/[0-9].*//'`
11336 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11337 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11346 # getcwd(3) opens a pipe to getpwd(1)!?!
11349 # system headers lack prototypes but gcc helps...
11350 if test -n "$GCC"; then
11351 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11354 shadow_funcs="getpwanam issecure"
11357 # To get the crypt(3) prototype (so we pass -Wall)
11358 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11359 # AFS support needs -lucb
11360 if test "$with_AFS" = "yes"; then
11361 AFS_LIBS="-lc -lucb"
11363 : ${mansectsu='1m'}
11364 : ${mansectform='4'}
11365 : ${with_rpath='yes'}
11366 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11369 # To get all prototypes (so we pass -Wall)
11370 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11371 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11372 if test X"$with_blibpath" != X"no"; then
11373 { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11374 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11375 O_LDFLAGS="$LDFLAGS"
11376 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (ac_try="$ac_link"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest$ac_exeext &&
11409 $as_test_x conftest$ac_exeext; then
11411 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11412 blibpath="$with_blibpath"
11413 elif test -n "$GCC"; then
11414 blibpath="/usr/lib:/lib:/usr/local/lib"
11416 blibpath="/usr/lib:/lib"
11418 { echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6; }
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 { echo "$as_me:$LINENO: result: no" >&5
11426 echo "${ECHO_T}no" >&6; }
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430 conftest$ac_exeext conftest.$ac_ext
11432 LDFLAGS="$O_LDFLAGS"
11434 # Use authenticate(3) as the default authentication method
11435 if test X"$with_aixauth" = X""; then
11437 for ac_func in authenticate
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11453 #define $ac_func innocuous_$ac_func
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11461 # include <limits.h>
11463 # include <assert.h>
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11485 return $ac_func ();
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && {
11504 test -z "$ac_c_werror_flag" ||
11505 test ! -s conftest.err
11506 } && test -s conftest$ac_exeext &&
11507 $as_test_x conftest$ac_exeext; then
11508 eval "$as_ac_var=yes"
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 eval "$as_ac_var=no"
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517 conftest$ac_exeext conftest.$ac_ext
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 AUTH_EXCL_DEF="AIX_AUTH"
11533 : ${mansectsu='1m'}
11534 : ${mansectform='4'}
11537 # AFS support needs -lBSD
11538 if test "$with_AFS" = "yes"; then
11539 AFS_LIBS="-lc -lBSD"
11541 : ${mansectsu='1m'}
11542 : ${mansectform='4'}
11546 cat >>confdefs.h <<\_ACEOF
11547 #define BROKEN_SYSLOG 1
11551 # Not sure if setuid binaries are safe in < 9.x
11552 if test -n "$GCC"; then
11553 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11555 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11559 cat >>confdefs.h <<\_ACEOF
11560 #define BROKEN_SYSLOG 1
11564 shadow_funcs="getspwuid"
11566 # DCE support (requires ANSI C compiler)
11567 if test "$with_DCE" = "yes"; then
11568 # order of libs in 9.X is important. -lc_r must be last
11569 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11570 LIBS="${LIBS} -ldce -lM -lc_r"
11571 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11575 shadow_funcs="getprpwnam iscomsec"
11576 shadow_libs="-lsec"
11579 shadow_funcs="getspnam iscomsec"
11580 shadow_libs="-lsec"
11581 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11586 # ignore envariables wrt dynamic lib path
11587 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11589 : ${CHECKSIA='true'}
11590 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11591 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11592 # Check whether --enable-sia was given.
11593 if test "${enable_sia+set}" = set; then
11594 enableval=$enable_sia; case "$enableval" in
11595 yes) { echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6; }
11599 no) { echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6; }
11603 *) { echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6; }
11605 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11606 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11616 shadow_funcs="getprpwnam dispcrypt"
11617 # OSF/1 4.x and higher need -ldb too
11618 if test $OSMAJOR -lt 4; then
11619 shadow_libs="-lsecurity -laud -lm"
11621 shadow_libs="-lsecurity -ldb -laud -lm"
11624 # use SIA by default, if we have it
11625 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11628 # Some versions of Digital Unix ship with a broken
11629 # copy of prot.h, which we need for shadow passwords.
11630 # XXX - make should remove this as part of distclean
11632 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11633 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11641 #include <sys/types.h>
11642 #include <sys/security.h>
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest.$ac_objext; then
11670 { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11677 echo "${ECHO_T}yes, fixing locally" >&6; }
11678 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 : ${mansectform='4'}
11687 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11688 if test -z "$NROFFPROG"; then
11689 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)'
11690 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11691 if test -d /usr/share/catman/local; then
11692 mandir="/usr/share/catman/local"
11694 mandir="/usr/catman/local"
11698 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11699 if test -d "/usr/share/man/local"; then
11700 mandir="/usr/share/man/local"
11702 mandir="/usr/man/local"
11706 # IRIX <= 4 needs -lsun
11707 if test "$OSMAJOR" -le 4; then
11708 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11709 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11710 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 ac_check_lib_save_LIBS=$LIBS
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11732 return getpwnam ();
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest$ac_exeext &&
11754 $as_test_x conftest$ac_exeext; then
11755 ac_cv_lib_sun_getpwnam=yes
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 ac_cv_lib_sun_getpwnam=no
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11767 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11768 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11769 if test $ac_cv_lib_sun_getpwnam = yes; then
11770 LIBS="${LIBS} -lsun"
11774 : ${mansectsu='1m'}
11775 : ${mansectform='4'}
11777 *-*-linux*|*-*-k*bsd*-gnu)
11778 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11779 # Some Linux versions need to link with -lshadow
11780 shadow_funcs="getspnam"
11781 shadow_libs_optional="-lshadow"
11782 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11785 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11786 if test -z "$GCC"; then
11787 CFLAGS="${CFLAGS} -D__STDC__"
11790 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11791 shadow_funcs="getprpwnam"
11792 shadow_libs="-lprot"
11796 shadow_funcs="getauthuid"
11797 shadow_libs="-lauth"
11800 LIBS="${LIBS} -lsun -lbsd"
11801 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11802 OSDEFS="${OSDEFS} -D_MIPS"
11803 : ${mansectsu='1m'}
11804 : ${mansectform='4'}
11807 OSDEFS="${OSDEFS} -D_ISC"
11809 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11810 LIBS="${LIBS} -lcrypt"
11812 shadow_funcs="getspnam"
11813 shadow_libs="-lsec"
11815 : ${mansectsu='1m'}
11816 : ${mansectform='4'}
11819 shadow_funcs="getprpwnam"
11820 shadow_libs="-lprot -lx"
11821 : ${mansectsu='1m'}
11822 : ${mansectform='4'}
11824 m88k-motorola-sysv*)
11825 # motorolla's cc (a variant of gcc) does -O but not -O2
11826 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11827 : ${mansectsu='1m'}
11828 : ${mansectform='4'}
11831 shadow_funcs="getspnam"
11832 shadow_libs="-lsec"
11833 : ${mansectsu='1m'}
11834 : ${mansectform='4'}
11835 : ${with_rpath='yes'}
11837 *-ncr-sysv4*|*-ncr-sysvr4*)
11838 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11839 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11840 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 ac_check_lib_save_LIBS=$LIBS
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11858 char strcasecmp ();
11862 return strcasecmp ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && {
11881 test -z "$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 } && test -s conftest$ac_exeext &&
11884 $as_test_x conftest$ac_exeext; then
11885 ac_cv_lib_c89_strcasecmp=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_cv_lib_c89_strcasecmp=no
11893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11894 conftest$ac_exeext conftest.$ac_ext
11895 LIBS=$ac_check_lib_save_LIBS
11897 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11898 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11899 if test $ac_cv_lib_c89_strcasecmp = yes; then
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_STRCASECMP 1
11903 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11906 : ${mansectsu='1m'}
11907 : ${mansectform='4'}
11908 : ${with_rpath='yes'}
11910 *-ccur-sysv4*|*-ccur-sysvr4*)
11911 LIBS="${LIBS} -lgen"
11912 SUDO_LIBS="${SUDO_LIBS} -lgen"
11913 : ${mansectsu='1m'}
11914 : ${mansectform='4'}
11915 : ${with_rpath='yes'}
11919 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11920 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11922 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
11923 echo "$as_me: using shlicc as CC" >&6;}
11924 ac_cv_prog_CC=shlicc
11925 CC="$ac_cv_prog_CC"
11929 # Check for newer BSD auth API (just check for >= 3.0?)
11930 if test -z "$with_bsdauth"; then
11932 for ac_func in auth_challenge
11934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11948 #define $ac_func innocuous_$ac_func
11950 /* System header to define __stub macros and hopefully few prototypes,
11951 which can conflict with char $ac_func (); below.
11952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11953 <limits.h> exists even on freestanding compilers. */
11956 # include <limits.h>
11958 # include <assert.h>
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11970 /* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973 #if defined __stub_$ac_func || defined __stub___$ac_func
11980 return $ac_func ();
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1 >conftest.err
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext &&
12002 $as_test_x conftest$ac_exeext; then
12003 eval "$as_ac_var=yes"
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 eval "$as_ac_var=no"
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12014 ac_res=`eval echo '${'$as_ac_var'}'`
12015 { echo "$as_me:$LINENO: result: $ac_res" >&5
12016 echo "${ECHO_T}$ac_res" >&6; }
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 AUTH_EXCL_DEF="BSD_AUTH"
12028 # FreeBSD has a real setreuid(2) starting with 2.1 and
12029 # backported to 2.0.5. We just take 2.1 and above...
12035 if test "$with_skey" = "yes"; then
12036 SUDO_LIBS="${SUDO_LIBS} -lmd"
12038 CHECKSHADOW="false"
12039 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12040 : ${with_logincap='maybe'}
12043 # OpenBSD has a real setreuid(2) starting with 3.3 but
12044 # we will use setreuid(2) instead.
12046 CHECKSHADOW="false"
12047 # OpenBSD >= 3.0 supports BSD auth
12048 if test -z "$with_bsdauth"; then
12053 AUTH_EXCL_DEF="BSD_AUTH"
12057 : ${with_logincap='maybe'}
12060 # NetBSD has a real setreuid(2) starting with 1.3.2
12062 0.9*|1.012*|1.3|1.3.1)
12066 CHECKSHADOW="false"
12067 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12068 : ${with_logincap='maybe'}
12071 if test "$with_skey" = "yes"; then
12072 SUDO_LIBS="${SUDO_LIBS} -lmd"
12074 CHECKSHADOW="false"
12075 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12076 : ${with_logincap='yes'}
12079 CHECKSHADOW="false"
12083 CHECKSHADOW="false"
12084 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12085 : ${with_logincap='yes'}
12088 # lockf() on is broken on the NeXT -- use flock instead
12089 ac_cv_func_lockf=no
12090 ac_cv_func_flock=yes
12093 : ${mansectsu='1m'}
12094 : ${mansectform='4'}
12095 : ${with_rpath='yes'}
12098 : ${mansectsu='1m'}
12099 : ${mansectform='4'}
12102 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12106 AUTH_REG=${AUTH_REG# }
12107 AUTH_EXCL=${AUTH_EXCL# }
12108 if test -n "$AUTH_EXCL"; then
12110 if test $# != 1; then
12111 { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12112 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12113 { (exit 1); exit 1; }; }
12115 if test -n "$AUTH_REG"; then
12116 { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12117 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12118 { (exit 1); exit 1; }; }
12121 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12122 { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12123 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12124 { (exit 1); exit 1; }; }
12128 : ${mansectform='5'}
12130 if test -n "$with_libpath"; then
12131 for i in ${with_libpath}; do
12133 if test X"$with_rpath" = X"yes"; then
12134 LDFLAGS="${LDFLAGS} -L$i -R$i"
12136 LDFLAGS="${LDFLAGS} -L$i"
12138 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12139 blibpath_add="${blibpath_add}:$i"
12144 if test -n "$with_libraries"; then
12145 for i in ${with_libraries}; do
12152 LIBS="${LIBS} ${i}"
12156 if test $ac_cv_c_compiler_gnu = yes; then
12157 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12158 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12159 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 ac_pattern="Autoconf.*'x'"
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12174 ac_cv_prog_gcc_traditional=yes
12176 ac_cv_prog_gcc_traditional=no
12181 if test $ac_cv_prog_gcc_traditional = no; then
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <termio.h>
12191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12192 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12193 ac_cv_prog_gcc_traditional=yes
12199 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12200 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12201 if test $ac_cv_prog_gcc_traditional = yes; then
12202 CC="$CC -traditional"
12206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12208 if test "${ac_cv_c_const+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12221 /* FIXME: Include the comments suggested by Paul. */
12222 #ifndef __cplusplus
12223 /* Ultrix mips cc rejects this. */
12224 typedef int charset[2];
12226 /* SunOS 4.1.1 cc rejects this. */
12227 char const *const *pcpcc;
12229 /* NEC SVR4.0.2 mips cc rejects this. */
12230 struct point {int x, y;};
12231 static struct point const zero = {0,0};
12232 /* AIX XL C 1.02.0.0 rejects this.
12233 It does not let you subtract one const X* pointer from another in
12234 an arm of an if-expression whose if-part is not a constant
12236 const char *g = "string";
12237 pcpcc = &g + (g ? g-g : 0);
12238 /* HPUX 7.0 cc rejects these. */
12240 ppc = (char**) pcpcc;
12241 pcpcc = (char const *const *) ppc;
12242 { /* SCO 3.2v4 cc rejects this. */
12244 char const *s = 0 ? (char *) 0 : (char const *) 0;
12249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12250 int x[] = {25, 17};
12251 const int *foo = &x[0];
12254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12255 typedef const int *iptr;
12259 { /* AIX XL C 1.02.0.0 rejects this saying
12260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12261 struct s { int j; const int *ap[3]; };
12262 struct s *b; b->j = 5;
12264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12265 const int foo = 10;
12266 if (!foo) return 0;
12268 return !cs[0] && !zero.x;
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest.$ac_objext; then
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12303 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12304 if test $ac_cv_c_const = no; then
12306 cat >>confdefs.h <<\_ACEOF
12312 { echo "$as_me:$LINENO: checking for working volatile" >&5
12313 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12314 if test "${ac_cv_c_volatile+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12329 int * volatile y = (int *) 0;
12335 rm -f conftest.$ac_objext
12336 if { (ac_try="$ac_compile"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_compile") 2>conftest.er1
12344 grep -v '^ *+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } && {
12349 test -z "$ac_c_werror_flag" ||
12350 test ! -s conftest.err
12351 } && test -s conftest.$ac_objext; then
12352 ac_cv_c_volatile=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_c_volatile=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12363 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12364 if test $ac_cv_c_volatile = no; then
12366 cat >>confdefs.h <<\_ACEOF
12372 for ac_prog in 'bison -y' byacc
12374 # Extract the first word of "$ac_prog", so it can be a program name with args.
12375 set dummy $ac_prog; ac_word=$2
12376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12378 if test "${ac_cv_prog_YACC+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 if test -n "$YACC"; then
12382 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12391 ac_cv_prog_YACC="$ac_prog"
12392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 YACC=$ac_cv_prog_YACC
12402 if test -n "$YACC"; then
12403 { echo "$as_me:$LINENO: result: $YACC" >&5
12404 echo "${ECHO_T}$YACC" >&6; }
12406 { echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6; }
12411 test -n "$YACC" && break
12413 test -n "$YACC" || YACC="yacc"
12415 { echo "$as_me:$LINENO: checking for mv" >&5
12416 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12417 if test -f "/usr/bin/mv"; then
12418 { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12419 echo "${ECHO_T}/usr/bin/mv" >&6; }
12420 cat >>confdefs.h <<\EOF
12421 #define _PATH_MV "/usr/bin/mv"
12424 elif test -f "/bin/mv"; then
12425 { echo "$as_me:$LINENO: result: /bin/mv" >&5
12426 echo "${ECHO_T}/bin/mv" >&6; }
12427 cat >>confdefs.h <<\EOF
12428 #define _PATH_MV "/bin/mv"
12431 elif test -f "/usr/ucb/mv"; then
12432 { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12433 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12434 cat >>confdefs.h <<\EOF
12435 #define _PATH_MV "/usr/ucb/mv"
12438 elif test -f "/usr/sbin/mv"; then
12439 { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12440 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12441 cat >>confdefs.h <<\EOF
12442 #define _PATH_MV "/usr/sbin/mv"
12446 { echo "$as_me:$LINENO: result: not found" >&5
12447 echo "${ECHO_T}not found" >&6; }
12450 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12451 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12452 if test -f "/bin/sh"; then
12453 { echo "$as_me:$LINENO: result: /bin/sh" >&5
12454 echo "${ECHO_T}/bin/sh" >&6; }
12455 cat >>confdefs.h <<\EOF
12456 #define _PATH_BSHELL "/bin/sh"
12459 elif test -f "/usr/bin/sh"; then
12460 { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12461 echo "${ECHO_T}/usr/bin/sh" >&6; }
12462 cat >>confdefs.h <<\EOF
12463 #define _PATH_BSHELL "/usr/bin/sh"
12466 elif test -f "/sbin/sh"; then
12467 { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12468 echo "${ECHO_T}/sbin/sh" >&6; }
12469 cat >>confdefs.h <<\EOF
12470 #define _PATH_BSHELL "/sbin/sh"
12473 elif test -f "/usr/sbin/sh"; then
12474 { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12475 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12476 cat >>confdefs.h <<\EOF
12477 #define _PATH_BSHELL "/usr/sbin/sh"
12480 elif test -f "/bin/ksh"; then
12481 { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12482 echo "${ECHO_T}/bin/ksh" >&6; }
12483 cat >>confdefs.h <<\EOF
12484 #define _PATH_BSHELL "/bin/ksh"
12487 elif test -f "/usr/bin/ksh"; then
12488 { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12489 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12490 cat >>confdefs.h <<\EOF
12491 #define _PATH_BSHELL "/usr/bin/ksh"
12494 elif test -f "/bin/bash"; then
12495 { echo "$as_me:$LINENO: result: /bin/bash" >&5
12496 echo "${ECHO_T}/bin/bash" >&6; }
12497 cat >>confdefs.h <<\EOF
12498 #define _PATH_BSHELL "/bin/bash"
12501 elif test -f "/usr/bin/bash"; then
12502 { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12503 echo "${ECHO_T}/usr/bin/bash" >&6; }
12504 cat >>confdefs.h <<\EOF
12505 #define _PATH_BSHELL "/usr/bin/bash"
12509 { echo "$as_me:$LINENO: result: not found" >&5
12510 echo "${ECHO_T}not found" >&6; }
12513 if test -z "$with_sendmail"; then
12514 { echo "$as_me:$LINENO: checking for sendmail" >&5
12515 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12516 if test -f "/usr/sbin/sendmail"; then
12517 { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12518 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12519 cat >>confdefs.h <<\EOF
12520 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12523 elif test -f "/usr/lib/sendmail"; then
12524 { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12525 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12526 cat >>confdefs.h <<\EOF
12527 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12530 elif test -f "/usr/etc/sendmail"; then
12531 { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12532 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12533 cat >>confdefs.h <<\EOF
12534 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12537 elif test -f "/usr/ucblib/sendmail"; then
12538 { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12539 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12540 cat >>confdefs.h <<\EOF
12541 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12544 elif test -f "/usr/local/lib/sendmail"; then
12545 { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12546 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12547 cat >>confdefs.h <<\EOF
12548 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12551 elif test -f "/usr/local/bin/sendmail"; then
12552 { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12553 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12554 cat >>confdefs.h <<\EOF
12555 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12559 { echo "$as_me:$LINENO: result: not found" >&5
12560 echo "${ECHO_T}not found" >&6; }
12564 if test -z "$with_editor"; then
12565 { echo "$as_me:$LINENO: checking for vi" >&5
12566 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12567 if test -f "/usr/bin/vi"; then
12568 { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12569 echo "${ECHO_T}/usr/bin/vi" >&6; }
12570 cat >>confdefs.h <<\EOF
12571 #define _PATH_VI "/usr/bin/vi"
12574 elif test -f "/usr/ucb/vi"; then
12575 { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12576 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12577 cat >>confdefs.h <<\EOF
12578 #define _PATH_VI "/usr/ucb/vi"
12581 elif test -f "/usr/bsd/vi"; then
12582 { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12583 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12584 cat >>confdefs.h <<\EOF
12585 #define _PATH_VI "/usr/bsd/vi"
12588 elif test -f "/bin/vi"; then
12589 { echo "$as_me:$LINENO: result: /bin/vi" >&5
12590 echo "${ECHO_T}/bin/vi" >&6; }
12591 cat >>confdefs.h <<\EOF
12592 #define _PATH_VI "/bin/vi"
12595 elif test -f "/usr/local/bin/vi"; then
12596 { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12597 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12598 cat >>confdefs.h <<\EOF
12599 #define _PATH_VI "/usr/local/bin/vi"
12603 { echo "$as_me:$LINENO: result: not found" >&5
12604 echo "${ECHO_T}not found" >&6; }
12608 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12609 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12610 if test "${ac_cv_header_stdc+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 #include <stdlib.h>
12620 #include <stdarg.h>
12621 #include <string.h>
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_compile") 2>conftest.er1
12641 grep -v '^ *+' conftest.er1 >conftest.err
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && {
12646 test -z "$ac_c_werror_flag" ||
12647 test ! -s conftest.err
12648 } && test -s conftest.$ac_objext; then
12649 ac_cv_header_stdc=yes
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ac_cv_header_stdc=no
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 if test $ac_cv_header_stdc = yes; then
12660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 #include <string.h>
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 $EGREP "memchr" >/dev/null 2>&1; then
12674 ac_cv_header_stdc=no
12680 if test $ac_cv_header_stdc = yes; then
12681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 #include <stdlib.h>
12691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12692 $EGREP "free" >/dev/null 2>&1; then
12695 ac_cv_header_stdc=no
12701 if test $ac_cv_header_stdc = yes; then
12702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12703 if test "$cross_compiling" = yes; then
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12713 #include <stdlib.h>
12714 #if ((' ' & 0x0FF) == 0x020)
12715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12718 # define ISLOWER(c) \
12719 (('a' <= (c) && (c) <= 'i') \
12720 || ('j' <= (c) && (c) <= 'r') \
12721 || ('s' <= (c) && (c) <= 'z'))
12722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12730 for (i = 0; i < 256; i++)
12731 if (XOR (islower (i), ISLOWER (i))
12732 || toupper (i) != TOUPPER (i))
12737 rm -f conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12759 echo "$as_me: program exited with status $ac_status" >&5
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ( exit $ac_status )
12764 ac_cv_header_stdc=no
12766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12773 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12774 if test $ac_cv_header_stdc = yes; then
12776 cat >>confdefs.h <<\_ACEOF
12777 #define STDC_HEADERS 1
12787 ac_header_dirent=no
12788 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12789 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12790 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12791 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <sys/types.h>
12813 rm -f conftest.$ac_objext
12814 if { (ac_try="$ac_compile"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_compile") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
12830 eval "$as_ac_Header=yes"
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 eval "$as_ac_Header=no"
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 ac_res=`eval echo '${'$as_ac_Header'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12848 ac_header_dirent=$ac_hdr; break
12852 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12853 if test $ac_header_dirent = dirent.h; then
12854 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12855 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12856 if test "${ac_cv_search_opendir+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 ac_func_search_save_LIBS=$LIBS
12860 cat >conftest.$ac_ext <<_ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12882 for ac_lib in '' dir; do
12883 if test -z "$ac_lib"; then
12884 ac_res="none required"
12887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest$ac_exeext &&
12906 $as_test_x conftest$ac_exeext; then
12907 ac_cv_search_opendir=$ac_res
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917 if test "${ac_cv_search_opendir+set}" = set; then
12921 if test "${ac_cv_search_opendir+set}" = set; then
12924 ac_cv_search_opendir=no
12926 rm conftest.$ac_ext
12927 LIBS=$ac_func_search_save_LIBS
12929 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12930 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12931 ac_res=$ac_cv_search_opendir
12932 if test "$ac_res" != no; then
12933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12940 if test "${ac_cv_search_opendir+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12966 for ac_lib in '' x; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>conftest.er1
12982 grep -v '^ *+' conftest.er1 >conftest.err
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && {
12987 test -z "$ac_c_werror_flag" ||
12988 test ! -s conftest.err
12989 } && test -s conftest$ac_exeext &&
12990 $as_test_x conftest$ac_exeext; then
12991 ac_cv_search_opendir=$ac_res
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13001 if test "${ac_cv_search_opendir+set}" = set; then
13005 if test "${ac_cv_search_opendir+set}" = set; then
13008 ac_cv_search_opendir=no
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13013 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13014 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13015 ac_res=$ac_cv_search_opendir
13016 if test "$ac_res" != no; then
13017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13024 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13025 if test "${ac_cv_header_time+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 #include <sys/types.h>
13035 #include <sys/time.h>
13041 if ((struct tm *) 0)
13047 rm -f conftest.$ac_objext
13048 if { (ac_try="$ac_compile"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_compile") 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest.$ac_objext; then
13064 ac_cv_header_time=yes
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 ac_cv_header_time=no
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13075 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13076 if test $ac_cv_header_time = yes; then
13078 cat >>confdefs.h <<\_ACEOF
13079 #define TIME_WITH_SYS_TIME 1
13091 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 ac_res=`eval echo '${'$as_ac_Header'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13104 # Is the header compilable?
13105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13114 #include <$ac_header>
13116 rm -f conftest.$ac_objext
13117 if { (ac_try="$ac_compile"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_compile") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && {
13130 test -z "$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 } && test -s conftest.$ac_objext; then
13133 ac_header_compiler=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_header_compiler=no
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13143 echo "${ECHO_T}$ac_header_compiler" >&6; }
13145 # Is the header present?
13146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <$ac_header>
13156 if { (ac_try="$ac_cpp conftest.$ac_ext"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null && {
13169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13170 test ! -s conftest.err
13172 ac_header_preproc=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_header_preproc=no
13180 rm -f conftest.err conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13182 echo "${ECHO_T}$ac_header_preproc" >&6; }
13184 # So? What about this header?
13185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13191 ac_header_preproc=yes
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 eval "$as_ac_Header=\$ac_header_preproc"
13216 ac_res=`eval echo '${'$as_ac_Header'}'`
13217 { echo "$as_me:$LINENO: result: $ac_res" >&5
13218 echo "${ECHO_T}$ac_res" >&6; }
13221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13231 for ac_header in err.h
13233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 ac_res=`eval echo '${'$as_ac_Header'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242 echo "${ECHO_T}$ac_res" >&6; }
13244 # Is the header compilable?
13245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 $ac_includes_default
13254 #include <$ac_header>
13256 rm -f conftest.$ac_objext
13257 if { (ac_try="$ac_compile"
13258 case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_compile") 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && {
13270 test -z "$ac_c_werror_flag" ||
13271 test ! -s conftest.err
13272 } && test -s conftest.$ac_objext; then
13273 ac_header_compiler=yes
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ac_header_compiler=no
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 echo "${ECHO_T}$ac_header_compiler" >&6; }
13285 # Is the header present?
13286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <$ac_header>
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null && {
13309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13312 ac_header_preproc=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_header_preproc=no
13320 rm -f conftest.err conftest.$ac_ext
13321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6; }
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13331 ac_header_preproc=yes
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 eval "$as_ac_Header=\$ac_header_preproc"
13356 ac_res=`eval echo '${'$as_ac_Header'}'`
13357 { echo "$as_me:$LINENO: result: $ac_res" >&5
13358 echo "${ECHO_T}$ac_res" >&6; }
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13367 case " $LIBOBJS " in
13368 *" err.$ac_objext "* ) ;;
13369 *) LIBOBJS="$LIBOBJS err.$ac_objext"
13377 if test "$OS" != "ultrix"; then
13378 { echo "$as_me:$LINENO: checking POSIX termios" >&5
13379 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13380 if test "${ac_cv_sys_posix_termios+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 #include <sys/types.h>
13390 #include <unistd.h>
13391 #include <termios.h>
13396 /* SunOS 4.0.3 has termios.h but not the library calls. */
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext &&
13419 $as_test_x conftest$ac_exeext; then
13420 ac_cv_sys_posix_termios=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_cv_sys_posix_termios=no
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429 conftest$ac_exeext conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13432 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13434 if test "$ac_cv_sys_posix_termios" = "yes"; then
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_TERMIOS_H 1
13441 for ac_header in termio.h
13443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 ac_res=`eval echo '${'$as_ac_Header'}'`
13451 { echo "$as_me:$LINENO: result: $ac_res" >&5
13452 echo "${ECHO_T}$ac_res" >&6; }
13454 # Is the header compilable?
13455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 #include <$ac_header>
13466 rm -f conftest.$ac_objext
13467 if { (ac_try="$ac_compile"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_compile") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
13483 ac_header_compiler=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_header_compiler=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <$ac_header>
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } >/dev/null && {
13519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13522 ac_header_preproc=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_header_preproc=no
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534 # So? What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc=yes
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 eval "$as_ac_Header=\$ac_header_preproc"
13566 ac_res=`eval echo '${'$as_ac_Header'}'`
13567 { echo "$as_me:$LINENO: result: $ac_res" >&5
13568 echo "${ECHO_T}$ac_res" >&6; }
13571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 if test ${with_logincap-'no'} != "no"; then
13584 for ac_header in login_cap.h
13586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 ac_res=`eval echo '${'$as_ac_Header'}'`
13594 { echo "$as_me:$LINENO: result: $ac_res" >&5
13595 echo "${ECHO_T}$ac_res" >&6; }
13597 # Is the header compilable?
13598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13607 #include <$ac_header>
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest.$ac_objext; then
13626 ac_header_compiler=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_header_compiler=no
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636 echo "${ECHO_T}$ac_header_compiler" >&6; }
13638 # Is the header present?
13639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include <$ac_header>
13649 if { (ac_try="$ac_cpp conftest.$ac_ext"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13657 grep -v '^ *+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null && {
13662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13663 test ! -s conftest.err
13665 ac_header_preproc=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_header_preproc=no
13673 rm -f conftest.err conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13675 echo "${ECHO_T}$ac_header_preproc" >&6; }
13677 # So? What about this header?
13678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13684 ac_header_preproc=yes
13687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 eval "$as_ac_Header=\$ac_header_preproc"
13709 ac_res=`eval echo '${'$as_ac_Header'}'`
13710 { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
13729 if test ${with_project-'no'} != "no"; then
13730 if test "${ac_cv_header_project_h+set}" = set; then
13731 { echo "$as_me:$LINENO: checking for project.h" >&5
13732 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13733 if test "${ac_cv_header_project_h+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13737 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13739 # Is the header compilable?
13740 { echo "$as_me:$LINENO: checking project.h usability" >&5
13741 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 #include <project.h>
13751 rm -f conftest.$ac_objext
13752 if { (ac_try="$ac_compile"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_compile") 2>conftest.er1
13760 grep -v '^ *+' conftest.er1 >conftest.err
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && {
13765 test -z "$ac_c_werror_flag" ||
13766 test ! -s conftest.err
13767 } && test -s conftest.$ac_objext; then
13768 ac_header_compiler=yes
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13773 ac_header_compiler=no
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13778 echo "${ECHO_T}$ac_header_compiler" >&6; }
13780 # Is the header present?
13781 { echo "$as_me:$LINENO: checking project.h presence" >&5
13782 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <project.h>
13791 if { (ac_try="$ac_cpp conftest.$ac_ext"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } >/dev/null && {
13804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13807 ac_header_preproc=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_header_preproc=no
13815 rm -f conftest.err conftest.$ac_ext
13816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13817 echo "${ECHO_T}$ac_header_preproc" >&6; }
13819 # So? What about this header?
13820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13822 { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13823 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13825 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13826 ac_header_preproc=yes
13829 { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13830 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
13832 echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13834 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
13836 echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13840 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13844 { echo "$as_me:$LINENO: checking for project.h" >&5
13845 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13846 if test "${ac_cv_header_project_h+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 ac_cv_header_project_h=$ac_header_preproc
13851 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13852 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13855 if test $ac_cv_header_project_h = yes; then
13856 cat >>confdefs.h <<\_ACEOF
13857 #define HAVE_PROJECT_H 1
13860 SUDO_LIBS="${SUDO_LIBS} -lproject"
13867 { echo "$as_me:$LINENO: checking for mode_t" >&5
13868 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13869 if test "${ac_cv_type_mode_t+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 $ac_includes_default
13879 typedef mode_t ac__type_new_;
13883 if ((ac__type_new_ *) 0)
13885 if (sizeof (ac__type_new_))
13891 rm -f conftest.$ac_objext
13892 if { (ac_try="$ac_compile"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_cv_type_mode_t=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_type_mode_t=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13919 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13920 if test $ac_cv_type_mode_t = yes; then
13924 cat >>confdefs.h <<_ACEOF
13930 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13931 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13932 if test "${ac_cv_type_uid_t+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <sys/types.h>
13944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13945 $EGREP "uid_t" >/dev/null 2>&1; then
13946 ac_cv_type_uid_t=yes
13948 ac_cv_type_uid_t=no
13953 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13954 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13955 if test $ac_cv_type_uid_t = no; then
13957 cat >>confdefs.h <<\_ACEOF
13962 cat >>confdefs.h <<\_ACEOF
13968 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13969 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13970 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #include <signal.h>
13982 typedef sig_atomic_t ac__type_new_;
13986 if ((ac__type_new_ *) 0)
13988 if (sizeof (ac__type_new_))
13994 rm -f conftest.$ac_objext
13995 if { (ac_try="$ac_compile"
13996 case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_compile") 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest.$ac_objext; then
14011 ac_cv_type_sig_atomic_t=yes
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14016 ac_cv_type_sig_atomic_t=no
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14022 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14023 if test $ac_cv_type_sig_atomic_t = yes; then
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_SIG_ATOMIC_T 1
14031 cat >>confdefs.h <<\_ACEOF
14032 #define sig_atomic_t int
14037 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14038 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14039 if test "${ac_cv_type_sigaction_t+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 #include <sys/types.h>
14049 #include <signal.h>
14051 typedef sigaction_t ac__type_new_;
14055 if ((ac__type_new_ *) 0)
14057 if (sizeof (ac__type_new_))
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_compile") 2>conftest.er1
14072 grep -v '^ *+' conftest.er1 >conftest.err
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest.$ac_objext; then
14080 ac_cv_type_sigaction_t=yes
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_cv_type_sigaction_t=no
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14091 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14092 if test $ac_cv_type_sigaction_t = yes; then
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_SIGACTION_T 1
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_SIGACTION_T 1
14104 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14105 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14106 if test "${ac_cv_type_struct_timespec+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <sys/types.h>
14116 #if TIME_WITH_SYS_TIME
14117 # include <sys/time.h>
14121 typedef struct timespec ac__type_new_;
14125 if ((ac__type_new_ *) 0)
14127 if (sizeof (ac__type_new_))
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 ac_cv_type_struct_timespec=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_cv_type_struct_timespec=no
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14161 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14162 if test $ac_cv_type_struct_timespec = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_TIMESPEC 1
14169 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14170 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14171 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <sys/types.h>
14181 #include <netinet/in.h>
14183 typedef struct in6_addr ac__type_new_;
14187 if ((ac__type_new_ *) 0)
14189 if (sizeof (ac__type_new_))
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14212 ac_cv_type_struct_in6_addr=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_cv_type_struct_in6_addr=no
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14223 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14224 if test $ac_cv_type_struct_in6_addr = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_IN6_ADDR 1
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_IN6_ADDR 1
14236 { echo "$as_me:$LINENO: checking for size_t" >&5
14237 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14238 if test "${sudo_cv_type_size_t+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <sys/types.h>
14250 #include <stdlib.h>
14253 #include <unistd.h>
14256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14257 $EGREP "size_t" >/dev/null 2>&1; then
14258 sudo_cv_type_size_t=yes
14260 sudo_cv_type_size_t=no
14265 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14266 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14267 if test $sudo_cv_type_size_t = no; then
14269 cat >>confdefs.h <<\_ACEOF
14275 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14276 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14277 if test "${sudo_cv_type_ssize_t+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14289 #include <stdlib.h>
14292 #include <unistd.h>
14295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14296 $EGREP "ssize_t" >/dev/null 2>&1; then
14297 sudo_cv_type_ssize_t=yes
14299 sudo_cv_type_ssize_t=no
14304 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14305 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14306 if test $sudo_cv_type_ssize_t = no; then
14308 cat >>confdefs.h <<\_ACEOF
14309 #define ssize_t int
14314 { echo "$as_me:$LINENO: checking for dev_t" >&5
14315 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14316 if test "${sudo_cv_type_dev_t+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 #include <sys/types.h>
14328 #include <stdlib.h>
14331 #include <unistd.h>
14334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335 $EGREP "dev_t" >/dev/null 2>&1; then
14336 sudo_cv_type_dev_t=yes
14338 sudo_cv_type_dev_t=no
14343 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14344 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14345 if test $sudo_cv_type_dev_t = no; then
14347 cat >>confdefs.h <<\_ACEOF
14353 { echo "$as_me:$LINENO: checking for ino_t" >&5
14354 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14355 if test "${sudo_cv_type_ino_t+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 #include <sys/types.h>
14367 #include <stdlib.h>
14370 #include <unistd.h>
14373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374 $EGREP "ino_t" >/dev/null 2>&1; then
14375 sudo_cv_type_ino_t=yes
14377 sudo_cv_type_ino_t=no
14382 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14383 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14384 if test $sudo_cv_type_ino_t = no; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define ino_t unsigned int
14392 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14393 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14405 foo = (void *)0; (void *)"test";
14410 rm -f conftest.$ac_objext
14411 if { (ac_try="$ac_compile"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_compile") 2>conftest.er1
14419 grep -v '^ *+' conftest.er1 >conftest.err
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && {
14424 test -z "$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 } && test -s conftest.$ac_objext; then
14428 cat >>confdefs.h <<\_ACEOF
14432 { echo "$as_me:$LINENO: result: yes" >&5
14433 echo "${ECHO_T}yes" >&6; }
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 cat >>confdefs.h <<\_ACEOF
14442 { echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6; }
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14449 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14450 if test "${sudo_cv_uid_t_len+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 if test "$cross_compiling" = yes; then
14455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14456 See \`config.log' for more details." >&5
14457 echo "$as_me: error: cannot run test program while cross compiling
14458 See \`config.log' for more details." >&2;}
14459 { (exit 1); exit 1; }; }
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14469 #include <limits.h>
14470 #include <sys/types.h>
14471 #include <sys/param.h>
14475 uid_t u = (uid_t) -1;
14477 if ((f = fopen("conftestdata", "w")) == NULL)
14480 (void) sprintf(b, "%lu", (unsigned long) u);
14481 (void) fprintf(f, "%d\n", strlen(b));
14486 rm -f conftest$ac_exeext
14487 if { (ac_try="$ac_link"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_link") 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14497 { (case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_try") 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 sudo_cv_uid_t_len=`cat conftestdata`
14508 echo "$as_me: program exited with status $ac_status" >&5
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512 ( exit $ac_status )
14513 sudo_cv_uid_t_len=10
14515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14524 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14526 cat >>confdefs.h <<_ACEOF
14527 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14531 { echo "$as_me:$LINENO: checking for long long" >&5
14532 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14533 if test "${ac_cv_type_long_long+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 $ac_includes_default
14543 typedef long long ac__type_new_;
14547 if ((ac__type_new_ *) 0)
14549 if (sizeof (ac__type_new_))
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest.$ac_objext; then
14572 ac_cv_type_long_long=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_cv_type_long_long=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14583 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14584 if test $ac_cv_type_long_long = yes; then
14586 cat >>confdefs.h <<_ACEOF
14587 #define HAVE_LONG_LONG 1
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_LONG_LONG 1
14595 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14596 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14597 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 if test "$cross_compiling" = yes; then
14601 sudo_cv_type_long_is_quad=no
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14611 if (sizeof(long long) == sizeof(long)) exit(0);
14615 rm -f conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_try") 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 sudo_cv_type_long_is_quad=yes
14637 echo "$as_me: program exited with status $ac_status" >&5
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ( exit $ac_status )
14642 sudo_cv_type_long_is_quad=no
14644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14648 rm -f core core.* *.core
14650 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14651 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14652 if test $sudo_cv_type_long_is_quad = yes; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define LONG_IS_QUAD 1
14662 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14663 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14664 if test "${sudo_cv_sock_sa_len+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 if test "$cross_compiling" = yes; then
14668 sudo_cv_sock_sa_len=no
14670 cat >conftest.$ac_ext <<_ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14677 #include <sys/socket.h>
14684 rm -f conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_link") 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14695 { (case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_try") 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 sudo_cv_sock_sa_len=yes
14706 echo "$as_me: program exited with status $ac_status" >&5
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ( exit $ac_status )
14711 sudo_cv_sock_sa_len=no
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14717 rm -f core core.* *.core
14719 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14720 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14721 if test $sudo_cv_sock_sa_len = yes; then
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_SA_LEN 1
14731 *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14732 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14733 if test "${ac_cv_type_signal+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <sys/types.h>
14743 #include <signal.h>
14748 return *(signal (0, 0)) (0) == 1;
14753 rm -f conftest.$ac_objext
14754 if { (ac_try="$ac_compile"
14755 case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_compile") 2>conftest.er1
14762 grep -v '^ *+' conftest.er1 >conftest.err
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } && {
14767 test -z "$ac_c_werror_flag" ||
14768 test ! -s conftest.err
14769 } && test -s conftest.$ac_objext; then
14770 ac_cv_type_signal=int
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_cv_type_signal=void
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14781 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14783 cat >>confdefs.h <<_ACEOF
14784 #define RETSIGTYPE $ac_cv_type_signal
14789 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14790 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
14791 if test "${ac_cv_type_getgroups+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 if test "$cross_compiling" = yes; then
14795 ac_cv_type_getgroups=cross
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 /* Thanks to Mike Rendell for this test. */
14804 $ac_includes_default
14807 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14812 gid_t gidset[NGID];
14814 union { gid_t gval; long int lval; } val;
14817 for (i = 0; i < NGID; i++)
14818 gidset[i] = val.gval;
14819 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14821 /* Exit non-zero if getgroups seems to require an array of ints. This
14822 happens when gid_t is short int but getgroups modifies an array
14824 return n > 0 && gidset[n] != val.gval;
14827 rm -f conftest$ac_exeext
14828 if { (ac_try="$ac_link"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_link") 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_type_getgroups=gid_t
14849 echo "$as_me: program exited with status $ac_status" >&5
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ( exit $ac_status )
14854 ac_cv_type_getgroups=int
14856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14860 if test $ac_cv_type_getgroups = cross; then
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 #include <unistd.h>
14870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14871 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14872 ac_cv_type_getgroups=gid_t
14874 ac_cv_type_getgroups=int
14880 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14881 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
14883 cat >>confdefs.h <<_ACEOF
14884 #define GETGROUPS_T $ac_cv_type_getgroups
14888 { echo "$as_me:$LINENO: checking for size_t" >&5
14889 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14890 if test "${ac_cv_type_size_t+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 typedef size_t ac__type_new_;
14904 if ((ac__type_new_ *) 0)
14906 if (sizeof (ac__type_new_))
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_cv_type_size_t=yes
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_type_size_t=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14941 if test $ac_cv_type_size_t = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define size_t unsigned int
14951 { echo "$as_me:$LINENO: checking for getgroups" >&5
14952 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
14953 if test "${ac_cv_func_getgroups+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
14963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14964 #define getgroups innocuous_getgroups
14966 /* System header to define __stub macros and hopefully few prototypes,
14967 which can conflict with char getgroups (); below.
14968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14969 <limits.h> exists even on freestanding compilers. */
14972 # include <limits.h>
14974 # include <assert.h>
14979 /* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
14986 /* The GNU C library defines this for functions which it implements
14987 to always fail with ENOSYS. Some functions are actually named
14988 something starting with __ and the normal name is an alias. */
14989 #if defined __stub_getgroups || defined __stub___getgroups
14996 return getgroups ();
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext &&
15018 $as_test_x conftest$ac_exeext; then
15019 ac_cv_func_getgroups=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_cv_func_getgroups=no
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028 conftest$ac_exeext conftest.$ac_ext
15030 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15031 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15034 # If we don't yet have getgroups, see if it's in -lbsd.
15035 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15037 if test $ac_cv_func_getgroups = no; then
15038 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15039 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15040 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS=$LIBS
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15062 return getgroups ();
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 ac_cv_lib_bsd_getgroups=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_lib_bsd_getgroups=no
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094 conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15097 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15098 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15099 if test $ac_cv_lib_bsd_getgroups = yes; then
15100 GETGROUPS_LIB=-lbsd
15105 # Run the program to test the functionality of the system-supplied
15106 # getgroups function only if there is such a function.
15107 if test $ac_cv_func_getgroups = yes; then
15108 { echo "$as_me:$LINENO: checking for working getgroups" >&5
15109 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15110 if test "${ac_cv_func_getgroups_works+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 if test "$cross_compiling" = yes; then
15114 ac_cv_func_getgroups_works=no
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15126 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15127 return getgroups (0, 0) == -1;
15132 rm -f conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_func_getgroups_works=yes
15154 echo "$as_me: program exited with status $ac_status" >&5
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ( exit $ac_status )
15159 ac_cv_func_getgroups_works=no
15161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15168 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15169 if test $ac_cv_func_getgroups_works = yes; then
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_GETGROUPS 1
15194 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15195 strftime setrlimit initgroups getgroups fstat gettimeofday \
15196 setlocale getaddrinfo
15198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15212 #define $ac_func innocuous_$ac_func
15214 /* System header to define __stub macros and hopefully few prototypes,
15215 which can conflict with char $ac_func (); below.
15216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15217 <limits.h> exists even on freestanding compilers. */
15220 # include <limits.h>
15222 # include <assert.h>
15227 /* Override any GCC internal prototype to avoid an error.
15228 Use char because int might match the return type of a GCC
15229 builtin and then its argument prototype would still apply. */
15234 /* The GNU C library defines this for functions which it implements
15235 to always fail with ENOSYS. Some functions are actually named
15236 something starting with __ and the normal name is an alias. */
15237 #if defined __stub_$ac_func || defined __stub___$ac_func
15244 return $ac_func ();
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_c_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest$ac_exeext &&
15266 $as_test_x conftest$ac_exeext; then
15267 eval "$as_ac_var=yes"
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 eval "$as_ac_var=no"
15275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276 conftest$ac_exeext conftest.$ac_ext
15278 ac_res=`eval echo '${'$as_ac_var'}'`
15279 { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15281 if test `eval echo '${'$as_ac_var'}'` = yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15289 if test -z "$SKIP_SETRESUID"; then
15291 for ac_func in setresuid
15293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.$ac_ext <<_ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15307 #define $ac_func innocuous_$ac_func
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char $ac_func (); below.
15311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312 <limits.h> exists even on freestanding compilers. */
15315 # include <limits.h>
15317 # include <assert.h>
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15329 /* The GNU C library defines this for functions which it implements
15330 to always fail with ENOSYS. Some functions are actually named
15331 something starting with __ and the normal name is an alias. */
15332 #if defined __stub_$ac_func || defined __stub___$ac_func
15339 return $ac_func ();
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (ac_try="$ac_link"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_link") 2>conftest.er1
15353 grep -v '^ *+' conftest.er1 >conftest.err
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } && {
15358 test -z "$ac_c_werror_flag" ||
15359 test ! -s conftest.err
15360 } && test -s conftest$ac_exeext &&
15361 $as_test_x conftest$ac_exeext; then
15362 eval "$as_ac_var=yes"
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 eval "$as_ac_var=no"
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15373 ac_res=`eval echo '${'$as_ac_var'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15376 if test `eval echo '${'$as_ac_var'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15385 if test -z "$SKIP_SETREUID"; then
15387 for ac_func in setreuid
15389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15403 #define $ac_func innocuous_$ac_func
15405 /* System header to define __stub macros and hopefully few prototypes,
15406 which can conflict with char $ac_func (); below.
15407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15408 <limits.h> exists even on freestanding compilers. */
15411 # include <limits.h>
15413 # include <assert.h>
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15425 /* The GNU C library defines this for functions which it implements
15426 to always fail with ENOSYS. Some functions are actually named
15427 something starting with __ and the normal name is an alias. */
15428 #if defined __stub_$ac_func || defined __stub___$ac_func
15435 return $ac_func ();
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_link") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext &&
15457 $as_test_x conftest$ac_exeext; then
15458 eval "$as_ac_var=yes"
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 eval "$as_ac_var=no"
15466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15467 conftest$ac_exeext conftest.$ac_ext
15469 ac_res=`eval echo '${'$as_ac_var'}'`
15470 { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15481 if test -z "$SKIP_SETEUID"; then
15483 for ac_func in seteuid
15485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15499 #define $ac_func innocuous_$ac_func
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char $ac_func (); below.
15503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15504 <limits.h> exists even on freestanding compilers. */
15507 # include <limits.h>
15509 # include <assert.h>
15514 /* Override any GCC internal prototype to avoid an error.
15515 Use char because int might match the return type of a GCC
15516 builtin and then its argument prototype would still apply. */
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined __stub_$ac_func || defined __stub___$ac_func
15531 return $ac_func ();
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (ac_try="$ac_link"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest$ac_exeext &&
15553 $as_test_x conftest$ac_exeext; then
15554 eval "$as_ac_var=yes"
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 eval "$as_ac_var=no"
15562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15563 conftest$ac_exeext conftest.$ac_ext
15565 ac_res=`eval echo '${'$as_ac_var'}'`
15566 { echo "$as_me:$LINENO: result: $ac_res" >&5
15567 echo "${ECHO_T}$ac_res" >&6; }
15568 if test `eval echo '${'$as_ac_var'}'` = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15577 if test X"$with_interfaces" != X"no"; then
15579 for ac_func in getifaddrs
15581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15595 #define $ac_func innocuous_$ac_func
15597 /* System header to define __stub macros and hopefully few prototypes,
15598 which can conflict with char $ac_func (); below.
15599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15600 <limits.h> exists even on freestanding compilers. */
15603 # include <limits.h>
15605 # include <assert.h>
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15617 /* The GNU C library defines this for functions which it implements
15618 to always fail with ENOSYS. Some functions are actually named
15619 something starting with __ and the normal name is an alias. */
15620 #if defined __stub_$ac_func || defined __stub___$ac_func
15627 return $ac_func ();
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_link") 2>conftest.er1
15641 grep -v '^ *+' conftest.er1 >conftest.err
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && {
15646 test -z "$ac_c_werror_flag" ||
15647 test ! -s conftest.err
15648 } && test -s conftest$ac_exeext &&
15649 $as_test_x conftest$ac_exeext; then
15650 eval "$as_ac_var=yes"
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 eval "$as_ac_var=no"
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15661 ac_res=`eval echo '${'$as_ac_var'}'`
15662 { echo "$as_me:$LINENO: result: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15664 if test `eval echo '${'$as_ac_var'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15669 for ac_func in freeifaddrs
15671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15685 #define $ac_func innocuous_$ac_func
15687 /* System header to define __stub macros and hopefully few prototypes,
15688 which can conflict with char $ac_func (); below.
15689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690 <limits.h> exists even on freestanding compilers. */
15693 # include <limits.h>
15695 # include <assert.h>
15700 /* Override any GCC internal prototype to avoid an error.
15701 Use char because int might match the return type of a GCC
15702 builtin and then its argument prototype would still apply. */
15707 /* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710 #if defined __stub_$ac_func || defined __stub___$ac_func
15717 return $ac_func ();
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (ac_try="$ac_link"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_link") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } && {
15736 test -z "$ac_c_werror_flag" ||
15737 test ! -s conftest.err
15738 } && test -s conftest$ac_exeext &&
15739 $as_test_x conftest$ac_exeext; then
15740 eval "$as_ac_var=yes"
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 eval "$as_ac_var=no"
15748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15749 conftest$ac_exeext conftest.$ac_ext
15751 ac_res=`eval echo '${'$as_ac_var'}'`
15752 { echo "$as_me:$LINENO: result: $ac_res" >&5
15753 echo "${ECHO_T}$ac_res" >&6; }
15754 if test `eval echo '${'$as_ac_var'}'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766 if test -z "$BROKEN_GETCWD"; then
15768 for ac_func in getcwd
15770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15784 #define $ac_func innocuous_$ac_func
15786 /* System header to define __stub macros and hopefully few prototypes,
15787 which can conflict with char $ac_func (); below.
15788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789 <limits.h> exists even on freestanding compilers. */
15792 # include <limits.h>
15794 # include <assert.h>
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined __stub_$ac_func || defined __stub___$ac_func
15816 return $ac_func ();
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (ac_try="$ac_link"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_link") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest$ac_exeext &&
15838 $as_test_x conftest$ac_exeext; then
15839 eval "$as_ac_var=yes"
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 eval "$as_ac_var=no"
15847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15848 conftest$ac_exeext conftest.$ac_ext
15850 ac_res=`eval echo '${'$as_ac_var'}'`
15851 { echo "$as_me:$LINENO: result: $ac_res" >&5
15852 echo "${ECHO_T}$ac_res" >&6; }
15853 if test `eval echo '${'$as_ac_var'}'` = yes; then
15854 cat >>confdefs.h <<_ACEOF
15855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859 case " $LIBOBJS " in
15860 *" $ac_func.$ac_objext "* ) ;;
15861 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15871 for ac_func in glob
15873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15887 #define $ac_func innocuous_$ac_func
15889 /* System header to define __stub macros and hopefully few prototypes,
15890 which can conflict with char $ac_func (); below.
15891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892 <limits.h> exists even on freestanding compilers. */
15895 # include <limits.h>
15897 # include <assert.h>
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15909 /* The GNU C library defines this for functions which it implements
15910 to always fail with ENOSYS. Some functions are actually named
15911 something starting with __ and the normal name is an alias. */
15912 #if defined __stub_$ac_func || defined __stub___$ac_func
15919 return $ac_func ();
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (ac_try="$ac_link"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_link") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext &&
15941 $as_test_x conftest$ac_exeext; then
15942 eval "$as_ac_var=yes"
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 eval "$as_ac_var=no"
15950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951 conftest$ac_exeext conftest.$ac_ext
15953 ac_res=`eval echo '${'$as_ac_var'}'`
15954 { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15956 if test `eval echo '${'$as_ac_var'}'` = yes; then
15957 cat >>confdefs.h <<_ACEOF
15958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15960 { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15961 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15972 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && {
15991 test -z "$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 } && test -s conftest.$ac_objext; then
15994 cat >>confdefs.h <<\_ACEOF
15995 #define HAVE_EXTENDED_GLOB 1
15998 { echo "$as_me:$LINENO: result: yes" >&5
15999 echo "${ECHO_T}yes" >&6; }
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 case " $LIBOBJS " in
16005 *" glob.$ac_objext "* ) ;;
16006 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16010 { echo "$as_me:$LINENO: result: no" >&5
16011 echo "${ECHO_T}no" >&6; }
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 case " $LIBOBJS " in
16017 *" glob.$ac_objext "* ) ;;
16018 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16027 for ac_func in lockf flock
16029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16043 #define $ac_func innocuous_$ac_func
16045 /* System header to define __stub macros and hopefully few prototypes,
16046 which can conflict with char $ac_func (); below.
16047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16048 <limits.h> exists even on freestanding compilers. */
16051 # include <limits.h>
16053 # include <assert.h>
16058 /* Override any GCC internal prototype to avoid an error.
16059 Use char because int might match the return type of a GCC
16060 builtin and then its argument prototype would still apply. */
16065 /* The GNU C library defines this for functions which it implements
16066 to always fail with ENOSYS. Some functions are actually named
16067 something starting with __ and the normal name is an alias. */
16068 #if defined __stub_$ac_func || defined __stub___$ac_func
16075 return $ac_func ();
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_link") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1 >conftest.err
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } && {
16094 test -z "$ac_c_werror_flag" ||
16095 test ! -s conftest.err
16096 } && test -s conftest$ac_exeext &&
16097 $as_test_x conftest$ac_exeext; then
16098 eval "$as_ac_var=yes"
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 eval "$as_ac_var=no"
16106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16107 conftest$ac_exeext conftest.$ac_ext
16109 ac_res=`eval echo '${'$as_ac_var'}'`
16110 { echo "$as_me:$LINENO: result: $ac_res" >&5
16111 echo "${ECHO_T}$ac_res" >&6; }
16112 if test `eval echo '${'$as_ac_var'}'` = yes; then
16113 cat >>confdefs.h <<_ACEOF
16114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16122 for ac_func in waitpid wait3
16124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16138 #define $ac_func innocuous_$ac_func
16140 /* System header to define __stub macros and hopefully few prototypes,
16141 which can conflict with char $ac_func (); below.
16142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143 <limits.h> exists even on freestanding compilers. */
16146 # include <limits.h>
16148 # include <assert.h>
16153 /* Override any GCC internal prototype to avoid an error.
16154 Use char because int might match the return type of a GCC
16155 builtin and then its argument prototype would still apply. */
16160 /* The GNU C library defines this for functions which it implements
16161 to always fail with ENOSYS. Some functions are actually named
16162 something starting with __ and the normal name is an alias. */
16163 #if defined __stub_$ac_func || defined __stub___$ac_func
16170 return $ac_func ();
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (ac_try="$ac_link"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_link") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext &&
16192 $as_test_x conftest$ac_exeext; then
16193 eval "$as_ac_var=yes"
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 eval "$as_ac_var=no"
16201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16202 conftest$ac_exeext conftest.$ac_ext
16204 ac_res=`eval echo '${'$as_ac_var'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16207 if test `eval echo '${'$as_ac_var'}'` = yes; then
16208 cat >>confdefs.h <<_ACEOF
16209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16217 for ac_func in innetgr _innetgr
16219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233 #define $ac_func innocuous_$ac_func
16235 /* System header to define __stub macros and hopefully few prototypes,
16236 which can conflict with char $ac_func (); below.
16237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238 <limits.h> exists even on freestanding compilers. */
16241 # include <limits.h>
16243 # include <assert.h>
16248 /* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16255 /* The GNU C library defines this for functions which it implements
16256 to always fail with ENOSYS. Some functions are actually named
16257 something starting with __ and the normal name is an alias. */
16258 #if defined __stub_$ac_func || defined __stub___$ac_func
16265 return $ac_func ();
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_link") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && {
16284 test -z "$ac_c_werror_flag" ||
16285 test ! -s conftest.err
16286 } && test -s conftest$ac_exeext &&
16287 $as_test_x conftest$ac_exeext; then
16288 eval "$as_ac_var=yes"
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 eval "$as_ac_var=no"
16296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297 conftest$ac_exeext conftest.$ac_ext
16299 ac_res=`eval echo '${'$as_ac_var'}'`
16300 { echo "$as_me:$LINENO: result: $ac_res" >&5
16301 echo "${ECHO_T}$ac_res" >&6; }
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307 for ac_func in getdomainname
16309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16323 #define $ac_func innocuous_$ac_func
16325 /* System header to define __stub macros and hopefully few prototypes,
16326 which can conflict with char $ac_func (); below.
16327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16328 <limits.h> exists even on freestanding compilers. */
16331 # include <limits.h>
16333 # include <assert.h>
16338 /* Override any GCC internal prototype to avoid an error.
16339 Use char because int might match the return type of a GCC
16340 builtin and then its argument prototype would still apply. */
16345 /* The GNU C library defines this for functions which it implements
16346 to always fail with ENOSYS. Some functions are actually named
16347 something starting with __ and the normal name is an alias. */
16348 #if defined __stub_$ac_func || defined __stub___$ac_func
16355 return $ac_func ();
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_link") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest$ac_exeext &&
16377 $as_test_x conftest$ac_exeext; then
16378 eval "$as_ac_var=yes"
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16383 eval "$as_ac_var=no"
16386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16387 conftest$ac_exeext conftest.$ac_ext
16389 ac_res=`eval echo '${'$as_ac_var'}'`
16390 { echo "$as_me:$LINENO: result: $ac_res" >&5
16391 echo "${ECHO_T}$ac_res" >&6; }
16392 if test `eval echo '${'$as_ac_var'}'` = yes; then
16393 cat >>confdefs.h <<_ACEOF
16394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 for ac_func in lsearch
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16428 # include <limits.h>
16430 # include <assert.h>
16435 /* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16452 return $ac_func ();
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest$ac_exeext &&
16474 $as_test_x conftest$ac_exeext; then
16475 eval "$as_ac_var=yes"
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 eval "$as_ac_var=no"
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484 conftest$ac_exeext conftest.$ac_ext
16486 ac_res=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16495 { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16496 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16497 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_check_lib_save_LIBS=$LIBS
16501 LIBS="-lcompat $LIBS"
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16509 /* Override any GCC internal prototype to avoid an error.
16510 Use char because int might match the return type of a GCC
16511 builtin and then its argument prototype would still apply. */
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_link") 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } && {
16538 test -z "$ac_c_werror_flag" ||
16539 test ! -s conftest.err
16540 } && test -s conftest$ac_exeext &&
16541 $as_test_x conftest$ac_exeext; then
16542 ac_cv_lib_compat_lsearch=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_cv_lib_compat_lsearch=no
16550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16551 conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16554 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16555 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16556 if test $ac_cv_lib_compat_lsearch = yes; then
16557 { echo "$as_me:$LINENO: checking for search.h" >&5
16558 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16559 if test "${ac_cv_header_search_h+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 #include <search.h>
16570 if { (ac_try="$ac_cpp conftest.$ac_ext"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 grep -v '^ *+' conftest.er1 >conftest.err
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } >/dev/null && {
16583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16586 ac_cv_header_search_h=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_header_search_h=no
16594 rm -f conftest.err conftest.$ac_ext
16596 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16597 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16598 if test $ac_cv_header_search_h = yes; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_LSEARCH 1
16602 LIBS="${LIBS} -lcompat"
16604 case " $LIBOBJS " in
16605 *" lsearch.$ac_objext "* ) ;;
16606 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16614 case " $LIBOBJS " in
16615 *" lsearch.$ac_objext "* ) ;;
16616 *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16626 for ac_func in utimes
16628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642 #define $ac_func innocuous_$ac_func
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
16650 # include <limits.h>
16652 # include <assert.h>
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16674 return $ac_func ();
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext &&
16696 $as_test_x conftest$ac_exeext; then
16697 eval "$as_ac_var=yes"
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 eval "$as_ac_var=no"
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709 { echo "$as_me:$LINENO: result: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 for ac_func in futimes futimesat
16719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16733 #define $ac_func innocuous_$ac_func
16735 /* System header to define __stub macros and hopefully few prototypes,
16736 which can conflict with char $ac_func (); below.
16737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16738 <limits.h> exists even on freestanding compilers. */
16741 # include <limits.h>
16743 # include <assert.h>
16748 /* Override any GCC internal prototype to avoid an error.
16749 Use char because int might match the return type of a GCC
16750 builtin and then its argument prototype would still apply. */
16755 /* The GNU C library defines this for functions which it implements
16756 to always fail with ENOSYS. Some functions are actually named
16757 something starting with __ and the normal name is an alias. */
16758 #if defined __stub_$ac_func || defined __stub___$ac_func
16765 return $ac_func ();
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_link") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest$ac_exeext &&
16787 $as_test_x conftest$ac_exeext; then
16788 eval "$as_ac_var=yes"
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 eval "$as_ac_var=no"
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797 conftest$ac_exeext conftest.$ac_ext
16799 ac_res=`eval echo '${'$as_ac_var'}'`
16800 { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802 if test `eval echo '${'$as_ac_var'}'` = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16812 for ac_func in futime
16814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16828 #define $ac_func innocuous_$ac_func
16830 /* System header to define __stub macros and hopefully few prototypes,
16831 which can conflict with char $ac_func (); below.
16832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16833 <limits.h> exists even on freestanding compilers. */
16836 # include <limits.h>
16838 # include <assert.h>
16843 /* Override any GCC internal prototype to avoid an error.
16844 Use char because int might match the return type of a GCC
16845 builtin and then its argument prototype would still apply. */
16850 /* The GNU C library defines this for functions which it implements
16851 to always fail with ENOSYS. Some functions are actually named
16852 something starting with __ and the normal name is an alias. */
16853 #if defined __stub_$ac_func || defined __stub___$ac_func
16860 return $ac_func ();
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_link") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest$ac_exeext &&
16882 $as_test_x conftest$ac_exeext; then
16883 eval "$as_ac_var=yes"
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 eval "$as_ac_var=no"
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16892 conftest$ac_exeext conftest.$ac_ext
16894 ac_res=`eval echo '${'$as_ac_var'}'`
16895 { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16897 if test `eval echo '${'$as_ac_var'}'` = yes; then
16898 cat >>confdefs.h <<_ACEOF
16899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16904 case " $LIBOBJS " in
16905 *" utimes.$ac_objext "* ) ;;
16906 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16913 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16914 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16915 if test "${sudo_cv_func_fnmatch+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 rm -f conftestdata; > conftestdata
16919 if test "$cross_compiling" = yes; then
16920 sudo_cv_func_fnmatch=no
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <fnmatch.h>
16929 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16931 rm -f conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 sudo_cv_func_fnmatch=yes
16953 echo "$as_me: program exited with status $ac_status" >&5
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ( exit $ac_status )
16958 sudo_cv_func_fnmatch=no
16960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16964 rm -f core core.* *.core
16967 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16968 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16969 if test $sudo_cv_func_fnmatch = yes; then
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_FNMATCH 1
16975 case " $LIBOBJS " in
16976 *" fnmatch.$ac_objext "* ) ;;
16977 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16983 { echo "$as_me:$LINENO: checking for isblank" >&5
16984 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16985 if test "${sudo_cv_func_isblank+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16998 return (isblank('a'));
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (ac_try="$ac_link"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_link") 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } && {
17017 test -z "$ac_c_werror_flag" ||
17018 test ! -s conftest.err
17019 } && test -s conftest$ac_exeext &&
17020 $as_test_x conftest$ac_exeext; then
17021 sudo_cv_func_isblank=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 sudo_cv_func_isblank=no
17029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030 conftest$ac_exeext conftest.$ac_ext
17032 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17033 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17035 if test "$sudo_cv_func_isblank" = "yes"; then
17037 cat >>confdefs.h <<\_ACEOF
17038 #define HAVE_ISBLANK 1
17049 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17065 #define $ac_func innocuous_$ac_func
17067 /* System header to define __stub macros and hopefully few prototypes,
17068 which can conflict with char $ac_func (); below.
17069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070 <limits.h> exists even on freestanding compilers. */
17073 # include <limits.h>
17075 # include <assert.h>
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17087 /* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
17090 #if defined __stub_$ac_func || defined __stub___$ac_func
17097 return $ac_func ();
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_link") 2>conftest.er1
17111 grep -v '^ *+' conftest.er1 >conftest.err
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } && {
17116 test -z "$ac_c_werror_flag" ||
17117 test ! -s conftest.err
17118 } && test -s conftest$ac_exeext &&
17119 $as_test_x conftest$ac_exeext; then
17120 eval "$as_ac_var=yes"
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 eval "$as_ac_var=no"
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17131 ac_res=`eval echo '${'$as_ac_var'}'`
17132 { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_var'}'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17140 case " $LIBOBJS " in
17141 *" $ac_func.$ac_objext "* ) ;;
17142 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17151 for ac_func in closefrom
17153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17167 #define $ac_func innocuous_$ac_func
17169 /* System header to define __stub macros and hopefully few prototypes,
17170 which can conflict with char $ac_func (); below.
17171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172 <limits.h> exists even on freestanding compilers. */
17175 # include <limits.h>
17177 # include <assert.h>
17182 /* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
17189 /* The GNU C library defines this for functions which it implements
17190 to always fail with ENOSYS. Some functions are actually named
17191 something starting with __ and the normal name is an alias. */
17192 #if defined __stub_$ac_func || defined __stub___$ac_func
17199 return $ac_func ();
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && {
17218 test -z "$ac_c_werror_flag" ||
17219 test ! -s conftest.err
17220 } && test -s conftest$ac_exeext &&
17221 $as_test_x conftest$ac_exeext; then
17222 eval "$as_ac_var=yes"
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 eval "$as_ac_var=no"
17230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17231 conftest$ac_exeext conftest.$ac_ext
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234 { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 case " $LIBOBJS " in
17243 *" closefrom.$ac_objext "* ) ;;
17244 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17248 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17249 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17250 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.$ac_ext <<_ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <limits.h>
17273 rm -f conftest.$ac_objext
17274 if { (ac_try="$ac_compile"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_compile") 2>conftest.er1
17282 grep -v '^ *+' conftest.er1 >conftest.err
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } && {
17287 test -z "$ac_c_werror_flag" ||
17288 test ! -s conftest.err
17289 } && test -s conftest.$ac_objext; then
17290 ac_cv_have_decl_F_CLOSEM=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 ac_cv_have_decl_F_CLOSEM=no
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17300 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17301 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17302 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_FCNTL_CLOSEM 1
17314 for ac_func in mkstemp
17316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 cat >conftest.$ac_ext <<_ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17330 #define $ac_func innocuous_$ac_func
17332 /* System header to define __stub macros and hopefully few prototypes,
17333 which can conflict with char $ac_func (); below.
17334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17335 <limits.h> exists even on freestanding compilers. */
17338 # include <limits.h>
17340 # include <assert.h>
17345 /* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17352 /* The GNU C library defines this for functions which it implements
17353 to always fail with ENOSYS. Some functions are actually named
17354 something starting with __ and the normal name is an alias. */
17355 #if defined __stub_$ac_func || defined __stub___$ac_func
17362 return $ac_func ();
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_link") 2>conftest.er1
17376 grep -v '^ *+' conftest.er1 >conftest.err
17378 cat conftest.err >&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && {
17381 test -z "$ac_c_werror_flag" ||
17382 test ! -s conftest.err
17383 } && test -s conftest$ac_exeext &&
17384 $as_test_x conftest$ac_exeext; then
17385 eval "$as_ac_var=yes"
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 eval "$as_ac_var=no"
17393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17394 conftest$ac_exeext conftest.$ac_ext
17396 ac_res=`eval echo '${'$as_ac_var'}'`
17397 { echo "$as_me:$LINENO: result: $ac_res" >&5
17398 echo "${ECHO_T}$ac_res" >&6; }
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17405 SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17408 for ac_func in random lrand48
17410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17424 #define $ac_func innocuous_$ac_func
17426 /* System header to define __stub macros and hopefully few prototypes,
17427 which can conflict with char $ac_func (); below.
17428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17429 <limits.h> exists even on freestanding compilers. */
17432 # include <limits.h>
17434 # include <assert.h>
17439 /* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17446 /* The GNU C library defines this for functions which it implements
17447 to always fail with ENOSYS. Some functions are actually named
17448 something starting with __ and the normal name is an alias. */
17449 #if defined __stub_$ac_func || defined __stub___$ac_func
17456 return $ac_func ();
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest$ac_exeext &&
17478 $as_test_x conftest$ac_exeext; then
17479 eval "$as_ac_var=yes"
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 eval "$as_ac_var=no"
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488 conftest$ac_exeext conftest.$ac_ext
17490 ac_res=`eval echo '${'$as_ac_var'}'`
17491 { echo "$as_me:$LINENO: result: $ac_res" >&5
17492 echo "${ECHO_T}$ac_res" >&6; }
17493 if test `eval echo '${'$as_ac_var'}'` = yes; then
17494 cat >>confdefs.h <<_ACEOF
17495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 for ac_func in snprintf vsnprintf asprintf vasprintf
17511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 cat >conftest.$ac_ext <<_ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17525 #define $ac_func innocuous_$ac_func
17527 /* System header to define __stub macros and hopefully few prototypes,
17528 which can conflict with char $ac_func (); below.
17529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17530 <limits.h> exists even on freestanding compilers. */
17533 # include <limits.h>
17535 # include <assert.h>
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17547 /* The GNU C library defines this for functions which it implements
17548 to always fail with ENOSYS. Some functions are actually named
17549 something starting with __ and the normal name is an alias. */
17550 #if defined __stub_$ac_func || defined __stub___$ac_func
17557 return $ac_func ();
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_link") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest$ac_exeext &&
17579 $as_test_x conftest$ac_exeext; then
17580 eval "$as_ac_var=yes"
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 eval "$as_ac_var=no"
17588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17589 conftest$ac_exeext conftest.$ac_ext
17591 ac_res=`eval echo '${'$as_ac_var'}'`
17592 { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594 if test `eval echo '${'$as_ac_var'}'` = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17605 { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17606 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17607 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17620 static struct stat ac_aggr;
17621 if (ac_aggr.st_mtim)
17627 rm -f conftest.$ac_objext
17628 if { (ac_try="$ac_compile"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_compile") 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest.$ac_objext; then
17644 ac_cv_member_struct_stat_st_mtim=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 $ac_includes_default
17659 static struct stat ac_aggr;
17660 if (sizeof ac_aggr.st_mtim)
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_compile") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest.$ac_objext; then
17683 ac_cv_member_struct_stat_st_mtim=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_cv_member_struct_stat_st_mtim=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17697 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17698 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17699 cat >>confdefs.h <<\_ACEOF
17700 #define HAVE_ST_MTIM 1
17703 { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17704 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17705 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 $ac_includes_default
17718 static struct stat ac_aggr;
17719 if (ac_aggr.st_mtim.st__tim)
17725 rm -f conftest.$ac_objext
17726 if { (ac_try="$ac_compile"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_compile") 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest.$ac_objext; then
17742 ac_cv_member_struct_stat_st_mtim_st__tim=yes
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 $ac_includes_default
17757 static struct stat ac_aggr;
17758 if (sizeof ac_aggr.st_mtim.st__tim)
17764 rm -f conftest.$ac_objext
17765 if { (ac_try="$ac_compile"
17766 case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_compile") 2>conftest.er1
17773 grep -v '^ *+' conftest.er1 >conftest.err
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } && {
17778 test -z "$ac_c_werror_flag" ||
17779 test ! -s conftest.err
17780 } && test -s conftest.$ac_objext; then
17781 ac_cv_member_struct_stat_st_mtim_st__tim=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_cv_member_struct_stat_st_mtim_st__tim=no
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
17795 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
17796 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
17797 cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_ST__TIM 1
17804 { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17805 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17806 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17819 static struct stat ac_aggr;
17820 if (ac_aggr.st_mtimespec)
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_compile") 2>conftest.er1
17835 grep -v '^ *+' conftest.er1 >conftest.err
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && {
17840 test -z "$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17842 } && test -s conftest.$ac_objext; then
17843 ac_cv_member_struct_stat_st_mtimespec=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17858 static struct stat ac_aggr;
17859 if (sizeof ac_aggr.st_mtimespec)
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_compile") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest.$ac_objext; then
17882 ac_cv_member_struct_stat_st_mtimespec=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_member_struct_stat_st_mtimespec=no
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17896 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17897 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_ST_MTIMESPEC 1
17906 { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17907 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 #include <sys/types.h>
17915 #include <sys/time.h>
17919 struct timespec ts1, ts2;
17920 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17921 #ifndef timespecsub
17922 #error missing timespecsub
17924 timespecsub(&ts1, &ts2);
17929 rm -f conftest.$ac_objext
17930 if { (ac_try="$ac_compile"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_compile") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } && {
17943 test -z "$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 } && test -s conftest.$ac_objext; then
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_TIMESPECSUB2 1
17950 { echo "$as_me:$LINENO: result: yes" >&5
17951 echo "${ECHO_T}yes" >&6; }
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 { echo "$as_me:$LINENO: result: no" >&5
17957 echo "${ECHO_T}no" >&6; }
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 #include <sys/types.h>
17969 #include <$ac_header_dirent>
17973 DIR d; (void)dirfd(&d);
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1 >conftest.err
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest$ac_exeext &&
17995 $as_test_x conftest$ac_exeext; then
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_DIRFD 1
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 #include <sys/types.h>
18011 #include <$ac_header_dirent>
18015 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_link") 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } && {
18034 test -z "$ac_c_werror_flag" ||
18035 test ! -s conftest.err
18036 } && test -s conftest$ac_exeext &&
18037 $as_test_x conftest$ac_exeext; then
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_DD_FD 1
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18050 conftest$ac_exeext conftest.$ac_ext
18053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18054 conftest$ac_exeext conftest.$ac_ext
18055 if test -n "$NEED_SNPRINTF"; then
18056 case " $LIBOBJS " in
18057 *" snprintf.$ac_objext "* ) ;;
18058 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18063 { echo "$as_me:$LINENO: checking for socket" >&5
18064 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18065 if test "${ac_cv_func_socket+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18076 #define socket innocuous_socket
18078 /* System header to define __stub macros and hopefully few prototypes,
18079 which can conflict with char socket (); below.
18080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18081 <limits.h> exists even on freestanding compilers. */
18084 # include <limits.h>
18086 # include <assert.h>
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18098 /* The GNU C library defines this for functions which it implements
18099 to always fail with ENOSYS. Some functions are actually named
18100 something starting with __ and the normal name is an alias. */
18101 #if defined __stub_socket || defined __stub___socket
18113 rm -f conftest.$ac_objext conftest$ac_exeext
18114 if { (ac_try="$ac_link"
18115 case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_link") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest$ac_exeext &&
18130 $as_test_x conftest$ac_exeext; then
18131 ac_cv_func_socket=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_func_socket=no
18139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18140 conftest$ac_exeext conftest.$ac_ext
18142 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18143 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18144 if test $ac_cv_func_socket = yes; then
18147 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18148 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18149 if test "${ac_cv_lib_socket_socket+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 ac_check_lib_save_LIBS=$LIBS
18153 LIBS="-lsocket $LIBS"
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18161 /* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext &&
18193 $as_test_x conftest$ac_exeext; then
18194 ac_cv_lib_socket_socket=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_cv_lib_socket_socket=no
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203 conftest$ac_exeext conftest.$ac_ext
18204 LIBS=$ac_check_lib_save_LIBS
18206 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18207 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18208 if test $ac_cv_lib_socket_socket = yes; then
18209 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18211 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18212 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18213 if test "${ac_cv_lib_inet_socket+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-linet $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 ac_cv_lib_inet_socket=yes
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_lib_inet_socket=no
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18271 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18272 if test $ac_cv_lib_inet_socket = yes; then
18273 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18275 { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18276 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18277 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18278 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18279 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lsocket -lnsl $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18306 rm -f conftest.$ac_objext conftest$ac_exeext
18307 if { (ac_try="$ac_link"
18308 case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_link") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } && {
18320 test -z "$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18322 } && test -s conftest$ac_exeext &&
18323 $as_test_x conftest$ac_exeext; then
18324 ac_cv_lib_socket_socket_lnsl=yes
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18329 ac_cv_lib_socket_socket_lnsl=no
18332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18333 conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18336 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18337 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18338 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18339 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18348 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18349 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18350 if test "${ac_cv_func_inet_addr+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18361 #define inet_addr innocuous_inet_addr
18363 /* System header to define __stub macros and hopefully few prototypes,
18364 which can conflict with char inet_addr (); below.
18365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18366 <limits.h> exists even on freestanding compilers. */
18369 # include <limits.h>
18371 # include <assert.h>
18376 /* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18383 /* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386 #if defined __stub_inet_addr || defined __stub___inet_addr
18393 return inet_addr ();
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_link") 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } && {
18412 test -z "$ac_c_werror_flag" ||
18413 test ! -s conftest.err
18414 } && test -s conftest$ac_exeext &&
18415 $as_test_x conftest$ac_exeext; then
18416 ac_cv_func_inet_addr=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 ac_cv_func_inet_addr=no
18424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18425 conftest$ac_exeext conftest.$ac_ext
18427 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18428 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18429 if test $ac_cv_func_inet_addr = yes; then
18432 { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18433 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18434 if test "${ac_cv_func___inet_addr+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18445 #define __inet_addr innocuous___inet_addr
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char __inet_addr (); below.
18449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 <limits.h> exists even on freestanding compilers. */
18453 # include <limits.h>
18455 # include <assert.h>
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18466 char __inet_addr ();
18467 /* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
18470 #if defined __stub___inet_addr || defined __stub_____inet_addr
18477 return __inet_addr ();
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest$ac_exeext &&
18499 $as_test_x conftest$ac_exeext; then
18500 ac_cv_func___inet_addr=yes
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18505 ac_cv_func___inet_addr=no
18508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18509 conftest$ac_exeext conftest.$ac_ext
18511 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18512 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18513 if test $ac_cv_func___inet_addr = yes; then
18516 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18517 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18518 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_check_lib_save_LIBS=$LIBS
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18540 return inet_addr ();
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest$ac_exeext &&
18562 $as_test_x conftest$ac_exeext; then
18563 ac_cv_lib_nsl_inet_addr=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_lib_nsl_inet_addr=no
18571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18572 conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18575 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18576 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18577 if test $ac_cv_lib_nsl_inet_addr = yes; then
18578 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18580 { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18581 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18582 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-linet $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18604 return inet_addr ();
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest$ac_exeext &&
18626 $as_test_x conftest$ac_exeext; then
18627 ac_cv_lib_inet_inet_addr=yes
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_lib_inet_inet_addr=no
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636 conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18639 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18640 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18641 if test $ac_cv_lib_inet_inet_addr = yes; then
18642 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18644 { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18645 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18646 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18647 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18648 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lsocket -lnsl $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18670 return inet_addr ();
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_link") 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest$ac_exeext &&
18692 $as_test_x conftest$ac_exeext; then
18693 ac_cv_lib_socket_inet_addr_lnsl=yes
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_lib_socket_inet_addr_lnsl=no
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18706 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18707 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18708 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18719 { echo "$as_me:$LINENO: checking for syslog" >&5
18720 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18721 if test "${ac_cv_func_syslog+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18732 #define syslog innocuous_syslog
18734 /* System header to define __stub macros and hopefully few prototypes,
18735 which can conflict with char syslog (); below.
18736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737 <limits.h> exists even on freestanding compilers. */
18740 # include <limits.h>
18742 # include <assert.h>
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18754 /* The GNU C library defines this for functions which it implements
18755 to always fail with ENOSYS. Some functions are actually named
18756 something starting with __ and the normal name is an alias. */
18757 #if defined __stub_syslog || defined __stub___syslog
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_link") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest$ac_exeext &&
18786 $as_test_x conftest$ac_exeext; then
18787 ac_cv_func_syslog=yes
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_func_syslog=no
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796 conftest$ac_exeext conftest.$ac_ext
18798 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18799 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18800 if test $ac_cv_func_syslog = yes; then
18803 { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18804 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-lsocket $LIBS"
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_link") 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && {
18846 test -z "$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18848 } && test -s conftest$ac_exeext &&
18849 $as_test_x conftest$ac_exeext; then
18850 ac_cv_lib_socket_syslog=yes
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 ac_cv_lib_socket_syslog=no
18858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18863 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18864 if test $ac_cv_lib_socket_syslog = yes; then
18865 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18867 { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18868 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS=$LIBS
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest$ac_exeext &&
18913 $as_test_x conftest$ac_exeext; then
18914 ac_cv_lib_nsl_syslog=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_lib_nsl_syslog=no
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923 conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18927 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18928 if test $ac_cv_lib_nsl_syslog = yes; then
18929 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18931 { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18932 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-linet $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_lib_inet_syslog=yes
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_lib_inet_syslog=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18990 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18991 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18992 if test $ac_cv_lib_inet_syslog = yes; then
18993 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19002 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19004 # for constant arguments. Useless!
19005 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19006 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19007 if test "${ac_cv_working_alloca_h+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 #include <alloca.h>
19020 char *p = (char *) alloca (2 * sizeof (int));
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (ac_try="$ac_link"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_link") 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && {
19040 test -z "$ac_c_werror_flag" ||
19041 test ! -s conftest.err
19042 } && test -s conftest$ac_exeext &&
19043 $as_test_x conftest$ac_exeext; then
19044 ac_cv_working_alloca_h=yes
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 ac_cv_working_alloca_h=no
19052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19053 conftest$ac_exeext conftest.$ac_ext
19055 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19056 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19057 if test $ac_cv_working_alloca_h = yes; then
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_ALLOCA_H 1
19065 { echo "$as_me:$LINENO: checking for alloca" >&5
19066 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19067 if test "${ac_cv_func_alloca_works+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 # define alloca __builtin_alloca
19080 # include <malloc.h>
19081 # define alloca _alloca
19083 # ifdef HAVE_ALLOCA_H
19084 # include <alloca.h>
19089 # ifndef alloca /* predefined by HP cc +Olibcalls */
19100 char *p = (char *) alloca (1);
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>conftest.er1
19115 grep -v '^ *+' conftest.er1 >conftest.err
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && {
19120 test -z "$ac_c_werror_flag" ||
19121 test ! -s conftest.err
19122 } && test -s conftest$ac_exeext &&
19123 $as_test_x conftest$ac_exeext; then
19124 ac_cv_func_alloca_works=yes
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ac_cv_func_alloca_works=no
19132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19133 conftest$ac_exeext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19136 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19138 if test $ac_cv_func_alloca_works = yes; then
19140 cat >>confdefs.h <<\_ACEOF
19141 #define HAVE_ALLOCA 1
19145 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19146 # that cause trouble. Some versions do not even contain alloca or
19147 # contain a buggy version. If you still want to use their alloca,
19148 # use ar to extract alloca.o from them instead of compiling alloca.c.
19150 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19152 cat >>confdefs.h <<\_ACEOF
19157 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19158 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19159 if test "${ac_cv_os_cray+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 #if defined CRAY && ! defined CRAY2
19175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176 $EGREP "webecray" >/dev/null 2>&1; then
19184 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19185 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19186 if test $ac_cv_os_cray = yes; then
19187 for ac_func in _getb67 GETB67 getb67; do
19188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19202 #define $ac_func innocuous_$ac_func
19204 /* System header to define __stub macros and hopefully few prototypes,
19205 which can conflict with char $ac_func (); below.
19206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19207 <limits.h> exists even on freestanding compilers. */
19210 # include <limits.h>
19212 # include <assert.h>
19217 /* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19224 /* The GNU C library defines this for functions which it implements
19225 to always fail with ENOSYS. Some functions are actually named
19226 something starting with __ and the normal name is an alias. */
19227 #if defined __stub_$ac_func || defined __stub___$ac_func
19234 return $ac_func ();
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 eval "$as_ac_var=yes"
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 eval "$as_ac_var=no"
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19268 ac_res=`eval echo '${'$as_ac_var'}'`
19269 { echo "$as_me:$LINENO: result: $ac_res" >&5
19270 echo "${ECHO_T}$ac_res" >&6; }
19271 if test `eval echo '${'$as_ac_var'}'` = yes; then
19273 cat >>confdefs.h <<_ACEOF
19274 #define CRAY_STACKSEG_END $ac_func
19283 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19284 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19285 if test "${ac_cv_c_stack_direction+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 if test "$cross_compiling" = yes; then
19289 ac_cv_c_stack_direction=0
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 $ac_includes_default
19299 find_stack_direction ()
19301 static char *addr = 0;
19306 return find_stack_direction ();
19309 return (&dummy > addr) ? 1 : -1;
19315 return find_stack_direction () < 0;
19318 rm -f conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_link") 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19329 { (case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_try") 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_cv_c_stack_direction=1
19340 echo "$as_me: program exited with status $ac_status" >&5
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ( exit $ac_status )
19345 ac_cv_c_stack_direction=-1
19347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19352 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19353 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19355 cat >>confdefs.h <<_ACEOF
19356 #define STACK_DIRECTION $ac_cv_c_stack_direction
19364 for ac_func in getprogname
19366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 cat >conftest.$ac_ext <<_ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19380 #define $ac_func innocuous_$ac_func
19382 /* System header to define __stub macros and hopefully few prototypes,
19383 which can conflict with char $ac_func (); below.
19384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19385 <limits.h> exists even on freestanding compilers. */
19388 # include <limits.h>
19390 # include <assert.h>
19395 /* Override any GCC internal prototype to avoid an error.
19396 Use char because int might match the return type of a GCC
19397 builtin and then its argument prototype would still apply. */
19402 /* The GNU C library defines this for functions which it implements
19403 to always fail with ENOSYS. Some functions are actually named
19404 something starting with __ and the normal name is an alias. */
19405 #if defined __stub_$ac_func || defined __stub___$ac_func
19412 return $ac_func ();
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_link") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext &&
19434 $as_test_x conftest$ac_exeext; then
19435 eval "$as_ac_var=yes"
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 eval "$as_ac_var=no"
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444 conftest$ac_exeext conftest.$ac_ext
19446 ac_res=`eval echo '${'$as_ac_var'}'`
19447 { echo "$as_me:$LINENO: result: $ac_res" >&5
19448 echo "${ECHO_T}$ac_res" >&6; }
19449 if test `eval echo '${'$as_ac_var'}'` = yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19456 { echo "$as_me:$LINENO: checking for __progname" >&5
19457 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19458 if test "${sudo_cv___progname+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19472 extern char *__progname; (void)puts(__progname);
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 sudo_cv___progname=yes
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 sudo_cv___progname=no
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504 conftest$ac_exeext conftest.$ac_ext
19507 if test "$sudo_cv___progname" = "yes"; then
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE___PROGNAME 1
19513 case " $LIBOBJS " in
19514 *" getprogname.$ac_objext "* ) ;;
19515 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19520 { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19521 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19528 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19529 for auth in $AUTH_EXCL_DEF; do
19531 AIX_AUTH) with_aixauth=maybe;;
19532 BSD_AUTH) with_bsdauth=maybe;;
19533 PAM) with_pam=maybe;;
19534 SIA) CHECKSIA=true;;
19539 if test ${with_pam-"no"} != "no"; then
19540 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19541 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19542 if test "${ac_cv_lib_dl_main+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 ac_check_lib_save_LIBS=$LIBS
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_link") 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest$ac_exeext &&
19580 $as_test_x conftest$ac_exeext; then
19581 ac_cv_lib_dl_main=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_lib_dl_main=no
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590 conftest$ac_exeext conftest.$ac_ext
19591 LIBS=$ac_check_lib_save_LIBS
19593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19594 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19595 if test $ac_cv_lib_dl_main = yes; then
19596 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19598 SUDO_LIBS="${SUDO_LIBS} -lpam"
19601 ac_cv_lib_dl=ac_cv_lib_dl_main
19605 for ac_header in security/pam_appl.h pam/pam_appl.h
19607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 ac_res=`eval echo '${'$as_ac_Header'}'`
19615 { echo "$as_me:$LINENO: result: $ac_res" >&5
19616 echo "${ECHO_T}$ac_res" >&6; }
19618 # Is the header compilable?
19619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 $ac_includes_default
19628 #include <$ac_header>
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_compile") 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } && {
19644 test -z "$ac_c_werror_flag" ||
19645 test ! -s conftest.err
19646 } && test -s conftest.$ac_objext; then
19647 ac_header_compiler=yes
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_header_compiler=no
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19657 echo "${ECHO_T}$ac_header_compiler" >&6; }
19659 # Is the header present?
19660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19662 cat >conftest.$ac_ext <<_ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 #include <$ac_header>
19670 if { (ac_try="$ac_cpp conftest.$ac_ext"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } >/dev/null && {
19683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19686 ac_header_preproc=yes
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ac_header_preproc=no
19694 rm -f conftest.err conftest.$ac_ext
19695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19696 echo "${ECHO_T}$ac_header_preproc" >&6; }
19698 # So? What about this header?
19699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19705 ac_header_preproc=yes
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 eval "$as_ac_Header=\$ac_header_preproc"
19730 ac_res=`eval echo '${'$as_ac_Header'}'`
19731 { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19736 cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19739 with_pam=yes; break
19744 if test "$with_pam" = "yes"; then
19745 cat >>confdefs.h <<\_ACEOF
19749 AUTH_OBJS="$AUTH_OBJS pam.o";
19751 { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19752 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19753 # Check whether --enable-pam_session was given.
19754 if test "${enable_pam_session+set}" = set; then
19755 enableval=$enable_pam_session; case "$enableval" in
19756 yes) { echo "$as_me:$LINENO: result: yes" >&5
19757 echo "${ECHO_T}yes" >&6; }
19759 no) { echo "$as_me:$LINENO: result: no" >&5
19760 echo "${ECHO_T}no" >&6; }
19761 cat >>confdefs.h <<\_ACEOF
19762 #define NO_PAM_SESSION 1
19766 *) { echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6; }
19768 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19769 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19773 { echo "$as_me:$LINENO: result: yes" >&5
19774 echo "${ECHO_T}yes" >&6; }
19778 *-*-linux*|*-*-solaris*)
19780 for ac_func in dgettext
19782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19796 #define $ac_func innocuous_$ac_func
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func (); below.
19800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801 <limits.h> exists even on freestanding compilers. */
19804 # include <limits.h>
19806 # include <assert.h>
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19818 /* The GNU C library defines this for functions which it implements
19819 to always fail with ENOSYS. Some functions are actually named
19820 something starting with __ and the normal name is an alias. */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19828 return $ac_func ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest$ac_exeext &&
19850 $as_test_x conftest$ac_exeext; then
19851 eval "$as_ac_var=yes"
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 eval "$as_ac_var=no"
19859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860 conftest$ac_exeext conftest.$ac_ext
19862 ac_res=`eval echo '${'$as_ac_var'}'`
19863 { echo "$as_me:$LINENO: result: $ac_res" >&5
19864 echo "${ECHO_T}$ac_res" >&6; }
19865 if test `eval echo '${'$as_ac_var'}'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19871 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19872 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19873 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 ac_check_lib_save_LIBS=$LIBS
19877 LIBS="-lintl $LIBS"
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19885 /* Override any GCC internal prototype to avoid an error.
19886 Use char because int might match the return type of a GCC
19887 builtin and then its argument prototype would still apply. */
19895 return dgettext ();
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_link") 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } && {
19914 test -z "$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19916 } && test -s conftest$ac_exeext &&
19917 $as_test_x conftest$ac_exeext; then
19918 ac_cv_lib_intl_dgettext=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_cv_lib_intl_dgettext=no
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927 conftest$ac_exeext conftest.$ac_ext
19928 LIBS=$ac_check_lib_save_LIBS
19930 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19931 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19932 if test $ac_cv_lib_intl_dgettext = yes; then
19933 LIBS="${LIBS} -lintl"
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_DGETTEXT 1
19948 if test ${with_aixauth-'no'} != "no"; then
19949 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19950 { echo "$as_me:$LINENO: using AIX general authentication" >&5
19951 echo "$as_me: using AIX general authentication" >&6;}
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_AIXAUTH 1
19956 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19957 SUDO_LIBS="${SUDO_LIBS} -ls"
19962 if test ${with_bsdauth-'no'} != "no"; then
19963 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19964 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19965 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19966 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19970 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19972 # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19974 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <bsd_auth.h>
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20015 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <bsd_auth.h>
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } >/dev/null && {
20037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20040 ac_header_preproc=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20059 ac_header_preproc=yes
20062 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20077 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20078 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20079 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 ac_cv_header_bsd_auth_h=$ac_header_preproc
20084 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20085 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20088 if test $ac_cv_header_bsd_auth_h = yes; then
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_BSD_AUTH_H 1
20093 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20094 AUTH_EXCL=BSD_AUTH; BAMAN=""
20096 { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20097 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20098 { (exit 1); exit 1; }; }
20104 if test ${CHECKSIA-'false'} = "true"; then
20106 for ac_func in sia_ses_init
20108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20122 #define $ac_func innocuous_$ac_func
20124 /* System header to define __stub macros and hopefully few prototypes,
20125 which can conflict with char $ac_func (); below.
20126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20127 <limits.h> exists even on freestanding compilers. */
20130 # include <limits.h>
20132 # include <assert.h>
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20144 /* The GNU C library defines this for functions which it implements
20145 to always fail with ENOSYS. Some functions are actually named
20146 something starting with __ and the normal name is an alias. */
20147 #if defined __stub_$ac_func || defined __stub___$ac_func
20154 return $ac_func ();
20159 rm -f conftest.$ac_objext conftest$ac_exeext
20160 if { (ac_try="$ac_link"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_link") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest$ac_exeext &&
20176 $as_test_x conftest$ac_exeext; then
20177 eval "$as_ac_var=yes"
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 eval "$as_ac_var=no"
20185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20186 conftest$ac_exeext conftest.$ac_ext
20188 ac_res=`eval echo '${'$as_ac_var'}'`
20189 { echo "$as_me:$LINENO: result: $ac_res" >&5
20190 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_var'}'` = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20201 if test "$found" = "true"; then
20203 AUTH_OBJS="$AUTH_OBJS sia.o"
20207 if test ${with_fwtk-'no'} != "no"; then
20208 if test "$with_fwtk" != "yes"; then
20210 if test X"$with_rpath" = X"yes"; then
20211 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20213 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20215 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20216 blibpath_add="${blibpath_add}:${with_fwtk}"
20219 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20222 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20223 AUTH_OBJS="$AUTH_OBJS fwtk.o"
20226 if test ${with_SecurID-'no'} != "no"; then
20227 if test "$with_SecurID" != "yes"; then
20229 elif test -d /usr/ace/examples; then
20230 with_SecurID=/usr/ace/examples
20232 with_SecurID=/usr/ace
20234 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20235 _LDFLAGS="${LDFLAGS}"
20237 if test X"$with_rpath" = X"yes"; then
20238 LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20240 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20242 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20243 blibpath_add="${blibpath_add}:${with_SecurID}"
20247 # Determine whether to use the new or old SecurID API
20249 { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20250 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_check_lib_save_LIBS=$LIBS
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest$ac_exeext &&
20298 $as_test_x conftest$ac_exeext; then
20299 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308 conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_check_lib_save_LIBS
20311 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20312 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20313 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20315 AUTH_OBJS="$AUTH_OBJS securid5.o";
20316 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20320 if test X"$with_rpath" = X"yes"; then
20321 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20323 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20325 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20326 blibpath_add="${blibpath_add}:${with_SecurID}"
20332 AUTH_OBJS="$AUTH_OBJS securid.o";
20333 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20337 LDFLAGS="${_LDFLAGS}"
20341 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20342 for auth in $AUTH_DEF; do
20344 passwd) : ${with_passwd='maybe'};;
20349 if test ${with_kerb4-'no'} != "no"; then
20350 cat >>confdefs.h <<\_ACEOF
20351 #define HAVE_KERB4 1
20354 O_LDFLAGS="$LDFLAGS"
20355 if test "$with_kerb4" = "yes"; then
20357 O_CPPFLAGS="$CPPFLAGS"
20358 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20359 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20360 cat >conftest.$ac_ext <<_ACEOF
20363 if { (ac_try="$ac_cpp conftest.$ac_ext"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20371 grep -v '^ *+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } >/dev/null && {
20376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20387 rm -f conftest.err conftest.$ac_ext
20389 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20392 if test X"$with_rpath" = X"yes"; then
20393 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20395 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20397 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20398 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20402 if test X"$with_rpath" = X"yes"; then
20403 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20405 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20407 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20408 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20411 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20412 if test "${ac_cv_header_krb_h+set}" = set; then
20413 { echo "$as_me:$LINENO: checking for krb.h" >&5
20414 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20415 if test "${ac_cv_header_krb_h+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20419 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20421 # Is the header compilable?
20422 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20423 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 $ac_includes_default
20433 rm -f conftest.$ac_objext
20434 if { (ac_try="$ac_compile"
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_compile") 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); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest.$ac_objext; then
20450 ac_header_compiler=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_header_compiler=no
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6; }
20462 # Is the header present?
20463 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20464 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20473 if { (ac_try="$ac_cpp conftest.$ac_ext"
20474 case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20481 grep -v '^ *+' conftest.er1 >conftest.err
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } >/dev/null && {
20486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20489 ac_header_preproc=yes
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_header_preproc=no
20497 rm -f conftest.err conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20499 echo "${ECHO_T}$ac_header_preproc" >&6; }
20501 # So? What about this header?
20502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20504 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20505 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20507 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20508 ac_header_preproc=yes
20511 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20512 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20514 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20516 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20518 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20520 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20522 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20526 { echo "$as_me:$LINENO: checking for krb.h" >&5
20527 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20528 if test "${ac_cv_header_krb_h+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_cv_header_krb_h=$ac_header_preproc
20533 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20534 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20537 if test $ac_cv_header_krb_h = yes; then
20545 if test X"$found" = X"no"; then
20546 { 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
20547 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;}
20550 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20551 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20552 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 ac_check_lib_save_LIBS=$LIBS
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 /* Override any GCC internal prototype to avoid an error.
20565 Use char because int might match the return type of a GCC
20566 builtin and then its argument prototype would still apply. */
20570 char des_cbc_encrypt ();
20574 return des_cbc_encrypt ();
20579 rm -f conftest.$ac_objext conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>conftest.er1
20588 grep -v '^ *+' conftest.er1 >conftest.err
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest$ac_exeext &&
20596 $as_test_x conftest$ac_exeext; then
20597 ac_cv_lib_des_des_cbc_encrypt=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ac_cv_lib_des_des_cbc_encrypt=no
20605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20606 conftest$ac_exeext conftest.$ac_ext
20607 LIBS=$ac_check_lib_save_LIBS
20609 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20610 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20611 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20615 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20616 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20617 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-ldes425 $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 /* Override any GCC internal prototype to avoid an error.
20630 Use char because int might match the return type of a GCC
20631 builtin and then its argument prototype would still apply. */
20635 char des_cbc_encrypt ();
20639 return des_cbc_encrypt ();
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_link") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext &&
20661 $as_test_x conftest$ac_exeext; then
20662 ac_cv_lib_des425_des_cbc_encrypt=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_lib_des425_des_cbc_encrypt=no
20670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20671 conftest$ac_exeext conftest.$ac_ext
20672 LIBS=$ac_check_lib_save_LIBS
20674 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20675 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20676 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20685 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20686 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20697 const char *tmp = krb4_version;
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20720 { echo "$as_me:$LINENO: result: yes" >&5
20721 echo "${ECHO_T}yes" >&6; }
20722 K4LIBS="${K4LIBS} -lcom_err"
20723 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20724 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20725 if test "${ac_cv_lib_roken_main+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 ac_check_lib_save_LIBS=$LIBS
20729 LIBS="-lroken $LIBS"
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext &&
20763 $as_test_x conftest$ac_exeext; then
20764 ac_cv_lib_roken_main=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_lib_roken_main=no
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20774 LIBS=$ac_check_lib_save_LIBS
20776 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20777 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20778 if test $ac_cv_lib_roken_main = yes; then
20779 K4LIBS="${K4LIBS} -lroken"
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20788 { echo "$as_me:$LINENO: result: no" >&5
20789 echo "${ECHO_T}no" >&6; }
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20796 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20797 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 ac_check_lib_save_LIBS=$LIBS
20802 LIBS="-lkrb $K4LIBS $LIBS"
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_link") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest$ac_exeext &&
20836 $as_test_x conftest$ac_exeext; then
20837 eval "$as_ac_Lib=yes"
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 eval "$as_ac_Lib=no"
20845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20846 conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20849 ac_res=`eval echo '${'$as_ac_Lib'}'`
20850 { echo "$as_me:$LINENO: result: $ac_res" >&5
20851 echo "${ECHO_T}$ac_res" >&6; }
20852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20853 K4LIBS="-lkrb $K4LIBS"
20856 as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20857 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20858 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20859 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lkrb4 $K4LIBS $LIBS"
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (ac_try="$ac_link"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_link") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest$ac_exeext &&
20897 $as_test_x conftest$ac_exeext; then
20898 eval "$as_ac_Lib=yes"
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 eval "$as_ac_Lib=no"
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907 conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20910 ac_res=`eval echo '${'$as_ac_Lib'}'`
20911 { echo "$as_me:$LINENO: result: $ac_res" >&5
20912 echo "${ECHO_T}$ac_res" >&6; }
20913 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20914 K4LIBS="-lkrb4 $K4LIBS"
20916 K4LIBS="-lkrb $K4LIBS"
20917 { 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
20918 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;}
20925 LDFLAGS="$O_LDFLAGS"
20926 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20927 AUTH_OBJS="$AUTH_OBJS kerb4.o"
20930 if test ${with_kerb5-'no'} != "no"; then
20931 # Extract the first word of "krb5-config", so it can be a program name with args.
20932 set dummy krb5-config; ac_word=$2
20933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20935 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20938 if test -n "$KRB5CONFIG"; then
20939 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20942 for as_dir in $PATH
20945 test -z "$as_dir" && as_dir=.
20946 for ac_exec_ext in '' $ac_executable_extensions; do
20947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20948 ac_cv_prog_KRB5CONFIG="yes"
20949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20956 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20959 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20960 if test -n "$KRB5CONFIG"; then
20961 { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20962 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20964 { echo "$as_me:$LINENO: result: no" >&5
20965 echo "${ECHO_T}no" >&6; }
20969 if test -n "$KRB5CONFIG"; then
20970 cat >>confdefs.h <<\_ACEOF
20971 #define HAVE_KERB5 1
20974 AUTH_OBJS="$AUTH_OBJS kerb5.o"
20975 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20976 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20977 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20978 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20989 const char *tmp = heimdal_version;
20994 rm -f conftest.$ac_objext
20995 if { (ac_try="$ac_compile"
20996 case "(($ac_try" in
20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998 *) ac_try_echo=$ac_try;;
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001 (eval "$ac_compile") 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } && {
21008 test -z "$ac_c_werror_flag" ||
21009 test ! -s conftest.err
21010 } && test -s conftest.$ac_objext; then
21012 { echo "$as_me:$LINENO: result: yes" >&5
21013 echo "${ECHO_T}yes" >&6; }
21014 cat >>confdefs.h <<\_ACEOF
21015 #define HAVE_HEIMDAL 1
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21024 { echo "$as_me:$LINENO: result: no" >&5
21025 echo "${ECHO_T}no" >&6; }
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21034 cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_KERB5 1
21038 if test "$with_kerb5" = "yes"; then
21040 O_CPPFLAGS="$CPPFLAGS"
21041 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21042 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21043 cat >conftest.$ac_ext <<_ACEOF
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null && {
21059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21070 rm -f conftest.err conftest.$ac_ext
21072 if test X"$found" = X"no"; then
21073 CPPFLAGS="$O_CPPFLAGS"
21074 { 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
21075 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;}
21079 if test X"$with_rpath" = X"yes"; then
21080 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21082 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21084 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21085 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21088 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21091 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21092 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21103 const char *tmp = heimdal_version;
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21126 { echo "$as_me:$LINENO: result: yes" >&5
21127 echo "${ECHO_T}yes" >&6; }
21128 cat >>confdefs.h <<\_ACEOF
21129 #define HAVE_HEIMDAL 1
21132 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21133 { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21134 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21135 if test "${ac_cv_lib_roken_main+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lroken $LIBS"
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_link") 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest$ac_exeext &&
21173 $as_test_x conftest$ac_exeext; then
21174 ac_cv_lib_roken_main=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_lib_roken_main=no
21182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21183 conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21186 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21187 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21188 if test $ac_cv_lib_roken_main = yes; then
21189 SUDO_LIBS="${SUDO_LIBS} -lroken"
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21198 { echo "$as_me:$LINENO: result: no" >&5
21199 echo "${ECHO_T}no" >&6; }
21200 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21201 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21202 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21203 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 ac_check_lib_save_LIBS=$LIBS
21207 LIBS="-lkrb5support $LIBS"
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_link") 2>conftest.er1
21233 grep -v '^ *+' conftest.er1 >conftest.err
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } && {
21238 test -z "$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21240 } && test -s conftest$ac_exeext &&
21241 $as_test_x conftest$ac_exeext; then
21242 ac_cv_lib_krb5support_main=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_cv_lib_krb5support_main=no
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251 conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21254 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21255 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21256 if test $ac_cv_lib_krb5support_main = yes; then
21257 SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 AUTH_OBJS="$AUTH_OBJS kerb5.o"
21266 LIBS="${LIBS} ${SUDO_LIBS}"
21269 for ac_func in krb5_verify_user krb5_init_secure_context
21271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 cat >conftest.$ac_ext <<_ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21285 #define $ac_func innocuous_$ac_func
21287 /* System header to define __stub macros and hopefully few prototypes,
21288 which can conflict with char $ac_func (); below.
21289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21290 <limits.h> exists even on freestanding compilers. */
21293 # include <limits.h>
21295 # include <assert.h>
21300 /* Override any GCC internal prototype to avoid an error.
21301 Use char because int might match the return type of a GCC
21302 builtin and then its argument prototype would still apply. */
21307 /* The GNU C library defines this for functions which it implements
21308 to always fail with ENOSYS. Some functions are actually named
21309 something starting with __ and the normal name is an alias. */
21310 #if defined __stub_$ac_func || defined __stub___$ac_func
21317 return $ac_func ();
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (ac_try="$ac_link"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_link") 2>conftest.er1
21331 grep -v '^ *+' conftest.er1 >conftest.err
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } && {
21336 test -z "$ac_c_werror_flag" ||
21337 test ! -s conftest.err
21338 } && test -s conftest$ac_exeext &&
21339 $as_test_x conftest$ac_exeext; then
21340 eval "$as_ac_var=yes"
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 eval "$as_ac_var=no"
21348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21349 conftest$ac_exeext conftest.$ac_ext
21351 ac_res=`eval echo '${'$as_ac_var'}'`
21352 { echo "$as_me:$LINENO: result: $ac_res" >&5
21353 echo "${ECHO_T}$ac_res" >&6; }
21354 if test `eval echo '${'$as_ac_var'}'` = yes; then
21355 cat >>confdefs.h <<_ACEOF
21356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21365 if test ${with_AFS-'no'} = "yes"; then
21367 # looks like the "standard" place for AFS libs is /usr/afsws/lib
21368 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21369 for i in $AFSLIBDIRS; do
21370 if test -d ${i}; then
21372 if test X"$with_rpath" = X"yes"; then
21373 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21375 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21377 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21378 blibpath_add="${blibpath_add}:$i"
21381 FOUND_AFSLIBDIR=true
21384 if test -z "$FOUND_AFSLIBDIR"; then
21385 { 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
21386 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;}
21389 # Order is important here. Note that we build AFS_LIBS from right to left
21390 # since AFS_LIBS may be initialized with BSD compat libs that must go last
21391 AFS_LIBS="-laudit ${AFS_LIBS}"
21392 for i in $AFSLIBDIRS; do
21393 if test -f ${i}/util.a; then
21394 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21399 if test -z "$FOUND_UTIL_A"; then
21400 AFS_LIBS="-lutil ${AFS_LIBS}"
21402 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21404 # AFS includes may live in /usr/include on some machines...
21405 for i in /usr/afsws/include; do
21406 if test -d ${i}; then
21407 CPPFLAGS="${CPPFLAGS} -I${i}"
21408 FOUND_AFSINCDIR=true
21412 if test -z "$FOUND_AFSLIBDIR"; then
21413 { 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
21414 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;}
21417 AUTH_OBJS="$AUTH_OBJS afs.o"
21420 if test ${with_DCE-'no'} = "yes"; then
21421 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21422 SUDO_LIBS="${SUDO_LIBS} -ldce"
21423 AUTH_OBJS="$AUTH_OBJS dce.o"
21426 if test ${with_skey-'no'} = "yes"; then
21427 O_LDFLAGS="$LDFLAGS"
21428 if test "$with_skey" != "yes"; then
21429 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21431 if test X"$with_rpath" = X"yes"; then
21432 LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21434 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21436 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21437 blibpath_add="${blibpath_add}:${with_skey}/lib"
21441 if test X"$with_rpath" = X"yes"; then
21442 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21444 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21446 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21447 blibpath_add="${blibpath_add}:${with_skey}/lib"
21450 cat >conftest.$ac_ext <<_ACEOF
21453 if { (ac_try="$ac_cpp conftest.$ac_ext"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } >/dev/null && {
21466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21477 rm -f conftest.err conftest.$ac_ext
21480 O_CPPFLAGS="$CPPFLAGS"
21481 for dir in "" "/usr/local" "/usr/contrib"; do
21482 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21483 cat >conftest.$ac_ext <<_ACEOF
21486 if { (ac_try="$ac_cpp conftest.$ac_ext"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } >/dev/null && {
21499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21510 rm -f conftest.err conftest.$ac_ext
21512 if test "$found" = "no" -o -z "$dir"; then
21513 CPPFLAGS="$O_CPPFLAGS"
21516 if test X"$with_rpath" = X"yes"; then
21517 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21519 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21521 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21522 blibpath_add="${blibpath_add}:${dir}/lib"
21526 if test X"$with_rpath" = X"yes"; then
21527 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21529 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21531 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21532 blibpath_add="${blibpath_add}:${dir}/lib"
21537 if test "$found" = "no"; then
21538 { 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
21539 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;}
21541 { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21542 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21543 if test "${ac_cv_lib_skey_main+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 ac_check_lib_save_LIBS=$LIBS
21547 LIBS="-lskey $LIBS"
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_link") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext &&
21581 $as_test_x conftest$ac_exeext; then
21582 ac_cv_lib_skey_main=yes
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ac_cv_lib_skey_main=no
21590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21591 conftest$ac_exeext conftest.$ac_ext
21592 LIBS=$ac_check_lib_save_LIBS
21594 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21595 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21596 if test $ac_cv_lib_skey_main = yes; then
21599 { 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
21600 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;}
21603 { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21604 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21605 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 ac_check_lib_save_LIBS=$LIBS
21609 LIBS="-lskey $LIBS"
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21623 char skeyaccess ();
21627 return skeyaccess ();
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_link") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest$ac_exeext &&
21649 $as_test_x conftest$ac_exeext; then
21650 ac_cv_lib_skey_skeyaccess=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_lib_skey_skeyaccess=no
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659 conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21662 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21663 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21664 if test $ac_cv_lib_skey_skeyaccess = yes; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_SKEYACCESS 1
21671 LDFLAGS="$O_LDFLAGS"
21672 SUDO_LIBS="${SUDO_LIBS} -lskey"
21673 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21676 if test ${with_opie-'no'} = "yes"; then
21677 O_LDFLAGS="$LDFLAGS"
21678 if test "$with_opie" != "yes"; then
21679 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21681 if test X"$with_rpath" = X"yes"; then
21682 LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21684 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21686 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21687 blibpath_add="${blibpath_add}:${with_opie}/lib"
21691 if test X"$with_rpath" = X"yes"; then
21692 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21694 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21696 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21697 blibpath_add="${blibpath_add}:${with_opie}/lib"
21700 cat >conftest.$ac_ext <<_ACEOF
21703 if { (ac_try="$ac_cpp conftest.$ac_ext"
21704 case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } >/dev/null && {
21716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21717 test ! -s conftest.err
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21727 rm -f conftest.err conftest.$ac_ext
21730 O_CPPFLAGS="$CPPFLAGS"
21731 for dir in "" "/usr/local" "/usr/contrib"; do
21732 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21733 cat >conftest.$ac_ext <<_ACEOF
21736 if { (ac_try="$ac_cpp conftest.$ac_ext"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } >/dev/null && {
21749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21760 rm -f conftest.err conftest.$ac_ext
21762 if test "$found" = "no" -o -z "$dir"; then
21763 CPPFLAGS="$O_CPPFLAGS"
21766 if test X"$with_rpath" = X"yes"; then
21767 LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21769 LDFLAGS="${LDFLAGS} -L${dir}/lib"
21771 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21772 blibpath_add="${blibpath_add}:${dir}/lib"
21776 if test X"$with_rpath" = X"yes"; then
21777 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21779 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21781 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21782 blibpath_add="${blibpath_add}:${dir}/lib"
21787 if test "$found" = "no"; then
21788 { 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
21789 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;}
21791 { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21792 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_opie_main+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-lopie $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (ac_try="$ac_link"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_link") 2>conftest.er1
21823 grep -v '^ *+' conftest.er1 >conftest.err
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && {
21828 test -z "$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 } && test -s conftest$ac_exeext &&
21831 $as_test_x conftest$ac_exeext; then
21832 ac_cv_lib_opie_main=yes
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_lib_opie_main=no
21840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841 conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21844 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21845 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21846 if test $ac_cv_lib_opie_main = yes; then
21849 { 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
21850 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;}
21853 LDFLAGS="$O_LDFLAGS"
21854 SUDO_LIBS="${SUDO_LIBS} -lopie"
21855 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21858 if test ${with_passwd-'no'} != "no"; then
21859 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21860 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21861 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21862 if test "${ac_cv_search_crypt+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 ac_func_search_save_LIBS=$LIBS
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 /* Override any GCC internal prototype to avoid an error.
21874 Use char because int might match the return type of a GCC
21875 builtin and then its argument prototype would still apply. */
21888 for ac_lib in '' crypt crypt_d ufc; do
21889 if test -z "$ac_lib"; then
21890 ac_res="none required"
21893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } && {
21909 test -z "$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21911 } && test -s conftest$ac_exeext &&
21912 $as_test_x conftest$ac_exeext; then
21913 ac_cv_search_crypt=$ac_res
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21923 if test "${ac_cv_search_crypt+set}" = set; then
21927 if test "${ac_cv_search_crypt+set}" = set; then
21930 ac_cv_search_crypt=no
21932 rm conftest.$ac_ext
21933 LIBS=$ac_func_search_save_LIBS
21935 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21936 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21937 ac_res=$ac_cv_search_crypt
21938 if test "$ac_res" != no; then
21939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21940 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21945 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21947 LIBS="$LIBS $shadow_libs"
21950 for ac_func in $shadow_funcs
21952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21966 #define $ac_func innocuous_$ac_func
21968 /* System header to define __stub macros and hopefully few prototypes,
21969 which can conflict with char $ac_func (); below.
21970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21971 <limits.h> exists even on freestanding compilers. */
21974 # include <limits.h>
21976 # include <assert.h>
21981 /* Override any GCC internal prototype to avoid an error.
21982 Use char because int might match the return type of a GCC
21983 builtin and then its argument prototype would still apply. */
21988 /* The GNU C library defines this for functions which it implements
21989 to always fail with ENOSYS. Some functions are actually named
21990 something starting with __ and the normal name is an alias. */
21991 #if defined __stub_$ac_func || defined __stub___$ac_func
21998 return $ac_func ();
22003 rm -f conftest.$ac_objext conftest$ac_exeext
22004 if { (ac_try="$ac_link"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_link") 2>conftest.er1
22012 grep -v '^ *+' conftest.er1 >conftest.err
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && {
22017 test -z "$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 } && test -s conftest$ac_exeext &&
22020 $as_test_x conftest$ac_exeext; then
22021 eval "$as_ac_var=yes"
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 eval "$as_ac_var=no"
22029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22030 conftest$ac_exeext conftest.$ac_ext
22032 ac_res=`eval echo '${'$as_ac_var'}'`
22033 { echo "$as_me:$LINENO: result: $ac_res" >&5
22034 echo "${ECHO_T}$ac_res" >&6; }
22035 if test `eval echo '${'$as_ac_var'}'` = yes; then
22036 cat >>confdefs.h <<_ACEOF
22037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22043 if test "$found" = "yes"; then
22044 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22045 elif test -n "$shadow_libs_optional"; then
22046 LIBS="$LIBS $shadow_libs_optional"
22048 for ac_func in $shadow_funcs
22050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22064 #define $ac_func innocuous_$ac_func
22066 /* System header to define __stub macros and hopefully few prototypes,
22067 which can conflict with char $ac_func (); below.
22068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069 <limits.h> exists even on freestanding compilers. */
22072 # include <limits.h>
22074 # include <assert.h>
22079 /* Override any GCC internal prototype to avoid an error.
22080 Use char because int might match the return type of a GCC
22081 builtin and then its argument prototype would still apply. */
22086 /* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089 #if defined __stub_$ac_func || defined __stub___$ac_func
22096 return $ac_func ();
22101 rm -f conftest.$ac_objext conftest$ac_exeext
22102 if { (ac_try="$ac_link"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_link") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest$ac_exeext &&
22118 $as_test_x conftest$ac_exeext; then
22119 eval "$as_ac_var=yes"
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 eval "$as_ac_var=no"
22127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22128 conftest$ac_exeext conftest.$ac_ext
22130 ac_res=`eval echo '${'$as_ac_var'}'`
22131 { echo "$as_me:$LINENO: result: $ac_res" >&5
22132 echo "${ECHO_T}$ac_res" >&6; }
22133 if test `eval echo '${'$as_ac_var'}'` = yes; then
22134 cat >>confdefs.h <<_ACEOF
22135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22141 if test "$found" = "yes"; then
22142 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22145 if test "$found" = "yes"; then
22146 case "$shadow_funcs" in
22147 *getprpwnam*) SECUREWARE=1;;
22149 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22155 if test "$CHECKSHADOW" = "true"; then
22156 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22157 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22158 if test "${ac_cv_search_getspnam+set}" = set; then
22159 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 ac_func_search_save_LIBS=$LIBS
22162 cat >conftest.$ac_ext <<_ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h. */
22169 /* Override any GCC internal prototype to avoid an error.
22170 Use char because int might match the return type of a GCC
22171 builtin and then its argument prototype would still apply. */
22179 return getspnam ();
22184 for ac_lib in '' gen; do
22185 if test -z "$ac_lib"; then
22186 ac_res="none required"
22189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22191 rm -f conftest.$ac_objext conftest$ac_exeext
22192 if { (ac_try="$ac_link"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198 (eval "$ac_link") 2>conftest.er1
22200 grep -v '^ *+' conftest.er1 >conftest.err
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && {
22205 test -z "$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 } && test -s conftest$ac_exeext &&
22208 $as_test_x conftest$ac_exeext; then
22209 ac_cv_search_getspnam=$ac_res
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22219 if test "${ac_cv_search_getspnam+set}" = set; then
22223 if test "${ac_cv_search_getspnam+set}" = set; then
22226 ac_cv_search_getspnam=no
22228 rm conftest.$ac_ext
22229 LIBS=$ac_func_search_save_LIBS
22231 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22232 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22233 ac_res=$ac_cv_search_getspnam
22234 if test "$ac_res" != no; then
22235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22236 cat >>confdefs.h <<\_ACEOF
22237 #define HAVE_GETSPNAM 1
22239 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22243 if test "$CHECKSHADOW" = "true"; then
22244 { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22245 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22246 if test "${ac_cv_search_getprpwnam+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 ac_func_search_save_LIBS=$LIBS
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22257 /* Override any GCC internal prototype to avoid an error.
22258 Use char because int might match the return type of a GCC
22259 builtin and then its argument prototype would still apply. */
22263 char getprpwnam ();
22267 return getprpwnam ();
22272 for ac_lib in '' sec security prot; do
22273 if test -z "$ac_lib"; then
22274 ac_res="none required"
22277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (ac_try="$ac_link"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_link") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext &&
22296 $as_test_x conftest$ac_exeext; then
22297 ac_cv_search_getprpwnam=$ac_res
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 if test "${ac_cv_search_getprpwnam+set}" = set; then
22311 if test "${ac_cv_search_getprpwnam+set}" = set; then
22314 ac_cv_search_getprpwnam=no
22316 rm conftest.$ac_ext
22317 LIBS=$ac_func_search_save_LIBS
22319 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22320 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22321 ac_res=$ac_cv_search_getprpwnam
22322 if test "$ac_res" != no; then
22323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_GETPRPWNAM 1
22327 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22331 if test -n "$SECUREWARE"; then
22335 for ac_func in bigcrypt set_auth_parameters initprivs
22337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22351 #define $ac_func innocuous_$ac_func
22353 /* System header to define __stub macros and hopefully few prototypes,
22354 which can conflict with char $ac_func (); below.
22355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356 <limits.h> exists even on freestanding compilers. */
22359 # include <limits.h>
22361 # include <assert.h>
22366 /* Override any GCC internal prototype to avoid an error.
22367 Use char because int might match the return type of a GCC
22368 builtin and then its argument prototype would still apply. */
22373 /* The GNU C library defines this for functions which it implements
22374 to always fail with ENOSYS. Some functions are actually named
22375 something starting with __ and the normal name is an alias. */
22376 #if defined __stub_$ac_func || defined __stub___$ac_func
22383 return $ac_func ();
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_link") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest$ac_exeext &&
22405 $as_test_x conftest$ac_exeext; then
22406 eval "$as_ac_var=yes"
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 eval "$as_ac_var=no"
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415 conftest$ac_exeext conftest.$ac_ext
22417 ac_res=`eval echo '${'$as_ac_var'}'`
22418 { echo "$as_me:$LINENO: result: $ac_res" >&5
22419 echo "${ECHO_T}$ac_res" >&6; }
22420 if test `eval echo '${'$as_ac_var'}'` = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22428 AUTH_OBJS="$AUTH_OBJS secureware.o"
22432 if test ${with_ldap-'no'} != "no"; then
22433 _LDFLAGS="$LDFLAGS"
22434 if test "$with_ldap" != "yes"; then
22436 if test X"$with_rpath" = X"yes"; then
22437 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22439 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22441 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22442 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22446 if test X"$with_rpath" = X"yes"; then
22447 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22449 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22451 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22452 blibpath_add="${blibpath_add}:${with_ldap}/lib"
22455 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22458 SUDO_OBJS="${SUDO_OBJS} ldap.o"
22460 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22461 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22465 for l in -lldap -llber '-lssl -lcrypto'; do
22467 LDAP_LIBS="${LDAP_LIBS} $l"
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <sys/types.h>
22480 (void)ldap_init(0, 0)
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_link") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest$ac_exeext &&
22502 $as_test_x conftest$ac_exeext; then
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512 conftest$ac_exeext conftest.$ac_ext
22514 if test "$found" = "no"; then
22515 LIBS="${_LIBS} -lldap"
22517 { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22518 echo "${ECHO_T}not found, using -lldap" >&6; }
22520 { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22521 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22524 { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22525 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22526 if test "${ac_cv_search_ber_set_option+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 ac_func_search_save_LIBS=$LIBS
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22543 char ber_set_option ();
22547 return ber_set_option ();
22552 for ac_lib in '' lber; do
22553 if test -z "$ac_lib"; then
22554 ac_res="none required"
22557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_link") 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest$ac_exeext &&
22576 $as_test_x conftest$ac_exeext; then
22577 ac_cv_search_ber_set_option=$ac_res
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22587 if test "${ac_cv_search_ber_set_option+set}" = set; then
22591 if test "${ac_cv_search_ber_set_option+set}" = set; then
22594 ac_cv_search_ber_set_option=no
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22599 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22600 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22601 ac_res=$ac_cv_search_ber_set_option
22602 if test "$ac_res" != no; then
22603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22609 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22610 LDAP_LIBS="$LDAP_LIBS -llber"
22612 { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22613 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 #include <sys/types.h>
22625 (void)ldap_init(0, 0)
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (ac_try="$ac_link"
22632 case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_link") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1 >conftest.err
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext &&
22647 $as_test_x conftest$ac_exeext; then
22648 { echo "$as_me:$LINENO: result: no" >&5
22649 echo "${ECHO_T}no" >&6; }
22651 echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22655 { echo "$as_me:$LINENO: result: yes" >&5
22656 echo "${ECHO_T}yes" >&6; }
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_LBER_H 1
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
22670 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
22672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22686 #define $ac_func innocuous_$ac_func
22688 /* System header to define __stub macros and hopefully few prototypes,
22689 which can conflict with char $ac_func (); below.
22690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22691 <limits.h> exists even on freestanding compilers. */
22694 # include <limits.h>
22696 # include <assert.h>
22701 /* Override any GCC internal prototype to avoid an error.
22702 Use char because int might match the return type of a GCC
22703 builtin and then its argument prototype would still apply. */
22708 /* The GNU C library defines this for functions which it implements
22709 to always fail with ENOSYS. Some functions are actually named
22710 something starting with __ and the normal name is an alias. */
22711 #if defined __stub_$ac_func || defined __stub___$ac_func
22718 return $ac_func ();
22723 rm -f conftest.$ac_objext conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_link") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest$ac_exeext &&
22740 $as_test_x conftest$ac_exeext; then
22741 eval "$as_ac_var=yes"
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 eval "$as_ac_var=no"
22749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22750 conftest$ac_exeext conftest.$ac_ext
22752 ac_res=`eval echo '${'$as_ac_var'}'`
22753 { echo "$as_me:$LINENO: result: $ac_res" >&5
22754 echo "${ECHO_T}$ac_res" >&6; }
22755 if test `eval echo '${'$as_ac_var'}'` = yes; then
22756 cat >>confdefs.h <<_ACEOF
22757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22765 for ac_header in ldap_ssl.h mps/ldap_ssl.h
22767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22781 #include <$ac_header>
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_compile") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest.$ac_objext; then
22800 eval "$as_ac_Header=yes"
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 eval "$as_ac_Header=no"
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 ac_res=`eval echo '${'$as_ac_Header'}'`
22811 { echo "$as_me:$LINENO: result: $ac_res" >&5
22812 echo "${ECHO_T}$ac_res" >&6; }
22813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22814 cat >>confdefs.h <<_ACEOF
22815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22823 SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
22825 LDFLAGS="$_LDFLAGS"
22826 # XXX - OpenLDAP has deprecated ldap_get_values()
22827 CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
22830 if test -n "$blibpath"; then
22831 if test -n "$blibpath_add"; then
22832 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
22833 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
22834 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
22838 { echo "$as_me:$LINENO: checking for log file location" >&5
22839 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
22840 if test -n "$with_logpath"; then
22841 { echo "$as_me:$LINENO: result: $with_logpath" >&5
22842 echo "${ECHO_T}$with_logpath" >&6; }
22843 cat >>confdefs.h <<EOF
22844 #define _PATH_SUDO_LOGFILE "$with_logpath"
22847 elif test -d "/var/log"; then
22848 { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
22849 echo "${ECHO_T}/var/log/sudo.log" >&6; }
22850 cat >>confdefs.h <<\EOF
22851 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
22854 elif test -d "/var/adm"; then
22855 { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
22856 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
22857 cat >>confdefs.h <<\EOF
22858 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
22861 elif test -d "/usr/adm"; then
22862 { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
22863 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
22864 cat >>confdefs.h <<\EOF
22865 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
22869 { echo "$as_me:$LINENO: result: unknown" >&5
22870 echo "${ECHO_T}unknown" >&6; }
22873 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
22874 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
22875 if test -n "$with_timedir"; then
22876 { echo "$as_me:$LINENO: result: $with_timedir" >&5
22877 echo "${ECHO_T}$with_timedir" >&6; }
22878 cat >>confdefs.h <<EOF
22879 #define _PATH_SUDO_TIMEDIR "$with_timedir"
22882 timedir="$with_timedir"
22883 elif test -d "/var/run"; then
22884 { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
22885 echo "${ECHO_T}/var/run/sudo" >&6; }
22886 cat >>confdefs.h <<\EOF
22887 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
22890 timedir="/var/run/sudo"
22891 elif test -d "/var/adm"; then
22892 { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
22893 echo "${ECHO_T}/var/adm/sudo" >&6; }
22894 cat >>confdefs.h <<\EOF
22895 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
22898 timedir="/var/adm/sudo"
22900 { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
22901 echo "${ECHO_T}/usr/adm/sudo" >&6; }
22902 cat >>confdefs.h <<\EOF
22903 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
22906 timedir="/usr/adm/sudo"
22910 case "$with_passwd" in
22912 AUTH_OBJS="$AUTH_OBJS passwd.o"
22915 cat >>confdefs.h <<\_ACEOF
22916 #define WITHOUT_PASSWD 1
22919 if test -z "$AUTH_OBJS"; then
22920 { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22921 echo "$as_me: error: no authentication methods defined." >&2;}
22922 { (exit 1); exit 1; }; }
22926 AUTH_OBJS=${AUTH_OBJS# }
22927 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22928 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22929 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22931 if test -n "$LIBS"; then
22936 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22937 test $l = $sl && dupe=1
22939 test $dupe = 0 && LIBS="${LIBS} $l"
22943 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22945 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
22946 oexec_prefix="$exec_prefix"
22947 if test "$exec_prefix" = '$(prefix)'; then
22948 if test "$prefix" = "NONE"; then
22949 exec_prefix="$ac_default_prefix"
22951 exec_prefix="$prefix"
22954 if test X"$with_noexec" != X"no"; then
22955 PROGS="${PROGS} sudo_noexec.la"
22956 INSTALL_NOEXEC="install-noexec"
22958 eval noexec_file="$with_noexec"
22960 cat >>confdefs.h <<_ACEOF
22961 #define _PATH_SUDO_NOEXEC "$noexec_file"
22965 if test X"$with_selinux" != X"no"; then
22966 eval sesh_file="$libexecdir/sesh"
22968 cat >>confdefs.h <<_ACEOF
22969 #define _PATH_SUDO_SESH "$sesh_file"
22973 exec_prefix="$oexec_prefix"
22976 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
22978 cat >confcache <<\_ACEOF
22979 # This file is a shell script that caches the results of configure
22980 # tests run on this system so they can be shared between configure
22981 # scripts and configure runs, see configure's option --config-cache.
22982 # It is not useful on other systems. If it contains results you don't
22983 # want to keep, you may remove or edit it.
22985 # config.status only pays attention to the cache file if you give it
22986 # the --recheck option to rerun configure.
22988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22990 # following values.
22994 # The following way of writing the cache mishandles newlines in values,
22995 # but we know of no workaround that is simple, portable, and efficient.
22996 # So, we kill variables containing newlines.
22997 # Ultrix sh set writes to stderr and can't be redirected directly,
22998 # and sets the high bit in the cache file unless we assign to the vars.
23000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23001 eval ac_val=\$$ac_var
23005 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23006 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23009 _ | IFS | as_nl) ;; #(
23010 *) $as_unset $ac_var ;;
23016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23017 *${as_nl}ac_space=\ *)
23018 # `set' does not quote correctly, so add quotes (double-quote
23019 # substitution turns \\\\ into \\, and sed turns \\ into \).
23022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23025 # `set' quotes correctly as required by POSIX, so do not add quotes.
23026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23040 if test -w "$cache_file"; then
23041 test "x$cache_file" != "x/dev/null" &&
23042 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23043 echo "$as_me: updating cache $cache_file" >&6;}
23044 cat confcache >$cache_file
23046 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23047 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23053 # Let make expand exec_prefix.
23054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23056 DEFS=-DHAVE_CONFIG_H
23060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23061 # 1. Remove the extension, and $U if already installed.
23062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23063 ac_i=`echo "$ac_i" | sed "$ac_script"`
23064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23065 # will be set to the directory where LIBOBJS objects are built.
23066 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23067 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23069 LIBOBJS=$ac_libobjs
23071 LTLIBOBJS=$ac_ltlibobjs
23075 : ${CONFIG_STATUS=./config.status}
23076 ac_clean_files_save=$ac_clean_files
23077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23080 cat >$CONFIG_STATUS <<_ACEOF
23082 # Generated by $as_me.
23083 # Run this file to recreate the current configuration.
23084 # Compiler output produced by configure, useful for debugging
23085 # configure, is in config.log if it exists.
23088 ac_cs_recheck=false
23090 SHELL=\${CONFIG_SHELL-$SHELL}
23093 cat >>$CONFIG_STATUS <<\_ACEOF
23094 ## --------------------- ##
23095 ## M4sh Initialization. ##
23096 ## --------------------- ##
23098 # Be more Bourne compatible
23099 DUALCASE=1; export DUALCASE # for MKS sh
23100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23104 # is contrary to our usage. Disable this feature.
23105 alias -g '${1+"$@"}'='"$@"'
23106 setopt NO_GLOB_SUBST
23108 case `(set -o) 2>/dev/null` in
23109 *posix*) set -o posix ;;
23118 # Avoid depending upon Character Ranges.
23119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23122 as_cr_digits='0123456789'
23123 as_cr_alnum=$as_cr_Letters$as_cr_digits
23125 # The user is always right.
23126 if test "${PATH_SEPARATOR+set}" != set; then
23127 echo "#! /bin/sh" >conf$$.sh
23128 echo "exit 0" >>conf$$.sh
23130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23138 # Support unset when possible.
23139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23147 # We need space, tab and new line, in precisely that order. Quoting is
23148 # there to prevent editors from complaining about space-tab.
23149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23150 # splitting by setting IFS to empty value.)
23155 # Find who we are. Look in the path if we contain no directory separator.
23157 *[\\/]* ) as_myself=$0 ;;
23158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23159 for as_dir in $PATH
23162 test -z "$as_dir" && as_dir=.
23163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23169 # We did not find ourselves, most probably we were run as `sh COMMAND'
23170 # in which case we are not to be found in the path.
23171 if test "x$as_myself" = x; then
23174 if test ! -f "$as_myself"; then
23175 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23176 { (exit 1); exit 1; }
23179 # Work around bugs in pre-3.0 UWIN ksh.
23180 for as_var in ENV MAIL MAILPATH
23181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23191 LC_TELEPHONE LC_TIME
23193 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23194 eval $as_var=C; export $as_var
23196 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23200 # Required to use basename.
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209 as_basename=basename
23215 # Name of the executable.
23216 as_me=`$as_basename -- "$0" ||
23217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23218 X"$0" : 'X\(//\)$' \| \
23219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23221 sed '/^.*\/\([^/][^/]*\)\/*$/{
23240 as_lineno_1=$LINENO
23241 as_lineno_2=$LINENO
23242 test "x$as_lineno_1" != "x$as_lineno_2" &&
23243 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23246 # uniformly replaced by the line number. The first 'sed' inserts a
23247 # line-number line after each line using $LINENO; the second 'sed'
23248 # does the real work. The second script uses 'N' to pair each
23249 # line-number line with the line containing $LINENO, and appends
23250 # trailing '-' during substitution so that $LINENO is not a special
23251 # case at line end.
23252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23253 # scripts with optimization help from Paolo Bonzini. Blame Lee
23254 # E. McMahon (1931-1989) for sed's syntax. :-)
23266 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23269 ' >$as_me.lineno &&
23270 chmod +x "$as_me.lineno" ||
23271 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23272 { (exit 1); exit 1; }; }
23274 # Don't try to exec as it changes $[0], causing all sort of problems
23275 # (the dirname of $[0] is not the place where we might find the
23276 # original and so on. Autoconf is especially sensitive to this).
23277 . "./$as_me.lineno"
23278 # Exit status is that of the last command.
23283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23289 ECHO_C= ECHO_N= ECHO_T=
23290 case `echo -n x` in
23292 case `echo 'x\c'` in
23293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23300 if expr a : '\(a\)' >/dev/null 2>&1 &&
23301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23307 rm -f conf$$ conf$$.exe conf$$.file
23308 if test -d conf$$.dir; then
23309 rm -f conf$$.dir/conf$$.file
23315 if ln -s conf$$.file conf$$ 2>/dev/null; then
23317 # ... but there are two gotchas:
23318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23320 # In both cases, we have to default to `cp -p'.
23321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23323 elif ln conf$$.file conf$$ 2>/dev/null; then
23328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23329 rmdir conf$$.dir 2>/dev/null
23331 if mkdir -p . 2>/dev/null; then
23334 test -d ./-p && rmdir ./-p
23338 if test -x / >/dev/null 2>&1; then
23339 as_test_x='test -x'
23341 if ls -dL / >/dev/null 2>&1; then
23348 if test -d "$1"; then
23354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23355 ???[sx]*):;;*)false;;esac;fi
23359 as_executable_p=$as_test_x
23361 # Sed expression to map a string onto a valid CPP name.
23362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23364 # Sed expression to map a string onto a valid variable name.
23365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23370 # Save the log message, to keep $[0] and so on meaningful, and to
23371 # report actual input values of CONFIG_FILES etc. instead of their
23372 # values after options handling.
23374 This file was extended by sudo $as_me 1.6.9, which was
23375 generated by GNU Autoconf 2.61. Invocation command line was
23377 CONFIG_FILES = $CONFIG_FILES
23378 CONFIG_HEADERS = $CONFIG_HEADERS
23379 CONFIG_LINKS = $CONFIG_LINKS
23380 CONFIG_COMMANDS = $CONFIG_COMMANDS
23383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23388 cat >>$CONFIG_STATUS <<_ACEOF
23389 # Files that config.status was made for.
23390 config_files="$ac_config_files"
23391 config_headers="$ac_config_headers"
23395 cat >>$CONFIG_STATUS <<\_ACEOF
23397 \`$as_me' instantiates files from templates according to the
23398 current configuration.
23400 Usage: $0 [OPTIONS] [FILE]...
23402 -h, --help print this help, then exit
23403 -V, --version print version number and configuration settings, then exit
23404 -q, --quiet do not print progress messages
23405 -d, --debug don't remove temporary files
23406 --recheck update $as_me by reconfiguring in the same conditions
23407 --file=FILE[:TEMPLATE]
23408 instantiate the configuration file FILE
23409 --header=FILE[:TEMPLATE]
23410 instantiate the configuration header FILE
23412 Configuration files:
23415 Configuration headers:
23418 Report bugs to <bug-autoconf@gnu.org>."
23421 cat >>$CONFIG_STATUS <<_ACEOF
23423 sudo config.status 1.6.9
23424 configured by $0, generated by GNU Autoconf 2.61,
23425 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23427 Copyright (C) 2006 Free Software Foundation, Inc.
23428 This config.status script is free software; the Free Software Foundation
23429 gives unlimited permission to copy, distribute and modify it."
23435 cat >>$CONFIG_STATUS <<\_ACEOF
23436 # If no file are specified by the user, then we need to provide default
23437 # value. By we need to know if files were specified by the user.
23443 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23444 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23455 # Handling of the options.
23456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23459 echo "$ac_cs_version"; exit ;;
23460 --debug | --debu | --deb | --de | --d | -d )
23462 --file | --fil | --fi | --f )
23464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23465 ac_need_defaults=false;;
23466 --header | --heade | --head | --hea )
23468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23469 ac_need_defaults=false;;
23471 # Conflict between --help and --header
23472 { echo "$as_me: error: ambiguous option: $1
23473 Try \`$0 --help' for more information." >&2
23474 { (exit 1); exit 1; }; };;
23475 --help | --hel | -h )
23476 echo "$ac_cs_usage"; exit ;;
23477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23481 # This is an error.
23482 -*) { echo "$as_me: error: unrecognized option: $1
23483 Try \`$0 --help' for more information." >&2
23484 { (exit 1); exit 1; }; } ;;
23486 *) ac_config_targets="$ac_config_targets $1"
23487 ac_need_defaults=false ;;
23493 ac_configure_extra_args=
23495 if $ac_cs_silent; then
23497 ac_configure_extra_args="$ac_configure_extra_args --silent"
23501 cat >>$CONFIG_STATUS <<_ACEOF
23502 if \$ac_cs_recheck; then
23503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23504 CONFIG_SHELL=$SHELL
23505 export CONFIG_SHELL
23506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23510 cat >>$CONFIG_STATUS <<\_ACEOF
23514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23515 ## Running $as_me. ##
23521 cat >>$CONFIG_STATUS <<_ACEOF
23524 cat >>$CONFIG_STATUS <<\_ACEOF
23526 # Handling of arguments.
23527 for ac_config_target in $ac_config_targets
23529 case $ac_config_target in
23530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23531 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23532 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23533 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23534 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23535 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23537 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23538 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23539 { (exit 1); exit 1; }; };;
23544 # If the user did not use the arguments to specify the items to instantiate,
23545 # then the envvar interface is used. Set only those that are not.
23546 # We use the long form for the default assignment because of an extremely
23547 # bizarre bug on SunOS 4.1.3.
23548 if $ac_need_defaults; then
23549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23553 # Have a temporary directory for convenience. Make it in the build tree
23554 # simply because there is no reason against having it here, and in addition,
23555 # creating and moving files from /tmp can sometimes cause problems.
23556 # Hook for its removal unless debugging.
23557 # Note that there is a small window in which the directory will not be cleaned:
23558 # after its creation but before its name has been assigned to `$tmp'.
23562 trap 'exit_status=$?
23563 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23565 trap '{ (exit 1); exit 1; }' 1 2 13 15
23567 # Create a (secure) tmp directory for tmp files.
23570 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23571 test -n "$tmp" && test -d "$tmp"
23574 tmp=./conf$$-$RANDOM
23575 (umask 077 && mkdir "$tmp")
23578 echo "$me: cannot create a temporary directory in ." >&2
23579 { (exit 1); exit 1; }
23583 # Set up the sed scripts for CONFIG_FILES section.
23586 # No need to generate the scripts if there are no CONFIG_FILES.
23587 # This happens for instance when ./config.status config.h
23588 if test -n "$CONFIG_FILES"; then
23595 for ac_last_try in false false false false false :; do
23596 cat >conf$$subs.sed <<_ACEOF
23597 SHELL!$SHELL$ac_delim
23598 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23599 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23600 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23601 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23602 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23603 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23604 exec_prefix!$exec_prefix$ac_delim
23605 prefix!$prefix$ac_delim
23606 program_transform_name!$program_transform_name$ac_delim
23607 bindir!$bindir$ac_delim
23608 sbindir!$sbindir$ac_delim
23609 libexecdir!$libexecdir$ac_delim
23610 datarootdir!$datarootdir$ac_delim
23611 datadir!$datadir$ac_delim
23612 sysconfdir!$sysconfdir$ac_delim
23613 sharedstatedir!$sharedstatedir$ac_delim
23614 localstatedir!$localstatedir$ac_delim
23615 includedir!$includedir$ac_delim
23616 oldincludedir!$oldincludedir$ac_delim
23617 docdir!$docdir$ac_delim
23618 infodir!$infodir$ac_delim
23619 htmldir!$htmldir$ac_delim
23620 dvidir!$dvidir$ac_delim
23621 pdfdir!$pdfdir$ac_delim
23622 psdir!$psdir$ac_delim
23623 libdir!$libdir$ac_delim
23624 localedir!$localedir$ac_delim
23625 mandir!$mandir$ac_delim
23626 DEFS!$DEFS$ac_delim
23627 ECHO_C!$ECHO_C$ac_delim
23628 ECHO_N!$ECHO_N$ac_delim
23629 ECHO_T!$ECHO_T$ac_delim
23630 LIBS!$LIBS$ac_delim
23631 build_alias!$build_alias$ac_delim
23632 host_alias!$host_alias$ac_delim
23633 target_alias!$target_alias$ac_delim
23634 LIBTOOL!$LIBTOOL$ac_delim
23635 CFLAGS!$CFLAGS$ac_delim
23636 PROGS!$PROGS$ac_delim
23637 CPPFLAGS!$CPPFLAGS$ac_delim
23638 LDFLAGS!$LDFLAGS$ac_delim
23639 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23640 SUDO_OBJS!$SUDO_OBJS$ac_delim
23641 SUDO_LIBS!$SUDO_LIBS$ac_delim
23642 NET_LIBS!$NET_LIBS$ac_delim
23643 AFS_LIBS!$AFS_LIBS$ac_delim
23644 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23645 OSDEFS!$OSDEFS$ac_delim
23646 AUTH_OBJS!$AUTH_OBJS$ac_delim
23647 MANTYPE!$MANTYPE$ac_delim
23648 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23649 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23650 SUDOERS_UID!$SUDOERS_UID$ac_delim
23651 SUDOERS_GID!$SUDOERS_GID$ac_delim
23653 SELINUX!$SELINUX$ac_delim
23654 BAMAN!$BAMAN$ac_delim
23655 LCMAN!$LCMAN$ac_delim
23656 SEMAN!$SEMAN$ac_delim
23657 mansectsu!$mansectsu$ac_delim
23658 mansectform!$mansectform$ac_delim
23659 mansrcdir!$mansrcdir$ac_delim
23660 NOEXECDIR!$NOEXECDIR$ac_delim
23661 noexec_file!$noexec_file$ac_delim
23662 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23663 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23664 timedir!$timedir$ac_delim
23665 timeout!$timeout$ac_delim
23666 password_timeout!$password_timeout$ac_delim
23667 sudo_umask!$sudo_umask$ac_delim
23668 passprompt!$passprompt$ac_delim
23669 long_otp_prompt!$long_otp_prompt$ac_delim
23670 lecture!$lecture$ac_delim
23671 logfac!$logfac$ac_delim
23672 goodpri!$goodpri$ac_delim
23673 badpri!$badpri$ac_delim
23674 loglen!$loglen$ac_delim
23675 ignore_dot!$ignore_dot$ac_delim
23676 mail_no_user!$mail_no_user$ac_delim
23677 mail_no_host!$mail_no_host$ac_delim
23678 mail_no_perms!$mail_no_perms$ac_delim
23679 mailto!$mailto$ac_delim
23680 mailsub!$mailsub$ac_delim
23681 badpass_message!$badpass_message$ac_delim
23682 fqdn!$fqdn$ac_delim
23683 runas_default!$runas_default$ac_delim
23684 env_editor!$env_editor$ac_delim
23685 passwd_tries!$passwd_tries$ac_delim
23686 tty_tickets!$tty_tickets$ac_delim
23687 insults!$insults$ac_delim
23688 root_sudo!$root_sudo$ac_delim
23689 path_info!$path_info$ac_delim
23690 EGREPPROG!$EGREPPROG$ac_delim
23692 ac_ct_CC!$ac_ct_CC$ac_delim
23693 EXEEXT!$EXEEXT$ac_delim
23696 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23698 elif $ac_last_try; then
23699 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23701 { (exit 1); exit 1; }; }
23703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23707 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23708 if test -n "$ac_eof"; then
23709 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23710 ac_eof=`expr $ac_eof + 1`
23713 cat >>$CONFIG_STATUS <<_ACEOF
23714 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23719 s/^/s,@/; s/!/@,|#_!!_#|/
23722 s/'"$ac_delim"'$/,g/; t
23724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23725 ' >>$CONFIG_STATUS <conf$$subs.sed
23726 rm -f conf$$subs.sed
23727 cat >>$CONFIG_STATUS <<_ACEOF
23733 for ac_last_try in false false false false false :; do
23734 cat >conf$$subs.sed <<_ACEOF
23735 OBJEXT!$OBJEXT$ac_delim
23737 build!$build$ac_delim
23738 build_cpu!$build_cpu$ac_delim
23739 build_vendor!$build_vendor$ac_delim
23740 build_os!$build_os$ac_delim
23741 host!$host$ac_delim
23742 host_cpu!$host_cpu$ac_delim
23743 host_vendor!$host_vendor$ac_delim
23744 host_os!$host_os$ac_delim
23745 target!$target$ac_delim
23746 target_cpu!$target_cpu$ac_delim
23747 target_vendor!$target_vendor$ac_delim
23748 target_os!$target_os$ac_delim
23750 GREP!$GREP$ac_delim
23751 EGREP!$EGREP$ac_delim
23752 LN_S!$LN_S$ac_delim
23753 ECHO!$ECHO$ac_delim
23755 RANLIB!$RANLIB$ac_delim
23756 STRIP!$STRIP$ac_delim
23757 UNAMEPROG!$UNAMEPROG$ac_delim
23758 TRPROG!$TRPROG$ac_delim
23759 NROFFPROG!$NROFFPROG$ac_delim
23760 YACC!$YACC$ac_delim
23761 YFLAGS!$YFLAGS$ac_delim
23762 LIBOBJS!$LIBOBJS$ac_delim
23763 ALLOCA!$ALLOCA$ac_delim
23764 KRB5CONFIG!$KRB5CONFIG$ac_delim
23765 LTLIBOBJS!$LTLIBOBJS$ac_delim
23768 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
23770 elif $ac_last_try; then
23771 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23772 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23773 { (exit 1); exit 1; }; }
23775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23779 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23780 if test -n "$ac_eof"; then
23781 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23782 ac_eof=`expr $ac_eof + 1`
23785 cat >>$CONFIG_STATUS <<_ACEOF
23786 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23790 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23791 s/^/s,@/; s/!/@,|#_!!_#|/
23794 s/'"$ac_delim"'$/,g/; t
23796 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23797 ' >>$CONFIG_STATUS <conf$$subs.sed
23798 rm -f conf$$subs.sed
23799 cat >>$CONFIG_STATUS <<_ACEOF
23806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23808 # trailing colons and then remove the whole line if VPATH becomes empty
23809 # (actually we leave an empty line to preserve line numbers).
23810 if test "x$srcdir" = x.; then
23811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23812 s/:*\$(srcdir):*/:/
23813 s/:*\${srcdir}:*/:/
23815 s/^\([^=]*=[ ]*\):*/\1/
23821 cat >>$CONFIG_STATUS <<\_ACEOF
23822 fi # test -n "$CONFIG_FILES"
23825 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
23828 :[FHLC]) ac_mode=$ac_tag; continue;;
23830 case $ac_mode$ac_tag in
23832 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23833 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23834 { (exit 1); exit 1; }; };;
23835 :[FH]-) ac_tag=-:-;;
23836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23853 -) ac_f="$tmp/stdin";;
23854 *) # Look for the file first in the build tree, then in the source tree
23855 # (if the path is not absolute). The absolute path cannot be DOS-style,
23856 # because $ac_f cannot contain `:'.
23860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23862 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23863 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23864 { (exit 1); exit 1; }; };;
23866 ac_file_inputs="$ac_file_inputs $ac_f"
23869 # Let's still pretend it is `configure' which instantiates (i.e., don't
23870 # use $as_me), people would be surprised to read:
23871 # /* config.h. Generated by config.status. */
23872 configure_input="Generated from "`IFS=:
23873 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23874 if test x"$ac_file" != x-; then
23875 configure_input="$ac_file. $configure_input"
23876 { echo "$as_me:$LINENO: creating $ac_file" >&5
23877 echo "$as_me: creating $ac_file" >&6;}
23881 *:-:* | *:-) cat >"$tmp/stdin";;
23886 ac_dir=`$as_dirname -- "$ac_file" ||
23887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23888 X"$ac_file" : 'X\(//\)[^/]' \| \
23889 X"$ac_file" : 'X\(//\)$' \| \
23890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23896 /^X\(\/\/\)[^/].*/{
23911 -*) as_dir=./$as_dir;;
23913 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23917 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23918 *) as_qdir=$as_dir;;
23920 as_dirs="'$as_qdir' $as_dirs"
23921 as_dir=`$as_dirname -- "$as_dir" ||
23922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23923 X"$as_dir" : 'X\(//\)[^/]' \| \
23924 X"$as_dir" : 'X\(//\)$' \| \
23925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23931 /^X\(\/\/\)[^/].*/{
23944 test -d "$as_dir" && break
23946 test -z "$as_dirs" || eval "mkdir $as_dirs"
23947 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23949 { (exit 1); exit 1; }; }; }
23953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23956 # A ".." for each directory in $ac_dir_suffix.
23957 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23958 case $ac_top_builddir_sub in
23959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23963 ac_abs_top_builddir=$ac_pwd
23964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23965 # for backward compatibility:
23966 ac_top_builddir=$ac_top_build_prefix
23969 .) # We are building in place.
23971 ac_top_srcdir=$ac_top_builddir_sub
23972 ac_abs_top_srcdir=$ac_pwd ;;
23973 [\\/]* | ?:[\\/]* ) # Absolute name.
23974 ac_srcdir=$srcdir$ac_dir_suffix;
23975 ac_top_srcdir=$srcdir
23976 ac_abs_top_srcdir=$srcdir ;;
23977 *) # Relative name.
23978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23979 ac_top_srcdir=$ac_top_build_prefix$srcdir
23980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994 # If the template does not know about datarootdir, expand it.
23995 # FIXME: This hack should be removed a few years after 2.60.
23996 ac_datarootdir_hack=; ac_datarootdir_seen=
23998 case `sed -n '/datarootdir/ {
24007 ' $ac_file_inputs` in
24008 *datarootdir*) ac_datarootdir_seen=yes;;
24009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24010 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24013 cat >>$CONFIG_STATUS <<_ACEOF
24014 ac_datarootdir_hack='
24015 s&@datadir@&$datadir&g
24016 s&@docdir@&$docdir&g
24017 s&@infodir@&$infodir&g
24018 s&@localedir@&$localedir&g
24019 s&@mandir@&$mandir&g
24020 s&\\\${datarootdir}&$datarootdir&g' ;;
24024 # Neutralize VPATH when `$srcdir' = `.'.
24025 # Shell code in configure.ac might set extrasub.
24026 # FIXME: do we really want to maintain this feature?
24027 cat >>$CONFIG_STATUS <<_ACEOF
24031 cat >>$CONFIG_STATUS <<\_ACEOF
24033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24034 s&@configure_input@&$configure_input&;t t
24035 s&@top_builddir@&$ac_top_builddir_sub&;t t
24036 s&@srcdir@&$ac_srcdir&;t t
24037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24038 s&@top_srcdir@&$ac_top_srcdir&;t t
24039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24040 s&@builddir@&$ac_builddir&;t t
24041 s&@abs_builddir@&$ac_abs_builddir&;t t
24042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24043 $ac_datarootdir_hack
24044 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24049 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24050 which seems to be undefined. Please make sure it is defined." >&5
24051 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24052 which seems to be undefined. Please make sure it is defined." >&2;}
24056 -) cat "$tmp/out"; rm -f "$tmp/out";;
24057 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24066 # Transform confdefs.h into a sed script `conftest.defines', that
24067 # substitutes the proper values into config.h.in to produce config.h.
24068 rm -f conftest.defines conftest.tail
24069 # First, append a space to every undef/define line, to ease matching.
24070 echo 's/$/ /' >conftest.defines
24071 # Then, protect against being on the right side of a sed subst, or in
24072 # an unquoted here document, in config.status. If some macros were
24073 # called several times there might be several #defines for the same
24074 # symbol, which is useless. But do not sort them, since the last
24075 # AC_DEFINE must be honored.
24076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24077 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24078 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24079 # PARAMS is the parameter list in the macro definition--in most cases, it's
24080 # just an empty string.
24081 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24082 ac_dB='\\)[ (].*,\\1define\\2'
24090 s/^[ ]*#[ ]*define[ ][ ]*//
24095 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24096 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24097 ' >>conftest.defines
24099 # Remove the space that was appended to ease matching.
24100 # Then replace #undef with comments. This is necessary, for
24101 # example, in the case of _POSIX_SOURCE, which is predefined and required
24102 # on some systems where configure will not decide to define it.
24103 # (The regexp can be short, since the line contains either #define or #undef.)
24105 s,^[ #]*u.*,/* & */,' >>conftest.defines
24107 # Break up conftest.defines:
24108 ac_max_sed_lines=50
24110 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24111 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24112 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24114 ac_in='$ac_file_inputs'
24115 ac_out='"$tmp/out1"'
24116 ac_nxt='"$tmp/out2"'
24120 # Write a here document:
24121 cat >>$CONFIG_STATUS <<_ACEOF
24122 # First, check the format of the line:
24123 cat >"\$tmp/defines.sed" <<\\CEOF
24124 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24125 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24129 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24131 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24132 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24133 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24134 grep . conftest.tail >/dev/null || break
24135 rm -f conftest.defines
24136 mv conftest.tail conftest.defines
24138 rm -f conftest.defines conftest.tail
24140 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24141 cat >>$CONFIG_STATUS <<\_ACEOF
24142 if test x"$ac_file" != x-; then
24143 echo "/* $configure_input */" >"$tmp/config.h"
24144 cat "$ac_result" >>"$tmp/config.h"
24145 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24147 echo "$as_me: $ac_file is unchanged" >&6;}
24150 mv "$tmp/config.h" $ac_file
24153 echo "/* $configure_input */"
24157 # Compute $ac_file's index in $config_headers.
24159 for _am_header in $config_headers :; do
24160 case $_am_header in
24161 $ac_file | $ac_file:* )
24164 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24167 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24168 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24169 X$ac_file : 'X\(//\)[^/]' \| \
24170 X$ac_file : 'X\(//\)$' \| \
24171 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24177 /^X\(\/\/\)[^/].*/{
24189 s/.*/./; q'`/stamp-h$_am_stamp_count
24198 { (exit 0); exit 0; }
24200 chmod +x $CONFIG_STATUS
24201 ac_clean_files=$ac_clean_files_save
24204 # configure is writing to config.log, and then calls config.status.
24205 # config.status does its own redirection, appending to config.log.
24206 # Unfortunately, on DOS this fails, as config.log is still kept open
24207 # by configure, so config.status won't be able to write to it; its
24208 # output is simply discarded. So we exec the FD to /dev/null,
24209 # effectively closing config.log, so it can be properly (re)opened and
24210 # appended to by config.status. When coming back to configure, we
24211 # need to make the FD available again.
24212 if test "$no_create" != yes; then
24214 ac_config_status_args=
24215 test "$silent" = yes &&
24216 ac_config_status_args="$ac_config_status_args --quiet"
24218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24221 # would make configure fail if this is the last instruction.
24222 $ac_cs_success || { (exit 1); exit 1; }
24226 if test "$with_pam" = "yes"; then
24229 { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24230 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}