2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.7.6p1.
5 # Report bugs to <http://www.sudo.ws/bugs/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.sudo.ws/bugs/ about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
703 PACKAGE_TARNAME='sudo'
704 PACKAGE_VERSION='1.7.6p1'
705 PACKAGE_STRING='sudo 1.7.6p1'
706 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
709 # Factoring default headers for most tests.
710 ac_includes_default="\
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
722 # ifdef HAVE_STDLIB_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
745 ac_subst_vars='LTLIBOBJS
889 program_transform_name
902 enable_option_checking
961 with_password_timeout
972 with_ldap_secret_file
980 enable_authentication
988 enable_shell_sets_home
995 enable_gss_krb5_ccache_name
1010 ac_precious_vars='build_alias
1023 # Initialize some variables set by options.
1025 ac_init_version=false
1026 ac_unrecognized_opts=
1027 ac_unrecognized_sep=
1028 # The variables have the same names as the options, with
1029 # dashes changed to underlines.
1030 cache_file=/dev/null
1037 program_transform_name=s,x,x,
1045 # Installation directory options.
1046 # These are left unexpanded so users can "make install exec_prefix=/foo"
1047 # and all the variables that are supposed to be based on exec_prefix
1048 # by default will actually change.
1049 # Use braces instead of parens because sh, perl, etc. also accept them.
1050 # (The list follows the same order as the GNU Coding Standards.)
1051 bindir='${exec_prefix}/bin'
1052 sbindir='${exec_prefix}/sbin'
1053 libexecdir='${exec_prefix}/libexec'
1054 datarootdir='${prefix}/share'
1055 datadir='${datarootdir}'
1056 sysconfdir='${prefix}/etc'
1057 sharedstatedir='${prefix}/com'
1058 localstatedir='${prefix}/var'
1059 includedir='${prefix}/include'
1060 oldincludedir='/usr/include'
1061 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1062 infodir='${datarootdir}/info'
1067 libdir='${exec_prefix}/lib'
1068 localedir='${datarootdir}/locale'
1069 mandir='${datarootdir}/man'
1075 # If the previous option needs an argument, assign it.
1076 if test -n "$ac_prev"; then
1077 eval $ac_prev=\$ac_option
1083 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1087 # Accept the important Cygnus configure options, so we can diagnose typos.
1089 case $ac_dashdash$ac_option in
1093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096 bindir=$ac_optarg ;;
1098 -build | --build | --buil | --bui | --bu)
1099 ac_prev=build_alias ;;
1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101 build_alias=$ac_optarg ;;
1103 -cache-file | --cache-file | --cache-fil | --cache-fi \
1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105 ac_prev=cache_file ;;
1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108 cache_file=$ac_optarg ;;
1110 --config-cache | -C)
1111 cache_file=config.cache ;;
1113 -datadir | --datadir | --datadi | --datad)
1115 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116 datadir=$ac_optarg ;;
1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119 | --dataroo | --dataro | --datar)
1120 ac_prev=datarootdir ;;
1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123 datarootdir=$ac_optarg ;;
1125 -disable-* | --disable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "enable_$ac_useropt"
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval enable_$ac_useropt=no ;;
1141 -docdir | --docdir | --docdi | --doc | --do)
1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144 docdir=$ac_optarg ;;
1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149 dvidir=$ac_optarg ;;
1151 -enable-* | --enable-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid feature name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "enable_$ac_useropt"
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval enable_$ac_useropt=\$ac_optarg ;;
1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169 | --exec | --exe | --ex)
1170 ac_prev=exec_prefix ;;
1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173 | --exec=* | --exe=* | --ex=*)
1174 exec_prefix=$ac_optarg ;;
1176 -gas | --gas | --ga | --g)
1177 # Obsolete; use --with-gas.
1180 -help | --help | --hel | --he | -h)
1181 ac_init_help=long ;;
1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183 ac_init_help=recursive ;;
1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185 ac_init_help=short ;;
1187 -host | --host | --hos | --ho)
1188 ac_prev=host_alias ;;
1189 -host=* | --host=* | --hos=* | --ho=*)
1190 host_alias=$ac_optarg ;;
1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1196 htmldir=$ac_optarg ;;
1198 -includedir | --includedir | --includedi | --included | --include \
1199 | --includ | --inclu | --incl | --inc)
1200 ac_prev=includedir ;;
1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202 | --includ=* | --inclu=* | --incl=* | --inc=*)
1203 includedir=$ac_optarg ;;
1205 -infodir | --infodir | --infodi | --infod | --info | --inf)
1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208 infodir=$ac_optarg ;;
1210 -libdir | --libdir | --libdi | --libd)
1212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213 libdir=$ac_optarg ;;
1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216 | --libexe | --libex | --libe)
1217 ac_prev=libexecdir ;;
1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219 | --libexe=* | --libex=* | --libe=*)
1220 libexecdir=$ac_optarg ;;
1222 -localedir | --localedir | --localedi | --localed | --locale)
1223 ac_prev=localedir ;;
1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225 localedir=$ac_optarg ;;
1227 -localstatedir | --localstatedir | --localstatedi | --localstated \
1228 | --localstate | --localstat | --localsta | --localst | --locals)
1229 ac_prev=localstatedir ;;
1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232 localstatedir=$ac_optarg ;;
1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237 mandir=$ac_optarg ;;
1239 -nfp | --nfp | --nf)
1240 # Obsolete; use --without-fp.
1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244 | --no-cr | --no-c | -n)
1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253 | --oldin | --oldi | --old | --ol | --o)
1254 ac_prev=oldincludedir ;;
1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258 oldincludedir=$ac_optarg ;;
1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263 prefix=$ac_optarg ;;
1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266 | --program-pre | --program-pr | --program-p)
1267 ac_prev=program_prefix ;;
1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270 program_prefix=$ac_optarg ;;
1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273 | --program-suf | --program-su | --program-s)
1274 ac_prev=program_suffix ;;
1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277 program_suffix=$ac_optarg ;;
1279 -program-transform-name | --program-transform-name \
1280 | --program-transform-nam | --program-transform-na \
1281 | --program-transform-n | --program-transform- \
1282 | --program-transform | --program-transfor \
1283 | --program-transfo | --program-transf \
1284 | --program-trans | --program-tran \
1285 | --progr-tra | --program-tr | --program-t)
1286 ac_prev=program_transform_name ;;
1287 -program-transform-name=* | --program-transform-name=* \
1288 | --program-transform-nam=* | --program-transform-na=* \
1289 | --program-transform-n=* | --program-transform-=* \
1290 | --program-transform=* | --program-transfor=* \
1291 | --program-transfo=* | --program-transf=* \
1292 | --program-trans=* | --program-tran=* \
1293 | --progr-tra=* | --program-tr=* | --program-t=*)
1294 program_transform_name=$ac_optarg ;;
1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299 pdfdir=$ac_optarg ;;
1301 -psdir | --psdir | --psdi | --psd | --ps)
1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1329 -site=* | --site=* | --sit=*)
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=no ;;
1388 # Obsolete; use --with-x.
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information."
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1456 # Be sure to have absolute directory names.
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1476 If a cross compiler is detected then cross compile mode will be used." >&2
1477 elif test "x$build_alias" != "x$host_alias"; then
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485 test "$silent" = yes && exec 6>/dev/null
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error "pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1562 \`configure' configures sudo 1.7.6p1 to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --build=BUILD configure for building on BUILD [guessed]
1621 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1625 if test -n "$ac_init_help"; then
1626 case $ac_init_help in
1627 short | recursive ) echo "Configuration of sudo 1.7.6p1:";;
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --disable-authentication
1636 Do not require authentication by default
1637 --disable-root-mailer Don't run the mailer as root, run as the user
1638 --disable-setreuid Don't try to use the setreuid() function
1639 --disable-setresuid Don't try to use the setresuid() function
1640 --disable-shadow Never use shadow passwords
1641 --disable-root-sudo Don't allow root to run sudo
1642 --enable-log-host Log the hostname in the log file
1643 --enable-noargs-shell If sudo is given no arguments run a shell
1644 --enable-shell-sets-home
1645 Set $HOME to target user in shell mode
1646 --disable-path-info Print 'command not allowed' not 'command not found'
1647 --enable-env-debug Whether to enable environment debugging.
1648 --enable-env-reset Whether to enable environment resetting by default.
1649 --enable-warnings Whether to enable compiler warnings
1650 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1651 --enable-gss-krb5-ccache-name
1652 Use GSS-API to set the Kerberos V cred cache name
1653 --enable-shared[=PKGS] build shared libraries [default=yes]
1654 --enable-static[=PKGS] build static libraries [default=yes]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --disable-libtool-lock avoid locking (might break parallel builds)
1658 --disable-sia Disable SIA on Digital UNIX
1659 --disable-largefile omit support for large files
1660 --disable-pam-session Disable PAM session support
1661 --enable-zlib[=PATH] Whether to enable or disable zlib
1664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1666 --with-otp-only deprecated
1667 --with-alertmail deprecated
1668 --with-devel add development options
1669 --with-CC C compiler to use
1670 --with-rpath pass -R flag in addition to -L for lib paths
1671 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1672 --with-bsm-audit enable BSM audit support
1673 --with-linux-audit enable Linux audit support
1674 --with-incpath additional places to look for include files
1675 --with-libpath additional places to look for libraries
1676 --with-libraries additional libraries to link with
1677 --with-efence link with -lefence for malloc() debugging
1678 --with-csops add CSOps standard options
1679 --without-passwd don't use passwd/shadow file for authentication
1680 --with-skey=DIR enable S/Key support
1681 --with-opie=DIR enable OPIE support
1682 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1683 --with-SecurID[=DIR] enable SecurID support
1684 --with-fwtk[=DIR] enable FWTK AuthSRV support
1685 --with-kerb4[=DIR] enable Kerberos IV support
1686 --with-kerb5[=DIR] enable Kerberos V support
1687 --with-aixauth enable AIX general authentication support
1688 --with-pam enable PAM support
1689 --with-AFS enable AFS support
1690 --with-DCE enable DCE support
1691 --with-logincap enable BSD login class support
1692 --with-bsdauth enable BSD authentication support
1693 --with-project enable Solaris project support
1694 --without-lecture don't print lecture for first-time sudoer
1695 --with-logging log via syslog, file, or both
1696 --with-logfac syslog facility to log with (default is "auth")
1697 --with-goodpri syslog priority for commands (def is "notice")
1698 --with-badpri syslog priority for failures (def is "alert")
1699 --with-logpath path to the sudo log file
1700 --with-loglen maximum length of a log file line (default is 80)
1701 --with-ignore-dot ignore '.' in the PATH
1702 --without-mail-if-no-user
1703 do not send mail if user not in sudoers
1704 --with-mail-if-no-host send mail if user in sudoers but not for this host
1705 --with-mail-if-noperms send mail if user not allowed to run command
1706 --with-mailto who should get sudo mail (default is "root")
1707 --with-mailsubject subject of sudo mail
1708 --with-passprompt default password prompt
1709 --with-badpass-message message the user sees when the password is wrong
1710 --with-fqdn expect fully qualified hosts in sudoers
1711 --with-timedir path to the sudo timestamp dir
1712 --with-iologdir=DIR directory to store sudo I/O log files in
1713 --with-sendmail set path to sendmail
1714 --without-sendmail do not send mail at all
1715 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1716 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1717 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1718 --with-umask umask with which the prog should run (default is
1720 --without-umask Preserves the umask of the user invoking sudo.
1721 --with-umask-override Use the umask specified in sudoers even if it is
1722 less restrictive than the user's.
1723 --with-runas-default User to run commands as (default is "root")
1724 --with-exempt=group no passwd needed for users in this group
1725 --with-editor=path Default editor for visudo (defaults to vi)
1726 --with-env-editor Use the environment variable EDITOR for visudo
1727 --with-passwd-tries number of tries to enter password (default is 3)
1728 --with-timeout minutes before sudo asks for passwd again (def is 5
1730 --with-password-timeout passwd prompt timeout in minutes (default is 5
1732 --with-tty-tickets use a different ticket file for each tty
1733 --with-insults insult the user for entering an incorrect password
1734 --with-all-insults include all the sudo insult sets
1735 --with-classic-insults include the insults from the "classic" sudo
1736 --with-csops-insults include CSOps insults
1737 --with-hal-insults include 2001-like insults
1738 --with-goons-insults include the insults from the "Goon Show"
1739 --with-nsswitch[=PATH] path to nsswitch.conf
1740 --with-ldap[=DIR] enable LDAP support
1741 --with-ldap-conf-file path to LDAP configuration file
1742 --with-ldap-secret-file path to LDAP secret password file
1743 --with-pc-insults replace politically incorrect insults with less
1745 --with-secure-path override the user's path with a built-in one
1746 --without-interfaces don't try to read the ip addr of ether interfaces
1747 --with-stow properly handle GNU stow packaging
1748 --with-askpass=PATH Fully qualified pathname of askpass helper
1749 --with-libvas=NAME Name of the libvas shared library
1751 --with-libvas-rpath=PATH
1752 Path to look for libvas in [default=/opt/quest/lib]
1753 --with-selinux enable SELinux support
1754 --with-pic try to use only PIC/non-PIC objects [default=use
1756 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1757 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1758 --with-netsvc[=PATH] path to netsvc.conf
1759 --with-pam-login enable specific PAM session for sudo -i
1761 Some influential environment variables:
1762 CC C compiler command
1763 CFLAGS C compiler flags
1764 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1765 nonstandard directory <lib dir>
1766 LIBS libraries to pass to the linker, e.g. -l<library>
1767 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1768 you have headers in a nonstandard directory <include dir>
1770 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1771 the first program found out of: `bison -y', `byacc', `yacc'.
1772 YFLAGS The list of arguments that will be passed by default to $YACC.
1773 This script will default YFLAGS to the empty string to avoid a
1774 default value of `-d' given by some make applications.
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1779 Report bugs to <http://www.sudo.ws/bugs/>.
1784 if test "$ac_init_help" = "recursive"; then
1785 # If there are subdirs, report their specific --help.
1786 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787 test -d "$ac_dir" ||
1788 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1796 # A ".." for each directory in $ac_dir_suffix.
1797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1798 case $ac_top_builddir_sub in
1799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1803 ac_abs_top_builddir=$ac_pwd
1804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1805 # for backward compatibility:
1806 ac_top_builddir=$ac_top_build_prefix
1809 .) # We are building in place.
1811 ac_top_srcdir=$ac_top_builddir_sub
1812 ac_abs_top_srcdir=$ac_pwd ;;
1813 [\\/]* | ?:[\\/]* ) # Absolute name.
1814 ac_srcdir=$srcdir$ac_dir_suffix;
1815 ac_top_srcdir=$srcdir
1816 ac_abs_top_srcdir=$srcdir ;;
1818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1819 ac_top_srcdir=$ac_top_build_prefix$srcdir
1820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1824 cd "$ac_dir" || { ac_status=$?; continue; }
1825 # Check for guested configure.
1826 if test -f "$ac_srcdir/configure.gnu"; then
1828 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1829 elif test -f "$ac_srcdir/configure"; then
1831 $SHELL "$ac_srcdir/configure" --help=recursive
1833 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1835 cd "$ac_pwd" || { ac_status=$?; break; }
1839 test -n "$ac_init_help" && exit $ac_status
1840 if $ac_init_version; then
1842 sudo configure 1.7.6p1
1843 generated by GNU Autoconf 2.65
1845 Copyright (C) 2009 Free Software Foundation, Inc.
1846 This configure script is free software; the Free Software Foundation
1847 gives unlimited permission to copy, distribute and modify it.
1852 ## ------------------------ ##
1853 ## Autoconf initialization. ##
1854 ## ------------------------ ##
1856 # ac_fn_c_try_compile LINENO
1857 # --------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_compile
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } >/dev/null && {
1962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 } # ac_fn_c_check_header_compile
2008 # ac_fn_c_try_run LINENO
2009 # ----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2011 # that executables *can* be run.
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if { { ac_try="$ac_link"
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>&5
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2026 { { case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_try") 2>&5
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; }; }; then :
2038 $as_echo "$as_me: program exited with status $ac_status" >&5
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 ac_retval=$ac_status
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 as_fn_set_status $ac_retval
2050 # ac_fn_c_check_func LINENO FUNC VAR
2051 # ----------------------------------
2052 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2053 ac_fn_c_check_func ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2059 $as_echo_n "(cached) " >&6
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2065 #define $2 innocuous_$2
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $2 (); below.
2069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2070 <limits.h> exists even on freestanding compilers. */
2073 # include <limits.h>
2075 # include <assert.h>
2080 /* Override any GCC internal prototype to avoid an error.
2081 Use char because int might match the return type of a GCC
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined __stub_$2 || defined __stub___$2
2102 if ac_fn_c_try_link "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext \
2108 conftest$ac_exeext conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 } # ac_fn_c_check_func
2117 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118 # -------------------------------------------------------
2119 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120 # the include files in INCLUDES and setting the cache variable VAR
2122 ac_fn_c_check_header_mongrel ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2135 # Is the header compilable?
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137 $as_echo_n "checking $2 usability... " >&6; }
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_header_compiler=yes
2146 ac_header_compiler=no
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150 $as_echo "$ac_header_compiler" >&6; }
2152 # Is the header present?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154 $as_echo_n "checking $2 presence... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2159 if ac_fn_c_try_cpp "$LINENO"; then :
2160 ac_header_preproc=yes
2162 ac_header_preproc=no
2164 rm -f conftest.err conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166 $as_echo "$ac_header_preproc" >&6; }
2168 # So? What about this header?
2169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 ## --------------------------------------- ##
2189 ## Report this to http://www.sudo.ws/bugs/ ##
2190 ## --------------------------------------- ##
2192 ) | sed "s/^/$as_me: WARNING: /" >&2
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2200 eval "$3=\$ac_header_compiler"
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208 } # ac_fn_c_check_header_mongrel
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile "$LINENO"; then :
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 } # ac_fn_c_check_type
2264 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2265 # --------------------------------------------
2266 # Tries to find the compile-time value of EXPR in a program that includes
2267 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2269 ac_fn_c_compute_int ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 if test "$cross_compiling" = yes; then
2273 # Depending upon the size, compute the lo and hi bounds.
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2280 static int test_array [1 - 2 * !(($2) >= 0)];
2287 if ac_fn_c_try_compile "$LINENO"; then :
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 ac_hi=$ac_mid; break
2306 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2307 if test $ac_lo -le $ac_mid; then
2311 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) < 0)];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 ac_lo=$ac_mid; break
2348 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2349 if test $ac_mid -le $ac_hi; then
2353 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 # Binary search between lo and hi bounds.
2364 while test "x$ac_lo" != "x$ac_hi"; do
2365 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2372 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2379 if ac_fn_c_try_compile "$LINENO"; then :
2382 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2394 static long int longval () { return $2; }
2395 static unsigned long int ulongval () { return $2; }
2402 FILE *f = fopen ("conftest.val", "w");
2407 long int i = longval ();
2410 fprintf (f, "%ld", i);
2414 unsigned long int i = ulongval ();
2417 fprintf (f, "%lu", i);
2419 /* Do not output a trailing newline, as this causes \r\n confusion
2420 on some platforms. */
2421 return ferror (f) || fclose (f) != 0;
2427 if ac_fn_c_try_run "$LINENO"; then :
2428 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2433 conftest.$ac_objext conftest.beam conftest.$ac_ext
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 as_fn_set_status $ac_retval
2440 } # ac_fn_c_compute_int
2442 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2443 # ----------------------------------------------------
2444 # Tries to find if the field MEMBER exists in type AGGR, after including
2445 # INCLUDES, setting cache variable VAR accordingly.
2446 ac_fn_c_check_member ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2450 $as_echo_n "checking for $2.$3... " >&6; }
2451 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 $as_echo_n "(cached) " >&6
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2467 if ac_fn_c_try_compile "$LINENO"; then :
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2477 if (sizeof ac_aggr.$3)
2483 if ac_fn_c_try_compile "$LINENO"; then :
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 } # ac_fn_c_check_member
2499 # ac_fn_c_check_decl LINENO SYMBOL VAR
2500 # ------------------------------------
2501 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2502 ac_fn_c_check_decl ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2506 $as_echo_n "checking whether $2 is declared... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2524 if ac_fn_c_try_compile "$LINENO"; then :
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 } # ac_fn_c_check_decl
2537 cat >config.log <<_ACEOF
2538 This file contains any messages produced by compilers while
2539 running configure, to aid debugging if configure makes a mistake.
2541 It was created by sudo $as_me 1.7.6p1, which was
2542 generated by GNU Autoconf 2.65. Invocation command line was
2554 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2555 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2556 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2557 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2558 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2560 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2561 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2563 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2564 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2565 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2566 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2567 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2568 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2569 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 $as_echo "PATH: $as_dir"
2594 # Keep a trace of the command line.
2595 # Strip out --no-create and --no-recursion so they do not pile up.
2596 # Strip out --silent because we don't want to record it for future runs.
2597 # Also quote any args containing shell meta-characters.
2598 # Make two passes to allow for proper duplicate-argument suppression.
2602 ac_must_keep_next=false
2608 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2610 | -silent | --silent | --silen | --sile | --sil)
2613 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2618 as_fn_append ac_configure_args1 " '$ac_arg'"
2619 if test $ac_must_keep_next = true; then
2620 ac_must_keep_next=false # Got value, back to normal.
2623 *=* | --config-cache | -C | -disable-* | --disable-* \
2624 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2625 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2626 | -with-* | --with-* | -without-* | --without-* | --x)
2627 case "$ac_configure_args0 " in
2628 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2631 -* ) ac_must_keep_next=true ;;
2634 as_fn_append ac_configure_args " '$ac_arg'"
2639 { ac_configure_args0=; unset ac_configure_args0;}
2640 { ac_configure_args1=; unset ac_configure_args1;}
2642 # When interrupted or exit'd, cleanup temporary files, and complete
2643 # config.log. We remove comments because anyway the quotes in there
2644 # would cause problems or look ugly.
2645 # WARNING: Use '\'' to represent an apostrophe within the trap.
2646 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2647 trap 'exit_status=$?
2648 # Save into config.log some information that might help in debugging.
2653 ## ---------------- ##
2654 ## Cache variables. ##
2655 ## ---------------- ##
2658 # The following way of writing the cache mishandles newlines in values,
2660 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2661 eval ac_val=\$$ac_var
2665 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2669 _ | IFS | as_nl) ;; #(
2670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2671 *) { eval $ac_var=; unset $ac_var;} ;;
2676 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2677 *${as_nl}ac_space=\ *)
2679 "s/'\''/'\''\\\\'\'''\''/g;
2680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2691 ## ----------------- ##
2692 ## Output variables. ##
2693 ## ----------------- ##
2696 for ac_var in $ac_subst_vars
2698 eval ac_val=\$$ac_var
2700 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2702 $as_echo "$ac_var='\''$ac_val'\''"
2706 if test -n "$ac_subst_files"; then
2708 ## ------------------- ##
2709 ## File substitutions. ##
2710 ## ------------------- ##
2713 for ac_var in $ac_subst_files
2715 eval ac_val=\$$ac_var
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2719 $as_echo "$ac_var='\''$ac_val'\''"
2724 if test -s confdefs.h; then
2734 test "$ac_signal" != 0 &&
2735 $as_echo "$as_me: caught signal $ac_signal"
2736 $as_echo "$as_me: exit $exit_status"
2738 rm -f core *.core core.conftest.* &&
2739 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2742 for ac_signal in 1 2 13 15; do
2743 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2747 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2748 rm -f -r conftest* confdefs.h
2750 $as_echo "/* confdefs.h */" > confdefs.h
2752 # Predefined preprocessor variables.
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE_NAME "$PACKAGE_NAME"
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE_STRING "$PACKAGE_STRING"
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2774 cat >>confdefs.h <<_ACEOF
2775 #define PACKAGE_URL "$PACKAGE_URL"
2779 # Let the site file select an alternate cache file if it wants to.
2780 # Prefer an explicitly selected file to automatically selected ones.
2783 if test -n "$CONFIG_SITE"; then
2784 ac_site_file1=$CONFIG_SITE
2785 elif test "x$prefix" != xNONE; then
2786 ac_site_file1=$prefix/share/config.site
2787 ac_site_file2=$prefix/etc/config.site
2789 ac_site_file1=$ac_default_prefix/share/config.site
2790 ac_site_file2=$ac_default_prefix/etc/config.site
2792 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2794 test "x$ac_site_file" = xNONE && continue
2795 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2797 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2798 sed 's/^/| /' "$ac_site_file" >&5
2803 if test -r "$cache_file"; then
2804 # Some versions of bash will fail to source /dev/null (special files
2805 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2806 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2808 $as_echo "$as_me: loading cache $cache_file" >&6;}
2810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2811 *) . "./$cache_file";;
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2816 $as_echo "$as_me: creating cache $cache_file" >&6;}
2820 # Check that the precious variables saved in the cache have kept the same
2822 ac_cache_corrupted=false
2823 for ac_var in $ac_precious_vars; do
2824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2825 eval ac_new_set=\$ac_env_${ac_var}_set
2826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2827 eval ac_new_val=\$ac_env_${ac_var}_value
2828 case $ac_old_set,$ac_new_set in
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2831 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2832 ac_cache_corrupted=: ;;
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2835 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2836 ac_cache_corrupted=: ;;
2839 if test "x$ac_old_val" != "x$ac_new_val"; then
2840 # differences in whitespace do not lead to failure.
2841 ac_old_val_w=`echo x $ac_old_val`
2842 ac_new_val_w=`echo x $ac_new_val`
2843 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2845 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2846 ac_cache_corrupted=:
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2849 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2850 eval $ac_var=\$ac_old_val
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2853 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2855 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2858 # Pass precious variables to config.status.
2859 if test "$ac_new_set" = set; then
2861 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2862 *) ac_arg=$ac_var=$ac_new_val ;;
2864 case " $ac_configure_args " in
2865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2866 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2870 if $ac_cache_corrupted; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2874 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2875 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2877 ## -------------------- ##
2878 ## Main body of script. ##
2879 ## -------------------- ##
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 ac_config_headers="$ac_config_headers config.h pathnames.h zlib/zconf.h"
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2891 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2969 # Begin initial values for man page substitution
2971 iolog_dir=/var/log/sudo-io
2972 timedir=/var/adm/sudo
2977 passprompt="Password:"
2989 mailsub="*** SECURITY information for %h ***"
2990 badpass_message="Sorry, try again."
3001 ldap_conf=/etc/ldap.conf
3002 ldap_secret=/etc/ldap.secret
3003 netsvc_conf=/etc/netsvc.conf
3004 noexec_file=/usr/local/libexec/sudo_noexec.so
3005 nsswitch_conf=/etc/nsswitch.conf
3006 secure_path="not set"
3008 # End initial values for man page substitution
3015 : ${SUDOERS_MODE='0440'}
3016 : ${SUDOERS_UID='0'}
3017 : ${SUDOERS_GID='0'}
3036 shadow_libs_optional=
3042 # Check whether --with-otp-only was given.
3043 if test "${with_otp_only+set}" = set; then :
3044 withval=$with_otp_only; case $with_otp_only in
3045 yes) with_passwd="no"
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3047 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3054 # Check whether --with-alertmail was given.
3055 if test "${with_alertmail+set}" = set; then :
3056 withval=$with_alertmail; case $with_alertmail in
3057 *) with_mailto="$with_alertmail"
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3059 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3067 # Check whether --with-devel was given.
3068 if test "${with_devel+set}" = set; then :
3069 withval=$with_devel; case $with_devel in
3070 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3071 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3072 PROGS="${PROGS} testsudoers"
3073 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3078 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3079 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3086 # Check whether --with-CC was given.
3087 if test "${with_CC+set}" = set; then :
3088 withval=$with_CC; case $with_CC in
3089 yes) as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
3091 no) as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
3100 # Check whether --with-rpath was given.
3101 if test "${with_rpath+set}" = set; then :
3102 withval=$with_rpath; case $with_rpath in
3104 *) as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3111 # Check whether --with-blibpath was given.
3112 if test "${with_blibpath+set}" = set; then :
3113 withval=$with_blibpath; case $with_blibpath in
3115 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3116 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3123 # Check whether --with-bsm-audit was given.
3124 if test "${with_bsm_audit+set}" = set; then :
3125 withval=$with_bsm_audit; case $with_bsm_audit in
3126 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3128 SUDO_LIBS="${SUDO_LIBS} -lbsm"
3129 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
3132 *) as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then :
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3182 if test -z "$ac_cv_prog_CC"; then
3184 # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$ac_ct_CC"; then
3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_ac_ct_CC="gcc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3220 if test "x$ac_ct_CC" = x; then
3223 case $cross_compiling:$ac_tool_warned in
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="${ac_tool_prefix}cc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3276 if test -z "$CC"; then
3277 # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296 ac_prog_rejected=yes
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in cl.exe
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3373 test -n "$CC" && break
3376 if test -z "$CC"; then
3378 for ac_prog in cl.exe
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_ac_ct_CC="$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3417 test -n "$ac_ct_CC" && break
3420 if test "x$ac_ct_CC" = x; then
3423 case $cross_compiling:$ac_tool_warned in
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." "$LINENO" 5; }
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445 for ac_option in --version -v -V -qversion; do
3446 { { ac_try="$ac_compiler $ac_option >&5"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3455 if test -s conftest.err; then
3457 ... rest of stderr output deleted ...
3458 10q' conftest.err >conftest.er1
3459 cat conftest.er1 >&5
3461 rm -f conftest.er1 conftest.err
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490 for ac_file in $ac_files
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499 if { { ac_try="$ac_link_default"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link_default") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3515 for ac_file in $ac_files ''
3517 test -f "$ac_file" || continue
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 # We found the default executable, but exeext='' is most
3526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3530 # We set ac_cv_exeext here because the later test for it is not
3531 # safe: cross compilers may not add the suffix if given an `-o'
3532 # argument, so we may need to know it at that point already.
3533 # Even if this section looks crufty: it has the advantage of
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3545 if test -z "$ac_file"; then :
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 { as_fn_set_status 77
3554 as_fn_error "C compiler cannot create executables
3555 See \`config.log' for more details." "$LINENO" 5; }; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3561 $as_echo_n "checking for C compiler default output file name... " >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3563 $as_echo "$ac_file" >&6; }
3564 ac_exeext=$ac_cv_exeext
3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3567 ac_clean_files=$ac_clean_files_save
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569 $as_echo_n "checking for suffix of executables... " >&6; }
3570 if { { ac_try="$ac_link"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3583 # work properly (i.e., refer to `conftest.exe'), while it won't with
3585 for ac_file in conftest.exe conftest conftest.*; do
3586 test -f "$ac_file" || continue
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error "cannot compute suffix of executables: cannot compile and link
3598 See \`config.log' for more details." "$LINENO" 5; }
3600 rm -f conftest conftest$ac_cv_exeext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602 $as_echo "$ac_cv_exeext" >&6; }
3604 rm -f conftest.$ac_ext
3605 EXEEXT=$ac_cv_exeext
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3613 FILE *f = fopen ("conftest.out", "w");
3614 return ferror (f) || fclose (f) != 0;
3620 ac_clean_files="$ac_clean_files conftest.out"
3621 # Check that the compiler produces executables we can run. If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 if test "$cross_compiling" != yes; then
3626 { { ac_try="$ac_link"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }
3637 if { ac_try='./conftest$ac_cv_exeext'
3638 { { case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_try") 2>&5
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; }; then
3650 if test "$cross_compiling" = maybe; then
3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error "cannot run C compiled programs.
3656 If you meant to cross compile, use \`--host'.
3657 See \`config.log' for more details." "$LINENO" 5; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3662 $as_echo "$cross_compiling" >&6; }
3664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3665 ac_clean_files=$ac_clean_files_save
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3667 $as_echo_n "checking for suffix of object files... " >&6; }
3668 if test "${ac_cv_objext+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3682 rm -f conftest.o conftest.obj
3683 if { { ac_try="$ac_compile"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compile") 2>&5
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." "$LINENO" 5; }
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3714 $as_echo "$ac_cv_objext" >&6; }
3715 OBJEXT=$ac_cv_objext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3736 if ac_fn_c_try_compile "$LINENO"; then :
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3774 if ac_fn_c_try_compile "$LINENO"; then :
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3789 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 if ac_fn_c_try_compile "$LINENO"; then :
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3826 if test "$GCC" = yes; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3837 ac_cv_prog_cc_c89=no
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3859 s = g (p, va_arg (v,int));
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c89=$ac_arg
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c89" != "xno" && break
3902 rm -f conftest.$ac_ext
3907 case "x$ac_cv_prog_cc_c89" in
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3915 CC="$CC $ac_cv_prog_cc_c89"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # Check whether --with-linux-audit was given.
3932 if test "${with_linux_audit+set}" = set; then :
3933 withval=$with_linux_audit; case $with_linux_audit in
3934 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <libaudit.h>
3940 int i = AUDIT_USER_CMD; (void)i;
3945 if ac_fn_c_try_compile "$LINENO"; then :
3947 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3949 SUDO_LIBS="${SUDO_LIBS} -laudit"
3950 SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3954 as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 *) as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3967 # Check whether --with-incpath was given.
3968 if test "${with_incpath+set}" = set; then :
3969 withval=$with_incpath; case $with_incpath in
3970 yes) as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3972 no) as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3975 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3976 for i in ${with_incpath}; do
3977 CPPFLAGS="${CPPFLAGS} -I${i}"
3985 # Check whether --with-libpath was given.
3986 if test "${with_libpath+set}" = set; then :
3987 withval=$with_libpath; case $with_libpath in
3988 yes) as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3990 no) as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3993 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
4000 # Check whether --with-libraries was given.
4001 if test "${with_libraries+set}" = set; then :
4002 withval=$with_libraries; case $with_libraries in
4003 yes) as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
4005 no) as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
4007 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
4008 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4015 # Check whether --with-efence was given.
4016 if test "${with_efence+set}" = set; then :
4017 withval=$with_efence; case $with_efence in
4018 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4019 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4020 LIBS="${LIBS} -lefence"
4021 if test -f /usr/local/lib/libefence.a; then
4022 with_libpath="${with_libpath} /usr/local/lib"
4026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4027 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4034 # Check whether --with-csops was given.
4035 if test "${with_csops+set}" = set; then :
4036 withval=$with_csops; case $with_csops in
4037 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4038 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4042 with_classic_insults=yes
4043 with_csops_insults=yes
4046 : ${mansectform='5'}
4049 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4050 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4057 # Check whether --with-passwd was given.
4058 if test "${with_passwd+set}" = set; then :
4059 withval=$with_passwd; case $with_passwd in
4060 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4061 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4063 $as_echo "$with_passwd" >&6; }
4065 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4067 *) as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4074 # Check whether --with-skey was given.
4075 if test "${with_skey+set}" = set; then :
4076 withval=$with_skey; case $with_skey in
4078 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4081 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084 AUTH_REG="$AUTH_REG S/Key"
4091 # Check whether --with-opie was given.
4092 if test "${with_opie+set}" = set; then :
4093 withval=$with_opie; case $with_opie in
4095 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4098 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101 AUTH_REG="$AUTH_REG NRL_OPIE"
4108 # Check whether --with-long-otp-prompt was given.
4109 if test "${with_long_otp_prompt+set}" = set; then :
4110 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4111 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4114 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4119 no) long_otp_prompt=off
4121 *) as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4128 # Check whether --with-SecurID was given.
4129 if test "${with_SecurID+set}" = set; then :
4130 withval=$with_SecurID; case $with_SecurID in
4132 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4135 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138 AUTH_EXCL="$AUTH_EXCL SecurID"
4145 # Check whether --with-fwtk was given.
4146 if test "${with_fwtk+set}" = set; then :
4147 withval=$with_fwtk; case $with_fwtk in
4149 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4152 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154 $as_echo "yes" >&6; }
4155 AUTH_EXCL="$AUTH_EXCL FWTK"
4162 # Check whether --with-kerb4 was given.
4163 if test "${with_kerb4+set}" = set; then :
4164 withval=$with_kerb4; case $with_kerb4 in
4166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4167 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170 AUTH_REG="$AUTH_REG kerb4"
4177 # Check whether --with-kerb5 was given.
4178 if test "${with_kerb5+set}" = set; then :
4179 withval=$with_kerb5; case $with_kerb5 in
4181 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4182 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 AUTH_REG="$AUTH_REG kerb5"
4192 # Check whether --with-aixauth was given.
4193 if test "${with_aixauth+set}" = set; then :
4194 withval=$with_aixauth; case $with_aixauth in
4195 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4197 *) as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4204 # Check whether --with-pam was given.
4205 if test "${with_pam+set}" = set; then :
4206 withval=$with_pam; case $with_pam in
4207 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4209 *) as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4216 # Check whether --with-AFS was given.
4217 if test "${with_AFS+set}" = set; then :
4218 withval=$with_AFS; case $with_AFS in
4219 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4222 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225 AUTH_REG="$AUTH_REG AFS"
4228 *) as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4235 # Check whether --with-DCE was given.
4236 if test "${with_DCE+set}" = set; then :
4237 withval=$with_DCE; case $with_DCE in
4238 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4241 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244 AUTH_REG="$AUTH_REG DCE"
4247 *) as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4254 # Check whether --with-logincap was given.
4255 if test "${with_logincap+set}" = set; then :
4256 withval=$with_logincap; case $with_logincap in
4258 *) as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4265 # Check whether --with-bsdauth was given.
4266 if test "${with_bsdauth+set}" = set; then :
4267 withval=$with_bsdauth; case $with_bsdauth in
4268 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4270 *) as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4277 # Check whether --with-project was given.
4278 if test "${with_project+set}" = set; then :
4279 withval=$with_project; case $with_project in
4282 *) as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4289 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4291 # Check whether --with-lecture was given.
4292 if test "${with_lecture+set}" = set; then :
4293 withval=$with_lecture; case $with_lecture in
4294 yes|short|always) lecture=once
4296 no|none|never) lecture=never
4298 *) as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4303 if test "$lecture" = "once"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4307 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4314 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4316 # Check whether --with-logging was given.
4317 if test "${with_logging+set}" = set; then :
4318 withval=$with_logging; case $with_logging in
4319 yes) as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4321 no) as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4323 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4326 $as_echo "syslog" >&6; }
4328 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4331 $as_echo "file" >&6; }
4333 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4336 $as_echo "both" >&6; }
4338 *) as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4342 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4344 $as_echo "syslog" >&6; }
4349 # Check whether --with-logfac was given.
4350 if test "${with_logfac+set}" = set; then :
4351 withval=$with_logfac; case $with_logfac in
4352 yes) as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4354 no) as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4356 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4358 *) as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4365 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4367 # Check whether --with-goodpri was given.
4368 if test "${with_goodpri+set}" = set; then :
4369 withval=$with_goodpri; case $with_goodpri in
4370 yes) as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4372 no) as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4374 alert|crit|debug|emerg|err|info|notice|warning)
4375 goodpri=$with_goodpri
4377 *) as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4383 cat >>confdefs.h <<_ACEOF
4384 #define PRI_SUCCESS "$goodpri"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4388 $as_echo "$goodpri" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4391 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4393 # Check whether --with-badpri was given.
4394 if test "${with_badpri+set}" = set; then :
4395 withval=$with_badpri; case $with_badpri in
4396 yes) as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4398 no) as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4400 alert|crit|debug|emerg|err|info|notice|warning)
4403 *) as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4409 cat >>confdefs.h <<_ACEOF
4410 #define PRI_FAILURE "$badpri"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4414 $as_echo "$badpri" >&6; }
4417 # Check whether --with-logpath was given.
4418 if test "${with_logpath+set}" = set; then :
4419 withval=$with_logpath; case $with_logpath in
4420 yes) as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4422 no) as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4429 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4431 # Check whether --with-loglen was given.
4432 if test "${with_loglen+set}" = set; then :
4433 withval=$with_loglen; case $with_loglen in
4434 yes) as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4436 no) as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4438 [0-9]*) loglen=$with_loglen
4440 *) as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4446 cat >>confdefs.h <<_ACEOF
4447 #define MAXLOGFILELEN $loglen
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4451 $as_echo "$loglen" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4454 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4456 # Check whether --with-ignore-dot was given.
4457 if test "${with_ignore_dot+set}" = set; then :
4458 withval=$with_ignore_dot; case $with_ignore_dot in
4463 *) as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4468 if test "$ignore_dot" = "on"; then
4469 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4479 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4481 # Check whether --with-mail-if-no-user was given.
4482 if test "${with_mail_if_no_user+set}" = set; then :
4483 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4484 yes) mail_no_user=on
4486 no) mail_no_user=off
4488 *) as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4493 if test "$mail_no_user" = "on"; then
4494 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4504 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4506 # Check whether --with-mail-if-no-host was given.
4507 if test "${with_mail_if_no_host+set}" = set; then :
4508 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4509 yes) mail_no_host=on
4511 no) mail_no_host=off
4513 *) as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4518 if test "$mail_no_host" = "on"; then
4519 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4529 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4531 # Check whether --with-mail-if-noperms was given.
4532 if test "${with_mail_if_noperms+set}" = set; then :
4533 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4534 yes) mail_noperms=on
4536 no) mail_noperms=off
4538 *) as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4543 if test "$mail_noperms" = "on"; then
4544 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4554 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4556 # Check whether --with-mailto was given.
4557 if test "${with_mailto+set}" = set; then :
4558 withval=$with_mailto; case $with_mailto in
4559 yes) as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4561 no) as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4563 *) mailto=$with_mailto
4569 cat >>confdefs.h <<_ACEOF
4570 #define MAILTO "$mailto"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4574 $as_echo "$mailto" >&6; }
4577 # Check whether --with-mailsubject was given.
4578 if test "${with_mailsubject+set}" = set; then :
4579 withval=$with_mailsubject; case $with_mailsubject in
4580 yes) as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4582 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4583 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4585 *) mailsub="$with_mailsubject"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4587 $as_echo_n "checking sudo mail subject... " >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4589 $as_echo "Using alert mail subject: $mailsub" >&6; }
4595 cat >>confdefs.h <<_ACEOF
4596 #define MAILSUBJECT "$mailsub"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4601 $as_echo_n "checking for bad password prompt... " >&6; }
4603 # Check whether --with-passprompt was given.
4604 if test "${with_passprompt+set}" = set; then :
4605 withval=$with_passprompt; case $with_passprompt in
4606 yes) as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4608 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4609 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4611 *) passprompt="$with_passprompt"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4616 $as_echo "$passprompt" >&6; }
4618 cat >>confdefs.h <<_ACEOF
4619 #define PASSPROMPT "$passprompt"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4624 $as_echo_n "checking for bad password message... " >&6; }
4626 # Check whether --with-badpass-message was given.
4627 if test "${with_badpass_message+set}" = set; then :
4628 withval=$with_badpass_message; case $with_badpass_message in
4629 yes) as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4631 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4632 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4634 *) badpass_message="$with_badpass_message"
4640 cat >>confdefs.h <<_ACEOF
4641 #define INCORRECT_PASSWORD "$badpass_message"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4645 $as_echo "$badpass_message" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4648 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4650 # Check whether --with-fqdn was given.
4651 if test "${with_fqdn+set}" = set; then :
4652 withval=$with_fqdn; case $with_fqdn in
4657 *) as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4662 if test "$fqdn" = "on"; then
4663 $as_echo "#define FQDN 1" >>confdefs.h
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4666 $as_echo "yes" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 # Check whether --with-timedir was given.
4674 if test "${with_timedir+set}" = set; then :
4675 withval=$with_timedir; case $with_timedir in
4676 yes) as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4678 no) as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4685 # Check whether --with-iologdir was given.
4686 if test "${with_iologdir+set}" = set; then :
4687 withval=$with_iologdir; case $with_iologdir in
4695 # Check whether --with-sendmail was given.
4696 if test "${with_sendmail+set}" = set; then :
4697 withval=$with_sendmail; case $with_sendmail in
4698 yes) with_sendmail=""
4701 *) cat >>confdefs.h <<EOF
4702 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4711 # Check whether --with-sudoers-mode was given.
4712 if test "${with_sudoers_mode+set}" = set; then :
4713 withval=$with_sudoers_mode; case $with_sudoers_mode in
4714 yes) as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4716 no) as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4718 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4720 0*) SUDOERS_MODE=$with_sudoers_mode
4722 *) as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4729 # Check whether --with-sudoers-uid was given.
4730 if test "${with_sudoers_uid+set}" = set; then :
4731 withval=$with_sudoers_uid; case $with_sudoers_uid in
4732 yes) as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4734 no) as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4736 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4738 *) as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4745 # Check whether --with-sudoers-gid was given.
4746 if test "${with_sudoers_gid+set}" = set; then :
4747 withval=$with_sudoers_gid; case $with_sudoers_gid in
4748 yes) as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4750 no) as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4752 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4754 *) as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4761 $as_echo_n "checking for umask programs should be run with... " >&6; }
4763 # Check whether --with-umask was given.
4764 if test "${with_umask+set}" = set; then :
4765 withval=$with_umask; case $with_umask in
4766 yes) as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4770 [0-9]*) sudo_umask=$with_umask
4772 *) as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4778 cat >>confdefs.h <<_ACEOF
4779 #define SUDO_UMASK $sudo_umask
4782 if test "$sudo_umask" = "0777"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4784 $as_echo "user" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4787 $as_echo "$sudo_umask" >&6; }
4791 # Check whether --with-umask-override was given.
4792 if test "${with_umask_override+set}" = set; then :
4793 withval=$with_umask_override; case $with_umask_override in
4794 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4798 no) umask_override=off
4800 *) as_fn_error "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4807 $as_echo_n "checking for default user to run commands as... " >&6; }
4809 # Check whether --with-runas-default was given.
4810 if test "${with_runas_default+set}" = set; then :
4811 withval=$with_runas_default; case $with_runas_default in
4812 yes) as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4814 no) as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4816 *) runas_default="$with_runas_default"
4822 cat >>confdefs.h <<_ACEOF
4823 #define RUNAS_DEFAULT "$runas_default"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4827 $as_echo "$runas_default" >&6; }
4830 # Check whether --with-exempt was given.
4831 if test "${with_exempt+set}" = set; then :
4832 withval=$with_exempt; case $with_exempt in
4833 yes) as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4835 no) as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4838 cat >>confdefs.h <<_ACEOF
4839 #define EXEMPTGROUP "$with_exempt"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4843 $as_echo_n "checking for group to be exempt from password... " >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4845 $as_echo "$with_exempt" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4852 $as_echo_n "checking for editor that visudo should use... " >&6; }
4854 # Check whether --with-editor was given.
4855 if test "${with_editor+set}" = set; then :
4856 withval=$with_editor; case $with_editor in
4857 yes) as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4859 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4862 cat >>confdefs.h <<_ACEOF
4863 #define EDITOR "$with_editor"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4867 $as_echo "$with_editor" >&6; }
4868 editor="$with_editor"
4872 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4874 $as_echo "vi" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4879 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4881 # Check whether --with-env-editor was given.
4882 if test "${with_env_editor+set}" = set; then :
4883 withval=$with_env_editor; case $with_env_editor in
4888 *) as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4893 if test "$env_editor" = "on"; then
4894 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4904 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4906 # Check whether --with-passwd-tries was given.
4907 if test "${with_passwd_tries+set}" = set; then :
4908 withval=$with_passwd_tries; case $with_passwd_tries in
4910 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4912 [1-9]*) passwd_tries=$with_passwd_tries
4914 *) as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4920 cat >>confdefs.h <<_ACEOF
4921 #define TRIES_FOR_PASSWORD $passwd_tries
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4925 $as_echo "$passwd_tries" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4928 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4930 # Check whether --with-timeout was given.
4931 if test "${with_timeout+set}" = set; then :
4932 withval=$with_timeout; case $with_timeout in
4936 [0-9]*) timeout=$with_timeout
4938 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4944 cat >>confdefs.h <<_ACEOF
4945 #define TIMEOUT $timeout
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4949 $as_echo "$timeout" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4952 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4954 # Check whether --with-password-timeout was given.
4955 if test "${with_password_timeout+set}" = set; then :
4956 withval=$with_password_timeout; case $with_password_timeout in
4958 no) password_timeout=0
4960 [0-9]*) password_timeout=$with_password_timeout
4962 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4968 cat >>confdefs.h <<_ACEOF
4969 #define PASSWORD_TIMEOUT $password_timeout
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4973 $as_echo "$password_timeout" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4976 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4978 # Check whether --with-tty-tickets was given.
4979 if test "${with_tty_tickets+set}" = set; then :
4980 withval=$with_tty_tickets; case $with_tty_tickets in
4985 *) as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4990 if test "$tty_tickets" = "off"; then
4991 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997 $as_echo "yes" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
5001 $as_echo_n "checking whether to include insults... " >&6; }
5003 # Check whether --with-insults was given.
5004 if test "${with_insults+set}" = set; then :
5005 withval=$with_insults; case $with_insults in
5007 with_classic_insults=yes
5008 with_csops_insults=yes
5010 disabled) insults=off
5011 with_classic_insults=yes
5012 with_csops_insults=yes
5016 *) as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
5021 if test "$insults" = "on"; then
5022 $as_echo "#define USE_INSULTS 1" >>confdefs.h
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 # Check whether --with-all-insults was given.
5033 if test "${with_all_insults+set}" = set; then :
5034 withval=$with_all_insults; case $with_all_insults in
5035 yes) with_classic_insults=yes
5036 with_csops_insults=yes
5037 with_hal_insults=yes
5038 with_goons_insults=yes
5041 *) as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5048 # Check whether --with-classic-insults was given.
5049 if test "${with_classic_insults+set}" = set; then :
5050 withval=$with_classic_insults; case $with_classic_insults in
5051 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5055 *) as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5062 # Check whether --with-csops-insults was given.
5063 if test "${with_csops_insults+set}" = set; then :
5064 withval=$with_csops_insults; case $with_csops_insults in
5065 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5069 *) as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5076 # Check whether --with-hal-insults was given.
5077 if test "${with_hal_insults+set}" = set; then :
5078 withval=$with_hal_insults; case $with_hal_insults in
5079 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5083 *) as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5090 # Check whether --with-goons-insults was given.
5091 if test "${with_goons_insults+set}" = set; then :
5092 withval=$with_goons_insults; case $with_goons_insults in
5093 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5097 *) as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5104 # Check whether --with-nsswitch was given.
5105 if test "${with_nsswitch+set}" = set; then :
5106 withval=$with_nsswitch; case $with_nsswitch in
5108 yes) with_nsswitch="/etc/nsswitch.conf"
5116 # Check whether --with-ldap was given.
5117 if test "${with_ldap+set}" = set; then :
5118 withval=$with_ldap; case $with_ldap in
5120 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5123 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5132 # Check whether --with-ldap-conf-file was given.
5133 if test "${with_ldap_conf_file+set}" = set; then :
5134 withval=$with_ldap_conf_file;
5137 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5138 cat >>confdefs.h <<EOF
5139 #define _PATH_LDAP_CONF "$ldap_conf"
5144 # Check whether --with-ldap-secret-file was given.
5145 if test "${with_ldap_secret_file+set}" = set; then :
5146 withval=$with_ldap_secret_file;
5149 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5150 cat >>confdefs.h <<EOF
5151 #define _PATH_LDAP_SECRET "$ldap_secret"
5156 # Check whether --with-pc-insults was given.
5157 if test "${with_pc_insults+set}" = set; then :
5158 withval=$with_pc_insults; case $with_pc_insults in
5159 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5163 *) as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5169 if test "$insults" = "on"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5171 $as_echo_n "checking which insult sets to include... " >&6; }
5173 test "$with_goons_insults" = "yes" && i="goons ${i}"
5174 test "$with_hal_insults" = "yes" && i="hal ${i}"
5175 test "$with_csops_insults" = "yes" && i="csops ${i}"
5176 test "$with_classic_insults" = "yes" && i="classic ${i}"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5178 $as_echo "$i" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5182 $as_echo_n "checking whether to override the user's path... " >&6; }
5184 # Check whether --with-secure-path was given.
5185 if test "${with_secure_path+set}" = set; then :
5186 withval=$with_secure_path; case $with_secure_path in
5187 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5188 cat >>confdefs.h <<_ACEOF
5189 #define SECURE_PATH "$with_secure_path"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5193 $as_echo "$with_secure_path" >&6; }
5194 secure_path="set to $with_secure_path"
5196 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5199 *) cat >>confdefs.h <<_ACEOF
5200 #define SECURE_PATH "$with_secure_path"
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5204 $as_echo "$with_secure_path" >&6; }
5205 secure_path="set to F<$with_secure_path>"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5215 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5217 # Check whether --with-interfaces was given.
5218 if test "${with_interfaces+set}" = set; then :
5219 withval=$with_interfaces; case $with_interfaces in
5220 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5223 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5228 *) as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 $as_echo "yes" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5238 $as_echo_n "checking whether stow should be used... " >&6; }
5240 # Check whether --with-stow was given.
5241 if test "${with_stow+set}" = set; then :
5242 withval=$with_stow; case $with_stow in
5243 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5244 $as_echo "yes" >&6; }
5245 $as_echo "#define USE_STOW 1" >>confdefs.h
5248 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5251 *) as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5261 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5263 # Check whether --with-askpass was given.
5264 if test "${with_askpass+set}" = set; then :
5265 withval=$with_askpass; case $with_askpass in
5266 yes) as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5269 *) cat >>confdefs.h <<EOF
5270 #define _PATH_SUDO_ASKPASS "$with_askpass"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5282 # Check whether --with-libvas was given.
5283 if test "${with_libvas+set}" = set; then :
5284 withval=$with_libvas; case $with_libvas in
5285 yes) with_libvas=libvas.so
5289 cat >>confdefs.h <<_ACEOF
5290 #define LIBVAS_SO "$with_libvas"
5295 if test X"$with_libvas" != X"no"; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define LIBVAS_SO "$with_libvas"
5301 $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5303 COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5305 # Check whether --with-libvas-rpath was given.
5306 if test "${with_libvas_rpath+set}" = set; then :
5307 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5309 LIBVAS_RPATH=/opt/quest/lib
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5313 $as_echo_n "checking for main in -ldl... " >&6; }
5314 if test "${ac_cv_lib_dl_main+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5317 ac_check_lib_save_LIBS=$LIBS
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5331 if ac_fn_c_try_link "$LINENO"; then :
5332 ac_cv_lib_dl_main=yes
5334 ac_cv_lib_dl_main=no
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 LIBS=$ac_check_lib_save_LIBS
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5341 $as_echo "$ac_cv_lib_dl_main" >&6; }
5342 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5343 cat >>confdefs.h <<_ACEOF
5344 #define HAVE_LIBDL 1
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5358 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5359 # Check whether --enable-authentication was given.
5360 if test "${enable_authentication+set}" = set; then :
5361 enableval=$enable_authentication; case "$enableval" in
5362 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363 $as_echo "yes" >&6; }
5365 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5370 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5373 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5379 $as_echo "yes" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5384 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5385 # Check whether --enable-root-mailer was given.
5386 if test "${enable_root_mailer+set}" = set; then :
5387 enableval=$enable_root_mailer; case "$enableval" in
5388 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5391 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5399 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 # Check whether --enable-setreuid was given.
5410 if test "${enable_setreuid+set}" = set; then :
5411 enableval=$enable_setreuid; case "$enableval" in
5412 no) SKIP_SETREUID=yes
5420 # Check whether --enable-setresuid was given.
5421 if test "${enable_setresuid+set}" = set; then :
5422 enableval=$enable_setresuid; case "$enableval" in
5423 no) SKIP_SETRESUID=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5432 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5433 # Check whether --enable-shadow was given.
5434 if test "${enable_shadow+set}" = set; then :
5435 enableval=$enable_shadow; case "$enableval" in
5436 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5439 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440 $as_echo "yes" >&6; }
5443 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5446 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5457 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5458 # Check whether --enable-root-sudo was given.
5459 if test "${enable_root_sudo+set}" = set; then :
5460 enableval=$enable_root_sudo; case "$enableval" in
5461 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5464 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5470 *) as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5481 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5482 # Check whether --enable-log-host was given.
5483 if test "${enable_log_host+set}" = set; then :
5484 enableval=$enable_log_host; case "$enableval" in
5485 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486 $as_echo "yes" >&6; }
5487 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5490 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5493 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5496 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5507 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5508 # Check whether --enable-noargs-shell was given.
5509 if test "${enable_noargs_shell+set}" = set; then :
5510 enableval=$enable_noargs_shell; case "$enableval" in
5511 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512 $as_echo "yes" >&6; }
5513 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5516 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5519 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5522 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5533 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5534 # Check whether --enable-shell-sets-home was given.
5535 if test "${enable_shell_sets_home+set}" = set; then :
5536 enableval=$enable_shell_sets_home; case "$enableval" in
5537 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5539 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5542 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5548 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5559 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5560 # Check whether --enable-path_info was given.
5561 if test "${enable_path_info+set}" = set; then :
5562 enableval=$enable_path_info; case "$enableval" in
5563 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5566 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567 $as_echo "yes" >&6; }
5568 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5572 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5575 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5586 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5587 # Check whether --enable-env_debug was given.
5588 if test "${enable_env_debug+set}" = set; then :
5589 enableval=$enable_env_debug; case "$enableval" in
5590 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5592 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5595 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5598 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5601 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5612 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5613 # Check whether --enable-env_reset was given.
5614 if test "${enable_env_reset+set}" = set; then :
5615 enableval=$enable_env_reset; case "$enableval" in
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5622 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5628 if test "$env_reset" = "on"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 $as_echo "yes" >&6; }
5631 $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5640 # Check whether --enable-warnings was given.
5641 if test "${enable_warnings+set}" = set; then :
5642 enableval=$enable_warnings; case "$enableval" in
5643 yes) if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5644 CFLAGS="${CFLAGS} -Wall"
5648 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5649 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5656 # Check whether --enable-admin-flag was given.
5657 if test "${enable_admin_flag+set}" = set; then :
5658 enableval=$enable_admin_flag; case "$enableval" in
5659 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5664 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5672 # Check whether --with-selinux was given.
5673 if test "${with_selinux+set}" = set; then :
5674 withval=$with_selinux; case $with_selinux in
5675 yes) SELINUX_USAGE="[-r role] [-t type] "
5676 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5678 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5679 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5680 PROGS="${PROGS} sesh"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5683 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5684 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5687 ac_check_lib_save_LIBS=$LIBS
5688 LIBS="-lselinux $LIBS"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5692 /* Override any GCC internal prototype to avoid an error.
5693 Use char because int might match the return type of a GCC
5694 builtin and then its argument prototype would still apply. */
5698 char setkeycreatecon ();
5702 return setkeycreatecon ();
5707 if ac_fn_c_try_link "$LINENO"; then :
5708 ac_cv_lib_selinux_setkeycreatecon=yes
5710 ac_cv_lib_selinux_setkeycreatecon=no
5712 rm -f core conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5714 LIBS=$ac_check_lib_save_LIBS
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5717 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5718 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5719 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5725 *) as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5731 # Check whether --enable-gss_krb5_ccache_name was given.
5732 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5733 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5735 check_gss_krb5_ccache_name=no
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5740 $as_echo_n "checking for library containing strerror... " >&6; }
5741 if test "${ac_cv_search_strerror+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 ac_func_search_save_LIBS=$LIBS
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5748 /* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */
5763 for ac_lib in '' cposix; do
5764 if test -z "$ac_lib"; then
5765 ac_res="none required"
5768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5770 if ac_fn_c_try_link "$LINENO"; then :
5771 ac_cv_search_strerror=$ac_res
5773 rm -f core conftest.err conftest.$ac_objext \
5775 if test "${ac_cv_search_strerror+set}" = set; then :
5779 if test "${ac_cv_search_strerror+set}" = set; then :
5782 ac_cv_search_strerror=no
5785 LIBS=$ac_func_search_save_LIBS
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5788 $as_echo "$ac_cv_search_strerror" >&6; }
5789 ac_res=$ac_cv_search_strerror
5790 if test "$ac_res" != no; then :
5791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5801 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5802 # On Suns, sometimes $CPP names a directory.
5803 if test -n "$CPP" && test -d "$CPP"; then
5806 if test -z "$CPP"; then
5807 if test "${ac_cv_prog_CPP+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 # Double quotes because CPP needs to be expanded
5811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5814 for ac_c_preproc_warn_flag in '' yes
5816 # Use a header file that comes with gcc, so configuring glibc
5817 # with a fresh cross-compiler works.
5818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 # <limits.h> exists even on freestanding compilers.
5820 # On the NeXT, cc -E runs the code through the compiler's parser,
5821 # not just through cpp. "Syntax error" is here to catch this case.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5825 # include <limits.h>
5827 # include <assert.h>
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5834 # Broken: fails on valid input.
5837 rm -f conftest.err conftest.$ac_ext
5839 # OK, works on sane cases. Now check whether nonexistent headers
5840 # can be detected and how.
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <ac_nonexistent.h>
5845 if ac_fn_c_try_cpp "$LINENO"; then :
5846 # Broken: success on invalid input.
5849 # Passes both tests.
5853 rm -f conftest.err conftest.$ac_ext
5856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5857 rm -f conftest.err conftest.$ac_ext
5858 if $ac_preproc_ok; then :
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5871 $as_echo "$CPP" >&6; }
5873 for ac_c_preproc_warn_flag in '' yes
5875 # Use a header file that comes with gcc, so configuring glibc
5876 # with a fresh cross-compiler works.
5877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878 # <limits.h> exists even on freestanding compilers.
5879 # On the NeXT, cc -E runs the code through the compiler's parser,
5880 # not just through cpp. "Syntax error" is here to catch this case.
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 # include <limits.h>
5886 # include <assert.h>
5890 if ac_fn_c_try_cpp "$LINENO"; then :
5893 # Broken: fails on valid input.
5896 rm -f conftest.err conftest.$ac_ext
5898 # OK, works on sane cases. Now check whether nonexistent headers
5899 # can be detected and how.
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <ac_nonexistent.h>
5904 if ac_fn_c_try_cpp "$LINENO"; then :
5905 # Broken: success on invalid input.
5908 # Passes both tests.
5912 rm -f conftest.err conftest.$ac_ext
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then :
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5923 See \`config.log' for more details." "$LINENO" 5; }
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ar; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_AR+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$AR"; then
5941 ac_cv_prog_AR="$AR" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_AR="${ac_tool_prefix}ar"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 if test -n "$AR"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5963 $as_echo "$AR" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_AR"; then
5973 # Extract the first word of "ar", so it can be a program name with args.
5974 set dummy ar; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -n "$ac_ct_AR"; then
5981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_AR="ar"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6001 if test -n "$ac_ct_AR"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6003 $as_echo "$ac_ct_AR" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_AR" = x; then
6012 case $cross_compiling:$ac_tool_warned in
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_RANLIB" = x; then
6104 case $cross_compiling:$ac_tool_warned in
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6110 RANLIB=$ac_ct_RANLIB
6113 RANLIB="$ac_cv_prog_RANLIB"
6116 if test X"$AR" = X"false"; then
6117 as_fn_error "the \"ar\" utility is required to build sudo" "$LINENO" 5
6121 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6122 for ac_t in install-sh install.sh shtool; do
6123 if test -f "$ac_dir/$ac_t"; then
6125 ac_install_sh="$ac_aux_dir/$ac_t -c"
6130 if test -z "$ac_aux_dir"; then
6131 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6134 # These three variables are undocumented and unsupported,
6135 # and are intended to be withdrawn in a future Autoconf release.
6136 # They can cause serious problems if a builder's source tree is in a directory
6137 # whose full name contains unusual characters.
6138 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6139 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6140 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6143 # Make sure we can run config.sub.
6144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6145 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6148 $as_echo_n "checking build system type... " >&6; }
6149 if test "${ac_cv_build+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 ac_build_alias=$build_alias
6153 test "x$ac_build_alias" = x &&
6154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6155 test "x$ac_build_alias" = x &&
6156 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6158 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6162 $as_echo "$ac_cv_build" >&6; }
6163 case $ac_cv_build in
6165 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6168 ac_save_IFS=$IFS; IFS='-'
6174 # Remember, the first character of IFS is used to create $*,
6175 # except with old shells:
6178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6182 $as_echo_n "checking host system type... " >&6; }
6183 if test "${ac_cv_host+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 if test "x$host_alias" = x; then
6187 ac_cv_host=$ac_cv_build
6189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6190 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6195 $as_echo "$ac_cv_host" >&6; }
6198 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6201 ac_save_IFS=$IFS; IFS='-'
6207 # Remember, the first character of IFS is used to create $*,
6208 # except with old shells:
6211 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6219 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6224 macro_version='2.2.6b'
6225 macro_revision='1.3017'
6239 ltmain="$ac_aux_dir/ltmain.sh"
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6242 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6246 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6247 for ac_i in 1 2 3 4 5 6 7; do
6248 ac_script="$ac_script$as_nl$ac_script"
6250 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6251 { ac_script=; unset ac_script;}
6252 if test -z "$SED"; then
6253 ac_path_SED_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_prog in sed gsed; do
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6263 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6264 # Check for GNU ac_path_SED and select it if it is found.
6265 # Check for GNU $ac_path_SED
6266 case `"$ac_path_SED" --version 2>&1` in
6268 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6271 $as_echo_n 0123456789 >"conftest.in"
6274 cat "conftest.in" "conftest.in" >"conftest.tmp"
6275 mv "conftest.tmp" "conftest.in"
6276 cp "conftest.in" "conftest.nl"
6277 $as_echo '' >> "conftest.nl"
6278 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280 as_fn_arith $ac_count + 1 && ac_count=$as_val
6281 if test $ac_count -gt ${ac_path_SED_max-0}; then
6282 # Best one so far, save it but keep looking for a better one
6283 ac_cv_path_SED="$ac_path_SED"
6284 ac_path_SED_max=$ac_count
6286 # 10*(2^10) chars as input seems more than enough
6287 test $ac_count -gt 10 && break
6289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6292 $ac_path_SED_found && break 3
6297 if test -z "$ac_cv_path_SED"; then
6298 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6306 $as_echo "$ac_cv_path_SED" >&6; }
6307 SED="$ac_cv_path_SED"
6310 test -z "$SED" && SED=sed
6311 Xsed="$SED -e 1s/^X//"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6324 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6325 if test "${ac_cv_path_GREP+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -z "$GREP"; then
6329 ac_path_GREP_found=false
6330 # Loop through the user's path and test for each of PROGNAME-LIST
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6335 test -z "$as_dir" && as_dir=.
6336 for ac_prog in grep ggrep; do
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6339 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6340 # Check for GNU ac_path_GREP and select it if it is found.
6341 # Check for GNU $ac_path_GREP
6342 case `"$ac_path_GREP" --version 2>&1` in
6344 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6347 $as_echo_n 0123456789 >"conftest.in"
6350 cat "conftest.in" "conftest.in" >"conftest.tmp"
6351 mv "conftest.tmp" "conftest.in"
6352 cp "conftest.in" "conftest.nl"
6353 $as_echo 'GREP' >> "conftest.nl"
6354 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6356 as_fn_arith $ac_count + 1 && ac_count=$as_val
6357 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6358 # Best one so far, save it but keep looking for a better one
6359 ac_cv_path_GREP="$ac_path_GREP"
6360 ac_path_GREP_max=$ac_count
6362 # 10*(2^10) chars as input seems more than enough
6363 test $ac_count -gt 10 && break
6365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6368 $ac_path_GREP_found && break 3
6373 if test -z "$ac_cv_path_GREP"; then
6374 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6377 ac_cv_path_GREP=$GREP
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6382 $as_echo "$ac_cv_path_GREP" >&6; }
6383 GREP="$ac_cv_path_GREP"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6387 $as_echo_n "checking for egrep... " >&6; }
6388 if test "${ac_cv_path_EGREP+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6392 then ac_cv_path_EGREP="$GREP -E"
6394 if test -z "$EGREP"; then
6395 ac_path_EGREP_found=false
6396 # Loop through the user's path and test for each of PROGNAME-LIST
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6401 test -z "$as_dir" && as_dir=.
6402 for ac_prog in egrep; do
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6405 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6406 # Check for GNU ac_path_EGREP and select it if it is found.
6407 # Check for GNU $ac_path_EGREP
6408 case `"$ac_path_EGREP" --version 2>&1` in
6410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6413 $as_echo_n 0123456789 >"conftest.in"
6416 cat "conftest.in" "conftest.in" >"conftest.tmp"
6417 mv "conftest.tmp" "conftest.in"
6418 cp "conftest.in" "conftest.nl"
6419 $as_echo 'EGREP' >> "conftest.nl"
6420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6422 as_fn_arith $ac_count + 1 && ac_count=$as_val
6423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6424 # Best one so far, save it but keep looking for a better one
6425 ac_cv_path_EGREP="$ac_path_EGREP"
6426 ac_path_EGREP_max=$ac_count
6428 # 10*(2^10) chars as input seems more than enough
6429 test $ac_count -gt 10 && break
6431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6434 $ac_path_EGREP_found && break 3
6439 if test -z "$ac_cv_path_EGREP"; then
6440 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6443 ac_cv_path_EGREP=$EGREP
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6449 $as_echo "$ac_cv_path_EGREP" >&6; }
6450 EGREP="$ac_cv_path_EGREP"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6454 $as_echo_n "checking for fgrep... " >&6; }
6455 if test "${ac_cv_path_FGREP+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6459 then ac_cv_path_FGREP="$GREP -F"
6461 if test -z "$FGREP"; then
6462 ac_path_FGREP_found=false
6463 # Loop through the user's path and test for each of PROGNAME-LIST
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6468 test -z "$as_dir" && as_dir=.
6469 for ac_prog in fgrep; do
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6472 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6473 # Check for GNU ac_path_FGREP and select it if it is found.
6474 # Check for GNU $ac_path_FGREP
6475 case `"$ac_path_FGREP" --version 2>&1` in
6477 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6480 $as_echo_n 0123456789 >"conftest.in"
6483 cat "conftest.in" "conftest.in" >"conftest.tmp"
6484 mv "conftest.tmp" "conftest.in"
6485 cp "conftest.in" "conftest.nl"
6486 $as_echo 'FGREP' >> "conftest.nl"
6487 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6489 as_fn_arith $ac_count + 1 && ac_count=$as_val
6490 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6491 # Best one so far, save it but keep looking for a better one
6492 ac_cv_path_FGREP="$ac_path_FGREP"
6493 ac_path_FGREP_max=$ac_count
6495 # 10*(2^10) chars as input seems more than enough
6496 test $ac_count -gt 10 && break
6498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6501 $ac_path_FGREP_found && break 3
6506 if test -z "$ac_cv_path_FGREP"; then
6507 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6510 ac_cv_path_FGREP=$FGREP
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6516 $as_echo "$ac_cv_path_FGREP" >&6; }
6517 FGREP="$ac_cv_path_FGREP"
6520 test -z "$GREP" && GREP=grep
6540 # Check whether --with-gnu-ld was given.
6541 if test "${with_gnu_ld+set}" = set; then :
6542 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6548 if test "$GCC" = yes; then
6549 # Check if gcc -print-prog-name=ld gives a path.
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6551 $as_echo_n "checking for ld used by $CC... " >&6; }
6554 # gcc leaves a trailing carriage return which upsets mingw
6555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6560 # Accept absolute paths.
6562 re_direlt='/[^/][^/]*/\.\./'
6563 # Canonicalize the pathname of ld
6564 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6565 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6566 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6568 test -z "$LD" && LD="$ac_prog"
6571 # If it fails, then pretend we aren't using GCC.
6575 # If it is relative, then search for the first ld in PATH.
6579 elif test "$with_gnu_ld" = yes; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6581 $as_echo_n "checking for GNU ld... " >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6584 $as_echo_n "checking for non-GNU ld... " >&6; }
6586 if test "${lt_cv_path_LD+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6589 if test -z "$LD"; then
6590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6591 for ac_dir in $PATH; do
6593 test -z "$ac_dir" && ac_dir=.
6594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6595 lt_cv_path_LD="$ac_dir/$ac_prog"
6596 # Check to see if the program is GNU ld. I'd rather use --version,
6597 # but apparently some variants of GNU ld only accept -v.
6598 # Break only if it was the GNU/non-GNU ld that we prefer.
6599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6600 *GNU* | *'with BFD'*)
6601 test "$with_gnu_ld" != no && break
6604 test "$with_gnu_ld" != yes && break
6611 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6616 if test -n "$LD"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6618 $as_echo "$LD" >&6; }
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6623 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6630 case `$LD -v 2>&1 </dev/null` in
6631 *GNU* | *'with BFD'*)
6632 lt_cv_prog_gnu_ld=yes
6635 lt_cv_prog_gnu_ld=no
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6641 with_gnu_ld=$lt_cv_prog_gnu_ld
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6652 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6653 if test "${lt_cv_path_NM+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6656 if test -n "$NM"; then
6657 # Let the user override the test.
6660 lt_nm_to_check="${ac_tool_prefix}nm"
6661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6662 lt_nm_to_check="$lt_nm_to_check nm"
6664 for lt_tmp_nm in $lt_nm_to_check; do
6665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6666 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6668 test -z "$ac_dir" && ac_dir=.
6669 tmp_nm="$ac_dir/$lt_tmp_nm"
6670 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6671 # Check to see if the nm accepts a BSD-compat flag.
6672 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6673 # nm: unknown option "B" ignored
6674 # Tru64's nm complains that /dev/null is an invalid object file
6675 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6676 */dev/null* | *'Invalid file or object type'*)
6677 lt_cv_path_NM="$tmp_nm -B"
6681 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6683 lt_cv_path_NM="$tmp_nm -p"
6687 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6688 continue # so that we can try to find one that supports BSD flags
6697 : ${lt_cv_path_NM=no}
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6701 $as_echo "$lt_cv_path_NM" >&6; }
6702 if test "$lt_cv_path_NM" != "no"; then
6705 # Didn't find any BSD compatible name lister, look for dumpbin.
6706 if test -n "$ac_tool_prefix"; then
6707 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$DUMPBIN"; then
6717 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 DUMPBIN=$ac_cv_prog_DUMPBIN
6737 if test -n "$DUMPBIN"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6739 $as_echo "$DUMPBIN" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$DUMPBIN" && break
6749 if test -z "$DUMPBIN"; then
6750 ac_ct_DUMPBIN=$DUMPBIN
6751 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6753 # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6760 if test -n "$ac_ct_DUMPBIN"; then
6761 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6781 if test -n "$ac_ct_DUMPBIN"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6783 $as_echo "$ac_ct_DUMPBIN" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6790 test -n "$ac_ct_DUMPBIN" && break
6793 if test "x$ac_ct_DUMPBIN" = x; then
6796 case $cross_compiling:$ac_tool_warned in
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6802 DUMPBIN=$ac_ct_DUMPBIN
6807 if test "$DUMPBIN" != ":"; then
6811 test -z "$NM" && NM=nm
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6819 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6820 if test "${lt_cv_nm_interface+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6823 lt_cv_nm_interface="BSD nm"
6824 echo "int some_variable = 0;" > conftest.$ac_ext
6825 (eval echo "\"\$as_me:6825: $ac_compile\"" >&5)
6826 (eval "$ac_compile" 2>conftest.err)
6827 cat conftest.err >&5
6828 (eval echo "\"\$as_me:6828: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6829 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6830 cat conftest.err >&5
6831 (eval echo "\"\$as_me:6831: output\"" >&5)
6832 cat conftest.out >&5
6833 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6834 lt_cv_nm_interface="MS dumpbin"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6839 $as_echo "$lt_cv_nm_interface" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6842 $as_echo_n "checking whether ln -s works... " >&6; }
6844 if test "$LN_S" = "ln -s"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6846 $as_echo "yes" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6849 $as_echo "no, using $LN_S" >&6; }
6852 # find the maximum length of command line arguments
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6854 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6863 # On DJGPP, this test can blow up pretty badly due to problems in libc
6864 # (any single argument exceeding 2000 bytes causes a buffer overrun
6865 # during glob expansion). Even if it were fixed, the result of this
6866 # check would be larger than it should be.
6867 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6871 # Under GNU Hurd, this test is not required because there is
6872 # no limit to the length of command line arguments.
6873 # Libtool will interpret -1 as no limit whatsoever
6874 lt_cv_sys_max_cmd_len=-1;
6877 cygwin* | mingw* | cegcc*)
6878 # On Win9x/ME, this test blows up -- it succeeds, but takes
6879 # about 5 minutes as the teststring grows exponentially.
6880 # Worse, since 9x/ME are not pre-emptively multitasking,
6881 # you end up with a "frozen" computer, even though with patience
6882 # the test eventually succeeds (with a max line length of 256k).
6883 # Instead, let's just punt: use the minimum linelength reported by
6884 # all of the supported platforms: 8192 (on NT/2K/XP).
6885 lt_cv_sys_max_cmd_len=8192;
6889 # On AmigaOS with pdksh, this test takes hours, literally.
6890 # So we just punt and use a minimum line length of 8192.
6891 lt_cv_sys_max_cmd_len=8192;
6894 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6895 # This has been around since 386BSD, at least. Likely further.
6896 if test -x /sbin/sysctl; then
6897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6898 elif test -x /usr/sbin/sysctl; then
6899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6903 # And add a safety zone
6904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6910 lt_cv_sys_max_cmd_len=196608
6914 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6915 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6916 # nice to cause kernel panics so lets avoid the loop below.
6917 # First set a reasonable default.
6918 lt_cv_sys_max_cmd_len=16384
6920 if test -x /sbin/sysconfig; then
6921 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6922 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6927 lt_cv_sys_max_cmd_len=102400
6929 sysv5* | sco5v6* | sysv4.2uw2*)
6930 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6931 if test -n "$kargmax"; then
6932 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6934 lt_cv_sys_max_cmd_len=32768
6938 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6939 if test -n "$lt_cv_sys_max_cmd_len"; then
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6943 # Make teststring a little bigger before we do anything with it.
6944 # a 1K string should be a reasonable start.
6945 for i in 1 2 3 4 5 6 7 8 ; do
6946 teststring=$teststring$teststring
6948 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6949 # If test is not a shell built-in, we'll probably end up computing a
6950 # maximum length that is only half of the actual maximum length, but
6952 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6953 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6954 test $i != 17 # 1/2 MB should be enough
6957 teststring=$teststring$teststring
6959 # Only check the string length outside the loop.
6960 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6962 # Add a significant safety factor because C++ compilers can tack on
6963 # massive amounts of additional arguments before passing them to the
6964 # linker. It appears as though 1/2 is a usable value.
6965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6972 if test -n $lt_cv_sys_max_cmd_len ; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6974 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6977 $as_echo "none" >&6; }
6979 max_cmd_len=$lt_cv_sys_max_cmd_len
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6991 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6992 # Try some XSI features
6995 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6997 && eval 'test $(( 1 + 1 )) -eq 2 \
6998 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7001 $as_echo "$xsi_shell" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7005 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7007 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7009 && lt_shell_append=yes
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7011 $as_echo "$lt_shell_append" >&6; }
7014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7024 # test EBCDIC or ASCII
7025 case `echo X|tr X '\101'` in
7026 A) # ASCII based system
7027 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7028 lt_SP2NL='tr \040 \012'
7029 lt_NL2SP='tr \015\012 \040\040'
7031 *) # EBCDIC based system
7032 lt_SP2NL='tr \100 \n'
7033 lt_NL2SP='tr \r\n \100\100'
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7046 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7047 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 lt_cv_ld_reload_flag='-r'
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7053 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7054 reload_flag=$lt_cv_ld_reload_flag
7055 case $reload_flag in
7057 *) reload_flag=" $reload_flag" ;;
7059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7062 if test "$GCC" = yes; then
7063 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$OBJDUMP"; then
7087 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 OBJDUMP=$ac_cv_prog_OBJDUMP
7107 if test -n "$OBJDUMP"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7109 $as_echo "$OBJDUMP" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if test -z "$ac_cv_prog_OBJDUMP"; then
7118 ac_ct_OBJDUMP=$OBJDUMP
7119 # Extract the first word of "objdump", so it can be a program name with args.
7120 set dummy objdump; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$ac_ct_OBJDUMP"; then
7127 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7147 if test -n "$ac_ct_OBJDUMP"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7149 $as_echo "$ac_ct_OBJDUMP" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_OBJDUMP" = x; then
7158 case $cross_compiling:$ac_tool_warned in
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7164 OBJDUMP=$ac_ct_OBJDUMP
7167 OBJDUMP="$ac_cv_prog_OBJDUMP"
7170 test -z "$OBJDUMP" && OBJDUMP=objdump
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7181 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7182 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7185 lt_cv_file_magic_cmd='$MAGIC_CMD'
7186 lt_cv_file_magic_test_file=
7187 lt_cv_deplibs_check_method='unknown'
7188 # Need to set the preceding variable on all platforms that support
7189 # interlibrary dependencies.
7190 # 'none' -- dependencies not supported.
7191 # `unknown' -- same as none, but documents that we really don't know.
7192 # 'pass_all' -- all dependencies passed with no checks.
7193 # 'test_compile' -- check by making test program.
7194 # 'file_magic [[regex]]' -- check by looking for files in library path
7195 # which responds to the $file_magic_cmd with a given extended regex.
7196 # If you have `file' or equivalent on your system and you're not sure
7197 # whether `pass_all' will *always* work, you probably want this one.
7201 lt_cv_deplibs_check_method=pass_all
7205 lt_cv_deplibs_check_method=pass_all
7209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7210 lt_cv_file_magic_cmd='/usr/bin/file -L'
7211 lt_cv_file_magic_test_file=/shlib/libc.so
7215 # func_win32_libid is a shell function defined in ltmain.sh
7216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7217 lt_cv_file_magic_cmd='func_win32_libid'
7221 # Base MSYS/MinGW do not provide the 'file' command needed by
7222 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7223 # unless we find 'file', for example because we are cross-compiling.
7224 if ( file / ) >/dev/null 2>&1; then
7225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7226 lt_cv_file_magic_cmd='func_win32_libid'
7228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7229 lt_cv_file_magic_cmd='$OBJDUMP -f'
7234 # use the weaker test based on 'objdump'. See mingw*.
7235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7236 lt_cv_file_magic_cmd='$OBJDUMP -f'
7239 darwin* | rhapsody*)
7240 lt_cv_deplibs_check_method=pass_all
7243 freebsd* | dragonfly*)
7244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7247 # Not sure whether the presence of OpenBSD here was a mistake.
7248 # Let's accept both of them until this is cleared up.
7249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7250 lt_cv_file_magic_cmd=/usr/bin/file
7251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7255 lt_cv_deplibs_check_method=pass_all
7260 lt_cv_deplibs_check_method=pass_all
7263 hpux10.20* | hpux11*)
7264 lt_cv_file_magic_cmd=/usr/bin/file
7267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7271 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]'
7272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7286 irix5* | irix6* | nonstopux*)
7288 *-32|*"-32 ") libmagic=32-bit;;
7289 *-n32|*"-n32 ") libmagic=N32;;
7290 *-64|*"-64 ") libmagic=64-bit;;
7291 *) libmagic=never-match;;
7293 lt_cv_deplibs_check_method=pass_all
7296 # This must be Linux ELF.
7297 linux* | k*bsd*-gnu)
7298 lt_cv_deplibs_check_method=pass_all
7302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7311 lt_cv_file_magic_cmd=/usr/bin/file
7312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7316 lt_cv_deplibs_check_method=pass_all
7320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7327 osf3* | osf4* | osf5*)
7328 lt_cv_deplibs_check_method=pass_all
7332 lt_cv_deplibs_check_method=pass_all
7336 lt_cv_deplibs_check_method=pass_all
7339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7340 lt_cv_deplibs_check_method=pass_all
7344 case $host_vendor in
7346 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]'
7347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7350 lt_cv_deplibs_check_method=pass_all
7353 lt_cv_file_magic_cmd='/bin/file'
7354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7357 lt_cv_file_magic_cmd='/bin/file'
7358 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7359 lt_cv_file_magic_test_file=/lib/libc.so
7362 lt_cv_deplibs_check_method=pass_all
7365 lt_cv_deplibs_check_method=pass_all
7371 lt_cv_deplibs_check_method=pass_all
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7378 file_magic_cmd=$lt_cv_file_magic_cmd
7379 deplibs_check_method=$lt_cv_deplibs_check_method
7380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}ar; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_AR+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 if test -n "$AR"; then
7402 ac_cv_prog_AR="$AR" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_AR="${ac_tool_prefix}ar"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 if test -n "$AR"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7424 $as_echo "$AR" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7432 if test -z "$ac_cv_prog_AR"; then
7434 # Extract the first word of "ar", so it can be a program name with args.
7435 set dummy ar; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$ac_ct_AR"; then
7442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_ac_ct_AR="ar"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7462 if test -n "$ac_ct_AR"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7464 $as_echo "$ac_ct_AR" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7470 if test "x$ac_ct_AR" = x; then
7473 case $cross_compiling:$ac_tool_warned in
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7485 test -z "$AR" && AR=ar
7486 test -z "$AR_FLAGS" && AR_FLAGS=cru
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_prog_STRIP+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7506 if test -n "$STRIP"; then
7507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 STRIP=$ac_cv_prog_STRIP
7527 if test -n "$STRIP"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7529 $as_echo "$STRIP" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7537 if test -z "$ac_cv_prog_STRIP"; then
7539 # Extract the first word of "strip", so it can be a program name with args.
7540 set dummy strip; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 if test -n "$ac_ct_STRIP"; then
7547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_ac_ct_STRIP="strip"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7567 if test -n "$ac_ct_STRIP"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7569 $as_echo "$ac_ct_STRIP" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7575 if test "x$ac_ct_STRIP" = x; then
7578 case $cross_compiling:$ac_tool_warned in
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7587 STRIP="$ac_cv_prog_STRIP"
7590 test -z "$STRIP" && STRIP=:
7597 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$RANLIB"; then
7606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 RANLIB=$ac_cv_prog_RANLIB
7626 if test -n "$RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7628 $as_echo "$RANLIB" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7636 if test -z "$ac_cv_prog_RANLIB"; then
7637 ac_ct_RANLIB=$RANLIB
7638 # Extract the first word of "ranlib", so it can be a program name with args.
7639 set dummy ranlib; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 if test -n "$ac_ct_RANLIB"; then
7646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_ac_ct_RANLIB="ranlib"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7666 if test -n "$ac_ct_RANLIB"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7668 $as_echo "$ac_ct_RANLIB" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7674 if test "x$ac_ct_RANLIB" = x; then
7677 case $cross_compiling:$ac_tool_warned in
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7683 RANLIB=$ac_ct_RANLIB
7686 RANLIB="$ac_cv_prog_RANLIB"
7689 test -z "$RANLIB" && RANLIB=:
7696 # Determine commands to create old-style static archives.
7697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7698 old_postinstall_cmds='chmod 644 $oldlib'
7699 old_postuninstall_cmds=
7701 if test -n "$RANLIB"; then
7704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7746 # If no C compiler was specified, use CC.
7749 # If no C compiler flags were specified, use CFLAGS.
7750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7752 # Allow CC to be a program name with arguments.
7756 # Check for command to grab the raw symbol name followed by C symbol from nm.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7758 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7759 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7763 # These are sane defaults that work on at least a few old systems.
7764 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7766 # Character class describing NM global symbol codes.
7767 symcode='[BCDEGRST]'
7769 # Regexp to match symbols that can be accessed directly from C.
7770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7772 # Define system-specific variables.
7777 cygwin* | mingw* | pw32* | cegcc*)
7778 symcode='[ABCDGISTW]'
7781 if test "$host_cpu" = ia64; then
7782 symcode='[ABCDEGRST]'
7786 symcode='[BCDEGRST]'
7789 symcode='[BCDEGQRST]'
7800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7808 # If we're using GNU nm, then use its standard symbol codes.
7809 case `$NM -V 2>&1` in
7810 *GNU* | *'with BFD'*)
7811 symcode='[ABCDGIRSTW]' ;;
7814 # Transform an extracted symbol line into a proper C declaration.
7815 # Some systems (esp. on ia64) link data and code symbols differently,
7816 # so use this general approach.
7817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7819 # Transform an extracted symbol line into symbol name and symbol address
7820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7821 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7823 # Handle CRLF in mingw tool chain
7827 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7831 # Try without a prefix underscore, then with it.
7832 for ac_symprfx in "" "_"; do
7834 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7835 symxfrm="\\1 $ac_symprfx\\2 \\2"
7837 # Write the raw and C identifiers.
7838 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7839 # Fake it for dumpbin and say T for any non-static function
7840 # and D for any global variable.
7841 # Also find C++ and __fastcall symbols from MSVC++,
7842 # which start with @ or ?.
7843 lt_cv_sys_global_symbol_pipe="$AWK '"\
7844 " {last_section=section; section=\$ 3};"\
7845 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7846 " \$ 0!~/External *\|/{next};"\
7847 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7848 " {if(hide[section]) next};"\
7849 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7850 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7851 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7852 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7853 " ' prfx=^$ac_symprfx"
7855 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7858 # Check to see that the pipe works correctly.
7862 cat > conftest.$ac_ext <<_LT_EOF
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 # Now try to grab the symbols.
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7883 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; } && test -s "$nlist"; then
7887 # Try sorting and uniquifying the output.
7888 if sort "$nlist" | uniq > "$nlist"T; then
7889 mv -f "$nlist"T "$nlist"
7894 # Make sure that we snagged all the symbols we need.
7895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897 cat <<_LT_EOF > conftest.$ac_ext
7903 # Now generate the symbol file.
7904 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7906 cat <<_LT_EOF >> conftest.$ac_ext
7908 /* The mapping between symbol names and symbols. */
7913 lt__PROGRAM__LTX_preloaded_symbols[] =
7915 { "@PROGRAM@", (void *) 0 },
7917 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7918 cat <<\_LT_EOF >> conftest.$ac_ext
7922 /* This works around a problem in FreeBSD linker */
7923 #ifdef FREEBSD_WORKAROUND
7924 static const void *lt_preloaded_setup() {
7925 return lt__PROGRAM__LTX_preloaded_symbols;
7933 # Now try linking the two files.
7934 mv conftest.$ac_objext conftstm.$ac_objext
7935 lt_save_LIBS="$LIBS"
7936 lt_save_CFLAGS="$CFLAGS"
7937 LIBS="conftstm.$ac_objext"
7938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7940 (eval $ac_link) 2>&5
7942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7946 LIBS="$lt_save_LIBS"
7947 CFLAGS="$lt_save_CFLAGS"
7949 echo "cannot find nm_test_func in $nlist" >&5
7952 echo "cannot find nm_test_var in $nlist" >&5
7955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7958 echo "$progname: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 rm -rf conftest* conftst*
7963 # Do not use the global_symbol_pipe unless it works.
7964 if test "$pipe_works" = yes; then
7967 lt_cv_sys_global_symbol_pipe=
7973 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7974 lt_cv_sys_global_symbol_to_cdecl=
7976 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7978 $as_echo "failed" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7981 $as_echo "ok" >&6; }
8005 # Check whether --enable-libtool-lock was given.
8006 if test "${enable_libtool_lock+set}" = set; then :
8007 enableval=$enable_libtool_lock;
8010 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8012 # Some flags need to be propagated to the compiler or linker for good
8016 # Find out which ABI we are using.
8017 echo 'int i;' > conftest.$ac_ext
8018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8019 (eval $ac_compile) 2>&5
8021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8022 test $ac_status = 0; }; then
8023 case `/usr/bin/file conftest.$ac_objext` in
8035 # Find out which ABI we are using.
8036 echo '#line 8036 "configure"' > conftest.$ac_ext
8037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038 (eval $ac_compile) 2>&5
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }; then
8042 if test "$lt_cv_prog_gnu_ld" = yes; then
8043 case `/usr/bin/file conftest.$ac_objext` in
8045 LD="${LD-ld} -melf32bsmip"
8048 LD="${LD-ld} -melf32bmipn32"
8051 LD="${LD-ld} -melf64bmip"
8055 case `/usr/bin/file conftest.$ac_objext` in
8071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8073 # Find out which ABI we are using.
8074 echo 'int i;' > conftest.$ac_ext
8075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8076 (eval $ac_compile) 2>&5
8078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079 test $ac_status = 0; }; then
8080 case `/usr/bin/file conftest.o` in
8083 x86_64-*kfreebsd*-gnu)
8084 LD="${LD-ld} -m elf_i386_fbsd"
8087 LD="${LD-ld} -m elf_i386"
8089 ppc64-*linux*|powerpc64-*linux*)
8090 LD="${LD-ld} -m elf32ppclinux"
8093 LD="${LD-ld} -m elf_s390"
8096 LD="${LD-ld} -m elf32_sparc"
8102 x86_64-*kfreebsd*-gnu)
8103 LD="${LD-ld} -m elf_x86_64_fbsd"
8106 LD="${LD-ld} -m elf_x86_64"
8108 ppc*-*linux*|powerpc*-*linux*)
8109 LD="${LD-ld} -m elf64ppc"
8111 s390*-*linux*|s390*-*tpf*)
8112 LD="${LD-ld} -m elf64_s390"
8115 LD="${LD-ld} -m elf64_sparc"
8125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8126 SAVE_CFLAGS="$CFLAGS"
8127 CFLAGS="$CFLAGS -belf"
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8129 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8130 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 lt_cv_cc_needs_belf=yes
8153 lt_cv_cc_needs_belf=no
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8165 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8166 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8168 CFLAGS="$SAVE_CFLAGS"
8172 # Find out which ABI we are using.
8173 echo 'int i;' > conftest.$ac_ext
8174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8175 (eval $ac_compile) 2>&5
8177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178 test $ac_status = 0; }; then
8179 case `/usr/bin/file conftest.o` in
8181 case $lt_cv_prog_gnu_ld in
8182 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8184 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8196 need_locks="$enable_libtool_lock"
8200 rhapsody* | darwin*)
8201 if test -n "$ac_tool_prefix"; then
8202 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8203 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$DSYMUTIL"; then
8210 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8230 if test -n "$DSYMUTIL"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8232 $as_echo "$DSYMUTIL" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8240 if test -z "$ac_cv_prog_DSYMUTIL"; then
8241 ac_ct_DSYMUTIL=$DSYMUTIL
8242 # Extract the first word of "dsymutil", so it can be a program name with args.
8243 set dummy dsymutil; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 if test -n "$ac_ct_DSYMUTIL"; then
8250 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8270 if test -n "$ac_ct_DSYMUTIL"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8272 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8278 if test "x$ac_ct_DSYMUTIL" = x; then
8281 case $cross_compiling:$ac_tool_warned in
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8285 ac_tool_warned=yes ;;
8287 DSYMUTIL=$ac_ct_DSYMUTIL
8290 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$NMEDIT"; then
8302 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 NMEDIT=$ac_cv_prog_NMEDIT
8322 if test -n "$NMEDIT"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8324 $as_echo "$NMEDIT" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8332 if test -z "$ac_cv_prog_NMEDIT"; then
8333 ac_ct_NMEDIT=$NMEDIT
8334 # Extract the first word of "nmedit", so it can be a program name with args.
8335 set dummy nmedit; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
8341 if test -n "$ac_ct_NMEDIT"; then
8342 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8362 if test -n "$ac_ct_NMEDIT"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8364 $as_echo "$ac_ct_NMEDIT" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8370 if test "x$ac_ct_NMEDIT" = x; then
8373 case $cross_compiling:$ac_tool_warned in
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8379 NMEDIT=$ac_ct_NMEDIT
8382 NMEDIT="$ac_cv_prog_NMEDIT"
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_LIPO+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$LIPO"; then
8394 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 LIPO=$ac_cv_prog_LIPO
8414 if test -n "$LIPO"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8416 $as_echo "$LIPO" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_prog_LIPO"; then
8426 # Extract the first word of "lipo", so it can be a program name with args.
8427 set dummy lipo; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8433 if test -n "$ac_ct_LIPO"; then
8434 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_ac_ct_LIPO="lipo"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8454 if test -n "$ac_ct_LIPO"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8456 $as_echo "$ac_ct_LIPO" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8462 if test "x$ac_ct_LIPO" = x; then
8465 case $cross_compiling:$ac_tool_warned in
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8474 LIPO="$ac_cv_prog_LIPO"
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}otool; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8485 if test -n "$OTOOL"; then
8486 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 OTOOL=$ac_cv_prog_OTOOL
8506 if test -n "$OTOOL"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8508 $as_echo "$OTOOL" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 if test -z "$ac_cv_prog_OTOOL"; then
8518 # Extract the first word of "otool", so it can be a program name with args.
8519 set dummy otool; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8525 if test -n "$ac_ct_OTOOL"; then
8526 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_ac_ct_OTOOL="otool"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8546 if test -n "$ac_ct_OTOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8548 $as_echo "$ac_ct_OTOOL" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8554 if test "x$ac_ct_OTOOL" = x; then
8557 case $cross_compiling:$ac_tool_warned in
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8566 OTOOL="$ac_cv_prog_OTOOL"
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8577 if test -n "$OTOOL64"; then
8578 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 OTOOL64=$ac_cv_prog_OTOOL64
8598 if test -n "$OTOOL64"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8600 $as_echo "$OTOOL64" >&6; }
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8608 if test -z "$ac_cv_prog_OTOOL64"; then
8609 ac_ct_OTOOL64=$OTOOL64
8610 # Extract the first word of "otool64", so it can be a program name with args.
8611 set dummy otool64; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 if test -n "$ac_ct_OTOOL64"; then
8618 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_OTOOL64="otool64"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8638 if test -n "$ac_ct_OTOOL64"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8640 $as_echo "$ac_ct_OTOOL64" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 if test "x$ac_ct_OTOOL64" = x; then
8649 case $cross_compiling:$ac_tool_warned in
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8655 OTOOL64=$ac_ct_OTOOL64
8658 OTOOL64="$ac_cv_prog_OTOOL64"
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8688 $as_echo_n "checking for -single_module linker flag... " >&6; }
8689 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 lt_cv_apple_cc_single_mod=no
8693 if test -z "${LT_MULTI_MODULE}"; then
8694 # By default we will add the -single_module flag. You can override
8695 # by either setting the environment variable LT_MULTI_MODULE
8696 # non-empty at configure time, or by adding -multi_module to the
8698 rm -rf libconftest.dylib*
8699 echo "int foo(void){return 1;}" > conftest.c
8700 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8701 -dynamiclib -Wl,-single_module conftest.c" >&5
8702 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8705 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8706 lt_cv_apple_cc_single_mod=yes
8708 cat conftest.err >&5
8710 rm -rf libconftest.dylib*
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8715 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8717 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8718 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8721 lt_cv_ld_exported_symbols_list=no
8722 save_LDFLAGS=$LDFLAGS
8723 echo "_main" > conftest.sym
8724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8736 if ac_fn_c_try_link "$LINENO"; then :
8737 lt_cv_ld_exported_symbols_list=yes
8739 lt_cv_ld_exported_symbols_list=no
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 LDFLAGS="$save_LDFLAGS"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8747 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8749 rhapsody* | darwin1.[012])
8750 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8752 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8753 darwin*) # darwin 5.x on
8754 # if running on 10.5 or later, the deployment target defaults
8755 # to the OS version, if on x86, and 10.4, the deployment
8756 # target defaults to 10.4. Don't you love it?
8757 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8758 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8759 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8761 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8763 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8767 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8768 _lt_dar_single_mod='$single_module'
8770 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8771 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8773 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8775 if test "$DSYMUTIL" != ":"; then
8776 _lt_dsymutil='~$DSYMUTIL $lib || :'
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8785 $as_echo_n "checking for ANSI C header files... " >&6; }
8786 if test "${ac_cv_header_stdc+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8804 if ac_fn_c_try_compile "$LINENO"; then :
8805 ac_cv_header_stdc=yes
8807 ac_cv_header_stdc=no
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 if test $ac_cv_header_stdc = yes; then
8812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819 $EGREP "memchr" >/dev/null 2>&1; then :
8822 ac_cv_header_stdc=no
8828 if test $ac_cv_header_stdc = yes; then
8829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836 $EGREP "free" >/dev/null 2>&1; then :
8839 ac_cv_header_stdc=no
8845 if test $ac_cv_header_stdc = yes; then
8846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8847 if test "$cross_compiling" = yes; then :
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8854 #if ((' ' & 0x0FF) == 0x020)
8855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8858 # define ISLOWER(c) \
8859 (('a' <= (c) && (c) <= 'i') \
8860 || ('j' <= (c) && (c) <= 'r') \
8861 || ('s' <= (c) && (c) <= 'z'))
8862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8870 for (i = 0; i < 256; i++)
8871 if (XOR (islower (i), ISLOWER (i))
8872 || toupper (i) != TOUPPER (i))
8877 if ac_fn_c_try_run "$LINENO"; then :
8880 ac_cv_header_stdc=no
8882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8883 conftest.$ac_objext conftest.beam conftest.$ac_ext
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8889 $as_echo "$ac_cv_header_stdc" >&6; }
8890 if test $ac_cv_header_stdc = yes; then
8892 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8898 inttypes.h stdint.h unistd.h
8900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8901 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8903 eval as_val=\$$as_ac_Header
8904 if test "x$as_val" = x""yes; then :
8905 cat >>confdefs.h <<_ACEOF
8906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8914 for ac_header in dlfcn.h
8916 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8918 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_DLFCN_H 1
8939 # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then :
8941 enableval=$enable_shared; p=${PACKAGE-default}
8943 yes) enable_shared=yes ;;
8944 no) enable_shared=no ;;
8947 # Look at the argument we got. We use all the common list separators.
8948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949 for pkg in $enableval; do
8951 if test "X$pkg" = "X$p"; then
8970 # Check whether --enable-static was given.
8971 if test "${enable_static+set}" = set; then :
8972 enableval=$enable_static; p=${PACKAGE-default}
8974 yes) enable_static=yes ;;
8975 no) enable_static=no ;;
8978 # Look at the argument we got. We use all the common list separators.
8979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980 for pkg in $enableval; do
8982 if test "X$pkg" = "X$p"; then
9002 # Check whether --with-pic was given.
9003 if test "${with_pic+set}" = set; then :
9004 withval=$with_pic; pic_mode="$withval"
9010 test -z "$pic_mode" && pic_mode=default
9018 # Check whether --enable-fast-install was given.
9019 if test "${enable_fast_install+set}" = set; then :
9020 enableval=$enable_fast_install; p=${PACKAGE-default}
9022 yes) enable_fast_install=yes ;;
9023 no) enable_fast_install=no ;;
9025 enable_fast_install=no
9026 # Look at the argument we got. We use all the common list separators.
9027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9028 for pkg in $enableval; do
9030 if test "X$pkg" = "X$p"; then
9031 enable_fast_install=yes
9038 enable_fast_install=yes
9051 # This can be used to rebuild libtool when needed
9052 LIBTOOL_DEPS="$ltmain"
9054 # Always use our own libtool.
9055 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9081 test -z "$LN_S" && LN_S="ln -s"
9096 if test -n "${ZSH_VERSION+set}" ; then
9097 setopt NO_GLOB_SUBST
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9101 $as_echo_n "checking for objdir... " >&6; }
9102 if test "${lt_cv_objdir+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 rm -f .libs 2>/dev/null
9106 mkdir .libs 2>/dev/null
9107 if test -d .libs; then
9110 # MS-DOS does not allow filenames that begin with a dot.
9113 rmdir .libs 2>/dev/null
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9116 $as_echo "$lt_cv_objdir" >&6; }
9117 objdir=$lt_cv_objdir
9123 cat >>confdefs.h <<_ACEOF
9124 #define LT_OBJDIR "$lt_cv_objdir/"
9145 # AIX sometimes has problems with the GCC collect2 program. For some
9146 # reason, if we set the COLLECT_NAMES environment variable, the problems
9147 # vanish in a puff of smoke.
9148 if test "X${COLLECT_NAMES+set}" != Xset; then
9150 export COLLECT_NAMES
9155 # Sed substitution that helps us do robust quoting. It backslashifies
9156 # metacharacters that are still active within double-quoted strings.
9157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9159 # Same as above, but do not quote variable references.
9160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9162 # Sed substitution to delay expansion of an escaped shell variable in a
9163 # double_quote_subst'ed string.
9164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9166 # Sed substitution to delay expansion of an escaped single quote.
9167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9169 # Sed substitution to avoid accidental globbing in evaled expressions
9170 no_glob_subst='s/\*/\\\*/g'
9174 can_build_shared=yes
9176 # All known linkers require a `.a' archive for static linking (except MSVC,
9177 # which needs '.lib').
9180 with_gnu_ld="$lt_cv_prog_gnu_ld"
9183 old_CFLAGS="$CFLAGS"
9185 # Set sane defaults for various variables
9186 test -z "$CC" && CC=cc
9187 test -z "$LTCC" && LTCC=$CC
9188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9189 test -z "$LD" && LD=ld
9190 test -z "$ac_objext" && ac_objext=o
9192 for cc_temp in $compiler""; do
9194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9200 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9203 # Only perform the check for file, if the check method requires it
9204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9205 case $deplibs_check_method in
9207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9218 lt_save_MAGIC_CMD="$MAGIC_CMD"
9219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9221 for ac_dir in $ac_dummy; do
9223 test -z "$ac_dir" && ac_dir=.
9224 if test -f $ac_dir/${ac_tool_prefix}file; then
9225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9226 if test -n "$file_magic_test_file"; then
9227 case $deplibs_check_method in
9229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9232 $EGREP "$file_magic_regex" > /dev/null; then
9237 *** Warning: the command libtool uses to detect shared libraries,
9238 *** $file_magic_cmd, produces output that libtool cannot recognize.
9239 *** The result is that libtool may fail to recognize shared libraries
9240 *** as such. This will affect the creation of libtool libraries that
9241 *** depend on shared libraries, but programs linked with such libtool
9242 *** libraries will work regardless of this problem. Nevertheless, you
9243 *** may want to report the problem to your system manager and/or to
9244 *** bug-libtool@gnu.org
9254 MAGIC_CMD="$lt_save_MAGIC_CMD"
9259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260 if test -n "$MAGIC_CMD"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9262 $as_echo "$MAGIC_CMD" >&6; }
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9272 if test -z "$lt_cv_path_MAGIC_CMD"; then
9273 if test -n "$ac_tool_prefix"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9275 $as_echo_n "checking for file... " >&6; }
9276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9284 lt_save_MAGIC_CMD="$MAGIC_CMD"
9285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9287 for ac_dir in $ac_dummy; do
9289 test -z "$ac_dir" && ac_dir=.
9290 if test -f $ac_dir/file; then
9291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9292 if test -n "$file_magic_test_file"; then
9293 case $deplibs_check_method in
9295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9298 $EGREP "$file_magic_regex" > /dev/null; then
9303 *** Warning: the command libtool uses to detect shared libraries,
9304 *** $file_magic_cmd, produces output that libtool cannot recognize.
9305 *** The result is that libtool may fail to recognize shared libraries
9306 *** as such. This will affect the creation of libtool libraries that
9307 *** depend on shared libraries, but programs linked with such libtool
9308 *** libraries will work regardless of this problem. Nevertheless, you
9309 *** may want to report the problem to your system manager and/or to
9310 *** bug-libtool@gnu.org
9320 MAGIC_CMD="$lt_save_MAGIC_CMD"
9325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9326 if test -n "$MAGIC_CMD"; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9328 $as_echo "$MAGIC_CMD" >&6; }
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9344 # Use C for the default configuration in the libtool script
9348 ac_cpp='$CPP $CPPFLAGS'
9349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9354 # Source file extension for C test sources.
9357 # Object file extension for compiled C test sources.
9361 # Code to be used in simple compile tests
9362 lt_simple_compile_test_code="int some_variable = 0;"
9364 # Code to be used in simple link tests
9365 lt_simple_link_test_code='int main(){return(0);}'
9373 # If no C compiler was specified, use CC.
9376 # If no C compiler flags were specified, use CFLAGS.
9377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9379 # Allow CC to be a program name with arguments.
9382 # Save the default compiler, since it gets overwritten when the other
9383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9384 compiler_DEFAULT=$CC
9386 # save warnings/boilerplate of simple test code
9387 ac_outfile=conftest.$ac_objext
9388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9390 _lt_compiler_boilerplate=`cat conftest.err`
9393 ac_outfile=conftest.$ac_objext
9394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9396 _lt_linker_boilerplate=`cat conftest.err`
9401 ## There is no encapsulation within the following macros, do not change
9402 ## the running order or otherwise move them around unless you know exactly
9403 ## what you are doing...
9404 if test -n "$compiler"; then
9406 lt_prog_compiler_no_builtin_flag=
9408 if test "$GCC" = yes; then
9409 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9412 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9413 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9416 lt_cv_prog_compiler_rtti_exceptions=no
9417 ac_outfile=conftest.$ac_objext
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419 lt_compiler_flag="-fno-rtti -fno-exceptions"
9420 # Insert the option either (1) after the last *FLAGS variable, or
9421 # (2) before a word containing "conftest.", or (3) at the end.
9422 # Note that $ac_compile itself does not contain backslashes and begins
9423 # with a dollar sign (not a hyphen), so the echo should work correctly.
9424 # The option is referenced via a variable to avoid confusing sed.
9425 lt_compile=`echo "$ac_compile" | $SED \
9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428 -e 's:$: $lt_compiler_flag:'`
9429 (eval echo "\"\$as_me:9429: $lt_compile\"" >&5)
9430 (eval "$lt_compile" 2>conftest.err)
9432 cat conftest.err >&5
9433 echo "$as_me:9433: \$? = $ac_status" >&5
9434 if (exit $ac_status) && test -s "$ac_outfile"; then
9435 # The compiler can only warn and ignore the option if not recognized
9436 # So say no if there are warnings other than the usual output.
9437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_rtti_exceptions=yes
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9447 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9449 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9462 lt_prog_compiler_wl=
9463 lt_prog_compiler_pic=
9464 lt_prog_compiler_static=
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9469 if test "$GCC" = yes; then
9470 lt_prog_compiler_wl='-Wl,'
9471 lt_prog_compiler_static='-static'
9475 # All AIX code is PIC.
9476 if test "$host_cpu" = ia64; then
9477 # AIX 5 now supports IA64 processor
9478 lt_prog_compiler_static='-Bstatic'
9485 # see comment about AmigaOS4 .so support
9486 lt_prog_compiler_pic='-fPIC'
9489 # FIXME: we need at least 68020 code to build shared libraries, but
9490 # adding the `-m68020' flag to GCC prevents building anything better,
9492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9498 # PIC is the default for these OSes.
9501 mingw* | cygwin* | pw32* | os2* | cegcc*)
9502 # This hack is so that the source file can tell whether it is being
9503 # built for inclusion in a dll (and should export symbols for example).
9504 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9505 # (--disable-auto-import) libraries
9506 lt_prog_compiler_pic='-DDLL_EXPORT'
9509 darwin* | rhapsody*)
9510 # PIC is the default on this platform
9511 # Common symbols not allowed in MH_DYLIB files
9512 lt_prog_compiler_pic='-fno-common'
9516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9518 # sets the default TLS model and affects inlining.
9524 lt_prog_compiler_pic='-fPIC'
9530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9531 # Instead, we relocate shared libraries at runtime.
9535 # Just because we use GCC doesn't mean we suddenly get shared libraries
9536 # on systems that don't support them.
9537 lt_prog_compiler_can_build_shared=no
9542 # QNX uses GNU C++, but need to define -shared option too, otherwise
9544 lt_prog_compiler_pic='-fPIC -shared'
9548 if test -d /usr/nec; then
9549 lt_prog_compiler_pic=-Kconform_pic
9554 lt_prog_compiler_pic='-fPIC'
9558 # PORTME Check for flag to pass linker flags through the system compiler.
9561 lt_prog_compiler_wl='-Wl,'
9562 if test "$host_cpu" = ia64; then
9563 # AIX 5 now supports IA64 processor
9564 lt_prog_compiler_static='-Bstatic'
9566 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9570 mingw* | cygwin* | pw32* | os2* | cegcc*)
9571 # This hack is so that the source file can tell whether it is being
9572 # built for inclusion in a dll (and should export symbols for example).
9573 lt_prog_compiler_pic='-DDLL_EXPORT'
9576 hpux9* | hpux10* | hpux11*)
9577 lt_prog_compiler_wl='-Wl,'
9578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9585 lt_prog_compiler_pic='+Z'
9588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9589 lt_prog_compiler_static='${wl}-a ${wl}archive'
9592 irix5* | irix6* | nonstopux*)
9593 lt_prog_compiler_wl='-Wl,'
9594 # PIC (with -KPIC) is the default.
9595 lt_prog_compiler_static='-non_shared'
9598 linux* | k*bsd*-gnu)
9599 case $cc_basename in
9600 # old Intel for x86_64 which still supported -KPIC.
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-static'
9606 # icc used to be incompatible with GCC.
9607 # ICC 10 doesn't accept -KPIC any more.
9609 lt_prog_compiler_wl='-Wl,'
9610 lt_prog_compiler_pic='-fPIC'
9611 lt_prog_compiler_static='-static'
9613 # Lahey Fortran 8.1.
9615 lt_prog_compiler_wl='-Wl,'
9616 lt_prog_compiler_pic='--shared'
9617 lt_prog_compiler_static='--static'
9619 pgcc* | pgf77* | pgf90* | pgf95*)
9620 # Portland Group compilers (*not* the Pentium gcc compiler,
9621 # which looks to be a dead project)
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='-fpic'
9624 lt_prog_compiler_static='-Bstatic'
9627 lt_prog_compiler_wl='-Wl,'
9628 # All Alpha code is PIC.
9629 lt_prog_compiler_static='-non_shared'
9632 # IBM XL C 8.0/Fortran 10.1 on PPC
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-qpic'
9635 lt_prog_compiler_static='-qstaticlink'
9638 case `$CC -V 2>&1 | sed 5q` in
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9643 lt_prog_compiler_wl='-Wl,'
9646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 lt_prog_compiler_wl=''
9657 lt_prog_compiler_pic='-KPIC'
9658 lt_prog_compiler_static='-Bstatic'
9662 # QNX uses GNU C++, but need to define -shared option too, otherwise
9664 lt_prog_compiler_pic='-fPIC -shared'
9667 osf3* | osf4* | osf5*)
9668 lt_prog_compiler_wl='-Wl,'
9669 # All OSF/1 code is PIC.
9670 lt_prog_compiler_static='-non_shared'
9674 lt_prog_compiler_static='-non_shared'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-Bstatic'
9680 case $cc_basename in
9682 lt_prog_compiler_wl='-Qoption ld ';;
9684 lt_prog_compiler_wl='-Wl,';;
9689 lt_prog_compiler_wl='-Qoption ld '
9690 lt_prog_compiler_pic='-PIC'
9691 lt_prog_compiler_static='-Bstatic'
9694 sysv4 | sysv4.2uw2* | sysv4.3*)
9695 lt_prog_compiler_wl='-Wl,'
9696 lt_prog_compiler_pic='-KPIC'
9697 lt_prog_compiler_static='-Bstatic'
9701 if test -d /usr/nec ;then
9702 lt_prog_compiler_pic='-Kconform_pic'
9703 lt_prog_compiler_static='-Bstatic'
9707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_pic='-KPIC'
9710 lt_prog_compiler_static='-Bstatic'
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_can_build_shared=no
9719 lt_prog_compiler_pic='-pic'
9720 lt_prog_compiler_static='-Bstatic'
9724 lt_prog_compiler_can_build_shared=no
9730 # For platforms which do not support PIC, -DPIC is meaningless:
9732 lt_prog_compiler_pic=
9735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9739 $as_echo "$lt_prog_compiler_pic" >&6; }
9747 # Check to make sure the PIC flag actually works.
9749 if test -n "$lt_prog_compiler_pic"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9755 lt_cv_prog_compiler_pic_works=no
9756 ac_outfile=conftest.$ac_objext
9757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9759 # Insert the option either (1) after the last *FLAGS variable, or
9760 # (2) before a word containing "conftest.", or (3) at the end.
9761 # Note that $ac_compile itself does not contain backslashes and begins
9762 # with a dollar sign (not a hyphen), so the echo should work correctly.
9763 # The option is referenced via a variable to avoid confusing sed.
9764 lt_compile=`echo "$ac_compile" | $SED \
9765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9767 -e 's:$: $lt_compiler_flag:'`
9768 (eval echo "\"\$as_me:9768: $lt_compile\"" >&5)
9769 (eval "$lt_compile" 2>conftest.err)
9771 cat conftest.err >&5
9772 echo "$as_me:9772: \$? = $ac_status" >&5
9773 if (exit $ac_status) && test -s "$ac_outfile"; then
9774 # The compiler can only warn and ignore the option if not recognized
9775 # So say no if there are warnings other than the usual output.
9776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9779 lt_cv_prog_compiler_pic_works=yes
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9786 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9789 case $lt_prog_compiler_pic in
9791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9794 lt_prog_compiler_pic=
9795 lt_prog_compiler_can_build_shared=no
9806 # Check to make sure the static flag actually works.
9808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9810 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9811 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9814 lt_cv_prog_compiler_static_works=no
9815 save_LDFLAGS="$LDFLAGS"
9816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819 # The linker can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
9821 if test -s conftest.err; then
9822 # Append any errors to the config.log.
9823 cat conftest.err 1>&5
9824 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826 if diff conftest.exp conftest.er2 >/dev/null; then
9827 lt_cv_prog_compiler_static_works=yes
9830 lt_cv_prog_compiler_static_works=yes
9834 LDFLAGS="$save_LDFLAGS"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9838 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9840 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9843 lt_prog_compiler_static=
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9857 lt_cv_prog_compiler_c_o=no
9858 $RM -r conftest 2>/dev/null
9862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9864 lt_compiler_flag="-o out/conftest2.$ac_objext"
9865 # Insert the option either (1) after the last *FLAGS variable, or
9866 # (2) before a word containing "conftest.", or (3) at the end.
9867 # Note that $ac_compile itself does not contain backslashes and begins
9868 # with a dollar sign (not a hyphen), so the echo should work correctly.
9869 lt_compile=`echo "$ac_compile" | $SED \
9870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9872 -e 's:$: $lt_compiler_flag:'`
9873 (eval echo "\"\$as_me:9873: $lt_compile\"" >&5)
9874 (eval "$lt_compile" 2>out/conftest.err)
9876 cat out/conftest.err >&5
9877 echo "$as_me:9877: \$? = $ac_status" >&5
9878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9880 # The compiler can only warn and ignore the option if not recognized
9881 # So say no if there are warnings
9882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler_c_o=yes
9890 # SGI C++ compiler will create directory out/ii_files/ for
9891 # template instantiation
9892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9893 $RM out/* && rmdir out
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9909 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9910 $as_echo_n "(cached) " >&6
9912 lt_cv_prog_compiler_c_o=no
9913 $RM -r conftest 2>/dev/null
9917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9919 lt_compiler_flag="-o out/conftest2.$ac_objext"
9920 # Insert the option either (1) after the last *FLAGS variable, or
9921 # (2) before a word containing "conftest.", or (3) at the end.
9922 # Note that $ac_compile itself does not contain backslashes and begins
9923 # with a dollar sign (not a hyphen), so the echo should work correctly.
9924 lt_compile=`echo "$ac_compile" | $SED \
9925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9927 -e 's:$: $lt_compiler_flag:'`
9928 (eval echo "\"\$as_me:9928: $lt_compile\"" >&5)
9929 (eval "$lt_compile" 2>out/conftest.err)
9931 cat out/conftest.err >&5
9932 echo "$as_me:9932: \$? = $ac_status" >&5
9933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9935 # The compiler can only warn and ignore the option if not recognized
9936 # So say no if there are warnings
9937 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9940 lt_cv_prog_compiler_c_o=yes
9945 # SGI C++ compiler will create directory out/ii_files/ for
9946 # template instantiation
9947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9948 $RM out/* && rmdir out
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9960 hard_links="nottested"
9961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9962 # do not overwrite the value of need_locks provided by the user
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9964 $as_echo_n "checking if we can lock with hard links... " >&6; }
9967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9969 ln conftest.a conftest.b 2>&5 || hard_links=no
9970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9972 $as_echo "$hard_links" >&6; }
9973 if test "$hard_links" = no; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9991 allow_undefined_flag=
9992 always_export_symbols=no
9994 archive_expsym_cmds=
9995 compiler_needs_object=no
9996 enable_shared_with_static_runtimes=no
9997 export_dynamic_flag_spec=
9998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9999 hardcode_automatic=no
10001 hardcode_direct_absolute=no
10002 hardcode_libdir_flag_spec=
10003 hardcode_libdir_flag_spec_ld=
10004 hardcode_libdir_separator=
10005 hardcode_minus_L=no
10006 hardcode_shlibpath_var=unsupported
10008 link_all_deplibs=unknown
10010 module_expsym_cmds=
10011 old_archive_from_new_cmds=
10012 old_archive_from_expsyms_cmds=
10013 thread_safe_flag_spec=
10014 whole_archive_flag_spec=
10015 # include_expsyms should be a list of space-separated symbols to be *always*
10016 # included in the symbol list
10018 # exclude_expsyms can be an extended regexp of symbols to exclude
10019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10021 # as well as any symbol that contains `d'.
10022 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10024 # platforms (ab)use it in PIC code, but their linkers get confused if
10025 # the symbol is explicitly referenced. Since portable code cannot
10026 # rely on this symbol name, it's probably fine to never include it in
10027 # preloaded symbol tables.
10028 # Exclude shared library initialization/finalization symbols.
10029 extract_expsyms_cmds=
10032 cygwin* | mingw* | pw32* | cegcc*)
10033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10034 # When not using gcc, we currently assume that we are using
10035 # Microsoft Visual C++.
10036 if test "$GCC" != yes; then
10041 # we just hope/assume this is gcc and not c89 (= MSVC++)
10050 if test "$with_gnu_ld" = yes; then
10051 # If archive_cmds runs LD, not CC, wlarc should be empty
10054 # Set some defaults for GNU ld with shared library support. These
10055 # are reset later if shared libraries are not supported. Putting them
10056 # here allows them to be overridden if necessary.
10057 runpath_var=LD_RUN_PATH
10058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059 export_dynamic_flag_spec='${wl}--export-dynamic'
10060 # ancient GNU ld didn't support --whole-archive et. al.
10061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10064 whole_archive_flag_spec=
10066 supports_anon_versioning=no
10067 case `$LD -v 2>&1` in
10068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10071 *\ 2.11.*) ;; # other 2.11 versions
10072 *) supports_anon_versioning=yes ;;
10075 # See if GNU ld supports shared libraries.
10078 # On AIX/PPC, the GNU linker is very broken
10079 if test "$host_cpu" != ia64; then
10083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10084 *** to be unable to reliably create shared libraries on AIX.
10085 *** Therefore, libtool is disabling shared libraries support. If you
10086 *** really care for shared libraries, you may want to modify your PATH
10087 *** so that a non-GNU linker is found, and then restart.
10096 # see comment about AmigaOS4 .so support
10097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098 archive_expsym_cmds=''
10101 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)'
10102 hardcode_libdir_flag_spec='-L$libdir'
10103 hardcode_minus_L=yes
10109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10110 allow_undefined_flag=unsupported
10111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10112 # support --undefined. This deserves some investigation. FIXME
10113 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119 cygwin* | mingw* | pw32* | cegcc*)
10120 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10121 # as there is no search path for DLLs.
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 allow_undefined_flag=unsupported
10124 always_export_symbols=no
10125 enable_shared_with_static_runtimes=yes
10126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10130 # If the export-symbols file already is a .def file (1st line
10131 # is EXPORTS), use it as is; otherwise, prepend...
10132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10133 cp $export_symbols $output_objdir/$soname.def;
10135 echo EXPORTS > $output_objdir/$soname.def;
10136 cat $export_symbols >> $output_objdir/$soname.def;
10138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10146 hardcode_shlibpath_var=no
10147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148 export_dynamic_flag_spec='${wl}-E'
10149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10150 # Instead, shared libraries are loaded at an image base (0x10000000 by
10151 # default) and relocated if they conflict, which is a slow very memory
10152 # consuming and fragmenting process. To avoid this, we pick a random,
10153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10156 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'
10159 gnu* | linux* | tpf* | k*bsd*-gnu)
10161 if test "$host_os" = linux-dietlibc; then
10162 case $cc_basename in
10163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10167 && test "$tmp_diet" = no
10170 tmp_sharedflag='-shared'
10171 case $cc_basename,$host_cpu in
10172 pgcc*) # Portland Group C compiler
10173 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'
10174 tmp_addflag=' $pic_flag'
10176 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10177 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'
10178 tmp_addflag=' $pic_flag -Mnomain' ;;
10179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10180 tmp_addflag=' -i_dynamic' ;;
10181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10182 tmp_addflag=' -i_dynamic -nofor_main' ;;
10183 ifc* | ifort*) # Intel Fortran compiler
10184 tmp_addflag=' -nofor_main' ;;
10185 lf95*) # Lahey Fortran 8.1
10186 whole_archive_flag_spec=
10187 tmp_sharedflag='--shared' ;;
10188 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10189 tmp_sharedflag='-qmkshrobj'
10192 case `$CC -V 2>&1 | sed 5q` in
10193 *Sun\ C*) # Sun C 5.9
10194 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'
10195 compiler_needs_object=yes
10196 tmp_sharedflag='-G' ;;
10197 *Sun\ F*) # Sun Fortran 8.3
10198 tmp_sharedflag='-G' ;;
10200 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 if test "x$supports_anon_versioning" = xyes; then
10203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10205 echo "local: *; };" >> $output_objdir/$libname.ver~
10206 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10209 case $cc_basename in
10211 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10212 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10213 hardcode_libdir_flag_spec=
10214 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10215 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10216 if test "x$supports_anon_versioning" = xyes; then
10217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10219 echo "local: *; };" >> $output_objdir/$libname.ver~
10220 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10245 *** create shared libraries on Solaris systems. Therefore, libtool
10246 *** is disabling shared libraries support. We urge you to upgrade GNU
10247 *** binutils to release 2.9.1 or newer. Another option is to modify
10248 *** your PATH or compiler configuration so that the native linker is
10249 *** used, and then restart.
10252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10261 case `$LD -v 2>&1` in
10262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10267 *** reliably create shared libraries on SCO systems. Therefore, libtool
10268 *** is disabling shared libraries support. We urge you to upgrade GNU
10269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10270 *** your PATH or compiler configuration so that the native linker is
10271 *** used, and then restart.
10276 # For security reasons, it is highly recommended that you always
10277 # use absolute paths for naming shared libraries, and exclude the
10278 # DT_RUNPATH tag from executables and libraries. But doing so
10279 # requires that you compile everything twice, which is a pain.
10280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_direct=yes
10295 hardcode_shlibpath_var=no
10299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10308 if test "$ld_shlibs" = no; then
10310 hardcode_libdir_flag_spec=
10311 export_dynamic_flag_spec=
10312 whole_archive_flag_spec=
10315 # PORTME fill in a description of your system's linker (not GNU ld)
10318 allow_undefined_flag=unsupported
10319 always_export_symbols=yes
10320 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'
10321 # Note: this linker hardcodes the directories in LIBPATH if there
10322 # are no directories specified by -L.
10323 hardcode_minus_L=yes
10324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10325 # Neither direct hardcoding nor static linking is supported with a
10327 hardcode_direct=unsupported
10332 if test "$host_cpu" = ia64; then
10333 # On IA64, the linker does run time linking by default, so we don't
10334 # have to do anything special.
10335 aix_use_runtimelinking=no
10336 exp_sym_flag='-Bexport'
10339 # If we're using GNU nm, then we don't want the "-C" option.
10340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10342 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'
10344 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'
10346 aix_use_runtimelinking=no
10348 # Test if we are trying to use run time linking or normal
10349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350 # need to do runtime linking.
10351 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10352 for ld_flag in $LDFLAGS; do
10353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10354 aix_use_runtimelinking=yes
10361 exp_sym_flag='-bexport'
10362 no_entry_flag='-bnoentry'
10365 # When large executables or shared objects are built, AIX ld can
10366 # have problems creating the table of contents. If linking a library
10367 # or program results in "error TOC overflow" add -mminimal-toc to
10368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10372 hardcode_direct=yes
10373 hardcode_direct_absolute=yes
10374 hardcode_libdir_separator=':'
10375 link_all_deplibs=yes
10376 file_list_spec='${wl}-f,'
10378 if test "$GCC" = yes; then
10379 case $host_os in aix4.[012]|aix4.[012].*)
10380 # We only want to do this on AIX 4.2 and lower, the check
10381 # below for broken collect2 doesn't work under 4.3+
10382 collect2name=`${CC} -print-prog-name=collect2`
10383 if test -f "$collect2name" &&
10384 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10386 # We have reworked collect2
10389 # We have old collect2
10390 hardcode_direct=unsupported
10391 # It fails to find uninstalled libraries when the uninstalled
10392 # path is not listed in the libpath. Setting hardcode_minus_L
10393 # to unsupported forces relinking
10394 hardcode_minus_L=yes
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 hardcode_libdir_separator=
10400 shared_flag='-shared'
10401 if test "$aix_use_runtimelinking" = yes; then
10402 shared_flag="$shared_flag "'${wl}-G'
10406 if test "$host_cpu" = ia64; then
10407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408 # chokes on -Wl,-G. The following line is correct:
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag='${wl}-G'
10414 shared_flag='${wl}-bM:SRE'
10419 export_dynamic_flag_spec='${wl}-bexpall'
10420 # It seems that -bexpall does not export symbols beginning with
10421 # underscore (_), so it is better to generate a list of symbols to export.
10422 always_export_symbols=yes
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # Warning - without using the other runtime loading flags (-brtl),
10425 # -berok will link without error, but may produce a broken library.
10426 allow_undefined_flag='-berok'
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10440 if ac_fn_c_try_link "$LINENO"; then :
10442 lt_aix_libpath_sed='
10443 /Import File Strings/,/^$/ {
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450 # Check for a 64-bit object if we didn't find anything.
10451 if test -z "$aix_libpath"; then
10452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10462 if test "$host_cpu" = ia64; then
10463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10464 allow_undefined_flag="-z nodefs"
10465 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"
10467 # Determine the default libpath from the value encoded in an
10468 # empty executable.
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10480 if ac_fn_c_try_link "$LINENO"; then :
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$aix_libpath"; then
10492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10500 # Warning - without using the other run time loading flags,
10501 # -berok will link without error, but may produce a broken library.
10502 no_undefined_flag=' ${wl}-bernotok'
10503 allow_undefined_flag=' ${wl}-berok'
10504 # Exported symbols can be pulled into shared objects from archives
10505 whole_archive_flag_spec='$convenience'
10506 archive_cmds_need_lc=yes
10507 # This is similar to how AIX traditionally builds its shared libraries.
10508 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'
10516 # see comment about AmigaOS4 .so support
10517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10518 archive_expsym_cmds=''
10521 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)'
10522 hardcode_libdir_flag_spec='-L$libdir'
10523 hardcode_minus_L=yes
10529 export_dynamic_flag_spec=-rdynamic
10532 cygwin* | mingw* | pw32* | cegcc*)
10533 # When not using gcc, we currently assume that we are using
10534 # Microsoft Visual C++.
10535 # hardcode_libdir_flag_spec is actually meaningless, as there is
10536 # no search path for DLLs.
10537 hardcode_libdir_flag_spec=' '
10538 allow_undefined_flag=unsupported
10539 # Tell ltmain to make .lib files, not .a files.
10541 # Tell ltmain to make .dll files, not .so files.
10543 # FIXME: Setting linknames here is a bad hack.
10544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10545 # The linker will automatically build a .lib file if we build a DLL.
10546 old_archive_from_new_cmds='true'
10547 # FIXME: Should let the user specify the lib program.
10548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10549 fix_srcfile_path='`cygpath -w "$srcfile"`'
10550 enable_shared_with_static_runtimes=yes
10553 darwin* | rhapsody*)
10556 archive_cmds_need_lc=no
10558 hardcode_automatic=yes
10559 hardcode_shlibpath_var=unsupported
10560 whole_archive_flag_spec=''
10561 link_all_deplibs=yes
10562 allow_undefined_flag="$_lt_dar_allow_undefined"
10563 case $cc_basename in
10564 ifort*) _lt_dar_can_shared=yes ;;
10565 *) _lt_dar_can_shared=$GCC ;;
10567 if test "$_lt_dar_can_shared" = "yes"; then
10568 output_verbose_link_cmd=echo
10569 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10570 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10571 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10572 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_shlibpath_var=no
10590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10591 # support. Future versions do this automatically, but an explicit c++rt0.o
10592 # does not break anything, and helps significantly (at the cost of a little
10595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10596 hardcode_libdir_flag_spec='-R$libdir'
10597 hardcode_direct=yes
10598 hardcode_shlibpath_var=no
10601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=yes
10605 hardcode_minus_L=yes
10606 hardcode_shlibpath_var=no
10609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10610 freebsd* | dragonfly*)
10611 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10612 hardcode_libdir_flag_spec='-R$libdir'
10613 hardcode_direct=yes
10614 hardcode_shlibpath_var=no
10618 if test "$GCC" = yes; then
10619 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'
10621 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'
10623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10624 hardcode_libdir_separator=:
10625 hardcode_direct=yes
10627 # hardcode_minus_L: Not really in the search PATH,
10628 # but as the default location of the library.
10629 hardcode_minus_L=yes
10630 export_dynamic_flag_spec='${wl}-E'
10634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10639 if test "$with_gnu_ld" = no; then
10640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10641 hardcode_libdir_flag_spec_ld='+b $libdir'
10642 hardcode_libdir_separator=:
10643 hardcode_direct=yes
10644 hardcode_direct_absolute=yes
10645 export_dynamic_flag_spec='${wl}-E'
10646 # hardcode_minus_L: Not really in the search PATH,
10647 # but as the default location of the library.
10648 hardcode_minus_L=yes
10653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10678 if test "$with_gnu_ld" = no; then
10679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10680 hardcode_libdir_separator=:
10685 hardcode_shlibpath_var=no
10688 hardcode_direct=yes
10689 hardcode_direct_absolute=yes
10690 export_dynamic_flag_spec='${wl}-E'
10692 # hardcode_minus_L: Not really in the search PATH,
10693 # but as the default location of the library.
10694 hardcode_minus_L=yes
10700 irix5* | irix6* | nonstopux*)
10701 if test "$GCC" = yes; then
10702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10703 # Try to use the -exported_symbol ld option, if it does not
10704 # work, assume that -exports_file does not work either and
10705 # implicitly export all symbols.
10706 save_LDFLAGS="$LDFLAGS"
10707 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LDFLAGS="$save_LDFLAGS"
10720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10723 archive_cmds_need_lc='no'
10724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725 hardcode_libdir_separator=:
10727 link_all_deplibs=yes
10731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10736 hardcode_libdir_flag_spec='-R$libdir'
10737 hardcode_direct=yes
10738 hardcode_shlibpath_var=no
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_direct=yes
10744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator=:
10746 hardcode_shlibpath_var=no
10753 if test -f /usr/libexec/ld.so; then
10754 hardcode_direct=yes
10755 hardcode_shlibpath_var=no
10756 hardcode_direct_absolute=yes
10757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10761 export_dynamic_flag_spec='${wl}-E'
10764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_libdir_flag_spec='-R$libdir'
10769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10780 hardcode_libdir_flag_spec='-L$libdir'
10781 hardcode_minus_L=yes
10782 allow_undefined_flag=unsupported
10783 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'
10784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10788 if test "$GCC" = yes; then
10789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10792 allow_undefined_flag=' -expect_unresolved \*'
10793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10795 archive_cmds_need_lc='no'
10796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797 hardcode_libdir_separator=:
10800 osf4* | osf5*) # as osf3* with the addition of -msym flag
10801 if test "$GCC" = yes; then
10802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806 allow_undefined_flag=' -expect_unresolved \*'
10807 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10808 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10809 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10811 # Both c and cxx compiler support -rpath directly
10812 hardcode_libdir_flag_spec='-rpath $libdir'
10814 archive_cmds_need_lc='no'
10815 hardcode_libdir_separator=:
10819 no_undefined_flag=' -z defs'
10820 if test "$GCC" = yes; then
10822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10826 case `$CC -V 2>&1` in
10829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10841 hardcode_libdir_flag_spec='-R$libdir'
10842 hardcode_shlibpath_var=no
10844 solaris2.[0-5] | solaris2.[0-5].*) ;;
10846 # The compiler driver will combine and reorder linker options,
10847 # but understands `-z linker_flag'. GCC discards it without `$wl',
10848 # but is careful enough not to reorder.
10849 # Supported since Solaris 2.6 (maybe 2.5.1?)
10850 if test "$GCC" = yes; then
10851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10857 link_all_deplibs=yes
10861 if test "x$host_vendor" = xsequent; then
10862 # Use $CC to link under sequent, because it throws in some extra .o
10863 # files that make .init and .fini sections work.
10864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_direct=yes
10870 hardcode_minus_L=yes
10871 hardcode_shlibpath_var=no
10875 case $host_vendor in
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes # is this really true???
10881 ## LD is ld it makes a PLAMLIB
10882 ## CC just makes a GrossModule.
10883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10884 reload_cmds='$CC -r -o $output$reload_objs'
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10892 runpath_var='LD_RUN_PATH'
10893 hardcode_shlibpath_var=no
10897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_shlibpath_var=no
10899 export_dynamic_flag_spec='-Bexport'
10903 if test -d /usr/nec; then
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_shlibpath_var=no
10906 runpath_var=LD_RUN_PATH
10907 hardcode_runpath_var=yes
10912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10913 no_undefined_flag='${wl}-z,text'
10914 archive_cmds_need_lc=no
10915 hardcode_shlibpath_var=no
10916 runpath_var='LD_RUN_PATH'
10918 if test "$GCC" = yes; then
10919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 sysv5* | sco3.2v5* | sco5v6*)
10928 # Note: We can NOT use -z defs as we might desire, because we do not
10929 # link with -lc, and that would cause any symbols used from libc to
10930 # always be unresolved, which means just about no library would
10931 # ever link correctly. If we're not using GNU ld we use -z text
10932 # though, which does catch some bad symbols but isn't as heavy-handed
10934 no_undefined_flag='${wl}-z,text'
10935 allow_undefined_flag='${wl}-z,nodefs'
10936 archive_cmds_need_lc=no
10937 hardcode_shlibpath_var=no
10938 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10939 hardcode_libdir_separator=':'
10940 link_all_deplibs=yes
10941 export_dynamic_flag_spec='${wl}-Bexport'
10942 runpath_var='LD_RUN_PATH'
10944 if test "$GCC" = yes; then
10945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_shlibpath_var=no
10964 if test x$host_vendor = xsni; then
10966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10967 export_dynamic_flag_spec='${wl}-Blargedynsym'
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10974 $as_echo "$ld_shlibs" >&6; }
10975 test "$ld_shlibs" = no && can_build_shared=no
10977 with_gnu_ld=$with_gnu_ld
10994 # Do we need to explicitly link libc?
10996 case "x$archive_cmds_need_lc" in
10998 # Assume -lc should be added
10999 archive_cmds_need_lc=yes
11001 if test "$enable_shared" = yes && test "$GCC" = yes; then
11002 case $archive_cmds in
11004 # FIXME: we may have to deal with multi-command sequences.
11007 # Test whether the compiler implicitly links with -lc since on some
11008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009 # to ld, don't add -lc before -lgcc.
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11011 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11016 (eval $ac_compile) 2>&5
11018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019 test $ac_status = 0; } 2>conftest.err; then
11022 libobjs=conftest.$ac_objext
11024 wl=$lt_prog_compiler_wl
11025 pic_flag=$lt_prog_compiler_pic
11031 lt_save_allow_undefined_flag=$allow_undefined_flag
11032 allow_undefined_flag=
11033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11034 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037 test $ac_status = 0; }
11039 archive_cmds_need_lc=no
11041 archive_cmds_need_lc=yes
11043 allow_undefined_flag=$lt_save_allow_undefined_flag
11045 cat conftest.err 1>&5
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11049 $as_echo "$archive_cmds_need_lc" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11215 if test "$GCC" = yes; then
11217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11218 *) lt_awk_arg="/^libraries:/" ;;
11220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11221 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11222 # if the path contains ";" then we assume it to be the separator
11223 # otherwise default to the standard path separator (i.e. ":") - it is
11224 # assumed that no part of a normal pathname contains ";" but that should
11225 # okay in the real world where ";" in dirpaths is itself problematic.
11226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11230 # Ok, now we have the path, separated by spaces, we can step through it
11231 # and add multilib dir if necessary.
11232 lt_tmp_lt_search_path_spec=
11233 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11234 for lt_sys_path in $lt_search_path_spec; do
11235 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11238 test -d "$lt_sys_path" && \
11239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11242 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11243 BEGIN {RS=" "; FS="/|\n";} {
11246 for (lt_i = NF; lt_i > 0; lt_i--) {
11247 if ($lt_i != "" && $lt_i != ".") {
11248 if ($lt_i == "..") {
11251 if (lt_count == 0) {
11252 lt_foo="/" $lt_i lt_foo;
11259 if (lt_foo != "") { lt_freq[lt_foo]++; }
11260 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11262 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11266 library_names_spec=
11267 libname_spec='lib$name'
11271 postuninstall_cmds=
11275 shlibpath_overrides_runpath=unknown
11277 dynamic_linker="$host_os ld.so"
11278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11279 need_lib_prefix=unknown
11280 hardcode_into_libs=no
11282 # when you set need_version to no, make sure it does not cause -set_version
11283 # flags to be left without arguments
11284 need_version=unknown
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11290 shlibpath_var=LIBPATH
11292 # AIX 3 has no versioning support, so we append a major version to the name.
11293 soname_spec='${libname}${release}${shared_ext}$major'
11300 hardcode_into_libs=yes
11301 if test "$host_cpu" = ia64; then
11302 # AIX 5 supports IA64
11303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11304 shlibpath_var=LD_LIBRARY_PATH
11306 # With GCC up to 2.95.x, collect2 would create an import file
11307 # for dependence libraries. The import file would start with
11308 # the line `#! .'. This would cause the generated library to
11309 # depend on `.', always an invalid library. This was fixed in
11310 # development snapshots of GCC prior to 3.0.
11312 aix4 | aix4.[01] | aix4.[01].*)
11313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11315 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11318 can_build_shared=no
11322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11323 # soname into executable. Probably we can add versioning support to
11324 # collect2, so additional links can be useful in future.
11325 if test "$aix_use_runtimelinking" = yes; then
11326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327 # instead of lib<name>.a to let people know that these are not
11328 # typical AIX shared libraries.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331 # We preserve .a as extension for shared libraries through AIX4.2
11332 # and later when we are not doing run time linking.
11333 library_names_spec='${libname}${release}.a $libname.a'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LIBPATH
11343 # Since July 2007 AmigaOS4 officially supports .so libraries.
11344 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 library_names_spec='$libname.ixlibrary $libname.a'
11349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11350 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'
11356 library_names_spec='${libname}${shared_ext}'
11357 dynamic_linker="$host_os ld.so"
11358 shlibpath_var=LIBRARY_PATH
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11370 # the default ld.so.conf also contains /usr/contrib/lib and
11371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11372 # libtool to hard-code these into programs
11375 cygwin* | mingw* | pw32* | cegcc*)
11376 version_type=windows
11381 case $GCC,$host_os in
11382 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11383 library_names_spec='$libname.dll.a'
11384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11385 postinstall_cmds='base_file=`basename \${file}`~
11386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11387 dldir=$destdir/`dirname \$dlpath`~
11388 test -d \$dldir || mkdir -p \$dldir~
11389 $install_prog $dir/$dlname \$dldir/$dlname~
11390 chmod a+x \$dldir/$dlname~
11391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11395 dlpath=$dir/\$dldll~
11397 shlibpath_overrides_runpath=yes
11401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11406 # MinGW DLLs use traditional 'lib' prefix
11407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11409 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11410 # It is most probably a Windows format PATH printed by
11411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11412 # path with ; separators, and with drive letters. We can handle the
11413 # drive letters (cygwin fileutils understands them), so leave them,
11414 # especially as we might pass files found there to a mingw objdump,
11415 # which wouldn't understand a cygwinified path. Ahh.
11416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11422 # pw32 DLLs use 'pw' prefix rather than 'lib'
11423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11432 dynamic_linker='Win32 ld.exe'
11433 # FIXME: first we should search . and the directory the executable is in
11437 darwin* | rhapsody*)
11438 dynamic_linker="$host_os dyld"
11439 version_type=darwin
11442 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11443 soname_spec='${libname}${release}${major}$shared_ext'
11444 shlibpath_overrides_runpath=yes
11445 shlibpath_var=DYLD_LIBRARY_PATH
11446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LD_LIBRARY_PATH
11465 freebsd* | dragonfly*)
11466 # DragonFly does not have aout. When/if they implement a new
11467 # versioning mechanism, adjust this.
11468 if test -x /usr/bin/objformat; then
11469 objformat=`/usr/bin/objformat`
11472 freebsd[123]*) objformat=aout ;;
11473 *) objformat=elf ;;
11476 version_type=freebsd-$objformat
11477 case $version_type in
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11488 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11493 freebsd3.[01]* | freebsdelf3.[01]*)
11494 shlibpath_overrides_runpath=yes
11495 hardcode_into_libs=yes
11497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11502 *) # from 4.6 on, and DragonFly
11503 shlibpath_overrides_runpath=yes
11504 hardcode_into_libs=yes
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 hardcode_into_libs=yes
11519 hpux9* | hpux10* | hpux11*)
11520 # Give a soname corresponding to the major version so that dld.sl refuses to
11521 # link against other versions.
11528 hardcode_into_libs=yes
11529 dynamic_linker="$host_os dld.so"
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 if test "X$HPUX_IA64_MODE" = X32; then
11535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11543 hardcode_into_libs=yes
11544 dynamic_linker="$host_os dld.sl"
11545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554 dynamic_linker="$host_os dld.sl"
11555 shlibpath_var=SHLIB_PATH
11556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11562 postinstall_cmds='chmod 555 $lib'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath=no
11574 hardcode_into_libs=yes
11577 irix5* | irix6* | nonstopux*)
11579 nonstopux*) version_type=nonstopux ;;
11581 if test "$lt_cv_prog_gnu_ld" = yes; then
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11592 irix5* | nonstopux*)
11593 libsuff= shlibsuff=
11596 case $LD in # libtool.m4 will add one of these switches to LD
11597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11598 libsuff= shlibsuff= libmagic=32-bit;;
11599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11600 libsuff=32 shlibsuff=N32 libmagic=N32;;
11601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11603 *) libsuff= shlibsuff= libmagic=never-match;;
11607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11608 shlibpath_overrides_runpath=no
11609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11611 hardcode_into_libs=yes
11614 # No shared lib support for Linux oldld, aout, or coff.
11615 linux*oldld* | linux*aout* | linux*coff*)
11619 # This must be Linux ELF.
11620 linux* | k*bsd*-gnu)
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 # Some binutils ld are patched to set DT_RUNPATH
11630 save_LDFLAGS=$LDFLAGS
11631 save_libdir=$libdir
11632 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11633 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11647 shlibpath_overrides_runpath=yes
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LDFLAGS=$save_LDFLAGS
11653 libdir=$save_libdir
11655 # This implies no fast_install, which is unacceptable.
11656 # Some rework will be needed to allow for fast_install
11657 # before this can be enabled.
11658 hardcode_into_libs=yes
11660 # Append ld.so.conf contents to the search path
11661 if test -f /etc/ld.so.conf; then
11662 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' ' '`
11663 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11666 # We used to test for /lib/ld.so.1 and disable shared libraries on
11667 # powerpc, because MkLinux only supported shared libraries with the
11668 # GNU dynamic linker. Since this was broken with cross compilers,
11669 # most powerpc-linux boxes support dynamic linking these days and
11670 # people can always --disable-shared, the test was removed, and we
11671 # assume the GNU/Linux dynamic linker is in use.
11672 dynamic_linker='GNU/Linux ld.so'
11679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11682 dynamic_linker='NetBSD (a.out) ld.so'
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 dynamic_linker='NetBSD ld.elf_so'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=yes
11690 hardcode_into_libs=yes
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=no
11708 hardcode_into_libs=yes
11709 dynamic_linker='ldqnx.so'
11714 sys_lib_dlsearch_path_spec="/usr/lib"
11716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11718 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11719 *) need_version=no ;;
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11726 openbsd2.[89] | openbsd2.[89].*)
11727 shlibpath_overrides_runpath=no
11730 shlibpath_overrides_runpath=yes
11734 shlibpath_overrides_runpath=yes
11739 libname_spec='$name'
11742 library_names_spec='$libname${shared_ext} $libname.a'
11743 dynamic_linker='OS/2 ld.exe'
11744 shlibpath_var=LIBPATH
11747 osf3* | osf4* | osf5*)
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 hardcode_into_libs=yes
11771 # ldd complains unless libraries are executable
11772 postinstall_cmds='chmod +x $lib'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 if test "$with_gnu_ld" = yes; then
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 case $host_vendor in
11794 shlibpath_overrides_runpath=no
11796 runpath_var=LD_RUN_PATH
11804 shlibpath_overrides_runpath=no
11805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11811 if test -d /usr/nec ;then
11813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11814 soname_spec='$libname${shared_ext}.$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11820 version_type=freebsd-elf
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827 hardcode_into_libs=yes
11828 if test "$with_gnu_ld" = yes; then
11829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11838 sys_lib_dlsearch_path_spec='/usr/lib'
11842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=no
11849 hardcode_into_libs=yes
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11864 $as_echo "$dynamic_linker" >&6; }
11865 test "$dynamic_linker" = no && can_build_shared=no
11867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11868 if test "$GCC" = yes; then
11869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11873 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11876 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11966 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11968 if test -n "$hardcode_libdir_flag_spec" ||
11969 test -n "$runpath_var" ||
11970 test "X$hardcode_automatic" = "Xyes" ; then
11972 # We can hardcode non-existent directories.
11973 if test "$hardcode_direct" != no &&
11974 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11975 # have to relink, otherwise we might link with an installed library
11976 # when we should be linking with a yet-to-be-installed one
11977 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11978 test "$hardcode_minus_L" != no; then
11979 # Linking always hardcodes the temporary library directory.
11980 hardcode_action=relink
11982 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11983 hardcode_action=immediate
11986 # We cannot hardcode anything, or else we can only hardcode existing
11988 hardcode_action=unsupported
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11991 $as_echo "$hardcode_action" >&6; }
11993 if test "$hardcode_action" = relink ||
11994 test "$inherit_rpath" = yes; then
11995 # Fast installation is not supported
11996 enable_fast_install=no
11997 elif test "$shlibpath_overrides_runpath" = yes ||
11998 test "$enable_shared" = no; then
11999 # Fast installation is not necessary
12000 enable_fast_install=needless
12008 if test "x$enable_dlopen" != xyes; then
12009 enable_dlopen=unknown
12010 enable_dlopen_self=unknown
12011 enable_dlopen_self_static=unknown
12018 lt_cv_dlopen="load_add_on"
12020 lt_cv_dlopen_self=yes
12023 mingw* | pw32* | cegcc*)
12024 lt_cv_dlopen="LoadLibrary"
12029 lt_cv_dlopen="dlopen"
12034 # if libdl is installed we need to link against it
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12036 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12040 ac_check_lib_save_LIBS=$LIBS
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_lib_dl_dlopen=yes
12063 ac_cv_lib_dl_dlopen=no
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12070 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12071 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12075 lt_cv_dlopen="dyld"
12077 lt_cv_dlopen_self=yes
12084 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12085 if test "x$ac_cv_func_shl_load" = x""yes; then :
12086 lt_cv_dlopen="shl_load"
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12089 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12090 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12093 ac_check_lib_save_LIBS=$LIBS
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12098 /* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12108 return shl_load ();
12113 if ac_fn_c_try_link "$LINENO"; then :
12114 ac_cv_lib_dld_shl_load=yes
12116 ac_cv_lib_dld_shl_load=no
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12123 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12124 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12125 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12127 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12128 if test "x$ac_cv_func_dlopen" = x""yes; then :
12129 lt_cv_dlopen="dlopen"
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12136 ac_check_lib_save_LIBS=$LIBS
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 ac_cv_lib_dl_dlopen=yes
12159 ac_cv_lib_dl_dlopen=no
12161 rm -f core conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12163 LIBS=$ac_check_lib_save_LIBS
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12166 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12167 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12171 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12172 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lsvld $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_svld_dlopen=yes
12198 ac_cv_lib_svld_dlopen=no
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12205 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12206 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12210 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12211 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12214 ac_check_lib_save_LIBS=$LIBS
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12229 return dld_link ();
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_dld_dld_link=yes
12237 ac_cv_lib_dld_dld_link=no
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12244 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12245 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12246 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12267 if test "x$lt_cv_dlopen" != xno; then
12273 case $lt_cv_dlopen in
12275 save_CPPFLAGS="$CPPFLAGS"
12276 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12278 save_LDFLAGS="$LDFLAGS"
12279 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12282 LIBS="$lt_cv_dlopen_libs $LIBS"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12285 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12286 if test "${lt_cv_dlopen_self+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12289 if test "$cross_compiling" = yes; then :
12290 lt_cv_dlopen_self=cross
12292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293 lt_status=$lt_dlunknown
12294 cat > conftest.$ac_ext <<_LT_EOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12305 # define LT_DLGLOBAL RTLD_GLOBAL
12308 # define LT_DLGLOBAL DL_GLOBAL
12310 # define LT_DLGLOBAL 0
12314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315 find out it does not work in some platform. */
12316 #ifndef LT_DLLAZY_OR_NOW
12318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12321 # define LT_DLLAZY_OR_NOW DL_LAZY
12324 # define LT_DLLAZY_OR_NOW RTLD_NOW
12327 # define LT_DLLAZY_OR_NOW DL_NOW
12329 # define LT_DLLAZY_OR_NOW 0
12336 void fnord() { int i=42;}
12339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340 int status = $lt_dlunknown;
12344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12346 /* dlclose (self); */
12354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12355 (eval $ac_link) 2>&5
12357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12358 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12359 (./conftest; exit; ) >&5 2>/dev/null
12361 case x$lt_status in
12362 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12363 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12364 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12367 # compilation failed
12368 lt_cv_dlopen_self=no
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12376 $as_echo "$lt_cv_dlopen_self" >&6; }
12378 if test "x$lt_cv_dlopen_self" = xyes; then
12379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12381 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12382 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12385 if test "$cross_compiling" = yes; then :
12386 lt_cv_dlopen_self_static=cross
12388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12389 lt_status=$lt_dlunknown
12390 cat > conftest.$ac_ext <<_LT_EOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12401 # define LT_DLGLOBAL RTLD_GLOBAL
12404 # define LT_DLGLOBAL DL_GLOBAL
12406 # define LT_DLGLOBAL 0
12410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12411 find out it does not work in some platform. */
12412 #ifndef LT_DLLAZY_OR_NOW
12414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12417 # define LT_DLLAZY_OR_NOW DL_LAZY
12420 # define LT_DLLAZY_OR_NOW RTLD_NOW
12423 # define LT_DLLAZY_OR_NOW DL_NOW
12425 # define LT_DLLAZY_OR_NOW 0
12432 void fnord() { int i=42;}
12435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436 int status = $lt_dlunknown;
12440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442 /* dlclose (self); */
12450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12451 (eval $ac_link) 2>&5
12453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12455 (./conftest; exit; ) >&5 2>/dev/null
12457 case x$lt_status in
12458 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12459 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12460 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12463 # compilation failed
12464 lt_cv_dlopen_self_static=no
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12472 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12475 CPPFLAGS="$save_CPPFLAGS"
12476 LDFLAGS="$save_LDFLAGS"
12481 case $lt_cv_dlopen_self in
12482 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12483 *) enable_dlopen_self=unknown ;;
12486 case $lt_cv_dlopen_self_static in
12487 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12488 *) enable_dlopen_self_static=unknown ;;
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12511 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12512 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12513 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12514 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516 $as_echo "yes" >&6; }
12518 # FIXME - insert some real tests, host_os isn't really good enough
12521 if test -n "$STRIP" ; then
12522 striplib="$STRIP -x"
12523 old_striplib="$STRIP -S"
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12549 # Report which library types will actually be built
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12551 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12553 $as_echo "$can_build_shared" >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12556 $as_echo_n "checking whether to build shared libraries... " >&6; }
12557 test "$can_build_shared" = "no" && enable_shared=no
12559 # On AIX, shared libraries and static libraries use the same namespace, and
12560 # are all built from PIC.
12563 test "$enable_shared" = yes && enable_static=no
12564 if test -n "$RANLIB"; then
12565 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12566 postinstall_cmds='$RANLIB $lib'
12571 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12572 test "$enable_shared" = yes && enable_static=no
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12577 $as_echo "$enable_shared" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12580 $as_echo_n "checking whether to build static libraries... " >&6; }
12581 # Make sure either enable_shared or enable_static is yes.
12582 test "$enable_shared" = yes || enable_static=yes
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12584 $as_echo "$enable_static" >&6; }
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12610 ac_config_commands="$ac_config_commands libtool"
12615 # Only expand once:
12619 if test "$enable_shared" = "no"; then
12622 eval _shrext="$shrext_cmds"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12625 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12627 # Check whether --with-noexec was given.
12628 if test "${with_noexec+set}" = set; then :
12629 withval=$with_noexec; case $with_noexec in
12630 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
12636 with_noexec="$libexecdir/sudo_noexec$_shrext"
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12640 $as_echo "$with_noexec" >&6; }
12641 NOEXECFILE="sudo_noexec$_shrext"
12642 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12644 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12645 CFLAGS="${CFLAGS} -Wall"
12648 # Extract the first word of "uname", so it can be a program name with args.
12649 set dummy uname; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12655 if test -n "$UNAMEPROG"; then
12656 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12665 ac_cv_prog_UNAMEPROG="uname"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12676 if test -n "$UNAMEPROG"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12678 $as_echo "$UNAMEPROG" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12685 # Extract the first word of "tr", so it can be a program name with args.
12686 set dummy tr; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12692 if test -n "$TRPROG"; then
12693 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702 ac_cv_prog_TRPROG="tr"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 TRPROG=$ac_cv_prog_TRPROG
12713 if test -n "$TRPROG"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12715 $as_echo "$TRPROG" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12722 for ac_prog in nroff mandoc
12724 # Extract the first word of "$ac_prog", so it can be a program name with args.
12725 set dummy $ac_prog; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12731 if test -n "$NROFFPROG"; then
12732 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_NROFFPROG="$ac_prog"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 NROFFPROG=$ac_cv_prog_NROFFPROG
12752 if test -n "$NROFFPROG"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12754 $as_echo "$NROFFPROG" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12761 test -n "$NROFFPROG" && break
12764 if test -z "$NROFFPROG"; then
12766 mansrcdir='$(srcdir)'
12769 if test -n "$sudo_cv_prev_host"; then
12770 if test "$sudo_cv_prev_host" != "$host"; then
12771 as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12774 $as_echo_n "checking previous host type... " >&6; }
12775 if test "${sudo_cv_prev_host+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12778 sudo_cv_prev_host="$host"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12782 $as_echo "$sudo_cv_prev_host" >&6; }
12785 # this will produce no output since there is no cached value
12786 if test "${sudo_cv_prev_host+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12789 sudo_cv_prev_host="$host"
12794 if test -n "$host_os"; then
12795 OS=`echo $host_os | sed 's/[0-9].*//'`
12796 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12797 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12806 # getcwd(3) opens a pipe to getpwd(1)!?!
12809 # system headers lack prototypes but gcc helps...
12810 if test -n "$GCC"; then
12811 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12814 shadow_funcs="getpwanam issecure"
12817 # To get the crypt(3) prototype (so we pass -Wall)
12818 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12819 # AFS support needs -lucb
12820 if test "$with_AFS" = "yes"; then
12821 AFS_LIBS="-lc -lucb"
12823 : ${mansectsu='1m'}
12824 : ${mansectform='4'}
12825 : ${with_rpath='yes'}
12826 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12829 # To get all prototypes (so we pass -Wall)
12830 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12831 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12832 if test X"$with_blibpath" != X"no"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12834 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12835 O_LDFLAGS="$LDFLAGS"
12836 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12848 if ac_fn_c_try_link "$LINENO"; then :
12850 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12851 blibpath="$with_blibpath"
12852 elif test -n "$GCC"; then
12853 blibpath="/usr/lib:/lib:/usr/local/lib"
12855 blibpath="/usr/lib:/lib"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12867 LDFLAGS="$O_LDFLAGS"
12869 # Use authenticate(3) as the default authentication method
12870 if test X"$with_aixauth" = X""; then
12871 for ac_func in authenticate
12873 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12874 if test "x$ac_cv_func_authenticate" = x""yes; then :
12875 cat >>confdefs.h <<_ACEOF
12876 #define HAVE_AUTHENTICATE 1
12878 AUTH_EXCL_DEF="AIX_AUTH"
12884 # AIX analog of nsswitch.conf, enabled by default
12886 # Check whether --with-netsvc was given.
12887 if test "${with_netsvc+set}" = set; then :
12888 withval=$with_netsvc; case $with_netsvc in
12890 yes) with_netsvc="/etc/netsvc.conf"
12896 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12897 with_netsvc="/etc/netsvc.conf"
12900 # AIX-specific functions
12901 for ac_func in getuserattr setauthdb
12903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12905 eval as_val=\$$as_ac_var
12906 if test "x$as_val" = x""yes; then :
12907 cat >>confdefs.h <<_ACEOF
12908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914 COMMON_OBJS="$COMMON_OBJS aix.o"
12917 : ${mansectsu='1m'}
12918 : ${mansectform='4'}
12921 # AFS support needs -lBSD
12922 if test "$with_AFS" = "yes"; then
12923 AFS_LIBS="-lc -lBSD"
12925 : ${mansectsu='1m'}
12926 : ${mansectform='4'}
12928 if test -z "$GCC"; then
12929 # HP-UX bundled compiler can't generate shared objects
12930 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12934 # Use the +DAportable flag on hppa if it is supported
12935 case "$host_cpu" in
12938 CFLAGS="$CFLAGS +DAportable"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12940 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12941 if test "${sudo_cv_var_daportable+set}" = set; then :
12942 $as_echo_n "(cached) " >&6
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12955 if ac_fn_c_try_link "$LINENO"; then :
12956 sudo_cv_var_daportable=yes
12958 sudo_cv_var_daportable=no
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12967 $as_echo "$sudo_cv_var_daportable" >&6; }
12968 if test X"$sudo_cv_var_daportable" != X"yes"; then
12977 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12980 # Not sure if setuid binaries are safe in < 9.x
12981 if test -n "$GCC"; then
12982 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12984 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12988 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12991 shadow_funcs="getspwuid"
12993 # DCE support (requires ANSI C compiler)
12994 if test "$with_DCE" = "yes"; then
12995 # order of libs in 9.X is important. -lc_r must be last
12996 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12997 LIBS="${LIBS} -ldce -lM -lc_r"
12998 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13002 shadow_funcs="getprpwnam iscomsec"
13003 shadow_libs="-lsec"
13004 # HP-UX 10.20 libc has an incompatible getline
13005 ac_cv_func_getline="no"
13008 shadow_funcs="getspnam iscomsec"
13009 shadow_libs="-lsec"
13010 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13015 # ignore envariables wrt dynamic lib path
13016 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
13018 : ${CHECKSIA='true'}
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13020 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13021 # Check whether --enable-sia was given.
13022 if test "${enable_sia+set}" = set; then :
13023 enableval=$enable_sia; case "$enableval" in
13024 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13028 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13029 $as_echo "yes" >&6; }
13032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13035 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13045 shadow_funcs="getprpwnam dispcrypt"
13046 # OSF/1 4.x and higher need -ldb too
13047 if test $OSMAJOR -lt 4; then
13048 shadow_libs="-lsecurity -laud -lm"
13050 shadow_libs="-lsecurity -ldb -laud -lm"
13053 # use SIA by default, if we have it
13054 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13057 # Some versions of Digital Unix ship with a broken
13058 # copy of prot.h, which we need for shadow passwords.
13059 # XXX - make should remove this as part of distclean
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13062 $as_echo_n "checking for broken prot.h... " >&6; }
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 #include <sys/types.h>
13067 #include <sys/security.h>
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13083 $as_echo "yes, fixing locally" >&6; }
13084 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 : ${mansectform='4'}
13092 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13093 if test -z "$NROFFPROG"; then
13094 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)'
13095 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13096 if test -d /usr/share/catman/local; then
13097 mandir="/usr/share/catman/local"
13099 mandir="/usr/catman/local"
13103 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13104 if test -d "/usr/share/man/local"; then
13105 mandir="/usr/share/man/local"
13107 mandir="/usr/man/local"
13111 # IRIX <= 4 needs -lsun
13112 if test "$OSMAJOR" -le 4; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13114 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13115 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13116 $as_echo_n "(cached) " >&6
13118 ac_check_lib_save_LIBS=$LIBS
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13133 return getpwnam ();
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 ac_cv_lib_sun_getpwnam=yes
13141 ac_cv_lib_sun_getpwnam=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13148 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13149 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13150 LIBS="${LIBS} -lsun"
13154 : ${mansectsu='1m'}
13155 : ${mansectform='4'}
13157 *-*-linux*|*-*-k*bsd*-gnu)
13158 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13159 # Some Linux versions need to link with -lshadow
13160 shadow_funcs="getspnam"
13161 shadow_libs_optional="-lshadow"
13162 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13165 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13166 if test -z "$GCC"; then
13167 CFLAGS="${CFLAGS} -D__STDC__"
13170 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13171 shadow_funcs="getprpwnam"
13172 shadow_libs="-lprot"
13176 shadow_funcs="getauthuid"
13177 shadow_libs="-lauth"
13180 LIBS="${LIBS} -lsun -lbsd"
13181 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13182 OSDEFS="${OSDEFS} -D_MIPS"
13183 : ${mansectsu='1m'}
13184 : ${mansectform='4'}
13187 OSDEFS="${OSDEFS} -D_ISC"
13189 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
13190 LIBS="${LIBS} -lcrypt"
13192 shadow_funcs="getspnam"
13193 shadow_libs="-lsec"
13195 : ${mansectsu='1m'}
13196 : ${mansectform='4'}
13199 shadow_funcs="getprpwnam"
13200 shadow_libs="-lprot -lx"
13201 : ${mansectsu='1m'}
13202 : ${mansectform='4'}
13204 m88k-motorola-sysv*)
13205 # motorolla's cc (a variant of gcc) does -O but not -O2
13206 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13207 : ${mansectsu='1m'}
13208 : ${mansectform='4'}
13211 shadow_funcs="getspnam"
13212 shadow_libs="-lsec"
13213 : ${mansectsu='1m'}
13214 : ${mansectform='4'}
13215 : ${with_rpath='yes'}
13217 *-ncr-sysv4*|*-ncr-sysvr4*)
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13219 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13220 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13223 ac_check_lib_save_LIBS=$LIBS
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13234 char strcasecmp ();
13238 return strcasecmp ();
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_lib_c89_strcasecmp=yes
13246 ac_cv_lib_c89_strcasecmp=no
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13253 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13254 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13255 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13256 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13259 : ${mansectsu='1m'}
13260 : ${mansectform='4'}
13261 : ${with_rpath='yes'}
13263 *-ccur-sysv4*|*-ccur-sysvr4*)
13264 LIBS="${LIBS} -lgen"
13265 SUDO_LIBS="${SUDO_LIBS} -lgen"
13266 : ${mansectsu='1m'}
13267 : ${mansectform='4'}
13268 : ${with_rpath='yes'}
13272 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13273 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13275 2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13276 $as_echo "$as_me: using shlicc as CC" >&6;}
13277 ac_cv_prog_CC=shlicc
13278 CC="$ac_cv_prog_CC"
13282 # Check for newer BSD auth API (just check for >= 3.0?)
13283 if test -z "$with_bsdauth"; then
13284 for ac_func in auth_challenge
13286 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13287 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13288 cat >>confdefs.h <<_ACEOF
13289 #define HAVE_AUTH_CHALLENGE 1
13291 AUTH_EXCL_DEF="BSD_AUTH"
13298 # FreeBSD has a real setreuid(2) starting with 2.1 and
13299 # backported to 2.0.5. We just take 2.1 and above...
13305 if test "${with_skey-'no'}" = "yes"; then
13306 SUDO_LIBS="${SUDO_LIBS} -lmd"
13308 CHECKSHADOW="false"
13309 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13310 : ${with_logincap='maybe'}
13313 # OpenBSD has a real setreuid(2) starting with 3.3 but
13314 # we will use setreuid(2) instead.
13316 CHECKSHADOW="false"
13317 # OpenBSD >= 3.0 supports BSD auth
13318 if test -z "$with_bsdauth"; then
13323 AUTH_EXCL_DEF="BSD_AUTH"
13327 : ${with_logincap='maybe'}
13330 # NetBSD has a real setreuid(2) starting with 1.3.2
13332 0.9*|1.012*|1.3|1.3.1)
13336 CHECKSHADOW="false"
13337 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13338 : ${with_logincap='maybe'}
13341 if test "${with_skey-'no'}" = "yes"; then
13342 SUDO_LIBS="${SUDO_LIBS} -lmd"
13344 CHECKSHADOW="false"
13345 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13346 : ${with_logincap='yes'}
13349 CHECKSHADOW="false"
13352 # Darwin has a real setreuid(2) starting with 9.0
13353 if test $OSMAJOR -lt 9; then
13356 CHECKSHADOW="false"
13357 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13358 : ${with_logincap='yes'}
13361 # lockf() on is broken on the NeXT -- use flock instead
13362 ac_cv_func_lockf=no
13363 ac_cv_func_flock=yes
13366 : ${mansectsu='1m'}
13367 : ${mansectform='4'}
13368 : ${with_rpath='yes'}
13371 : ${mansectsu='1m'}
13372 : ${mansectform='4'}
13375 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13379 AUTH_REG=${AUTH_REG# }
13380 AUTH_EXCL=${AUTH_EXCL# }
13381 if test -n "$AUTH_EXCL"; then
13383 if test $# != 1; then
13384 as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13386 if test -n "$AUTH_REG"; then
13387 as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13390 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13391 as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13395 : ${mansectform='5'}
13397 if test -n "$with_libpath"; then
13398 for i in ${with_libpath}; do
13400 if test X"$with_rpath" = X"yes"; then
13402 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13404 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13408 LDFLAGS="${LDFLAGS} -L$i"
13410 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13411 blibpath_add="${blibpath_add}:$i"
13416 if test -n "$with_libraries"; then
13417 for i in ${with_libraries}; do
13424 LIBS="${LIBS} ${i}"
13428 if test $ac_cv_c_compiler_gnu = yes; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13430 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13431 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13434 ac_pattern="Autoconf.*'x'"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13441 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13442 ac_cv_prog_gcc_traditional=yes
13444 ac_cv_prog_gcc_traditional=no
13449 if test $ac_cv_prog_gcc_traditional = no; then
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #include <termio.h>
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13457 ac_cv_prog_gcc_traditional=yes
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13464 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13465 if test $ac_cv_prog_gcc_traditional = yes; then
13466 CC="$CC -traditional"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13471 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13472 if test "${ac_cv_c_const+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13481 /* FIXME: Include the comments suggested by Paul. */
13482 #ifndef __cplusplus
13483 /* Ultrix mips cc rejects this. */
13484 typedef int charset[2];
13486 /* SunOS 4.1.1 cc rejects this. */
13487 char const *const *pcpcc;
13489 /* NEC SVR4.0.2 mips cc rejects this. */
13490 struct point {int x, y;};
13491 static struct point const zero = {0,0};
13492 /* AIX XL C 1.02.0.0 rejects this.
13493 It does not let you subtract one const X* pointer from another in
13494 an arm of an if-expression whose if-part is not a constant
13496 const char *g = "string";
13497 pcpcc = &g + (g ? g-g : 0);
13498 /* HPUX 7.0 cc rejects these. */
13500 ppc = (char**) pcpcc;
13501 pcpcc = (char const *const *) ppc;
13502 { /* SCO 3.2v4 cc rejects this. */
13504 char const *s = 0 ? (char *) 0 : (char const *) 0;
13509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13510 int x[] = {25, 17};
13511 const int *foo = &x[0];
13514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13515 typedef const int *iptr;
13519 { /* AIX XL C 1.02.0.0 rejects this saying
13520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13521 struct s { int j; const int *ap[3]; };
13522 struct s *b; b->j = 5;
13524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13525 const int foo = 10;
13526 if (!foo) return 0;
13528 return !cs[0] && !zero.x;
13535 if ac_fn_c_try_compile "$LINENO"; then :
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13543 $as_echo "$ac_cv_c_const" >&6; }
13544 if test $ac_cv_c_const = no; then
13546 $as_echo "#define const /**/" >>confdefs.h
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13551 $as_echo_n "checking for working volatile... " >&6; }
13552 if test "${ac_cv_c_volatile+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13563 int * volatile y = (int *) 0;
13569 if ac_fn_c_try_compile "$LINENO"; then :
13570 ac_cv_c_volatile=yes
13572 ac_cv_c_volatile=no
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13577 $as_echo "$ac_cv_c_volatile" >&6; }
13578 if test $ac_cv_c_volatile = no; then
13580 $as_echo "#define volatile /**/" >>confdefs.h
13584 for ac_prog in 'bison -y' byacc
13586 # Extract the first word of "$ac_prog", so it can be a program name with args.
13587 set dummy $ac_prog; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if test "${ac_cv_prog_YACC+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13593 if test -n "$YACC"; then
13594 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13603 ac_cv_prog_YACC="$ac_prog"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 YACC=$ac_cv_prog_YACC
13614 if test -n "$YACC"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13616 $as_echo "$YACC" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13623 test -n "$YACC" && break
13625 test -n "$YACC" || YACC="yacc"
13627 # Extract the first word of "flex", so it can be a program name with args.
13628 set dummy flex; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if test "${ac_cv_path_FLEX+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13636 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13646 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13658 FLEX=$ac_cv_path_FLEX
13659 if test -n "$FLEX"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13661 $as_echo "$FLEX" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13669 $as_echo_n "checking for mv... " >&6; }
13671 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13672 if test -f "$p"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13675 $as_echo "$p" >&6; }
13676 cat >>confdefs.h <<EOF
13677 #define _PATH_MV "$p"
13683 if test X"$found" != X"yes"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13685 $as_echo "not found" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13689 $as_echo_n "checking for bourne shell... " >&6; }
13691 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13692 if test -f "$p"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13695 $as_echo "$p" >&6; }
13696 cat >>confdefs.h <<EOF
13697 #define _PATH_BSHELL "$p"
13703 if test X"$found" != X"yes"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13705 $as_echo "not found" >&6; }
13708 if test -z "$with_sendmail"; then
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13710 $as_echo_n "checking for sendmail... " >&6; }
13712 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13713 if test -f "$p"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13716 $as_echo "$p" >&6; }
13717 cat >>confdefs.h <<EOF
13718 #define _PATH_SUDO_SENDMAIL "$p"
13724 if test X"$found" != X"yes"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13726 $as_echo "not found" >&6; }
13730 if test -z "$with_editor"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13732 $as_echo_n "checking for vi... " >&6; }
13734 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13735 if test -f "$editor"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13738 $as_echo "$editor" >&6; }
13739 cat >>confdefs.h <<EOF
13740 #define _PATH_VI "$editor"
13746 if test X"$found" != X"yes"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13748 $as_echo "not found" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13753 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13754 if test X"$with_logfac" = X""; then
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #include <syslog.h>
13761 int i = LOG_AUTHPRIV; (void)i;
13766 if ac_fn_c_try_compile "$LINENO"; then :
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 cat >>confdefs.h <<_ACEOF
13773 #define LOGFAC "$logfac"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13777 $as_echo "$logfac" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13779 $as_echo_n "checking for ANSI C header files... " >&6; }
13780 if test "${ac_cv_header_stdc+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 #include <stdlib.h>
13786 #include <stdarg.h>
13787 #include <string.h>
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799 ac_cv_header_stdc=yes
13801 ac_cv_header_stdc=no
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 if test $ac_cv_header_stdc = yes; then
13806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <string.h>
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 $EGREP "memchr" >/dev/null 2>&1; then :
13816 ac_cv_header_stdc=no
13822 if test $ac_cv_header_stdc = yes; then
13823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <stdlib.h>
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830 $EGREP "free" >/dev/null 2>&1; then :
13833 ac_cv_header_stdc=no
13839 if test $ac_cv_header_stdc = yes; then
13840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13841 if test "$cross_compiling" = yes; then :
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13847 #include <stdlib.h>
13848 #if ((' ' & 0x0FF) == 0x020)
13849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13852 # define ISLOWER(c) \
13853 (('a' <= (c) && (c) <= 'i') \
13854 || ('j' <= (c) && (c) <= 'r') \
13855 || ('s' <= (c) && (c) <= 'z'))
13856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13864 for (i = 0; i < 256; i++)
13865 if (XOR (islower (i), ISLOWER (i))
13866 || toupper (i) != TOUPPER (i))
13871 if ac_fn_c_try_run "$LINENO"; then :
13874 ac_cv_header_stdc=no
13876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13877 conftest.$ac_objext conftest.beam conftest.$ac_ext
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13883 $as_echo "$ac_cv_header_stdc" >&6; }
13884 if test $ac_cv_header_stdc = yes; then
13886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13890 ac_header_dirent=no
13891 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13892 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13894 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13896 $as_echo_n "(cached) " >&6
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include <sys/types.h>
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 eval "$as_ac_Header=yes"
13915 eval "$as_ac_Header=no"
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 eval ac_res=\$$as_ac_Header
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13921 $as_echo "$ac_res" >&6; }
13922 eval as_val=\$$as_ac_Header
13923 if test "x$as_val" = x""yes; then :
13924 cat >>confdefs.h <<_ACEOF
13925 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13928 ac_header_dirent=$ac_hdr; break
13932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13933 if test $ac_header_dirent = dirent.h; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13935 $as_echo_n "checking for library containing opendir... " >&6; }
13936 if test "${ac_cv_search_opendir+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13939 ac_func_search_save_LIBS=$LIBS
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13958 for ac_lib in '' dir; do
13959 if test -z "$ac_lib"; then
13960 ac_res="none required"
13963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13965 if ac_fn_c_try_link "$LINENO"; then :
13966 ac_cv_search_opendir=$ac_res
13968 rm -f core conftest.err conftest.$ac_objext \
13970 if test "${ac_cv_search_opendir+set}" = set; then :
13974 if test "${ac_cv_search_opendir+set}" = set; then :
13977 ac_cv_search_opendir=no
13979 rm conftest.$ac_ext
13980 LIBS=$ac_func_search_save_LIBS
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13983 $as_echo "$ac_cv_search_opendir" >&6; }
13984 ac_res=$ac_cv_search_opendir
13985 if test "$ac_res" != no; then :
13986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13992 $as_echo_n "checking for library containing opendir... " >&6; }
13993 if test "${ac_cv_search_opendir+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13996 ac_func_search_save_LIBS=$LIBS
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14015 for ac_lib in '' x; do
14016 if test -z "$ac_lib"; then
14017 ac_res="none required"
14020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14022 if ac_fn_c_try_link "$LINENO"; then :
14023 ac_cv_search_opendir=$ac_res
14025 rm -f core conftest.err conftest.$ac_objext \
14027 if test "${ac_cv_search_opendir+set}" = set; then :
14031 if test "${ac_cv_search_opendir+set}" = set; then :
14034 ac_cv_search_opendir=no
14036 rm conftest.$ac_ext
14037 LIBS=$ac_func_search_save_LIBS
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14040 $as_echo "$ac_cv_search_opendir" >&6; }
14041 ac_res=$ac_cv_search_opendir
14042 if test "$ac_res" != no; then :
14043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14050 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14051 if test "${ac_cv_header_time+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <sys/time.h>
14063 if ((struct tm *) 0)
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070 ac_cv_header_time=yes
14072 ac_cv_header_time=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14077 $as_echo "$ac_cv_header_time" >&6; }
14078 if test $ac_cv_header_time = yes; then
14080 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14084 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
14086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14088 eval as_val=\$$as_ac_Header
14089 if test "x$as_val" = x""yes; then :
14090 cat >>confdefs.h <<_ACEOF
14091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14098 # Check whether --enable-largefile was given.
14099 if test "${enable_largefile+set}" = set; then :
14100 enableval=$enable_largefile;
14103 if test "$enable_largefile" != no; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14107 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14110 ac_cv_sys_largefile_CC=no
14111 if test "$GCC" != yes; then
14114 # IRIX 6.2 and later do not support large files by default,
14115 # so use the C compiler's -n32 option if that helps.
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 #include <sys/types.h>
14119 /* Check that off_t can represent 2**63 - 1 correctly.
14120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14121 since some C++ compilers masquerading as C compilers
14122 incorrectly reject 9223372036854775807. */
14123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14125 && LARGE_OFF_T % 2147483647 == 1)
14135 if ac_fn_c_try_compile "$LINENO"; then :
14138 rm -f core conftest.err conftest.$ac_objext
14140 if ac_fn_c_try_compile "$LINENO"; then :
14141 ac_cv_sys_largefile_CC=' -n32'; break
14143 rm -f core conftest.err conftest.$ac_objext
14147 rm -f conftest.$ac_ext
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14152 if test "$ac_cv_sys_largefile_CC" != no; then
14153 CC=$CC$ac_cv_sys_largefile_CC
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14158 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14159 $as_echo_n "(cached) " >&6
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #include <sys/types.h>
14165 /* Check that off_t can represent 2**63 - 1 correctly.
14166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14167 since some C++ compilers masquerading as C compilers
14168 incorrectly reject 9223372036854775807. */
14169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14171 && LARGE_OFF_T % 2147483647 == 1)
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 ac_cv_sys_file_offset_bits=no; break
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 #define _FILE_OFFSET_BITS 64
14188 #include <sys/types.h>
14189 /* Check that off_t can represent 2**63 - 1 correctly.
14190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14191 since some C++ compilers masquerading as C compilers
14192 incorrectly reject 9223372036854775807. */
14193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14195 && LARGE_OFF_T % 2147483647 == 1)
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206 ac_cv_sys_file_offset_bits=64; break
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 ac_cv_sys_file_offset_bits=unknown
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14215 case $ac_cv_sys_file_offset_bits in #(
14218 cat >>confdefs.h <<_ACEOF
14219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14224 if test $ac_cv_sys_file_offset_bits = unknown; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14227 if test "${ac_cv_sys_large_files+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14234 /* Check that off_t can represent 2**63 - 1 correctly.
14235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14236 since some C++ compilers masquerading as C compilers
14237 incorrectly reject 9223372036854775807. */
14238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14240 && LARGE_OFF_T % 2147483647 == 1)
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251 ac_cv_sys_large_files=no; break
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #define _LARGE_FILES 1
14257 #include <sys/types.h>
14258 /* Check that off_t can represent 2**63 - 1 correctly.
14259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14260 since some C++ compilers masquerading as C compilers
14261 incorrectly reject 9223372036854775807. */
14262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14264 && LARGE_OFF_T % 2147483647 == 1)
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275 ac_cv_sys_large_files=1; break
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 ac_cv_sys_large_files=unknown
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14283 $as_echo "$ac_cv_sys_large_files" >&6; }
14284 case $ac_cv_sys_large_files in #(
14287 cat >>confdefs.h <<_ACEOF
14288 #define _LARGE_FILES $ac_cv_sys_large_files
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
14299 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
14300 if test "${sudo_cv_xopen_source_extended+set}" = set; then :
14301 $as_echo_n "(cached) " >&6
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 $ac_includes_default
14306 #include <sys/socket.h>
14315 if ac_fn_c_try_compile "$LINENO"; then :
14316 sudo_cv_xopen_source_extended=no
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #define _XOPEN_SOURCE_EXTENDED
14322 $ac_includes_default
14323 #include <sys/socket.h>
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333 sudo_cv_xopen_source_extended=yes
14335 sudo_cv_xopen_source_extended=error
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
14343 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
14344 if test "$sudo_cv_xopen_source_extended" = "yes"; then
14345 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
14346 cat >>confdefs.h <<\EOF
14347 #define _XOPEN_SOURCE_EXTENDED 1
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14354 $as_echo_n "checking POSIX termios... " >&6; }
14355 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 #include <sys/types.h>
14361 #include <unistd.h>
14362 #include <termios.h>
14367 /* SunOS 4.0.3 has termios.h but not the library calls. */
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_sys_posix_termios=yes
14376 ac_cv_sys_posix_termios=no
14378 rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14382 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14384 if test "$ac_cv_sys_posix_termios" = "yes"; then
14385 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
14388 for ac_header in termio.h
14390 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14391 if test "x$ac_cv_header_termio_h" = x""yes; then :
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_TERMIO_H 1
14403 if test X"$ac_cv_header_paths_h" = X"yes"; then
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 $ac_includes_default
14411 char *p = _PATH_MAILDIR;
14416 if ac_fn_c_try_compile "$LINENO"; then :
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 if test $maildir = no; then
14422 # Solaris has maillock.h which defines MAILDIR
14423 for ac_header in maillock.h
14425 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14426 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14427 cat >>confdefs.h <<_ACEOF
14428 #define HAVE_MAILLOCK_H 1
14431 cat >>confdefs.h <<\EOF
14432 #define _PATH_MAILDIR MAILDIR
14441 if test $maildir = no; then
14442 for d in /var/mail /var/spool/mail /usr/spool/mail; do
14443 if test -d "$d"; then
14445 cat >>confdefs.h <<EOF
14446 #define _PATH_MAILDIR "$d"
14452 if test $maildir = no; then
14453 # unable to find mail dir, hope for the best
14454 cat >>confdefs.h <<EOF
14455 #define _PATH_MAILDIR "/var/mail"
14462 if test ${with_logincap-'no'} != "no"; then
14463 for ac_header in login_cap.h
14465 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_LOGIN_CAP_H 1
14470 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14472 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14481 if test ${with_project-'no'} != "no"; then
14482 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14483 if test "x$ac_cv_header_project_h" = x""yes; then :
14484 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14486 SUDO_LIBS="${SUDO_LIBS} -lproject"
14493 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14494 if test "x$ac_cv_type_mode_t" = x""yes; then :
14498 cat >>confdefs.h <<_ACEOF
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14505 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14506 if test "${ac_cv_type_uid_t+set}" = set; then :
14507 $as_echo_n "(cached) " >&6
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 #include <sys/types.h>
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "uid_t" >/dev/null 2>&1; then :
14516 ac_cv_type_uid_t=yes
14518 ac_cv_type_uid_t=no
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14524 $as_echo "$ac_cv_type_uid_t" >&6; }
14525 if test $ac_cv_type_uid_t = no; then
14527 $as_echo "#define uid_t int" >>confdefs.h
14530 $as_echo "#define gid_t int" >>confdefs.h
14534 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14535 if test "x$ac_cv_type___signed_char" = x""yes; then :
14538 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14539 if test "x$ac_cv_type_signed_char" = x""yes; then :
14540 $as_echo "#define __signed signed" >>confdefs.h
14543 $as_echo "#define __signed /**/" >>confdefs.h
14549 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14550 #include <signal.h>
14552 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14555 $as_echo "#define sig_atomic_t int" >>confdefs.h
14559 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14560 #include <signal.h>
14562 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14564 cat >>confdefs.h <<_ACEOF
14565 #define HAVE_SIGACTION_T 1
14568 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14572 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14573 #if TIME_WITH_SYS_TIME
14574 # include <sys/time.h>
14578 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14579 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14583 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14584 #include <netinet/in.h>
14586 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_STRUCT_IN6_ADDR 1
14592 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14598 $as_echo_n "checking for long long int... " >&6; }
14599 if test "${ac_cv_type_long_long_int+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14605 /* For now, do not test the preprocessor; as of 2007 there are too many
14606 implementations with broken preprocessors. Perhaps this can
14607 be revisited in 2012. In the meantime, code should not expect
14608 #if to work with literals wider than 32 bits. */
14609 /* Test literals. */
14610 long long int ll = 9223372036854775807ll;
14611 long long int nll = -9223372036854775807LL;
14612 unsigned long long int ull = 18446744073709551615ULL;
14613 /* Test constant expressions. */
14614 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14616 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14622 /* Test availability of runtime routines for shift and division. */
14623 long long int llmax = 9223372036854775807ll;
14624 unsigned long long int ullmax = 18446744073709551615ull;
14625 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14626 | (llmax / ll) | (llmax % ll)
14627 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14628 | (ullmax / ull) | (ullmax % ull));
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 if test "$cross_compiling" = yes; then :
14636 ac_cv_type_long_long_int=yes
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 #include <limits.h>
14643 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14644 # define LLONG_MAX (HALF - 1 + HALF)
14649 long long int n = 1;
14653 long long int m = n << i;
14656 if (LLONG_MAX / 2 < m)
14664 if ac_fn_c_try_run "$LINENO"; then :
14665 ac_cv_type_long_long_int=yes
14667 ac_cv_type_long_long_int=no
14669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670 conftest.$ac_objext conftest.beam conftest.$ac_ext
14674 ac_cv_type_long_long_int=no
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14680 $as_echo "$ac_cv_type_long_long_int" >&6; }
14681 if test $ac_cv_type_long_long_int = yes; then
14683 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14687 # The cast to long int works around a bug in the HP C Compiler
14688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14690 # This bug is HP SR number 8606223364.
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14692 $as_echo_n "checking size of long int... " >&6; }
14693 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14699 if test "$ac_cv_type_long_int" = yes; then
14700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14702 { as_fn_set_status 77
14703 as_fn_error "cannot compute sizeof (long int)
14704 See \`config.log' for more details." "$LINENO" 5; }; }
14706 ac_cv_sizeof_long_int=0
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14712 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14716 cat >>confdefs.h <<_ACEOF
14717 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14722 $as_echo_n "checking for size_t... " >&6; }
14723 if test "${sudo_cv_type_size_t+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #include <sys/types.h>
14731 #include <stdlib.h>
14734 #include <unistd.h>
14737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14738 $EGREP "size_t" >/dev/null 2>&1; then :
14739 sudo_cv_type_size_t=yes
14741 sudo_cv_type_size_t=no
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14747 $as_echo "$sudo_cv_type_size_t" >&6; }
14748 if test $sudo_cv_type_size_t = no; then
14750 $as_echo "#define size_t int" >>confdefs.h
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14755 $as_echo_n "checking for ssize_t... " >&6; }
14756 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #include <sys/types.h>
14764 #include <stdlib.h>
14767 #include <unistd.h>
14770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14771 $EGREP "ssize_t" >/dev/null 2>&1; then :
14772 sudo_cv_type_ssize_t=yes
14774 sudo_cv_type_ssize_t=no
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14780 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14781 if test $sudo_cv_type_ssize_t = no; then
14783 $as_echo "#define ssize_t int" >>confdefs.h
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14788 $as_echo_n "checking for dev_t... " >&6; }
14789 if test "${sudo_cv_type_dev_t+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <sys/types.h>
14797 #include <stdlib.h>
14800 #include <unistd.h>
14803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14804 $EGREP "dev_t" >/dev/null 2>&1; then :
14805 sudo_cv_type_dev_t=yes
14807 sudo_cv_type_dev_t=no
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14813 $as_echo "$sudo_cv_type_dev_t" >&6; }
14814 if test $sudo_cv_type_dev_t = no; then
14816 $as_echo "#define dev_t int" >>confdefs.h
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14821 $as_echo_n "checking for ino_t... " >&6; }
14822 if test "${sudo_cv_type_ino_t+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14827 #include <sys/types.h>
14830 #include <stdlib.h>
14833 #include <unistd.h>
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "ino_t" >/dev/null 2>&1; then :
14838 sudo_cv_type_ino_t=yes
14840 sudo_cv_type_ino_t=no
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14846 $as_echo "$sudo_cv_type_ino_t" >&6; }
14847 if test $sudo_cv_type_ino_t = no; then
14849 $as_echo "#define ino_t unsigned int" >>confdefs.h
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14855 $as_echo_n "checking max length of uid_t... " >&6; }
14856 if test "${sudo_cv_uid_t_len+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14860 if test "$cross_compiling" = yes; then :
14861 sudo_cv_uid_t_len=10
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14867 #include <limits.h>
14868 #include <sys/types.h>
14869 #include <sys/param.h>
14873 uid_t u = (uid_t) -1;
14875 if ((f = fopen("conftestdata", "w")) == NULL)
14878 (void) sprintf(b, "%lu", (unsigned long) u);
14879 (void) fprintf(f, "%d\n", strlen(b));
14884 if ac_fn_c_try_run "$LINENO"; then :
14885 sudo_cv_uid_t_len=`cat conftestdata`
14887 sudo_cv_uid_t_len=10
14889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14890 conftest.$ac_objext conftest.beam conftest.$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14898 $as_echo "$sudo_cv_uid_t_len" >&6; }
14900 cat >>confdefs.h <<_ACEOF
14901 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14906 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
14907 #include <sys/socket.h>
14910 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14912 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14919 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14920 $as_echo_n "checking return type of signal handlers... " >&6; }
14921 if test "${ac_cv_type_signal+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <sys/types.h>
14927 #include <signal.h>
14932 return *(signal (0, 0)) (0) == 1;
14937 if ac_fn_c_try_compile "$LINENO"; then :
14938 ac_cv_type_signal=int
14940 ac_cv_type_signal=void
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14945 $as_echo "$ac_cv_type_signal" >&6; }
14947 cat >>confdefs.h <<_ACEOF
14948 #define RETSIGTYPE $ac_cv_type_signal
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14954 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14955 if test "${ac_cv_type_getgroups+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14958 if test "$cross_compiling" = yes; then :
14959 ac_cv_type_getgroups=cross
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 /* Thanks to Mike Rendell for this test. */
14964 $ac_includes_default
14967 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14972 gid_t gidset[NGID];
14974 union { gid_t gval; long int lval; } val;
14977 for (i = 0; i < NGID; i++)
14978 gidset[i] = val.gval;
14979 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14981 /* Exit non-zero if getgroups seems to require an array of ints. This
14982 happens when gid_t is short int but getgroups modifies an array
14984 return n > 0 && gidset[n] != val.gval;
14987 if ac_fn_c_try_run "$LINENO"; then :
14988 ac_cv_type_getgroups=gid_t
14990 ac_cv_type_getgroups=int
14992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14993 conftest.$ac_objext conftest.beam conftest.$ac_ext
14996 if test $ac_cv_type_getgroups = cross; then
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #include <unistd.h>
15002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15003 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15004 ac_cv_type_getgroups=gid_t
15006 ac_cv_type_getgroups=int
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15013 $as_echo "$ac_cv_type_getgroups" >&6; }
15015 cat >>confdefs.h <<_ACEOF
15016 #define GETGROUPS_T $ac_cv_type_getgroups
15020 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15021 if test "x$ac_cv_type_size_t" = x""yes; then :
15025 cat >>confdefs.h <<_ACEOF
15026 #define size_t unsigned int
15031 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
15032 if test "x$ac_cv_func_getgroups" = x""yes; then :
15037 # If we don't yet have getgroups, see if it's in -lbsd.
15038 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15040 if test $ac_cv_func_getgroups = no; then
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
15042 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
15043 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
15044 $as_echo_n "(cached) " >&6
15046 ac_check_lib_save_LIBS=$LIBS
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15051 /* Override any GCC internal prototype to avoid an error.
15052 Use char because int might match the return type of a GCC
15053 builtin and then its argument prototype would still apply. */
15061 return getgroups ();
15066 if ac_fn_c_try_link "$LINENO"; then :
15067 ac_cv_lib_bsd_getgroups=yes
15069 ac_cv_lib_bsd_getgroups=no
15071 rm -f core conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
15076 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
15077 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
15078 GETGROUPS_LIB=-lbsd
15083 # Run the program to test the functionality of the system-supplied
15084 # getgroups function only if there is such a function.
15085 if test $ac_cv_func_getgroups = yes; then
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
15087 $as_echo_n "checking for working getgroups... " >&6; }
15088 if test "${ac_cv_func_getgroups_works+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15091 if test "$cross_compiling" = yes; then :
15092 ac_cv_func_getgroups_works=no
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 $ac_includes_default
15100 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15101 return getgroups (0, 0) == -1;
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 ac_cv_func_getgroups_works=yes
15109 ac_cv_func_getgroups_works=no
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
15118 $as_echo "$ac_cv_func_getgroups_works" >&6; }
15120 ac_cv_func_getgroups_works=no
15122 if test $ac_cv_func_getgroups_works = yes; then
15124 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
15129 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15130 strftime setrlimit initgroups getgroups fstat gettimeofday \
15131 regcomp setlocale nl_langinfo getaddrinfo setenv \
15132 mbr_check_membership setrlimit64
15134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15136 eval as_val=\$$as_ac_var
15137 if test "x$as_val" = x""yes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15145 for ac_func in getline
15147 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15148 if test "x$ac_cv_func_getline" = x""yes; then :
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_GETLINE 1
15155 case " $LIBOBJS " in
15156 *" getline.$ac_objext "* ) ;;
15157 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15161 for ac_func in fgetln
15163 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
15164 if test "x$ac_cv_func_fgetln" = x""yes; then :
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_FGETLN 1
15176 for ac_func in setsid
15178 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
15179 if test "x$ac_cv_func_setsid" = x""yes; then :
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_SETSID 1
15186 case " $LIBOBJS " in
15187 *" setsid.$ac_objext "* ) ;;
15188 *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15193 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15194 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
15195 $as_echo_n "(cached) " >&6
15197 if test "$cross_compiling" = yes; then :
15198 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 $ac_includes_default
15206 /* If this system has a BSD-style setpgrp which takes arguments,
15207 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15208 exit successfully. */
15209 return setpgrp (1,1) != -1;
15214 if ac_fn_c_try_run "$LINENO"; then :
15215 ac_cv_func_setpgrp_void=no
15217 ac_cv_func_setpgrp_void=yes
15219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15220 conftest.$ac_objext conftest.beam conftest.$ac_ext
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15225 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15226 if test $ac_cv_func_setpgrp_void = yes; then
15228 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15237 for ac_func in sysctl getutxid getutid
15239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15241 eval as_val=\$$as_ac_var
15242 if test "x$as_val" = x""yes; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15251 for ac_func in openpty
15253 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
15254 if test "x$ac_cv_func_openpty" = x""yes; then :
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_OPENPTY 1
15258 for ac_header in util.h pty.h
15260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15262 eval as_val=\$$as_ac_Header
15263 if test "x$as_val" = x""yes; then :
15264 cat >>confdefs.h <<_ACEOF
15265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
15275 $as_echo_n "checking for openpty in -lutil... " >&6; }
15276 if test "${ac_cv_lib_util_openpty+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15279 ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lutil $LIBS"
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15284 /* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15299 if ac_fn_c_try_link "$LINENO"; then :
15300 ac_cv_lib_util_openpty=yes
15302 ac_cv_lib_util_openpty=no
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 LIBS=$ac_check_lib_save_LIBS
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
15309 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15310 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
15312 for ac_header in util.h pty.h
15314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15315 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15316 eval as_val=\$$as_ac_Header
15317 if test "x$as_val" = x""yes; then :
15318 cat >>confdefs.h <<_ACEOF
15319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15326 SUDO_LIBS="${SUDO_LIBS} -lutil"
15327 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15332 for ac_func in _getpty
15334 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15335 if test "x$ac_cv_func__getpty" = x""yes; then :
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE__GETPTY 1
15342 for ac_func in grantpt
15344 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15345 if test "x$ac_cv_func_grantpt" = x""yes; then :
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_GRANTPT 1
15350 for ac_func in posix_openpt
15352 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15353 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_POSIX_OPENPT 1
15364 for ac_func in revoke
15366 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15367 if test "x$ac_cv_func_revoke" = x""yes; then :
15368 cat >>confdefs.h <<_ACEOF
15369 #define HAVE_REVOKE 1
15390 for ac_func in unsetenv
15392 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15393 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15394 cat >>confdefs.h <<_ACEOF
15395 #define HAVE_UNSETENV 1
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15398 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15399 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15402 if test "$cross_compiling" = yes; then :
15403 sudo_cv_func_unsetenv_void=no
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 $ac_includes_default
15414 return unsetenv("FOO") != 0;
15421 if ac_fn_c_try_run "$LINENO"; then :
15422 sudo_cv_func_unsetenv_void=no
15424 sudo_cv_func_unsetenv_void=yes
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15427 conftest.$ac_objext conftest.beam conftest.$ac_ext
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15432 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15433 if test $sudo_cv_func_unsetenv_void = yes; then
15435 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
15443 $as_echo_n "checking whether putenv has a const argument... " >&6; }
15444 if test "${sudo_cv_func_putenv_const+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 $ac_includes_default
15450 int putenv(const char *string) {return 0;}
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460 sudo_cv_func_putenv_const=yes
15462 sudo_cv_func_putenv_const=no
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
15468 $as_echo "$sudo_cv_func_putenv_const" >&6; }
15469 if test $sudo_cv_func_putenv_const = yes; then
15471 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
15475 if test -z "$SKIP_SETRESUID"; then
15476 for ac_func in setresuid
15478 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15479 if test "x$ac_cv_func_setresuid" = x""yes; then :
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_SETRESUID 1
15488 if test -z "$SKIP_SETREUID"; then
15489 for ac_func in setreuid
15491 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15492 if test "x$ac_cv_func_setreuid" = x""yes; then :
15493 cat >>confdefs.h <<_ACEOF
15494 #define HAVE_SETREUID 1
15501 if test -z "$SKIP_SETEUID"; then
15502 for ac_func in seteuid
15504 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15505 if test "x$ac_cv_func_seteuid" = x""yes; then :
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_SETEUID 1
15514 if test X"$with_interfaces" != X"no"; then
15515 for ac_func in getifaddrs
15517 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15518 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15519 cat >>confdefs.h <<_ACEOF
15520 #define HAVE_GETIFADDRS 1
15522 for ac_func in freeifaddrs
15524 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15525 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_FREEIFADDRS 1
15537 if test -z "$BROKEN_GETCWD"; then
15538 for ac_func in getcwd
15540 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15541 if test "x$ac_cv_func_getcwd" = x""yes; then :
15542 cat >>confdefs.h <<_ACEOF
15543 #define HAVE_GETCWD 1
15547 case " $LIBOBJS " in
15548 *" $ac_func.$ac_objext "* ) ;;
15549 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15558 for ac_func in glob
15560 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15561 if test "x$ac_cv_func_glob" = x""yes; then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_GLOB 1
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15566 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15573 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15578 if ac_fn_c_try_compile "$LINENO"; then :
15579 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15582 $as_echo "yes" >&6; }
15584 case " $LIBOBJS " in
15585 *" glob.$ac_objext "* ) ;;
15586 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15591 $as_echo "no" >&6; }
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595 case " $LIBOBJS " in
15596 *" glob.$ac_objext "* ) ;;
15597 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15604 for ac_func in lockf flock
15606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15607 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15608 eval as_val=\$$as_ac_var
15609 if test "x$as_val" = x""yes; then :
15610 cat >>confdefs.h <<_ACEOF
15611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15617 for ac_func in waitpid wait3
15619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15621 eval as_val=\$$as_ac_var
15622 if test "x$as_val" = x""yes; then :
15623 cat >>confdefs.h <<_ACEOF
15624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630 for ac_func in innetgr _innetgr
15632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15634 eval as_val=\$$as_ac_var
15635 if test "x$as_val" = x""yes; then :
15636 cat >>confdefs.h <<_ACEOF
15637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15639 for ac_func in getdomainname
15641 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15642 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15643 cat >>confdefs.h <<_ACEOF
15644 #define HAVE_GETDOMAINNAME 1
15653 for ac_func in utimes
15655 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15656 if test "x$ac_cv_func_utimes" = x""yes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 #define HAVE_UTIMES 1
15660 for ac_func in futimes futimesat
15662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15664 eval as_val=\$$as_ac_var
15665 if test "x$as_val" = x""yes; then :
15666 cat >>confdefs.h <<_ACEOF
15667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15674 for ac_func in futime
15676 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15677 if test "x$ac_cv_func_futime" = x""yes; then :
15678 cat >>confdefs.h <<_ACEOF
15679 #define HAVE_FUTIME 1
15684 case " $LIBOBJS " in
15685 *" utimes.$ac_objext "* ) ;;
15686 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15693 for ac_func in killpg
15695 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15696 if test "x$ac_cv_func_killpg" = x""yes; then :
15697 cat >>confdefs.h <<_ACEOF
15698 #define HAVE_KILLPG 1
15702 case " $LIBOBJS " in
15703 *" killpg.$ac_objext "* ) ;;
15704 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15712 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15713 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15716 rm -f conftestdata; > conftestdata
15717 if test "$cross_compiling" = yes; then :
15718 sudo_cv_func_fnmatch=no
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15722 #include <fnmatch.h>
15723 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15725 if ac_fn_c_try_run "$LINENO"; then :
15726 sudo_cv_func_fnmatch=yes
15728 sudo_cv_func_fnmatch=no
15730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15731 conftest.$ac_objext conftest.beam conftest.$ac_ext
15734 rm -f core core.* *.core
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15738 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15739 if test $sudo_cv_func_fnmatch = yes; then :
15740 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15743 case " $LIBOBJS " in
15744 *" fnmatch.$ac_objext "* ) ;;
15745 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15751 $as_echo_n "checking for isblank... " >&6; }
15752 if test "${sudo_cv_func_isblank+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15761 return (isblank('a'));
15766 if ac_fn_c_try_link "$LINENO"; then :
15767 sudo_cv_func_isblank=yes
15769 sudo_cv_func_isblank=no
15771 rm -f core conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15775 $as_echo "$sudo_cv_func_isblank" >&6; }
15777 if test "$sudo_cv_func_isblank" = "yes"; then
15779 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15782 case " $LIBOBJS " in
15783 *" isblank.$ac_objext "* ) ;;
15784 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15790 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15794 eval as_val=\$$as_ac_var
15795 if test "x$as_val" = x""yes; then :
15796 cat >>confdefs.h <<_ACEOF
15797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15801 case " $LIBOBJS " in
15802 *" $ac_func.$ac_objext "* ) ;;
15803 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15811 for ac_func in nanosleep
15813 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15814 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15815 cat >>confdefs.h <<_ACEOF
15816 #define HAVE_NANOSLEEP 1
15821 # On Solaris, nanosleep is in librt
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15823 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15824 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15827 ac_check_lib_save_LIBS=$LIBS
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15832 /* Override any GCC internal prototype to avoid an error.
15833 Use char because int might match the return type of a GCC
15834 builtin and then its argument prototype would still apply. */
15842 return nanosleep ();
15847 if ac_fn_c_try_link "$LINENO"; then :
15848 ac_cv_lib_rt_nanosleep=yes
15850 ac_cv_lib_rt_nanosleep=no
15852 rm -f core conftest.err conftest.$ac_objext \
15853 conftest$ac_exeext conftest.$ac_ext
15854 LIBS=$ac_check_lib_save_LIBS
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15857 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15858 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15859 LIBS="${LIBS} -lrt"
15861 case " $LIBOBJS " in
15862 *" nanosleep.$ac_objext "* ) ;;
15863 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15873 for ac_func in closefrom
15875 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15876 if test "x$ac_cv_func_closefrom" = x""yes; then :
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_CLOSEFROM 1
15882 case " $LIBOBJS " in
15883 *" closefrom.$ac_objext "* ) ;;
15884 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15888 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15891 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15892 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15900 for ac_func in mkstemps
15902 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15903 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15904 cat >>confdefs.h <<_ACEOF
15905 #define HAVE_MKSTEMPS 1
15909 SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15910 for ac_func in random lrand48
15912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15914 eval as_val=\$$as_ac_var
15915 if test "x$as_val" = x""yes; then :
15916 cat >>confdefs.h <<_ACEOF
15917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15927 for ac_func in snprintf vsnprintf asprintf vasprintf
15929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15931 eval as_val=\$$as_ac_var
15932 if test "x$as_val" = x""yes; then :
15933 cat >>confdefs.h <<_ACEOF
15934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15942 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15943 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15944 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15945 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15947 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15948 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15949 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15954 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15955 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15956 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 #include <sys/types.h>
15966 #include <$ac_header_dirent>
15970 DIR *d; (void)dirfd(d);
15975 if ac_fn_c_try_link "$LINENO"; then :
15976 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 #include <sys/types.h>
15982 #include <$ac_header_dirent>
15986 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15991 if ac_fn_c_try_link "$LINENO"; then :
15992 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15995 rm -f core conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15998 rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000 if test -n "$NEED_SNPRINTF"; then
16001 case " $LIBOBJS " in
16002 *" snprintf.$ac_objext "* ) ;;
16003 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16008 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16009 if test "x$ac_cv_func_socket" = x""yes; then :
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16013 $as_echo_n "checking for socket in -lsocket... " >&6; }
16014 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16017 ac_check_lib_save_LIBS=$LIBS
16018 LIBS="-lsocket $LIBS"
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16022 /* Override any GCC internal prototype to avoid an error.
16023 Use char because int might match the return type of a GCC
16024 builtin and then its argument prototype would still apply. */
16037 if ac_fn_c_try_link "$LINENO"; then :
16038 ac_cv_lib_socket_socket=yes
16040 ac_cv_lib_socket_socket=no
16042 rm -f core conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
16044 LIBS=$ac_check_lib_save_LIBS
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16047 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16048 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16049 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
16052 $as_echo_n "checking for socket in -linet... " >&6; }
16053 if test "${ac_cv_lib_inet_socket+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-linet $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_inet_socket=yes
16079 ac_cv_lib_inet_socket=no
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
16086 $as_echo "$ac_cv_lib_inet_socket" >&6; }
16087 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
16088 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
16091 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16093 $as_echo_n "checking for socket in -lsocket... " >&6; }
16094 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
16095 $as_echo_n "(cached) " >&6
16097 ac_check_lib_save_LIBS=$LIBS
16098 LIBS="-lsocket -lnsl $LIBS"
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16102 /* Override any GCC internal prototype to avoid an error.
16103 Use char because int might match the return type of a GCC
16104 builtin and then its argument prototype would still apply. */
16117 if ac_fn_c_try_link "$LINENO"; then :
16118 ac_cv_lib_socket_socket_lnsl=yes
16120 ac_cv_lib_socket_socket_lnsl=no
16122 rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
16127 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
16128 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
16129 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16138 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
16139 if test "x$ac_cv_func_inet_addr" = x""yes; then :
16142 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
16143 if test "x$ac_cv_func___inet_addr" = x""yes; then :
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
16147 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
16148 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16151 ac_check_lib_save_LIBS=$LIBS
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16156 /* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16166 return inet_addr ();
16171 if ac_fn_c_try_link "$LINENO"; then :
16172 ac_cv_lib_nsl_inet_addr=yes
16174 ac_cv_lib_nsl_inet_addr=no
16176 rm -f core conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16178 LIBS=$ac_check_lib_save_LIBS
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
16181 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
16182 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
16183 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
16186 $as_echo_n "checking for inet_addr in -linet... " >&6; }
16187 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
16188 $as_echo_n "(cached) " >&6
16190 ac_check_lib_save_LIBS=$LIBS
16191 LIBS="-linet $LIBS"
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16195 /* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
16205 return inet_addr ();
16210 if ac_fn_c_try_link "$LINENO"; then :
16211 ac_cv_lib_inet_inet_addr=yes
16213 ac_cv_lib_inet_inet_addr=no
16215 rm -f core conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
16220 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
16221 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
16222 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
16225 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
16227 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
16228 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16231 ac_check_lib_save_LIBS=$LIBS
16232 LIBS="-lsocket -lnsl $LIBS"
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16236 /* Override any GCC internal prototype to avoid an error.
16237 Use char because int might match the return type of a GCC
16238 builtin and then its argument prototype would still apply. */
16246 return inet_addr ();
16251 if ac_fn_c_try_link "$LINENO"; then :
16252 ac_cv_lib_socket_inet_addr_lnsl=yes
16254 ac_cv_lib_socket_inet_addr_lnsl=no
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
16261 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
16262 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
16263 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16274 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16275 if test "x$ac_cv_func_syslog" = x""yes; then :
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
16279 $as_echo_n "checking for syslog in -lsocket... " >&6; }
16280 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
16281 $as_echo_n "(cached) " >&6
16283 ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lsocket $LIBS"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16288 /* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 ac_cv_lib_socket_syslog=yes
16306 ac_cv_lib_socket_syslog=no
16308 rm -f core conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
16313 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
16314 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
16315 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16318 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16319 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16320 $as_echo_n "(cached) " >&6
16322 ac_check_lib_save_LIBS=$LIBS
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16327 /* Override any GCC internal prototype to avoid an error.
16328 Use char because int might match the return type of a GCC
16329 builtin and then its argument prototype would still apply. */
16342 if ac_fn_c_try_link "$LINENO"; then :
16343 ac_cv_lib_nsl_syslog=yes
16345 ac_cv_lib_nsl_syslog=no
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16352 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16353 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16354 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16357 $as_echo_n "checking for syslog in -linet... " >&6; }
16358 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16359 $as_echo_n "(cached) " >&6
16361 ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-linet $LIBS"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16381 if ac_fn_c_try_link "$LINENO"; then :
16382 ac_cv_lib_inet_syslog=yes
16384 ac_cv_lib_inet_syslog=no
16386 rm -f core conftest.err conftest.$ac_objext \
16387 conftest$ac_exeext conftest.$ac_ext
16388 LIBS=$ac_check_lib_save_LIBS
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16391 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16392 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16393 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16402 for ac_func in getprogname
16404 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16405 if test "x$ac_cv_func_getprogname" = x""yes; then :
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_GETPROGNAME 1
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16413 $as_echo_n "checking for __progname... " >&6; }
16414 if test "${sudo_cv___progname+set}" = set; then :
16415 $as_echo_n "(cached) " >&6
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16424 extern char *__progname; (void)puts(__progname);
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 sudo_cv___progname=yes
16432 sudo_cv___progname=no
16434 rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16438 if test "$sudo_cv___progname" = "yes"; then
16439 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16442 case " $LIBOBJS " in
16443 *" getprogname.$ac_objext "* ) ;;
16444 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16450 $as_echo "$sudo_cv___progname" >&6; }
16456 for ac_func in strsignal
16458 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16459 if test "x$ac_cv_func_strsignal" = x""yes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_STRSIGNAL 1
16466 case " $LIBOBJS " in
16467 *" strsignal.$ac_objext "* ) ;;
16468 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16472 HAVE_SIGLIST="false"
16473 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16474 $ac_includes_default
16475 #include <signal.h>
16478 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16487 if test $ac_have_decl = 1; then :
16489 HAVE_SIGLIST="true"
16493 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16494 $ac_includes_default
16495 #include <signal.h>
16498 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16507 if test $ac_have_decl = 1; then :
16509 HAVE_SIGLIST="true"
16513 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16514 $ac_includes_default
16515 #include <signal.h>
16518 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16527 if test $ac_have_decl = 1; then :
16529 HAVE_SIGLIST="true"
16534 if test "$HAVE_SIGLIST" != "true"; then
16535 case " $LIBOBJS " in
16536 *" siglist.$ac_objext "* ) ;;
16537 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16547 if test ${with_netsvc-"no"} != "no"; then
16548 cat >>confdefs.h <<EOF
16549 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16552 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16553 elif test ${with_nsswitch-"yes"} != "no"; then
16554 cat >>confdefs.h <<EOF
16555 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16558 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16562 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16563 for auth in $AUTH_EXCL_DEF; do
16565 AIX_AUTH) with_aixauth=maybe;;
16566 BSD_AUTH) with_bsdauth=maybe;;
16567 PAM) with_pam=maybe;;
16568 SIA) CHECKSIA=true;;
16573 if test ${with_pam-"no"} != "no"; then
16575 *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16577 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16578 $as_echo_n "checking for main in -ldl... " >&6; }
16579 if test "${ac_cv_lib_dl_main+set}" = set; then :
16580 $as_echo_n "(cached) " >&6
16582 ac_check_lib_save_LIBS=$LIBS
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16596 if ac_fn_c_try_link "$LINENO"; then :
16597 ac_cv_lib_dl_main=yes
16599 ac_cv_lib_dl_main=no
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_check_lib_save_LIBS
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16606 $as_echo "$ac_cv_lib_dl_main" >&6; }
16607 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16608 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16610 SUDO_LIBS="${SUDO_LIBS} -lpam"
16613 ac_cv_lib_dl=ac_cv_lib_dl_main
16617 for ac_header in security/pam_appl.h pam/pam_appl.h
16619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16621 eval as_val=\$$as_ac_Header
16622 if test "x$as_val" = x""yes; then :
16623 cat >>confdefs.h <<_ACEOF
16624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16626 with_pam=yes; break
16631 if test "$with_pam" = "yes"; then
16632 $as_echo "#define HAVE_PAM 1" >>confdefs.h
16634 AUTH_OBJS="$AUTH_OBJS pam.o";
16638 # Check whether --with-pam-login was given.
16639 if test "${with_pam_login+set}" = set; then :
16640 withval=$with_pam_login; case $with_pam_login in
16641 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16644 $as_echo_n "checking whether to use PAM login... " >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16646 $as_echo "yes" >&6; }
16649 *) as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16656 $as_echo_n "checking whether to use PAM session support... " >&6; }
16657 # Check whether --enable-pam_session was given.
16658 if test "${enable_pam_session+set}" = set; then :
16659 enableval=$enable_pam_session; case "$enableval" in
16660 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16661 $as_echo "yes" >&6; }
16663 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 $as_echo "no" >&6; }
16666 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16669 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16672 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16677 $as_echo "yes" >&6; }
16682 *-*-linux*|*-*-solaris*)
16683 # dgettext() may be defined to dgettext_libintl in the
16684 # header file, so first check that it links w/ additional
16685 # libs, then try with -lintl
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 #include <libintl.h>
16692 (void)dgettext((char *)0, (char *)0);
16697 if ac_fn_c_try_link "$LINENO"; then :
16698 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16702 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16703 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16704 $as_echo_n "(cached) " >&6
16706 ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-lintl $LIBS"
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16721 return dgettext ();
16726 if ac_fn_c_try_link "$LINENO"; then :
16727 ac_cv_lib_intl_dgettext=yes
16729 ac_cv_lib_intl_dgettext=no
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16736 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16737 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16738 LIBS="${LIBS} -lintl"
16739 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16751 if test ${with_aixauth-'no'} != "no"; then
16752 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16754 $as_echo "$as_me: using AIX general authentication" >&6;}
16755 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16757 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16758 SUDO_LIBS="${SUDO_LIBS} -ls"
16763 if test ${with_bsdauth-'no'} != "no"; then
16764 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16765 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16766 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16768 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16769 BSDAUTH_USAGE='[-a auth_type] '
16770 AUTH_EXCL=BSD_AUTH; BAMAN=1
16772 as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16778 if test ${CHECKSIA-'false'} = "true"; then
16779 for ac_func in sia_ses_init
16781 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16782 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_SIA_SES_INIT 1
16792 if test "$found" = "true"; then
16794 AUTH_OBJS="$AUTH_OBJS sia.o"
16798 if test ${with_fwtk-'no'} != "no"; then
16799 if test "$with_fwtk" != "yes"; then
16801 if test X"$with_rpath" = X"yes"; then
16803 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16805 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16809 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16811 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16812 blibpath_add="${blibpath_add}:${with_fwtk}"
16815 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16818 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16819 AUTH_OBJS="$AUTH_OBJS fwtk.o"
16822 if test ${with_SecurID-'no'} != "no"; then
16823 if test "$with_SecurID" != "yes"; then
16825 elif test -d /usr/ace/examples; then
16826 with_SecurID=/usr/ace/examples
16828 with_SecurID=/usr/ace
16830 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16831 _LDFLAGS="${LDFLAGS}"
16833 if test X"$with_rpath" = X"yes"; then
16835 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16837 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16841 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16843 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16844 blibpath_add="${blibpath_add}:${with_SecurID}"
16848 # Determine whether to use the new or old SecurID API
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16851 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16852 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16855 ac_check_lib_save_LIBS=$LIBS
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16863 /* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16878 if ac_fn_c_try_link "$LINENO"; then :
16879 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16881 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16883 rm -f core conftest.err conftest.$ac_objext \
16884 conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16888 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16889 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16891 AUTH_OBJS="$AUTH_OBJS securid5.o";
16892 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16896 if test X"$with_rpath" = X"yes"; then
16898 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16900 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16904 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16906 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16907 blibpath_add="${blibpath_add}:${with_SecurID}"
16913 AUTH_OBJS="$AUTH_OBJS securid.o";
16914 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16918 LDFLAGS="${_LDFLAGS}"
16922 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16923 for auth in $AUTH_DEF; do
16925 passwd) : ${with_passwd='maybe'};;
16930 if test ${with_kerb4-'no'} != "no"; then
16931 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16933 O_LDFLAGS="$LDFLAGS"
16934 if test "$with_kerb4" = "yes"; then
16936 O_CPPFLAGS="$CPPFLAGS"
16937 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16938 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16943 if ac_fn_c_try_cpp "$LINENO"; then :
16946 rm -f conftest.err conftest.$ac_ext
16948 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16951 if test X"$with_rpath" = X"yes"; then
16953 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16955 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16959 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16961 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16962 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16966 if test X"$with_rpath" = X"yes"; then
16968 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16970 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16974 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16976 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16977 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16980 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16981 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16982 if test "x$ac_cv_header_krb_h" = x""yes; then :
16990 if test X"$found" = X"no"; then
16991 { $as_echo "$as_me:${as_lineno-$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
16992 $as_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;}
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16996 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16997 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
17000 ac_check_lib_save_LIBS=$LIBS
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17005 /* Override any GCC internal prototype to avoid an error.
17006 Use char because int might match the return type of a GCC
17007 builtin and then its argument prototype would still apply. */
17011 char des_cbc_encrypt ();
17015 return des_cbc_encrypt ();
17020 if ac_fn_c_try_link "$LINENO"; then :
17021 ac_cv_lib_des_des_cbc_encrypt=yes
17023 ac_cv_lib_des_des_cbc_encrypt=no
17025 rm -f core conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17027 LIBS=$ac_check_lib_save_LIBS
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17030 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17031 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17036 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17037 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17038 $as_echo_n "(cached) " >&6
17040 ac_check_lib_save_LIBS=$LIBS
17041 LIBS="-ldes425 $LIBS"
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17051 char des_cbc_encrypt ();
17055 return des_cbc_encrypt ();
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 ac_cv_lib_des425_des_cbc_encrypt=yes
17063 ac_cv_lib_des425_des_cbc_encrypt=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17070 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17071 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
17081 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17088 const char *tmp = krb4_version;
17093 if ac_fn_c_try_compile "$LINENO"; then :
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096 $as_echo "yes" >&6; }
17097 K4LIBS="${K4LIBS} -lcom_err"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17099 $as_echo_n "checking for main in -lroken... " >&6; }
17100 if test "${ac_cv_lib_roken_main+set}" = set; then :
17101 $as_echo_n "(cached) " >&6
17103 ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lroken $LIBS"
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17117 if ac_fn_c_try_link "$LINENO"; then :
17118 ac_cv_lib_roken_main=yes
17120 ac_cv_lib_roken_main=no
17122 rm -f core conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17124 LIBS=$ac_check_lib_save_LIBS
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17127 $as_echo "$ac_cv_lib_roken_main" >&6; }
17128 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17129 K4LIBS="${K4LIBS} -lroken"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 $as_echo "no" >&6; }
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
17143 $as_echo_n "checking for main in -lkrb... " >&6; }
17144 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17145 $as_echo_n "(cached) " >&6
17147 ac_check_lib_save_LIBS=$LIBS
17148 LIBS="-lkrb $K4LIBS $LIBS"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17161 if ac_fn_c_try_link "$LINENO"; then :
17162 eval "$as_ac_Lib=yes"
17164 eval "$as_ac_Lib=no"
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168 LIBS=$ac_check_lib_save_LIBS
17170 eval ac_res=\$$as_ac_Lib
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17172 $as_echo "$ac_res" >&6; }
17173 eval as_val=\$$as_ac_Lib
17174 if test "x$as_val" = x""yes; then :
17175 K4LIBS="-lkrb $K4LIBS"
17178 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
17180 $as_echo_n "checking for main in -lkrb4... " >&6; }
17181 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17182 $as_echo_n "(cached) " >&6
17184 ac_check_lib_save_LIBS=$LIBS
17185 LIBS="-lkrb4 $K4LIBS $LIBS"
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17198 if ac_fn_c_try_link "$LINENO"; then :
17199 eval "$as_ac_Lib=yes"
17201 eval "$as_ac_Lib=no"
17203 rm -f core conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17207 eval ac_res=\$$as_ac_Lib
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17209 $as_echo "$ac_res" >&6; }
17210 eval as_val=\$$as_ac_Lib
17211 if test "x$as_val" = x""yes; then :
17212 K4LIBS="-lkrb4 $K4LIBS"
17214 K4LIBS="-lkrb $K4LIBS"
17215 { $as_echo "$as_me:${as_lineno-$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
17216 $as_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;}
17223 LDFLAGS="$O_LDFLAGS"
17224 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
17225 AUTH_OBJS="$AUTH_OBJS kerb4.o"
17228 if test ${with_kerb5-'no'} != "no"; then
17229 # Extract the first word of "krb5-config", so it can be a program name with args.
17230 set dummy krb5-config; ac_word=$2
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 $as_echo_n "checking for $ac_word... " >&6; }
17233 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
17234 $as_echo_n "(cached) " >&6
17236 if test -n "$KRB5CONFIG"; then
17237 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
17239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240 for as_dir in $PATH
17243 test -z "$as_dir" && as_dir=.
17244 for ac_exec_ext in '' $ac_executable_extensions; do
17245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17246 ac_cv_prog_KRB5CONFIG="yes"
17247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17254 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
17257 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
17258 if test -n "$KRB5CONFIG"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
17260 $as_echo "$KRB5CONFIG" >&6; }
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17267 if test -n "$KRB5CONFIG"; then
17268 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17270 AUTH_OBJS="$AUTH_OBJS kerb5.o"
17271 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
17272 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17274 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17281 const char *tmp = heimdal_version;
17286 if ac_fn_c_try_compile "$LINENO"; then :
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17289 $as_echo "yes" >&6; }
17290 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 $as_echo "no" >&6; }
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
17304 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17306 if test "$with_kerb5" = "yes"; then
17308 O_CPPFLAGS="$CPPFLAGS"
17309 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
17310 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17315 if ac_fn_c_try_cpp "$LINENO"; then :
17318 rm -f conftest.err conftest.$ac_ext
17320 if test X"$found" = X"no"; then
17321 CPPFLAGS="$O_CPPFLAGS"
17322 { $as_echo "$as_me:${as_lineno-$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
17323 $as_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;}
17327 if test X"$with_rpath" = X"yes"; then
17329 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17331 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17335 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
17337 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17338 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17341 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17345 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17352 const char *tmp = heimdal_version;
17357 if ac_fn_c_try_compile "$LINENO"; then :
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17363 # XXX - need to check whether -lcrypo is needed!
17364 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17366 $as_echo_n "checking for main in -lroken... " >&6; }
17367 if test "${ac_cv_lib_roken_main+set}" = set; then :
17368 $as_echo_n "(cached) " >&6
17370 ac_check_lib_save_LIBS=$LIBS
17371 LIBS="-lroken $LIBS"
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 ac_cv_lib_roken_main=yes
17387 ac_cv_lib_roken_main=no
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17394 $as_echo "$ac_cv_lib_roken_main" >&6; }
17395 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17396 SUDO_LIBS="${SUDO_LIBS} -lroken"
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17406 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17407 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17408 $as_echo_n "(cached) " >&6
17410 ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lkrb5support $LIBS"
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17424 if ac_fn_c_try_link "$LINENO"; then :
17425 ac_cv_lib_krb5support_main=yes
17427 ac_cv_lib_krb5support_main=no
17429 rm -f core conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_lib_save_LIBS
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17434 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17435 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17436 SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 AUTH_OBJS="$AUTH_OBJS kerb5.o"
17444 LIBS="${LIBS} ${SUDO_LIBS}"
17445 for ac_func in krb5_verify_user krb5_init_secure_context
17447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17449 eval as_val=\$$as_ac_var
17450 if test "x$as_val" = x""yes; then :
17451 cat >>confdefs.h <<_ACEOF
17452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17458 for ac_func in krb5_get_init_creds_opt_alloc
17460 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17461 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17467 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17468 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17469 $as_echo_n "(cached) " >&6
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17478 krb5_get_init_creds_opt_free(NULL, NULL);
17484 if ac_fn_c_try_compile "$LINENO"; then :
17485 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17487 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17495 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17500 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17501 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17507 if test ${with_AFS-'no'} = "yes"; then
17509 # looks like the "standard" place for AFS libs is /usr/afsws/lib
17510 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17511 for i in $AFSLIBDIRS; do
17512 if test -d ${i}; then
17514 if test X"$with_rpath" = X"yes"; then
17516 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
17518 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
17522 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
17524 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17525 blibpath_add="${blibpath_add}:$i"
17528 FOUND_AFSLIBDIR=true
17531 if test -z "$FOUND_AFSLIBDIR"; then
17532 { $as_echo "$as_me:${as_lineno-$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
17533 $as_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;}
17536 # Order is important here. Note that we build AFS_LIBS from right to left
17537 # since AFS_LIBS may be initialized with BSD compat libs that must go last
17538 AFS_LIBS="-laudit ${AFS_LIBS}"
17539 for i in $AFSLIBDIRS; do
17540 if test -f ${i}/util.a; then
17541 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17546 if test -z "$FOUND_UTIL_A"; then
17547 AFS_LIBS="-lutil ${AFS_LIBS}"
17549 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17551 # AFS includes may live in /usr/include on some machines...
17552 for i in /usr/afsws/include; do
17553 if test -d ${i}; then
17554 CPPFLAGS="${CPPFLAGS} -I${i}"
17555 FOUND_AFSINCDIR=true
17559 if test -z "$FOUND_AFSLIBDIR"; then
17560 { $as_echo "$as_me:${as_lineno-$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
17561 $as_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;}
17564 AUTH_OBJS="$AUTH_OBJS afs.o"
17567 if test ${with_DCE-'no'} = "yes"; then
17568 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17569 SUDO_LIBS="${SUDO_LIBS} -ldce"
17570 AUTH_OBJS="$AUTH_OBJS dce.o"
17573 if test "${with_skey-'no'}" = "yes"; then
17574 O_LDFLAGS="$LDFLAGS"
17575 if test "$with_skey" != "yes"; then
17576 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17578 if test X"$with_rpath" = X"yes"; then
17580 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17582 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17586 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17588 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17589 blibpath_add="${blibpath_add}:${with_skey}/lib"
17593 if test X"$with_rpath" = X"yes"; then
17595 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17597 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17601 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17603 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17604 blibpath_add="${blibpath_add}:${with_skey}/lib"
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17611 if ac_fn_c_try_cpp "$LINENO"; then :
17616 rm -f conftest.err conftest.$ac_ext
17619 O_CPPFLAGS="$CPPFLAGS"
17620 for dir in "" "/usr/local" "/usr/contrib"; do
17621 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17626 if ac_fn_c_try_cpp "$LINENO"; then :
17629 rm -f conftest.err conftest.$ac_ext
17631 if test "$found" = "no" -o -z "$dir"; then
17632 CPPFLAGS="$O_CPPFLAGS"
17635 if test X"$with_rpath" = X"yes"; then
17637 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17639 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17643 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17645 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17646 blibpath_add="${blibpath_add}:${dir}/lib"
17650 if test X"$with_rpath" = X"yes"; then
17652 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17654 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17658 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17660 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17661 blibpath_add="${blibpath_add}:${dir}/lib"
17666 if test "$found" = "no"; then
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
17668 $as_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;}
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17671 $as_echo_n "checking for main in -lskey... " >&6; }
17672 if test "${ac_cv_lib_skey_main+set}" = set; then :
17673 $as_echo_n "(cached) " >&6
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-lskey $LIBS"
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17689 if ac_fn_c_try_link "$LINENO"; then :
17690 ac_cv_lib_skey_main=yes
17692 ac_cv_lib_skey_main=no
17694 rm -f core conftest.err conftest.$ac_objext \
17695 conftest$ac_exeext conftest.$ac_ext
17696 LIBS=$ac_check_lib_save_LIBS
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17699 $as_echo "$ac_cv_lib_skey_main" >&6; }
17700 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17703 { $as_echo "$as_me:${as_lineno-$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
17704 $as_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;}
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17708 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17709 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17710 $as_echo_n "(cached) " >&6
17712 ac_check_lib_save_LIBS=$LIBS
17713 LIBS="-lskey $LIBS"
17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715 /* end confdefs.h. */
17717 /* Override any GCC internal prototype to avoid an error.
17718 Use char because int might match the return type of a GCC
17719 builtin and then its argument prototype would still apply. */
17723 char skeyaccess ();
17727 return skeyaccess ();
17732 if ac_fn_c_try_link "$LINENO"; then :
17733 ac_cv_lib_skey_skeyaccess=yes
17735 ac_cv_lib_skey_skeyaccess=no
17737 rm -f core conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17742 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17743 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17744 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17748 LDFLAGS="$O_LDFLAGS"
17749 SUDO_LIBS="${SUDO_LIBS} -lskey"
17750 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17753 if test "${with_opie-'no'}" = "yes"; then
17754 O_LDFLAGS="$LDFLAGS"
17755 if test "$with_opie" != "yes"; then
17756 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17758 if test X"$with_rpath" = X"yes"; then
17760 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17762 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17766 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17768 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17769 blibpath_add="${blibpath_add}:${with_opie}/lib"
17773 if test X"$with_rpath" = X"yes"; then
17775 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17777 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17781 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17783 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17784 blibpath_add="${blibpath_add}:${with_opie}/lib"
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17791 if ac_fn_c_try_cpp "$LINENO"; then :
17796 rm -f conftest.err conftest.$ac_ext
17799 O_CPPFLAGS="$CPPFLAGS"
17800 for dir in "" "/usr/local" "/usr/contrib"; do
17801 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17806 if ac_fn_c_try_cpp "$LINENO"; then :
17809 rm -f conftest.err conftest.$ac_ext
17811 if test "$found" = "no" -o -z "$dir"; then
17812 CPPFLAGS="$O_CPPFLAGS"
17815 if test X"$with_rpath" = X"yes"; then
17817 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17819 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17823 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17825 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17826 blibpath_add="${blibpath_add}:${dir}/lib"
17830 if test X"$with_rpath" = X"yes"; then
17832 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17834 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17838 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17840 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17841 blibpath_add="${blibpath_add}:${dir}/lib"
17846 if test "$found" = "no"; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
17848 $as_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;}
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17851 $as_echo_n "checking for main in -lopie... " >&6; }
17852 if test "${ac_cv_lib_opie_main+set}" = set; then :
17853 $as_echo_n "(cached) " >&6
17855 ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lopie $LIBS"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17869 if ac_fn_c_try_link "$LINENO"; then :
17870 ac_cv_lib_opie_main=yes
17872 ac_cv_lib_opie_main=no
17874 rm -f core conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
17876 LIBS=$ac_check_lib_save_LIBS
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17879 $as_echo "$ac_cv_lib_opie_main" >&6; }
17880 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17883 { $as_echo "$as_me:${as_lineno-$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
17884 $as_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;}
17887 LDFLAGS="$O_LDFLAGS"
17888 SUDO_LIBS="${SUDO_LIBS} -lopie"
17889 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17892 if test ${with_passwd-'no'} != "no"; then
17893 if test -z "$LIB_CRYPT"; then
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17895 $as_echo_n "checking for library containing crypt... " >&6; }
17896 if test "${ac_cv_search_crypt+set}" = set; then :
17897 $as_echo_n "(cached) " >&6
17899 ac_func_search_save_LIBS=$LIBS
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17918 for ac_lib in '' crypt crypt_d ufc; do
17919 if test -z "$ac_lib"; then
17920 ac_res="none required"
17923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17925 if ac_fn_c_try_link "$LINENO"; then :
17926 ac_cv_search_crypt=$ac_res
17928 rm -f core conftest.err conftest.$ac_objext \
17930 if test "${ac_cv_search_crypt+set}" = set; then :
17934 if test "${ac_cv_search_crypt+set}" = set; then :
17937 ac_cv_search_crypt=no
17939 rm conftest.$ac_ext
17940 LIBS=$ac_func_search_save_LIBS
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17943 $as_echo "$ac_cv_search_crypt" >&6; }
17944 ac_res=$ac_cv_search_crypt
17945 if test "$ac_res" != no; then :
17946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17947 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17952 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17954 LIBS="$LIBS $shadow_libs"
17956 for ac_func in $shadow_funcs
17958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17960 eval as_val=\$$as_ac_var
17961 if test "x$as_val" = x""yes; then :
17962 cat >>confdefs.h <<_ACEOF
17963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 if test "$found" = "yes"; then
17970 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17971 elif test -n "$shadow_libs_optional"; then
17972 LIBS="$LIBS $shadow_libs_optional"
17973 for ac_func in $shadow_funcs
17975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17977 eval as_val=\$$as_ac_var
17978 if test "x$as_val" = x""yes; then :
17979 cat >>confdefs.h <<_ACEOF
17980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17986 if test "$found" = "yes"; then
17987 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17990 if test "$found" = "yes"; then
17991 case "$shadow_funcs" in
17992 *getprpwnam*) SECUREWARE=1;;
17994 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
18000 if test "$CHECKSHADOW" = "true"; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
18002 $as_echo_n "checking for library containing getspnam... " >&6; }
18003 if test "${ac_cv_search_getspnam+set}" = set; then :
18004 $as_echo_n "(cached) " >&6
18006 ac_func_search_save_LIBS=$LIBS
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18020 return getspnam ();
18025 for ac_lib in '' gen; do
18026 if test -z "$ac_lib"; then
18027 ac_res="none required"
18030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18032 if ac_fn_c_try_link "$LINENO"; then :
18033 ac_cv_search_getspnam=$ac_res
18035 rm -f core conftest.err conftest.$ac_objext \
18037 if test "${ac_cv_search_getspnam+set}" = set; then :
18041 if test "${ac_cv_search_getspnam+set}" = set; then :
18044 ac_cv_search_getspnam=no
18046 rm conftest.$ac_ext
18047 LIBS=$ac_func_search_save_LIBS
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
18050 $as_echo "$ac_cv_search_getspnam" >&6; }
18051 ac_res=$ac_cv_search_getspnam
18052 if test "$ac_res" != no; then :
18053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18054 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
18055 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
18059 if test "$CHECKSHADOW" = "true"; then
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18061 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18062 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18065 ac_func_search_save_LIBS=$LIBS
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18069 /* Override any GCC internal prototype to avoid an error.
18070 Use char because int might match the return type of a GCC
18071 builtin and then its argument prototype would still apply. */
18075 char getprpwnam ();
18079 return getprpwnam ();
18084 for ac_lib in '' sec security prot; do
18085 if test -z "$ac_lib"; then
18086 ac_res="none required"
18089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18091 if ac_fn_c_try_link "$LINENO"; then :
18092 ac_cv_search_getprpwnam=$ac_res
18094 rm -f core conftest.err conftest.$ac_objext \
18096 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18100 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18103 ac_cv_search_getprpwnam=no
18105 rm conftest.$ac_ext
18106 LIBS=$ac_func_search_save_LIBS
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18109 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18110 ac_res=$ac_cv_search_getprpwnam
18111 if test "$ac_res" != no; then :
18112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18113 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
18114 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
18118 if test -n "$SECUREWARE"; then
18119 for ac_func in bigcrypt set_auth_parameters initprivs
18121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18123 eval as_val=\$$as_ac_var
18124 if test "x$as_val" = x""yes; then :
18125 cat >>confdefs.h <<_ACEOF
18126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18132 AUTH_OBJS="$AUTH_OBJS secureware.o"
18136 if test ${with_ldap-'no'} != "no"; then
18137 _LDFLAGS="$LDFLAGS"
18138 if test "$with_ldap" != "yes"; then
18140 if test X"$with_rpath" = X"yes"; then
18142 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18144 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18148 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
18150 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
18151 blibpath_add="${blibpath_add}:${with_ldap}/lib"
18155 if test X"$with_rpath" = X"yes"; then
18157 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18159 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18163 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
18165 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18166 blibpath_add="${blibpath_add}:${with_ldap}/lib"
18169 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
18172 SUDO_OBJS="${SUDO_OBJS} ldap.o"
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18176 $as_echo_n "checking for LDAP libraries... " >&6; }
18180 for l in -lldap -llber '-lssl -lcrypto'; do
18182 LDAP_LIBS="${LDAP_LIBS} $l"
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18185 #include <sys/types.h>
18191 (void)ldap_init(0, 0)
18196 if ac_fn_c_try_link "$LINENO"; then :
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18202 if test "$found" = "no"; then
18203 LIBS="${_LIBS} -lldap"
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
18206 $as_echo "not found, using -lldap" >&6; }
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
18209 $as_echo "$LDAP_LIBS" >&6; }
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
18213 $as_echo_n "checking for library containing ber_set_option... " >&6; }
18214 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18215 $as_echo_n "(cached) " >&6
18217 ac_func_search_save_LIBS=$LIBS
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18221 /* Override any GCC internal prototype to avoid an error.
18222 Use char because int might match the return type of a GCC
18223 builtin and then its argument prototype would still apply. */
18227 char ber_set_option ();
18231 return ber_set_option ();
18236 for ac_lib in '' lber; do
18237 if test -z "$ac_lib"; then
18238 ac_res="none required"
18241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_search_ber_set_option=$ac_res
18246 rm -f core conftest.err conftest.$ac_objext \
18248 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18252 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18255 ac_cv_search_ber_set_option=no
18257 rm conftest.$ac_ext
18258 LIBS=$ac_func_search_save_LIBS
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
18261 $as_echo "$ac_cv_search_ber_set_option" >&6; }
18262 ac_res=$ac_cv_search_ber_set_option
18263 if test "$ac_res" != no; then :
18264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18270 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
18271 LDAP_LIBS="$LDAP_LIBS -llber"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
18274 $as_echo_n "checking whether lber.h is needed... " >&6; }
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #include <sys/types.h>
18282 (void)ldap_init(0, 0)
18287 if ac_fn_c_try_link "$LINENO"; then :
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18300 for ac_header in sasl/sasl.h sasl.h
18302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18303 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18304 eval as_val=\$$as_ac_Header
18305 if test "x$as_val" = x""yes; then :
18306 cat >>confdefs.h <<_ACEOF
18307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18309 for ac_func in ldap_sasl_interactive_bind_s
18311 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
18312 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
18313 cat >>confdefs.h <<_ACEOF
18314 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
18326 for ac_header in ldap_ssl.h mps/ldap_ssl.h
18328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18331 eval as_val=\$$as_ac_Header
18332 if test "x$as_val" = x""yes; then :
18333 cat >>confdefs.h <<_ACEOF
18334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18341 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
18343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18345 eval as_val=\$$as_ac_var
18346 if test "x$as_val" = x""yes; then :
18347 cat >>confdefs.h <<_ACEOF
18348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 for ac_func in ldap_search_ext_s ldap_search_st
18356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18358 eval as_val=\$$as_ac_var
18359 if test "x$as_val" = x""yes; then :
18360 cat >>confdefs.h <<_ACEOF
18361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18368 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18370 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18371 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18372 $as_echo_n "(cached) " >&6
18374 ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-lgssapi $LIBS"
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18379 /* Override any GCC internal prototype to avoid an error.
18380 Use char because int might match the return type of a GCC
18381 builtin and then its argument prototype would still apply. */
18385 char gss_krb5_ccache_name ();
18389 return gss_krb5_ccache_name ();
18394 if ac_fn_c_try_link "$LINENO"; then :
18395 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18397 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18399 rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18404 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18405 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18406 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18408 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18411 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18412 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18413 $as_echo_n "(cached) " >&6
18415 ac_check_lib_save_LIBS=$LIBS
18416 LIBS="-lgssapi_krb5 $LIBS"
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18426 char gss_krb5_ccache_name ();
18430 return gss_krb5_ccache_name ();
18435 if ac_fn_c_try_link "$LINENO"; then :
18436 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18438 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18440 rm -f core conftest.err conftest.$ac_objext \
18441 conftest$ac_exeext conftest.$ac_ext
18442 LIBS=$ac_check_lib_save_LIBS
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18445 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18446 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18447 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18449 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18456 # gssapi headers may be separate or part of Kerberos V
18458 O_CPPFLAGS="$CPPFLAGS"
18459 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18460 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #include <gssapi/gssapi.h>
18465 if ac_fn_c_try_cpp "$LINENO"; then :
18466 found="gssapi/gssapi.h"; break
18468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h. */
18470 #include <gssapi.h>
18472 if ac_fn_c_try_cpp "$LINENO"; then :
18473 found="gssapi.h"; break
18475 rm -f conftest.err conftest.$ac_ext
18477 rm -f conftest.err conftest.$ac_ext
18479 if test X"$found" != X"no"; then
18480 for ac_header in $found
18482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18484 eval as_val=\$$as_ac_Header
18485 if test "x$as_val" = x""yes; then :
18486 cat >>confdefs.h <<_ACEOF
18487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18494 if test X"$found" = X"gssapi/gssapi.h"; then
18495 for ac_header in gssapi/gssapi_krb5.h
18497 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18498 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18499 cat >>confdefs.h <<_ACEOF
18500 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18509 CPPFLAGS="$O_CPPFLAGS"
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
18511 $as_echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
18515 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
18517 LDFLAGS="$_LDFLAGS"
18520 if test X"$LIBVAS_RPATH" != X""; then
18521 if test -n "$blibpath"; then
18522 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
18525 *-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
18527 *) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
18533 if test -n "$blibpath"; then
18534 if test -n "$blibpath_add"; then
18535 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18536 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18537 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18542 $as_echo_n "checking for log file location... " >&6; }
18543 if test -n "$with_logpath"; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18545 $as_echo "$with_logpath" >&6; }
18546 cat >>confdefs.h <<EOF
18547 #define _PATH_SUDO_LOGFILE "$with_logpath"
18550 elif test -d "/var/log"; then
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18552 $as_echo "/var/log/sudo.log" >&6; }
18553 cat >>confdefs.h <<\EOF
18554 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18557 elif test -d "/var/adm"; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18559 $as_echo "/var/adm/sudo.log" >&6; }
18560 cat >>confdefs.h <<\EOF
18561 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18564 elif test -d "/usr/adm"; then
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18566 $as_echo "/usr/adm/sudo.log" >&6; }
18567 cat >>confdefs.h <<\EOF
18568 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18573 $as_echo "unknown" >&6; }
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18577 $as_echo_n "checking for timestamp file location... " >&6; }
18578 timedir="$with_timedir"
18579 if test -z "$timedir"; then
18580 for d in /var/db /var/lib /var/adm /usr/adm; do
18581 if test -d "$d"; then
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18588 $as_echo "$timedir" >&6; }
18589 cat >>confdefs.h <<EOF
18590 #define _PATH_SUDO_TIMEDIR "$timedir"
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18596 $as_echo_n "checking for I/O log dir location... " >&6; }
18597 if test "${with_iologdir-yes}" != "yes"; then
18598 iolog_dir="$with_iologdir"
18599 elif test -d "/var/log"; then
18600 iolog_dir="/var/log/sudo-io"
18601 elif test -d "/var/adm"; then
18602 iolog_dir="/var/adm/sudo-io"
18604 iolog_dir="/usr/adm/sudo-io"
18606 if test "${with_iologdir}" != "no"; then
18607 cat >>confdefs.h <<EOF
18608 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
18613 $as_echo "$iolog_dir" >&6; }
18616 if test "${with_iologdir-yes}" != "no"; then
18617 # Require POSIX job control for I/O log support
18618 for ac_func in tcsetpgrp
18620 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18621 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_TCSETPGRP 1
18626 SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18627 PROGS="$PROGS sudoreplay"
18630 # Check whether --enable-zlib was given.
18631 if test "${enable_zlib+set}" = set; then :
18632 enableval=$enable_zlib;
18635 case ${enable_zlib-"yes"} in
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18638 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18639 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18640 $as_echo_n "(cached) " >&6
18642 ac_check_lib_save_LIBS=$LIBS
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18662 if ac_fn_c_try_link "$LINENO"; then :
18663 ac_cv_lib_z_gzdopen=yes
18665 ac_cv_lib_z_gzdopen=no
18667 rm -f core conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18672 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18673 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18675 for ac_header in zlib.h
18677 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18678 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define HAVE_ZLIB_H 1
18684 enable_zlib=builtin
18696 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18704 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18706 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18708 if test X"$with_rpath" = X"yes"; then
18710 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18712 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18716 ZLIB="${ZLIB} -L$enable_zlib/lib"
18718 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18719 blibpath_add="${blibpath_add}:$enable_zlib/lib"
18725 if test X"$enable_zlib" = X"builtin"; then
18726 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18728 CPPFLAGS="${CPPFLAGS}"' -I$(srcdir)/zlib'
18729 ZLIB="${ZLIB} libz.a"
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18736 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18744 case "$with_passwd" in
18746 AUTH_OBJS="$AUTH_OBJS getspwuid.o passwd.o"
18749 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18751 if test -z "$AUTH_OBJS"; then
18752 as_fn_error "no authentication methods defined." "$LINENO" 5
18756 AUTH_OBJS=${AUTH_OBJS# }
18757 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.o//g' -e 's/getspwuid *//'`
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18759 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18761 if test -n "$LIBS"; then
18766 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18767 test $l = $sl && dupe=1
18769 test $dupe = 0 && LIBS="${LIBS} $l"
18773 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18775 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18776 oexec_prefix="$exec_prefix"
18777 if test "$exec_prefix" = '$(prefix)'; then
18778 if test "$prefix" = "NONE"; then
18779 exec_prefix="$ac_default_prefix"
18781 exec_prefix="$prefix"
18784 if test X"$with_noexec" != X"no"; then
18785 PROGS="${PROGS} libsudo_noexec.la"
18786 INSTALL_NOEXEC="install-noexec"
18788 eval noexec_file="$with_noexec"
18789 cat >>confdefs.h <<EOF
18790 #define _PATH_SUDO_NOEXEC "$noexec_file"
18794 if test X"$with_selinux" != X"no"; then
18795 eval sesh_file="$libexecdir/sesh"
18796 cat >>confdefs.h <<EOF
18797 #define _PATH_SUDO_SESH "$sesh_file"
18801 exec_prefix="$oexec_prefix"
18804 if test X"$prefix" = X"NONE"; then
18805 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18807 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18809 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18810 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18811 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18812 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18813 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18814 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18815 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18817 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
18819 cat >confcache <<\_ACEOF
18820 # This file is a shell script that caches the results of configure
18821 # tests run on this system so they can be shared between configure
18822 # scripts and configure runs, see configure's option --config-cache.
18823 # It is not useful on other systems. If it contains results you don't
18824 # want to keep, you may remove or edit it.
18826 # config.status only pays attention to the cache file if you give it
18827 # the --recheck option to rerun configure.
18829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18831 # following values.
18835 # The following way of writing the cache mishandles newlines in values,
18836 # but we know of no workaround that is simple, portable, and efficient.
18837 # So, we kill variables containing newlines.
18838 # Ultrix sh set writes to stderr and can't be redirected directly,
18839 # and sets the high bit in the cache file unless we assign to the vars.
18841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18842 eval ac_val=\$$ac_var
18846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18850 _ | IFS | as_nl) ;; #(
18851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18852 *) { eval $ac_var=; unset $ac_var;} ;;
18858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18859 *${as_nl}ac_space=\ *)
18860 # `set' does not quote correctly, so add quotes: double-quote
18861 # substitution turns \\\\ into \\, and sed turns \\ into \.
18864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18867 # `set' quotes correctly as required by POSIX, so do not add quotes.
18868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18882 if test -w "$cache_file"; then
18883 test "x$cache_file" != "x/dev/null" &&
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18885 $as_echo "$as_me: updating cache $cache_file" >&6;}
18886 cat confcache >$cache_file
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18895 # Let make expand exec_prefix.
18896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18898 DEFS=-DHAVE_CONFIG_H
18902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18903 # 1. Remove the extension, and $U if already installed.
18904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18907 # will be set to the directory where LIBOBJS objects are built.
18908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18911 LIBOBJS=$ac_libobjs
18913 LTLIBOBJS=$ac_ltlibobjs
18917 : ${CONFIG_STATUS=./config.status}
18919 ac_clean_files_save=$ac_clean_files
18920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18926 # Generated by $as_me.
18927 # Run this file to recreate the current configuration.
18928 # Compiler output produced by configure, useful for debugging
18929 # configure, is in config.log if it exists.
18932 ac_cs_recheck=false
18935 SHELL=\${CONFIG_SHELL-$SHELL}
18938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18939 ## -------------------- ##
18940 ## M4sh Initialization. ##
18941 ## -------------------- ##
18943 # Be more Bourne compatible
18944 DUALCASE=1; export DUALCASE # for MKS sh
18945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18949 # is contrary to our usage. Disable this feature.
18950 alias -g '${1+"$@"}'='"$@"'
18951 setopt NO_GLOB_SUBST
18953 case `(set -o) 2>/dev/null` in #(
18965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18969 # Prefer a ksh shell builtin over an external printf program on Solaris,
18970 # but without wasting forks for bash or zsh.
18971 if test -z "$BASH_VERSION$ZSH_VERSION" \
18972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18973 as_echo='print -r --'
18974 as_echo_n='print -rn --'
18975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18976 as_echo='printf %s\n'
18977 as_echo_n='printf %s'
18979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18981 as_echo_n='/usr/ucb/echo -n'
18983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18984 as_echo_n_body='eval
18988 expr "X$arg" : "X\\(.*\\)$as_nl";
18989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18993 export as_echo_n_body
18994 as_echo_n='sh -c $as_echo_n_body as_echo'
18996 export as_echo_body
18997 as_echo='sh -c $as_echo_body as_echo'
19000 # The user is always right.
19001 if test "${PATH_SEPARATOR+set}" != set; then
19003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19011 # We need space, tab and new line, in precisely that order. Quoting is
19012 # there to prevent editors from complaining about space-tab.
19013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19014 # splitting by setting IFS to empty value.)
19017 # Find who we are. Look in the path if we contain no directory separator.
19019 *[\\/]* ) as_myself=$0 ;;
19020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19024 test -z "$as_dir" && as_dir=.
19025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19031 # We did not find ourselves, most probably we were run as `sh COMMAND'
19032 # in which case we are not to be found in the path.
19033 if test "x$as_myself" = x; then
19036 if test ! -f "$as_myself"; then
19037 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19041 # Unset variables that we do not need and which cause bugs (e.g. in
19042 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19043 # suppresses any "Segmentation fault" message there. '((' could
19044 # trigger a bug in pdksh 5.2.14.
19045 for as_var in BASH_ENV ENV MAIL MAILPATH
19046 do eval test x\${$as_var+set} = xset \
19047 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19063 # as_fn_error ERROR [LINENO LOG_FD]
19064 # ---------------------------------
19065 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19066 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19067 # script with status $?, using 1 if that was 0.
19070 as_status=$?; test $as_status -eq 0 && as_status=1
19072 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19073 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19075 $as_echo "$as_me: error: $1" >&2
19076 as_fn_exit $as_status
19080 # as_fn_set_status STATUS
19081 # -----------------------
19082 # Set $? to STATUS, without forking.
19083 as_fn_set_status ()
19086 } # as_fn_set_status
19088 # as_fn_exit STATUS
19089 # -----------------
19090 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19094 as_fn_set_status $1
19100 # Portably unset VAR.
19103 { eval $1=; unset $1;}
19105 as_unset=as_fn_unset
19106 # as_fn_append VAR VALUE
19107 # ----------------------
19108 # Append the text in VALUE to the end of the definition contained in VAR. Take
19109 # advantage of any shell optimizations that allow amortized linear growth over
19110 # repeated appends, instead of the typical quadratic growth present in naive
19112 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19113 eval 'as_fn_append ()
19124 # as_fn_arith ARG...
19125 # ------------------
19126 # Perform arithmetic evaluation on the ARGs, and store the result in the
19127 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19128 # must be portable across $(()) and expr.
19129 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19130 eval 'as_fn_arith ()
19137 as_val=`expr "$@" || test $? -eq 1`
19142 if expr a : '\(a\)' >/dev/null 2>&1 &&
19143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19150 as_basename=basename
19155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19161 as_me=`$as_basename -- "$0" ||
19162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19163 X"$0" : 'X\(//\)$' \| \
19164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19166 sed '/^.*\/\([^/][^/]*\)\/*$/{
19180 # Avoid depending upon Character Ranges.
19181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19184 as_cr_digits='0123456789'
19185 as_cr_alnum=$as_cr_Letters$as_cr_digits
19187 ECHO_C= ECHO_N= ECHO_T=
19188 case `echo -n x` in #(((((
19190 case `echo 'xy\c'` in
19191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19193 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19200 rm -f conf$$ conf$$.exe conf$$.file
19201 if test -d conf$$.dir; then
19202 rm -f conf$$.dir/conf$$.file
19205 mkdir conf$$.dir 2>/dev/null
19207 if (echo >conf$$.file) 2>/dev/null; then
19208 if ln -s conf$$.file conf$$ 2>/dev/null; then
19210 # ... but there are two gotchas:
19211 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19212 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19213 # In both cases, we have to default to `cp -p'.
19214 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19216 elif ln conf$$.file conf$$ 2>/dev/null; then
19224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19225 rmdir conf$$.dir 2>/dev/null
19230 # Create "$as_dir" as a directory, including parents if necessary.
19235 -*) as_dir=./$as_dir;;
19237 test -d "$as_dir" || eval $as_mkdir_p || {
19241 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19242 *) as_qdir=$as_dir;;
19244 as_dirs="'$as_qdir' $as_dirs"
19245 as_dir=`$as_dirname -- "$as_dir" ||
19246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19247 X"$as_dir" : 'X\(//\)[^/]' \| \
19248 X"$as_dir" : 'X\(//\)$' \| \
19249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19250 $as_echo X"$as_dir" |
19251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 /^X\(\/\/\)[^/].*/{
19268 test -d "$as_dir" && break
19270 test -z "$as_dirs" || eval "mkdir $as_dirs"
19271 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19275 if mkdir -p . 2>/dev/null; then
19276 as_mkdir_p='mkdir -p "$as_dir"'
19278 test -d ./-p && rmdir ./-p
19282 if test -x / >/dev/null 2>&1; then
19283 as_test_x='test -x'
19285 if ls -dL / >/dev/null 2>&1; then
19292 if test -d "$1"; then
19298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19299 ???[sx]*):;;*)false;;esac;fi
19303 as_executable_p=$as_test_x
19305 # Sed expression to map a string onto a valid CPP name.
19306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19308 # Sed expression to map a string onto a valid variable name.
19309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19313 ## ----------------------------------- ##
19314 ## Main body of $CONFIG_STATUS script. ##
19315 ## ----------------------------------- ##
19317 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320 # Save the log message, to keep $0 and so on meaningful, and to
19321 # report actual input values of CONFIG_FILES etc. instead of their
19322 # values after options handling.
19324 This file was extended by sudo $as_me 1.7.6p1, which was
19325 generated by GNU Autoconf 2.65. Invocation command line was
19327 CONFIG_FILES = $CONFIG_FILES
19328 CONFIG_HEADERS = $CONFIG_HEADERS
19329 CONFIG_LINKS = $CONFIG_LINKS
19330 CONFIG_COMMANDS = $CONFIG_COMMANDS
19333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19338 case $ac_config_files in *"
19339 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19342 case $ac_config_headers in *"
19343 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19348 # Files that config.status was made for.
19349 config_files="$ac_config_files"
19350 config_headers="$ac_config_headers"
19351 config_commands="$ac_config_commands"
19355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357 \`$as_me' instantiates files and other configuration actions
19358 from templates according to the current configuration. Unless the files
19359 and actions are specified as TAGs, all are instantiated by default.
19361 Usage: $0 [OPTION]... [TAG]...
19363 -h, --help print this help, then exit
19364 -V, --version print version number and configuration settings, then exit
19365 --config print configuration, then exit
19366 -q, --quiet, --silent
19367 do not print progress messages
19368 -d, --debug don't remove temporary files
19369 --recheck update $as_me by reconfiguring in the same conditions
19370 --file=FILE[:TEMPLATE]
19371 instantiate the configuration file FILE
19372 --header=FILE[:TEMPLATE]
19373 instantiate the configuration header FILE
19375 Configuration files:
19378 Configuration headers:
19381 Configuration commands:
19384 Report bugs to <http://www.sudo.ws/bugs/>."
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19390 sudo config.status 1.7.6p1
19391 configured by $0, generated by GNU Autoconf 2.65,
19392 with options \\"\$ac_cs_config\\"
19394 Copyright (C) 2009 Free Software Foundation, Inc.
19395 This config.status script is free software; the Free Software Foundation
19396 gives unlimited permission to copy, distribute and modify it."
19400 test -n "\$AWK" || AWK=awk
19403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404 # The default lists apply if the user does not specify any file.
19410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19422 # Handling of the options.
19423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19426 $as_echo "$ac_cs_version"; exit ;;
19427 --config | --confi | --conf | --con | --co | --c )
19428 $as_echo "$ac_cs_config"; exit ;;
19429 --debug | --debu | --deb | --de | --d | -d )
19431 --file | --fil | --fi | --f )
19434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19436 as_fn_append CONFIG_FILES " '$ac_optarg'"
19437 ac_need_defaults=false;;
19438 --header | --heade | --head | --hea )
19441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19444 ac_need_defaults=false;;
19446 # Conflict between --help and --header
19447 as_fn_error "ambiguous option: \`$1'
19448 Try \`$0 --help' for more information.";;
19449 --help | --hel | -h )
19450 $as_echo "$ac_cs_usage"; exit ;;
19451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19455 # This is an error.
19456 -*) as_fn_error "unrecognized option: \`$1'
19457 Try \`$0 --help' for more information." ;;
19459 *) as_fn_append ac_config_targets " $1"
19460 ac_need_defaults=false ;;
19466 ac_configure_extra_args=
19468 if $ac_cs_silent; then
19470 ac_configure_extra_args="$ac_configure_extra_args --silent"
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 if \$ac_cs_recheck; then
19476 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19479 CONFIG_SHELL='$SHELL'
19480 export CONFIG_SHELL
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19490 ## Running $as_me. ##
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19502 # The HP-UX ksh and POSIX shell print the target directory to stdout
19503 # if CDPATH is set.
19504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19506 sed_quote_subst='$sed_quote_subst'
19507 double_quote_subst='$double_quote_subst'
19508 delay_variable_subst='$delay_variable_subst'
19509 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19510 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19511 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19512 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19513 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19514 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19515 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19516 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19517 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19518 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19519 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19520 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19521 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19522 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19523 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19524 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19525 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19526 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19527 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19528 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19529 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19530 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19531 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19532 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19533 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19534 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19535 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19536 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19537 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19538 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19539 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19540 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19541 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19542 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19543 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19544 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19545 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19546 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19547 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19548 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19549 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19550 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19551 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19555 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19556 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19557 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19558 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19559 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19560 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19561 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19562 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19563 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19564 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19565 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19566 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19567 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19568 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19569 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19570 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19571 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19572 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19573 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19574 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19575 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19576 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19577 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19578 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19579 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19580 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19581 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19582 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19583 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19584 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19585 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19586 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19587 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19588 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19589 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19590 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19591 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19592 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19593 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19594 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19595 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19596 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19597 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19598 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19599 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19600 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19601 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19602 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19603 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19604 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19605 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19606 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19607 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19608 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19609 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19610 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19611 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19612 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19613 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19614 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19615 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19616 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19617 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19618 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19619 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19620 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19621 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19622 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19623 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19624 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19625 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19626 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19629 LTCFLAGS='$LTCFLAGS'
19630 compiler='$compiler_DEFAULT'
19632 # Quote evaled strings.
19644 deplibs_check_method \
19653 lt_cv_sys_global_symbol_pipe \
19654 lt_cv_sys_global_symbol_to_cdecl \
19655 lt_cv_sys_global_symbol_to_c_name_address \
19656 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19659 lt_prog_compiler_no_builtin_flag \
19660 lt_prog_compiler_wl \
19661 lt_prog_compiler_pic \
19662 lt_prog_compiler_static \
19663 lt_cv_prog_compiler_c_o \
19671 export_dynamic_flag_spec \
19672 whole_archive_flag_spec \
19673 compiler_needs_object \
19675 allow_undefined_flag \
19676 no_undefined_flag \
19677 hardcode_libdir_flag_spec \
19678 hardcode_libdir_flag_spec_ld \
19679 hardcode_libdir_separator \
19684 variables_saved_for_relink \
19686 library_names_spec \
19691 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19692 *[\\\\\\\`\\"\\\$]*)
19693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19701 # Double-quote double-evaled strings.
19702 for var in reload_cmds \
19703 old_postinstall_cmds \
19704 old_postuninstall_cmds \
19706 extract_expsyms_cmds \
19707 old_archive_from_new_cmds \
19708 old_archive_from_expsyms_cmds \
19710 archive_expsym_cmds \
19712 module_expsym_cmds \
19713 export_symbols_cmds \
19716 postuninstall_cmds \
19718 sys_lib_search_path_spec \
19719 sys_lib_dlsearch_path_spec; do
19720 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19721 *[\\\\\\\`\\"\\\$]*)
19722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19730 # Fix-up fallback echo if it was mangled by the above quoting rules.
19732 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19736 ac_aux_dir='$ac_aux_dir'
19737 xsi_shell='$xsi_shell'
19738 lt_shell_append='$lt_shell_append'
19740 # See if we are running on zsh, and set the options which allow our
19741 # commands through without removal of \ escapes INIT.
19742 if test -n "\${ZSH_VERSION+set}" ; then
19743 setopt NO_GLOB_SUBST
19749 TIMESTAMP='$TIMESTAMP'
19758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19760 # Handling of arguments.
19761 for ac_config_target in $ac_config_targets
19763 case $ac_config_target in
19764 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19765 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19766 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
19767 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19769 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19770 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19771 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19772 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19773 "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19774 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19775 "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;;
19777 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19782 # If the user did not use the arguments to specify the items to instantiate,
19783 # then the envvar interface is used. Set only those that are not.
19784 # We use the long form for the default assignment because of an extremely
19785 # bizarre bug on SunOS 4.1.3.
19786 if $ac_need_defaults; then
19787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19792 # Have a temporary directory for convenience. Make it in the build tree
19793 # simply because there is no reason against having it here, and in addition,
19794 # creating and moving files from /tmp can sometimes cause problems.
19795 # Hook for its removal unless debugging.
19796 # Note that there is a small window in which the directory will not be cleaned:
19797 # after its creation but before its name has been assigned to `$tmp'.
19801 trap 'exit_status=$?
19802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19804 trap 'as_fn_exit 1' 1 2 13 15
19806 # Create a (secure) tmp directory for tmp files.
19809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19810 test -n "$tmp" && test -d "$tmp"
19813 tmp=./conf$$-$RANDOM
19814 (umask 077 && mkdir "$tmp")
19815 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19817 # Set up the scripts for CONFIG_FILES section.
19818 # No need to generate them if there are no CONFIG_FILES.
19819 # This happens for instance with `./config.status config.h'.
19820 if test -n "$CONFIG_FILES"; then
19823 ac_cr=`echo X | tr X '\015'`
19824 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19825 # But we know of no other shell where ac_cr would be empty at this
19826 # point, so we can use a bashism as a fallback.
19827 if test "x$ac_cr" = x; then
19828 eval ac_cr=\$\'\\r\'
19830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19834 ac_cs_awk_cr=$ac_cr
19837 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19842 echo "cat >conf$$subs.awk <<_ACEOF" &&
19843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19845 } >conf$$subs.sh ||
19846 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19849 for ac_last_try in false false false false false :; do
19850 . ./conf$$subs.sh ||
19851 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19854 if test $ac_delim_n = $ac_delim_num; then
19856 elif $ac_last_try; then
19857 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19862 rm -f conf$$subs.sh
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19869 s/^/S["/; s/!.*/"]=/
19879 s/\(.\{148\}\)..*/\1/
19881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19893 s/\(.\{148\}\)..*/\1/
19895 s/["\\]/\\&/g; s/^/"/; s/$/"/
19899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19904 ' <conf$$subs.awk | sed '
19909 ' >>$CONFIG_STATUS || ac_write_fail=1
19910 rm -f conf$$subs.awk
19911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19913 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19914 for (key in S) S_is_set[key] = 1
19920 nfields = split(line, field, "@")
19922 len = length(field[1])
19923 for (i = 2; i < nfields; i++) {
19925 keylen = length(key)
19926 if (S_is_set[key]) {
19928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19929 len += length(value) + length(field[++i])
19940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19941 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19945 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19946 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19951 # trailing colons and then remove the whole line if VPATH becomes empty
19952 # (actually we leave an empty line to preserve line numbers).
19953 if test "x$srcdir" = x.; then
19954 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19955 s/:*\$(srcdir):*/:/
19956 s/:*\${srcdir}:*/:/
19958 s/^\([^=]*=[ ]*\):*/\1/
19964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19965 fi # test -n "$CONFIG_FILES"
19967 # Set up the scripts for CONFIG_HEADERS section.
19968 # No need to generate them if there are no CONFIG_HEADERS.
19969 # This happens for instance with `./config.status Makefile'.
19970 if test -n "$CONFIG_HEADERS"; then
19971 cat >"$tmp/defines.awk" <<\_ACAWK ||
19975 # Transform confdefs.h into an awk script `defines.awk', embedded as
19976 # here-document in config.status, that substitutes the proper values into
19977 # config.h.in to produce config.h.
19979 # Create a delimiter string that does not exist in confdefs.h, to ease
19980 # handling of long lines.
19982 for ac_last_try in false false :; do
19983 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19984 if test -z "$ac_t"; then
19986 elif $ac_last_try; then
19987 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19993 # For the awk script, D is an array of macro values keyed by name,
19994 # likewise P contains macro parameters if any. Preserve backslash
19995 # newline sequences.
19997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19999 s/.\{148\}/&'"$ac_delim"'/g
20002 s/^[ ]*#[ ]*define[ ][ ]*/ /
20009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20011 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20016 D["\1"]=" \3\\\\\\n"\\/p
20018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20023 s/.\{148\}/&'"$ac_delim"'/g
20028 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20031 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20033 ' <confdefs.h | sed '
20034 s/'"$ac_delim"'/"\\\
20035 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20038 for (key in D) D_is_set[key] = 1
20041 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20043 split(line, arg, " ")
20044 if (arg[1] == "#") {
20048 defundef = substr(arg[1], 2)
20051 split(mac1, mac2, "(") #)
20053 prefix = substr(line, 1, index(line, defundef) - 1)
20054 if (D_is_set[macro]) {
20055 # Preserve the white space surrounding the "#".
20056 print prefix "define", macro P[macro] D[macro]
20059 # Replace #undef with comments. This is necessary, for example,
20060 # in the case of _POSIX_SOURCE, which is predefined and required
20061 # on some systems where configure will not decide to define it.
20062 if (defundef == "undef") {
20063 print "/*", prefix defundef, macro, "*/"
20071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20072 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20073 fi # test -n "$CONFIG_HEADERS"
20076 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20081 :[FHLC]) ac_mode=$ac_tag; continue;;
20083 case $ac_mode$ac_tag in
20085 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20086 :[FH]-) ac_tag=-:-;;
20087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20104 -) ac_f="$tmp/stdin";;
20105 *) # Look for the file first in the build tree, then in the source tree
20106 # (if the path is not absolute). The absolute path cannot be DOS-style,
20107 # because $ac_f cannot contain `:'.
20111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20113 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20116 as_fn_append ac_file_inputs " '$ac_f'"
20119 # Let's still pretend it is `configure' which instantiates (i.e., don't
20120 # use $as_me), people would be surprised to read:
20121 # /* config.h. Generated by config.status. */
20122 configure_input='Generated from '`
20123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20125 if test x"$ac_file" != x-; then
20126 configure_input="$ac_file. $configure_input"
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20128 $as_echo "$as_me: creating $ac_file" >&6;}
20130 # Neutralize special characters interpreted by sed in replacement strings.
20131 case $configure_input in #(
20132 *\&* | *\|* | *\\* )
20133 ac_sed_conf_input=`$as_echo "$configure_input" |
20134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20135 *) ac_sed_conf_input=$configure_input;;
20139 *:-:* | *:-) cat >"$tmp/stdin" \
20140 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20145 ac_dir=`$as_dirname -- "$ac_file" ||
20146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20147 X"$ac_file" : 'X\(//\)[^/]' \| \
20148 X"$ac_file" : 'X\(//\)$' \| \
20149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20150 $as_echo X"$ac_file" |
20151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20155 /^X\(\/\/\)[^/].*/{
20168 as_dir="$ac_dir"; as_fn_mkdir_p
20172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20174 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20175 # A ".." for each directory in $ac_dir_suffix.
20176 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20177 case $ac_top_builddir_sub in
20178 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20179 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20182 ac_abs_top_builddir=$ac_pwd
20183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20184 # for backward compatibility:
20185 ac_top_builddir=$ac_top_build_prefix
20188 .) # We are building in place.
20190 ac_top_srcdir=$ac_top_builddir_sub
20191 ac_abs_top_srcdir=$ac_pwd ;;
20192 [\\/]* | ?:[\\/]* ) # Absolute name.
20193 ac_srcdir=$srcdir$ac_dir_suffix;
20194 ac_top_srcdir=$srcdir
20195 ac_abs_top_srcdir=$srcdir ;;
20196 *) # Relative name.
20197 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20198 ac_top_srcdir=$ac_top_build_prefix$srcdir
20199 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20213 # If the template does not know about datarootdir, expand it.
20214 # FIXME: This hack should be removed a few years after 2.60.
20215 ac_datarootdir_hack=; ac_datarootdir_seen=
20226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20227 *datarootdir*) ac_datarootdir_seen=yes;;
20228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233 ac_datarootdir_hack='
20234 s&@datadir@&$datadir&g
20235 s&@docdir@&$docdir&g
20236 s&@infodir@&$infodir&g
20237 s&@localedir@&$localedir&g
20238 s&@mandir@&$mandir&g
20239 s&\\\${datarootdir}&$datarootdir&g' ;;
20243 # Neutralize VPATH when `$srcdir' = `.'.
20244 # Shell code in configure.ac might set extrasub.
20245 # FIXME: do we really want to maintain this feature?
20246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20247 ac_sed_extra="$ac_vpsub
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20253 s|@configure_input@|$ac_sed_conf_input|;t t
20254 s&@top_builddir@&$ac_top_builddir_sub&;t t
20255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20256 s&@srcdir@&$ac_srcdir&;t t
20257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20258 s&@top_srcdir@&$ac_top_srcdir&;t t
20259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20260 s&@builddir@&$ac_builddir&;t t
20261 s&@abs_builddir@&$ac_abs_builddir&;t t
20262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20263 $ac_datarootdir_hack
20265 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20266 || as_fn_error "could not create $ac_file" "$LINENO" 5
20268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20269 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20272 which seems to be undefined. Please make sure it is defined." >&5
20273 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20274 which seems to be undefined. Please make sure it is defined." >&2;}
20278 -) cat "$tmp/out" && rm -f "$tmp/out";;
20279 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20281 || as_fn_error "could not create $ac_file" "$LINENO" 5
20287 if test x"$ac_file" != x-; then
20289 $as_echo "/* $configure_input */" \
20290 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20291 } >"$tmp/config.h" \
20292 || as_fn_error "could not create $ac_file" "$LINENO" 5
20293 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20295 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20298 mv "$tmp/config.h" "$ac_file" \
20299 || as_fn_error "could not create $ac_file" "$LINENO" 5
20302 $as_echo "/* $configure_input */" \
20303 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20304 || as_fn_error "could not create -" "$LINENO" 5
20308 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20309 $as_echo "$as_me: executing $ac_file commands" >&6;}
20314 case $ac_file$ac_mode in
20317 # See if we are running on zsh, and set the options which allow our
20318 # commands through without removal of \ escapes.
20319 if test -n "${ZSH_VERSION+set}" ; then
20320 setopt NO_GLOB_SUBST
20323 cfgfile="${ofile}T"
20324 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20327 cat <<_LT_EOF >> "$cfgfile"
20330 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20331 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20333 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20335 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20336 # 2006, 2007, 2008 Free Software Foundation, Inc.
20337 # Written by Gordon Matzigkeit, 1996
20339 # This file is part of GNU Libtool.
20341 # GNU Libtool is free software; you can redistribute it and/or
20342 # modify it under the terms of the GNU General Public License as
20343 # published by the Free Software Foundation; either version 2 of
20344 # the License, or (at your option) any later version.
20346 # As a special exception to the GNU General Public License,
20347 # if you distribute this file as part of a program or library that
20348 # is built using GNU Libtool, you may include this file under the
20349 # same distribution terms that you use for the rest of that program.
20351 # GNU Libtool is distributed in the hope that it will be useful,
20352 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20353 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20354 # GNU General Public License for more details.
20356 # You should have received a copy of the GNU General Public License
20357 # along with GNU Libtool; see the file COPYING. If not, a copy
20358 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20359 # obtained by writing to the Free Software Foundation, Inc.,
20360 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20363 # The names of the tagged configurations supported by this script.
20366 # ### BEGIN LIBTOOL CONFIG
20368 # Which release of libtool.m4 was used?
20369 macro_version=$macro_version
20370 macro_revision=$macro_revision
20372 # Whether or not to build shared libraries.
20373 build_libtool_libs=$enable_shared
20375 # Whether or not to build static libraries.
20376 build_old_libs=$enable_static
20378 # What type of objects to build.
20381 # Whether or not to optimize for fast installation.
20382 fast_install=$enable_fast_install
20385 host_alias=$host_alias
20389 # The build system.
20390 build_alias=$build_alias
20394 # A sed program that does not truncate output.
20397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20398 Xsed="\$SED -e 1s/^X//"
20400 # A grep program that handles long lines.
20406 # A literal string matcher.
20409 # A BSD- or MS-compatible name lister.
20412 # Whether we need soft or hard links.
20415 # What is the maximum length of a command?
20416 max_cmd_len=$max_cmd_len
20418 # Object file suffix (normally "o").
20421 # Executable file suffix (normally "").
20424 # whether the shell understands "unset".
20427 # turn spaces into newlines.
20430 # turn newlines into spaces.
20433 # How to create reloadable object files.
20434 reload_flag=$lt_reload_flag
20435 reload_cmds=$lt_reload_cmds
20437 # An object symbol dumper.
20438 OBJDUMP=$lt_OBJDUMP
20440 # Method to check whether dependent libraries are shared objects.
20441 deplibs_check_method=$lt_deplibs_check_method
20443 # Command to use when deplibs_check_method == "file_magic".
20444 file_magic_cmd=$lt_file_magic_cmd
20448 AR_FLAGS=$lt_AR_FLAGS
20450 # A symbol stripping program.
20453 # Commands used to install an old-style archive.
20455 old_postinstall_cmds=$lt_old_postinstall_cmds
20456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20461 # LTCC compiler flags.
20462 LTCFLAGS=$lt_CFLAGS
20464 # Take the output of nm and produce a listing of raw symbols and C names.
20465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20467 # Transform the output of nm in a proper C declaration.
20468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20470 # Transform the output of nm in a C name address pair.
20471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20473 # Transform the output of nm in a C name address pair when lib prefix is needed.
20474 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20476 # The name of the directory that contains temporary libtool files.
20479 # Shell to use when invoking shell scripts.
20482 # An echo program that does not interpret backslashes.
20485 # Used to examine libraries when file_magic_cmd begins with "file".
20486 MAGIC_CMD=$MAGIC_CMD
20488 # Must we lock files when doing compilation?
20489 need_locks=$lt_need_locks
20491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20492 DSYMUTIL=$lt_DSYMUTIL
20494 # Tool to change global to local symbols on Mac OS X.
20497 # Tool to manipulate fat objects and archives on Mac OS X.
20500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20504 OTOOL64=$lt_OTOOL64
20506 # Old archive suffix (normally "a").
20509 # Shared library suffix (normally ".so").
20510 shrext_cmds=$lt_shrext_cmds
20512 # The commands to extract the exported symbol list from a shared archive.
20513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20515 # Variables whose values should be saved in libtool wrapper scripts and
20516 # restored at link time.
20517 variables_saved_for_relink=$lt_variables_saved_for_relink
20519 # Do we need the "lib" prefix for modules?
20520 need_lib_prefix=$need_lib_prefix
20522 # Do we need a version for libraries?
20523 need_version=$need_version
20525 # Library versioning type.
20526 version_type=$version_type
20528 # Shared library runtime path variable.
20529 runpath_var=$runpath_var
20531 # Shared library path variable.
20532 shlibpath_var=$shlibpath_var
20534 # Is shlibpath searched before the hard-coded library search path?
20535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20537 # Format of library name prefix.
20538 libname_spec=$lt_libname_spec
20540 # List of archive names. First name is the real one, the rest are links.
20541 # The last name is the one that the linker finds with -lNAME
20542 library_names_spec=$lt_library_names_spec
20544 # The coded name of the library, if different from the real name.
20545 soname_spec=$lt_soname_spec
20547 # Command to use after installation of a shared archive.
20548 postinstall_cmds=$lt_postinstall_cmds
20550 # Command to use after uninstallation of a shared archive.
20551 postuninstall_cmds=$lt_postuninstall_cmds
20553 # Commands used to finish a libtool library installation in a directory.
20554 finish_cmds=$lt_finish_cmds
20556 # As "finish_cmds", except a single script fragment to be evaled but
20558 finish_eval=$lt_finish_eval
20560 # Whether we should hardcode library paths into libraries.
20561 hardcode_into_libs=$hardcode_into_libs
20563 # Compile-time system search path for libraries.
20564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20566 # Run-time system search path for libraries.
20567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20569 # Whether dlopen is supported.
20570 dlopen_support=$enable_dlopen
20572 # Whether dlopen of programs is supported.
20573 dlopen_self=$enable_dlopen_self
20575 # Whether dlopen of statically linked programs is supported.
20576 dlopen_self_static=$enable_dlopen_self_static
20578 # Commands to strip libraries.
20579 old_striplib=$lt_old_striplib
20580 striplib=$lt_striplib
20583 # The linker used to build libraries.
20586 # Commands used to build an old-style archive.
20587 old_archive_cmds=$lt_old_archive_cmds
20589 # A language specific compiler.
20592 # Is the compiler the GNU compiler?
20595 # Compiler flag to turn off builtin functions.
20596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20598 # How to pass a linker flag through the compiler.
20599 wl=$lt_lt_prog_compiler_wl
20601 # Additional compiler flags for building library objects.
20602 pic_flag=$lt_lt_prog_compiler_pic
20604 # Compiler flag to prevent dynamic linking.
20605 link_static_flag=$lt_lt_prog_compiler_static
20607 # Does compiler simultaneously support -c and -o options?
20608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20610 # Whether or not to add -lc for building shared libraries.
20611 build_libtool_need_lc=$archive_cmds_need_lc
20613 # Whether or not to disallow shared libs when runtime libs are static.
20614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20616 # Compiler flag to allow reflexive dlopens.
20617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20619 # Compiler flag to generate shared objects directly from archives.
20620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20622 # Whether the compiler copes with passing no objects directly.
20623 compiler_needs_object=$lt_compiler_needs_object
20625 # Create an old-style archive from a shared archive.
20626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20628 # Create a temporary old-style archive to link instead of a shared archive.
20629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20631 # Commands used to build a shared archive.
20632 archive_cmds=$lt_archive_cmds
20633 archive_expsym_cmds=$lt_archive_expsym_cmds
20635 # Commands used to build a loadable module if different from building
20636 # a shared archive.
20637 module_cmds=$lt_module_cmds
20638 module_expsym_cmds=$lt_module_expsym_cmds
20640 # Whether we are building with GNU ld or not.
20641 with_gnu_ld=$lt_with_gnu_ld
20643 # Flag that allows shared libraries with undefined symbols to be built.
20644 allow_undefined_flag=$lt_allow_undefined_flag
20646 # Flag that enforces no undefined symbols.
20647 no_undefined_flag=$lt_no_undefined_flag
20649 # Flag to hardcode \$libdir into a binary during linking.
20650 # This must work even if \$libdir does not exist
20651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20653 # If ld is used when linking, flag to hardcode \$libdir into a binary
20654 # during linking. This must work even if \$libdir does not exist.
20655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20657 # Whether we need a single "-rpath" flag with a separated argument.
20658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20661 # DIR into the resulting binary.
20662 hardcode_direct=$hardcode_direct
20664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20665 # DIR into the resulting binary and the resulting library dependency is
20666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20667 # library is relocated.
20668 hardcode_direct_absolute=$hardcode_direct_absolute
20670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20671 # into the resulting binary.
20672 hardcode_minus_L=$hardcode_minus_L
20674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_shlibpath_var=$hardcode_shlibpath_var
20678 # Set to "yes" if building a shared library automatically hardcodes DIR
20679 # into the library and all subsequent libraries and executables linked
20681 hardcode_automatic=$hardcode_automatic
20683 # Set to yes if linker adds runtime paths of dependent libraries
20684 # to runtime path list.
20685 inherit_rpath=$inherit_rpath
20687 # Whether libtool must link a program against all its dependency libraries.
20688 link_all_deplibs=$link_all_deplibs
20690 # Fix the shell variable \$srcfile for the compiler.
20691 fix_srcfile_path=$lt_fix_srcfile_path
20693 # Set to "yes" if exported symbols are required.
20694 always_export_symbols=$always_export_symbols
20696 # The commands to list exported symbols.
20697 export_symbols_cmds=$lt_export_symbols_cmds
20699 # Symbols that should not be listed in the preloaded symbols.
20700 exclude_expsyms=$lt_exclude_expsyms
20702 # Symbols that must always be exported.
20703 include_expsyms=$lt_include_expsyms
20705 # Commands necessary for linking programs (against libraries) with templates.
20706 prelink_cmds=$lt_prelink_cmds
20708 # Specify filename containing input files.
20709 file_list_spec=$lt_file_list_spec
20711 # How to hardcode a shared library path into an executable.
20712 hardcode_action=$hardcode_action
20714 # ### END LIBTOOL CONFIG
20720 cat <<\_LT_EOF >> "$cfgfile"
20721 # AIX sometimes has problems with the GCC collect2 program. For some
20722 # reason, if we set the COLLECT_NAMES environment variable, the problems
20723 # vanish in a puff of smoke.
20724 if test "X${COLLECT_NAMES+set}" != Xset; then
20726 export COLLECT_NAMES
20733 ltmain="$ac_aux_dir/ltmain.sh"
20736 # We use sed instead of cat because bash on DJGPP gets confused if
20737 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20738 # text mode, it properly converts lines to CR/LF. This bash problem
20739 # is reportedly fixed, but why not run on old versions too?
20740 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20741 || (rm -f "$cfgfile"; exit 1)
20745 cat << \_LT_EOF >> "$cfgfile"
20747 # func_dirname file append nondir_replacement
20748 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20749 # otherwise set result to NONDIR_REPLACEMENT.
20753 */*) func_dirname_result="${1%/*}${2}" ;;
20754 * ) func_dirname_result="${3}" ;;
20758 # func_basename file
20761 func_basename_result="${1##*/}"
20764 # func_dirname_and_basename file append nondir_replacement
20765 # perform func_basename and func_dirname in a single function
20767 # dirname: Compute the dirname of FILE. If nonempty,
20768 # add APPEND to the result, otherwise set result
20769 # to NONDIR_REPLACEMENT.
20770 # value returned in "$func_dirname_result"
20771 # basename: Compute filename of FILE.
20772 # value retuned in "$func_basename_result"
20773 # Implementation must be kept synchronized with func_dirname
20774 # and func_basename. For efficiency, we do not delegate to
20775 # those functions but instead duplicate the functionality here.
20776 func_dirname_and_basename ()
20779 */*) func_dirname_result="${1%/*}${2}" ;;
20780 * ) func_dirname_result="${3}" ;;
20782 func_basename_result="${1##*/}"
20785 # func_stripname prefix suffix name
20786 # strip PREFIX and SUFFIX off of NAME.
20787 # PREFIX and SUFFIX must not contain globbing or regex special
20788 # characters, hashes, percent signs, but SUFFIX may contain a leading
20789 # dot (in which case that matches only a dot).
20792 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20793 # positional parameters, so assign one to ordinary parameter first.
20794 func_stripname_result=${3}
20795 func_stripname_result=${func_stripname_result#"${1}"}
20796 func_stripname_result=${func_stripname_result%"${2}"}
20802 func_opt_split_opt=${1%%=*}
20803 func_opt_split_arg=${1#*=}
20810 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20811 *) func_lo2o_result=${1} ;;
20815 # func_xform libobj-or-source
20818 func_xform_result=${1%.*}.lo
20821 # func_arith arithmetic-term...
20824 func_arith_result=$(( $* ))
20828 # STRING may not start with a hyphen.
20831 func_len_result=${#1}
20836 *) # Bourne compatible functions.
20837 cat << \_LT_EOF >> "$cfgfile"
20839 # func_dirname file append nondir_replacement
20840 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20841 # otherwise set result to NONDIR_REPLACEMENT.
20844 # Extract subdirectory from the argument.
20845 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20846 if test "X$func_dirname_result" = "X${1}"; then
20847 func_dirname_result="${3}"
20849 func_dirname_result="$func_dirname_result${2}"
20853 # func_basename file
20856 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20860 # func_stripname prefix suffix name
20861 # strip PREFIX and SUFFIX off of NAME.
20862 # PREFIX and SUFFIX must not contain globbing or regex special
20863 # characters, hashes, percent signs, but SUFFIX may contain a leading
20864 # dot (in which case that matches only a dot).
20865 # func_strip_suffix prefix name
20869 .*) func_stripname_result=`$ECHO "X${3}" \
20870 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20871 *) func_stripname_result=`$ECHO "X${3}" \
20872 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20877 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20878 my_sed_long_arg='1s/^-[^=]*=//'
20883 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20884 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20890 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20893 # func_xform libobj-or-source
20896 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20899 # func_arith arithmetic-term...
20902 func_arith_result=`expr "$@"`
20906 # STRING may not start with a hyphen.
20909 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20915 case $lt_shell_append in
20917 cat << \_LT_EOF >> "$cfgfile"
20919 # func_append var value
20920 # Append VALUE to the end of shell variable VAR.
20928 cat << \_LT_EOF >> "$cfgfile"
20930 # func_append var value
20931 # Append VALUE to the end of shell variable VAR.
20942 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20943 || (rm -f "$cfgfile"; exit 1)
20945 mv -f "$cfgfile" "$ofile" ||
20946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20957 ac_clean_files=$ac_clean_files_save
20959 test $ac_write_fail = 0 ||
20960 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20963 # configure is writing to config.log, and then calls config.status.
20964 # config.status does its own redirection, appending to config.log.
20965 # Unfortunately, on DOS this fails, as config.log is still kept open
20966 # by configure, so config.status won't be able to write to it; its
20967 # output is simply discarded. So we exec the FD to /dev/null,
20968 # effectively closing config.log, so it can be properly (re)opened and
20969 # appended to by config.status. When coming back to configure, we
20970 # need to make the FD available again.
20971 if test "$no_create" != yes; then
20973 ac_config_status_args=
20974 test "$silent" = yes &&
20975 ac_config_status_args="$ac_config_status_args --quiet"
20977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20980 # would make configure fail if this is the last instruction.
20981 $ac_cs_success || as_fn_exit $?
20983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20989 if test "$with_pam" = "yes"; then
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20993 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}