2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.7.4p4.
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.4p4'
705 PACKAGE_STRING='sudo 1.7.4p4'
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
885 program_transform_name
898 enable_option_checking
956 with_password_timeout
967 with_ldap_secret_file
975 enable_authentication
983 enable_shell_sets_home
989 enable_gss_krb5_ccache_name
1003 ac_precious_vars='build_alias
1016 # Initialize some variables set by options.
1018 ac_init_version=false
1019 ac_unrecognized_opts=
1020 ac_unrecognized_sep=
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1030 program_transform_name=s,x,x,
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1068 # If the previous option needs an argument, assign it.
1069 if test -n "$ac_prev"; then
1070 eval $ac_prev=\$ac_option
1076 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1080 # Accept the important Cygnus configure options, so we can diagnose typos.
1082 case $ac_dashdash$ac_option in
1086 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089 bindir=$ac_optarg ;;
1091 -build | --build | --buil | --bui | --bu)
1092 ac_prev=build_alias ;;
1093 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094 build_alias=$ac_optarg ;;
1096 -cache-file | --cache-file | --cache-fil | --cache-fi \
1097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098 ac_prev=cache_file ;;
1099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101 cache_file=$ac_optarg ;;
1103 --config-cache | -C)
1104 cache_file=config.cache ;;
1106 -datadir | --datadir | --datadi | --datad)
1108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109 datadir=$ac_optarg ;;
1111 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112 | --dataroo | --dataro | --datar)
1113 ac_prev=datarootdir ;;
1114 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116 datarootdir=$ac_optarg ;;
1118 -disable-* | --disable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval enable_$ac_useropt=no ;;
1134 -docdir | --docdir | --docdi | --doc | --do)
1136 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1137 docdir=$ac_optarg ;;
1139 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1142 dvidir=$ac_optarg ;;
1144 -enable-* | --enable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval enable_$ac_useropt=\$ac_optarg ;;
1160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1162 | --exec | --exe | --ex)
1163 ac_prev=exec_prefix ;;
1164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1166 | --exec=* | --exe=* | --ex=*)
1167 exec_prefix=$ac_optarg ;;
1169 -gas | --gas | --ga | --g)
1170 # Obsolete; use --with-gas.
1173 -help | --help | --hel | --he | -h)
1174 ac_init_help=long ;;
1175 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1176 ac_init_help=recursive ;;
1177 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1178 ac_init_help=short ;;
1180 -host | --host | --hos | --ho)
1181 ac_prev=host_alias ;;
1182 -host=* | --host=* | --hos=* | --ho=*)
1183 host_alias=$ac_optarg ;;
1185 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189 htmldir=$ac_optarg ;;
1191 -includedir | --includedir | --includedi | --included | --include \
1192 | --includ | --inclu | --incl | --inc)
1193 ac_prev=includedir ;;
1194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1195 | --includ=* | --inclu=* | --incl=* | --inc=*)
1196 includedir=$ac_optarg ;;
1198 -infodir | --infodir | --infodi | --infod | --info | --inf)
1200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1201 infodir=$ac_optarg ;;
1203 -libdir | --libdir | --libdi | --libd)
1205 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1206 libdir=$ac_optarg ;;
1208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1209 | --libexe | --libex | --libe)
1210 ac_prev=libexecdir ;;
1211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1212 | --libexe=* | --libex=* | --libe=*)
1213 libexecdir=$ac_optarg ;;
1215 -localedir | --localedir | --localedi | --localed | --locale)
1216 ac_prev=localedir ;;
1217 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1218 localedir=$ac_optarg ;;
1220 -localstatedir | --localstatedir | --localstatedi | --localstated \
1221 | --localstate | --localstat | --localsta | --localst | --locals)
1222 ac_prev=localstatedir ;;
1223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1224 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1225 localstatedir=$ac_optarg ;;
1227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1230 mandir=$ac_optarg ;;
1232 -nfp | --nfp | --nf)
1233 # Obsolete; use --without-fp.
1236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1237 | --no-cr | --no-c | -n)
1240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1246 | --oldin | --oldi | --old | --ol | --o)
1247 ac_prev=oldincludedir ;;
1248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1251 oldincludedir=$ac_optarg ;;
1253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1256 prefix=$ac_optarg ;;
1258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1259 | --program-pre | --program-pr | --program-p)
1260 ac_prev=program_prefix ;;
1261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1263 program_prefix=$ac_optarg ;;
1265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1266 | --program-suf | --program-su | --program-s)
1267 ac_prev=program_suffix ;;
1268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1270 program_suffix=$ac_optarg ;;
1272 -program-transform-name | --program-transform-name \
1273 | --program-transform-nam | --program-transform-na \
1274 | --program-transform-n | --program-transform- \
1275 | --program-transform | --program-transfor \
1276 | --program-transfo | --program-transf \
1277 | --program-trans | --program-tran \
1278 | --progr-tra | --program-tr | --program-t)
1279 ac_prev=program_transform_name ;;
1280 -program-transform-name=* | --program-transform-name=* \
1281 | --program-transform-nam=* | --program-transform-na=* \
1282 | --program-transform-n=* | --program-transform-=* \
1283 | --program-transform=* | --program-transfor=* \
1284 | --program-transfo=* | --program-transf=* \
1285 | --program-trans=* | --program-tran=* \
1286 | --progr-tra=* | --program-tr=* | --program-t=*)
1287 program_transform_name=$ac_optarg ;;
1289 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1292 pdfdir=$ac_optarg ;;
1294 -psdir | --psdir | --psdi | --psd | --ps)
1296 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300 | -silent | --silent | --silen | --sile | --sil)
1303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307 sbindir=$ac_optarg ;;
1309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311 | --sharedst | --shareds | --shared | --share | --shar \
1313 ac_prev=sharedstatedir ;;
1314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318 sharedstatedir=$ac_optarg ;;
1320 -site | --site | --sit)
1322 -site=* | --site=* | --sit=*)
1325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328 srcdir=$ac_optarg ;;
1330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331 | --syscon | --sysco | --sysc | --sys | --sy)
1332 ac_prev=sysconfdir ;;
1333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335 sysconfdir=$ac_optarg ;;
1337 -target | --target | --targe | --targ | --tar | --ta | --t)
1338 ac_prev=target_alias ;;
1339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340 target_alias=$ac_optarg ;;
1342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1345 -version | --version | --versio | --versi | --vers | -V)
1346 ac_init_version=: ;;
1349 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error "invalid package name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1362 eval with_$ac_useropt=\$ac_optarg ;;
1364 -without-* | --without-*)
1365 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error "invalid package name: $ac_useropt"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1378 eval with_$ac_useropt=no ;;
1381 # Obsolete; use --with-x.
1384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385 | --x-incl | --x-inc | --x-in | --x-i)
1386 ac_prev=x_includes ;;
1387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389 x_includes=$ac_optarg ;;
1391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393 ac_prev=x_libraries ;;
1394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396 x_libraries=$ac_optarg ;;
1398 -*) as_fn_error "unrecognized option: \`$ac_option'
1399 Try \`$0 --help' for more information."
1403 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404 # Reject names that are not valid shell variable names.
1405 case $ac_envvar in #(
1406 '' | [0-9]* | *[!_$as_cr_alnum]* )
1407 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1409 eval $ac_envvar=\$ac_optarg
1410 export $ac_envvar ;;
1413 # FIXME: should be removed in autoconf 3.0.
1414 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1415 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1417 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1423 if test -n "$ac_prev"; then
1424 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425 as_fn_error "missing argument to $ac_option"
1428 if test -n "$ac_unrecognized_opts"; then
1429 case $enable_option_checking in
1431 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436 # Check all directory arguments for consistency.
1437 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438 datadir sysconfdir sharedstatedir localstatedir includedir \
1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440 libdir localedir mandir
1442 eval ac_val=\$$ac_var
1443 # Remove trailing slashes.
1446 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447 eval $ac_var=\$ac_val;;
1449 # Be sure to have absolute directory names.
1451 [\\/$]* | ?:[\\/]* ) continue;;
1452 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1462 target=$target_alias
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466 if test "x$build_alias" = x; then
1467 cross_compiling=maybe
1468 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469 If a cross compiler is detected then cross compile mode will be used." >&2
1470 elif test "x$build_alias" != "x$host_alias"; then
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478 test "$silent" = yes && exec 6>/dev/null
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484 as_fn_error "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 as_fn_error "pwd does not report name of working directory"
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491 ac_srcdir_defaulted=yes
1492 # Try the directory containing this script, then the parent directory.
1493 ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495 X"$as_myself" : 'X\(//\)[^/]' \| \
1496 X"$as_myself" : 'X\(//\)$' \| \
1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1521 ac_srcdir_defaulted=no
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 # Report the --help message.
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1555 \`configure' configures sudo 1.7.4p4 to adapt to many kinds of systems.
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1562 Defaults for the options are specified in brackets.
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1586 For better control, use the options below.
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of sudo 1.7.4p4:";;
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --disable-authentication
1629 Do not require authentication by default
1630 --disable-root-mailer Don't run the mailer as root, run as the user
1631 --disable-setreuid Don't try to use the setreuid() function
1632 --disable-setresuid Don't try to use the setresuid() function
1633 --disable-shadow Never use shadow passwords
1634 --disable-root-sudo Don't allow root to run sudo
1635 --enable-log-host Log the hostname in the log file
1636 --enable-noargs-shell If sudo is given no arguments run a shell
1637 --enable-shell-sets-home
1638 Set $HOME to target user in shell mode
1639 --disable-path-info Print 'command not allowed' not 'command not found'
1640 --enable-env-debug Whether to enable environment debugging.
1641 --enable-warnings Whether to enable compiler warnings
1642 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1643 --enable-gss-krb5-ccache-name
1644 Use GSS-API to set the Kerberos V cred cache name
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --disable-sia Disable SIA on Digital UNIX
1651 --disable-pam-session Disable PAM session support
1652 --enable-zlib[=PATH] Whether to enable or disable zlib
1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1657 --with-otp-only deprecated
1658 --with-alertmail deprecated
1659 --with-devel add development options
1660 --with-CC C compiler to use
1661 --with-rpath pass -R flag in addition to -L for lib paths
1662 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1663 --with-bsm-audit enable BSM audit support
1664 --with-linux-audit enable Linux audit support
1665 --with-incpath additional places to look for include files
1666 --with-libpath additional places to look for libraries
1667 --with-libraries additional libraries to link with
1668 --with-efence link with -lefence for malloc() debugging
1669 --with-csops add CSOps standard options
1670 --without-passwd don't use passwd/shadow file for authentication
1671 --with-skey=DIR enable S/Key support
1672 --with-opie=DIR enable OPIE support
1673 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1674 --with-SecurID[=DIR] enable SecurID support
1675 --with-fwtk[=DIR] enable FWTK AuthSRV support
1676 --with-kerb4[=DIR] enable Kerberos IV support
1677 --with-kerb5[=DIR] enable Kerberos V support
1678 --with-aixauth enable AIX general authentication support
1679 --with-pam enable PAM support
1680 --with-AFS enable AFS support
1681 --with-DCE enable DCE support
1682 --with-logincap enable BSD login class support
1683 --with-bsdauth enable BSD authentication support
1684 --with-project enable Solaris project support
1685 --without-lecture don't print lecture for first-time sudoer
1686 --with-logging log via syslog, file, or both
1687 --with-logfac syslog facility to log with (default is "auth")
1688 --with-goodpri syslog priority for commands (def is "notice")
1689 --with-badpri syslog priority for failures (def is "alert")
1690 --with-logpath path to the sudo log file
1691 --with-loglen maximum length of a log file line (default is 80)
1692 --with-ignore-dot ignore '.' in the PATH
1693 --without-mail-if-no-user
1694 do not send mail if user not in sudoers
1695 --with-mail-if-no-host send mail if user in sudoers but not for this host
1696 --with-mail-if-noperms send mail if user not allowed to run command
1697 --with-mailto who should get sudo mail (default is "root")
1698 --with-mailsubject subject of sudo mail
1699 --with-passprompt default password prompt
1700 --with-badpass-message message the user sees when the password is wrong
1701 --with-fqdn expect fully qualified hosts in sudoers
1702 --with-timedir path to the sudo timestamp dir
1703 --with-iologdir=DIR directory to store sudo I/O log files in
1704 --with-sendmail set path to sendmail
1705 --without-sendmail do not send mail at all
1706 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1707 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1708 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1709 --with-umask umask with which the prog should run (default is
1711 --without-umask Preserves the umask of the user invoking sudo.
1712 --with-runas-default User to run commands as (default is "root")
1713 --with-exempt=group no passwd needed for users in this group
1714 --with-editor=path Default editor for visudo (defaults to vi)
1715 --with-env-editor Use the environment variable EDITOR for visudo
1716 --with-passwd-tries number of tries to enter password (default is 3)
1717 --with-timeout minutes before sudo asks for passwd again (def is 5
1719 --with-password-timeout passwd prompt timeout in minutes (default is 5
1721 --with-tty-tickets use a different ticket file for each tty
1722 --with-insults insult the user for entering an incorrect password
1723 --with-all-insults include all the sudo insult sets
1724 --with-classic-insults include the insults from the "classic" sudo
1725 --with-csops-insults include CSOps insults
1726 --with-hal-insults include 2001-like insults
1727 --with-goons-insults include the insults from the "Goon Show"
1728 --with-nsswitch[=PATH] path to nsswitch.conf
1729 --with-ldap[=DIR] enable LDAP support
1730 --with-ldap-conf-file path to LDAP configuration file
1731 --with-ldap-secret-file path to LDAP secret password file
1732 --with-pc-insults replace politically incorrect insults with less
1734 --with-secure-path override the user's path with a built-in one
1735 --without-interfaces don't try to read the ip addr of ether interfaces
1736 --with-stow properly handle GNU stow packaging
1737 --with-askpass=PATH Fully qualified pathname of askpass helper
1738 --with-libvas=NAME Name of the libvas shared library
1740 --with-libvas-rpath=PATH
1741 Path to look for libvas in [default=/opt/quest/lib]
1742 --with-selinux enable SELinux support
1743 --with-pic try to use only PIC/non-PIC objects [default=use
1745 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1746 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1747 --with-netsvc[=PATH] path to netsvc.conf
1748 --with-pam-login enable specific PAM session for sudo -i
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1759 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1760 the first program found out of: `bison -y', `byacc', `yacc'.
1761 YFLAGS The list of arguments that will be passed by default to $YACC.
1762 This script will default YFLAGS to the empty string to avoid a
1763 default value of `-d' given by some make applications.
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to <http://www.sudo.ws/bugs/>.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1798 .) # We are building in place.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1831 sudo configure 1.7.4p4
1832 generated by GNU Autoconf 2.65
1834 Copyright (C) 2009 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 $as_test_x conftest$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } >/dev/null && {
1951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 $as_echo_n "(cached) " >&6
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1983 if ac_fn_c_try_compile "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 } # ac_fn_c_check_header_compile
1997 # ac_fn_c_try_run LINENO
1998 # ----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2000 # that executables *can* be run.
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_link"
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>&5
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2015 { { case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_try") 2>&5
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; }; }; then :
2027 $as_echo "$as_me: program exited with status $ac_status" >&5
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2031 ac_retval=$ac_status
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 as_fn_set_status $ac_retval
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2062 # include <limits.h>
2064 # include <assert.h>
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2091 if ac_fn_c_try_link "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_func
2106 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2111 ac_fn_c_check_header_mongrel ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 $as_echo_n "(cached) " >&6
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2124 # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2135 ac_header_compiler=no
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139 $as_echo "$ac_header_compiler" >&6; }
2141 # Is the header present?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143 $as_echo_n "checking $2 presence... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 if ac_fn_c_try_cpp "$LINENO"; then :
2149 ac_header_preproc=yes
2151 ac_header_preproc=no
2153 rm -f conftest.err conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155 $as_echo "$ac_header_preproc" >&6; }
2157 # So? What about this header?
2158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ## --------------------------------------- ##
2178 ## Report this to http://www.sudo.ws/bugs/ ##
2179 ## --------------------------------------- ##
2181 ) | sed "s/^/$as_me: WARNING: /" >&2
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 $as_echo_n "(cached) " >&6
2189 eval "$3=\$ac_header_compiler"
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 } # ac_fn_c_check_header_mongrel
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_check_type
2253 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254 # --------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2258 ac_fn_c_compute_int ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2276 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_hi=$ac_mid; break
2295 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2296 if test $ac_lo -le $ac_mid; then
2300 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2311 static int test_array [1 - 2 * !(($2) < 0)];
2318 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2327 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_lo=$ac_mid; break
2337 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2338 if test $ac_mid -le $ac_hi; then
2342 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 # Binary search between lo and hi bounds.
2353 while test "x$ac_lo" != "x$ac_hi"; do
2354 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368 if ac_fn_c_try_compile "$LINENO"; then :
2371 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2383 static long int longval () { return $2; }
2384 static unsigned long int ulongval () { return $2; }
2391 FILE *f = fopen ("conftest.val", "w");
2396 long int i = longval ();
2399 fprintf (f, "%ld", i);
2403 unsigned long int i = ulongval ();
2406 fprintf (f, "%lu", i);
2408 /* Do not output a trailing newline, as this causes \r\n confusion
2409 on some platforms. */
2410 return ferror (f) || fclose (f) != 0;
2416 if ac_fn_c_try_run "$LINENO"; then :
2417 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2422 conftest.$ac_objext conftest.beam conftest.$ac_ext
2426 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2427 as_fn_set_status $ac_retval
2429 } # ac_fn_c_compute_int
2431 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2432 # ----------------------------------------------------
2433 # Tries to find if the field MEMBER exists in type AGGR, after including
2434 # INCLUDES, setting cache variable VAR accordingly.
2435 ac_fn_c_check_member ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2439 $as_echo_n "checking for $2.$3... " >&6; }
2440 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2456 if ac_fn_c_try_compile "$LINENO"; then :
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2466 if (sizeof ac_aggr.$3)
2472 if ac_fn_c_try_compile "$LINENO"; then :
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_c_check_member
2488 # ac_fn_c_check_decl LINENO SYMBOL VAR
2489 # ------------------------------------
2490 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2491 ac_fn_c_check_decl ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2495 $as_echo_n "checking whether $2 is declared... " >&6; }
2496 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2513 if ac_fn_c_try_compile "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525 } # ac_fn_c_check_decl
2526 cat >config.log <<_ACEOF
2527 This file contains any messages produced by compilers while
2528 running configure, to aid debugging if configure makes a mistake.
2530 It was created by sudo $as_me 1.7.4p4, which was
2531 generated by GNU Autoconf 2.65. Invocation command line was
2543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 $as_echo "PATH: $as_dir"
2583 # Keep a trace of the command line.
2584 # Strip out --no-create and --no-recursion so they do not pile up.
2585 # Strip out --silent because we don't want to record it for future runs.
2586 # Also quote any args containing shell meta-characters.
2587 # Make two passes to allow for proper duplicate-argument suppression.
2591 ac_must_keep_next=false
2597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2599 | -silent | --silent | --silen | --sile | --sil)
2602 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2607 as_fn_append ac_configure_args1 " '$ac_arg'"
2608 if test $ac_must_keep_next = true; then
2609 ac_must_keep_next=false # Got value, back to normal.
2612 *=* | --config-cache | -C | -disable-* | --disable-* \
2613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2615 | -with-* | --with-* | -without-* | --without-* | --x)
2616 case "$ac_configure_args0 " in
2617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2620 -* ) ac_must_keep_next=true ;;
2623 as_fn_append ac_configure_args " '$ac_arg'"
2628 { ac_configure_args0=; unset ac_configure_args0;}
2629 { ac_configure_args1=; unset ac_configure_args1;}
2631 # When interrupted or exit'd, cleanup temporary files, and complete
2632 # config.log. We remove comments because anyway the quotes in there
2633 # would cause problems or look ugly.
2634 # WARNING: Use '\'' to represent an apostrophe within the trap.
2635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2636 trap 'exit_status=$?
2637 # Save into config.log some information that might help in debugging.
2642 ## ---------------- ##
2643 ## Cache variables. ##
2644 ## ---------------- ##
2647 # The following way of writing the cache mishandles newlines in values,
2649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2650 eval ac_val=\$$ac_var
2654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2658 _ | IFS | as_nl) ;; #(
2659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2660 *) { eval $ac_var=; unset $ac_var;} ;;
2665 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2666 *${as_nl}ac_space=\ *)
2668 "s/'\''/'\''\\\\'\'''\''/g;
2669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2680 ## ----------------- ##
2681 ## Output variables. ##
2682 ## ----------------- ##
2685 for ac_var in $ac_subst_vars
2687 eval ac_val=\$$ac_var
2689 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2691 $as_echo "$ac_var='\''$ac_val'\''"
2695 if test -n "$ac_subst_files"; then
2697 ## ------------------- ##
2698 ## File substitutions. ##
2699 ## ------------------- ##
2702 for ac_var in $ac_subst_files
2704 eval ac_val=\$$ac_var
2706 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2708 $as_echo "$ac_var='\''$ac_val'\''"
2713 if test -s confdefs.h; then
2723 test "$ac_signal" != 0 &&
2724 $as_echo "$as_me: caught signal $ac_signal"
2725 $as_echo "$as_me: exit $exit_status"
2727 rm -f core *.core core.conftest.* &&
2728 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2731 for ac_signal in 1 2 13 15; do
2732 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2736 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2737 rm -f -r conftest* confdefs.h
2739 $as_echo "/* confdefs.h */" > confdefs.h
2741 # Predefined preprocessor variables.
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_NAME "$PACKAGE_NAME"
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2751 cat >>confdefs.h <<_ACEOF
2752 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE_STRING "$PACKAGE_STRING"
2759 cat >>confdefs.h <<_ACEOF
2760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2763 cat >>confdefs.h <<_ACEOF
2764 #define PACKAGE_URL "$PACKAGE_URL"
2768 # Let the site file select an alternate cache file if it wants to.
2769 # Prefer an explicitly selected file to automatically selected ones.
2772 if test -n "$CONFIG_SITE"; then
2773 ac_site_file1=$CONFIG_SITE
2774 elif test "x$prefix" != xNONE; then
2775 ac_site_file1=$prefix/share/config.site
2776 ac_site_file2=$prefix/etc/config.site
2778 ac_site_file1=$ac_default_prefix/share/config.site
2779 ac_site_file2=$ac_default_prefix/etc/config.site
2781 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2783 test "x$ac_site_file" = xNONE && continue
2784 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2786 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2787 sed 's/^/| /' "$ac_site_file" >&5
2792 if test -r "$cache_file"; then
2793 # Some versions of bash will fail to source /dev/null (special files
2794 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2795 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2797 $as_echo "$as_me: loading cache $cache_file" >&6;}
2799 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2800 *) . "./$cache_file";;
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2805 $as_echo "$as_me: creating cache $cache_file" >&6;}
2809 # Check that the precious variables saved in the cache have kept the same
2811 ac_cache_corrupted=false
2812 for ac_var in $ac_precious_vars; do
2813 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2814 eval ac_new_set=\$ac_env_${ac_var}_set
2815 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2816 eval ac_new_val=\$ac_env_${ac_var}_value
2817 case $ac_old_set,$ac_new_set in
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2820 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2821 ac_cache_corrupted=: ;;
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2824 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2825 ac_cache_corrupted=: ;;
2828 if test "x$ac_old_val" != "x$ac_new_val"; then
2829 # differences in whitespace do not lead to failure.
2830 ac_old_val_w=`echo x $ac_old_val`
2831 ac_new_val_w=`echo x $ac_new_val`
2832 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2834 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2835 ac_cache_corrupted=:
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2838 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2839 eval $ac_var=\$ac_old_val
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2842 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2844 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2847 # Pass precious variables to config.status.
2848 if test "$ac_new_set" = set; then
2850 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2851 *) ac_arg=$ac_var=$ac_new_val ;;
2853 case " $ac_configure_args " in
2854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2855 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2859 if $ac_cache_corrupted; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2863 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2864 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2866 ## -------------------- ##
2867 ## Main body of script. ##
2868 ## -------------------- ##
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 ac_config_headers="$ac_config_headers config.h pathnames.h"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2880 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2955 # Begin initial values for man page substitution
2957 timedir=/var/adm/sudo
2961 passprompt="Password:"
2973 mailsub="*** SECURITY information for %h ***"
2974 badpass_message="Sorry, try again."
2984 ldap_conf=/etc/ldap.conf
2985 ldap_secret=/etc/ldap.secret
2986 netsvc_conf=/etc/netsvc.conf
2987 noexec_file=/usr/local/libexec/sudo_noexec.so
2988 nsswitch_conf=/etc/nsswitch.conf
2989 secure_path="not set"
2991 # End initial values for man page substitution
2998 : ${SUDOERS_MODE='0440'}
2999 : ${SUDOERS_UID='0'}
3000 : ${SUDOERS_GID='0'}
3018 shadow_libs_optional=
3024 # Check whether --with-otp-only was given.
3025 if test "${with_otp_only+set}" = set; then :
3026 withval=$with_otp_only; case $with_otp_only in
3027 yes) with_passwd="no"
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3029 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3036 # Check whether --with-alertmail was given.
3037 if test "${with_alertmail+set}" = set; then :
3038 withval=$with_alertmail; case $with_alertmail in
3039 *) with_mailto="$with_alertmail"
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3041 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3049 # Check whether --with-devel was given.
3050 if test "${with_devel+set}" = set; then :
3051 withval=$with_devel; case $with_devel in
3052 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3053 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3054 PROGS="${PROGS} testsudoers"
3055 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3061 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3066 if test X"$with_devel" != X"yes"; then
3071 # Check whether --with-CC was given.
3072 if test "${with_CC+set}" = set; then :
3073 withval=$with_CC; case $with_CC in
3074 yes) as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
3076 no) as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
3085 # Check whether --with-rpath was given.
3086 if test "${with_rpath+set}" = set; then :
3087 withval=$with_rpath; case $with_rpath in
3089 *) as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3096 # Check whether --with-blibpath was given.
3097 if test "${with_blibpath+set}" = set; then :
3098 withval=$with_blibpath; case $with_blibpath in
3100 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3101 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3108 # Check whether --with-bsm-audit was given.
3109 if test "${with_bsm_audit+set}" = set; then :
3110 withval=$with_bsm_audit; case $with_bsm_audit in
3111 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3113 SUDO_LIBS="${SUDO_LIBS} -lbsm"
3114 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
3117 *) as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3167 if test -z "$ac_cv_prog_CC"; then
3169 # Extract the first word of "gcc", so it can be a program name with args.
3170 set dummy gcc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3176 if test -n "$ac_ct_CC"; then
3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186 ac_cv_prog_ac_ct_CC="gcc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3205 if test "x$ac_ct_CC" = x; then
3208 case $cross_compiling:$ac_tool_warned in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3220 if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3223 set dummy ${ac_tool_prefix}cc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_CC+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 ac_cv_prog_CC="${ac_tool_prefix}cc"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 if test -n "$CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3261 if test -z "$CC"; then
3262 # Extract the first word of "cc", so it can be a program name with args.
3263 set dummy cc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if test "${ac_cv_prog_CC+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3281 ac_prog_rejected=yes
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test $ac_prog_rejected = yes; then
3293 # We found a bogon in the path, so make sure we never use it.
3294 set dummy $ac_cv_prog_CC
3296 if test $# != 0; then
3297 # We chose a different compiler from the bogus one.
3298 # However, it has the same basename, so the bogon will be chosen
3299 # first if we set CC to just the basename; use the full file name.
3301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 for ac_prog in cl.exe
3321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3358 test -n "$CC" && break
3361 if test -z "$CC"; then
3363 for ac_prog in cl.exe
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_ac_ct_CC="$ac_prog"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3402 test -n "$ac_ct_CC" && break
3405 if test "x$ac_ct_CC" = x; then
3408 case $cross_compiling:$ac_tool_warned in
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3421 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." "$LINENO" 5; }
3426 # Provide some information about the compiler.
3427 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3430 for ac_option in --version -v -V -qversion; do
3431 { { ac_try="$ac_compiler $ac_option >&5"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3440 if test -s conftest.err; then
3442 ... rest of stderr output deleted ...
3443 10q' conftest.err >conftest.er1
3444 cat conftest.er1 >&5
3446 rm -f conftest.er1 conftest.err
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3462 ac_clean_files_save=$ac_clean_files
3463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3464 # Try to create an executable without -o first, disregard a.out.
3465 # It will help us diagnose broken compilers, and finding out an intuition
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3468 $as_echo_n "checking whether the C compiler works... " >&6; }
3469 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3471 # The possible output files:
3472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3475 for ac_file in $ac_files
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3484 if { { ac_try="$ac_link_default"
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_link_default") 2>&5
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3497 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3498 # so that the user can short-circuit this test for compilers unknown to
3500 for ac_file in $ac_files ''
3502 test -f "$ac_file" || continue
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3507 # We found the default executable, but exeext='' is most
3511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 # We set ac_cv_exeext here because the later test for it is not
3516 # safe: cross compilers may not add the suffix if given an `-o'
3517 # argument, so we may need to know it at that point already.
3518 # Even if this section looks crufty: it has the advantage of
3525 test "$ac_cv_exeext" = no && ac_cv_exeext=
3530 if test -z "$ac_file"; then :
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 { as_fn_set_status 77
3539 as_fn_error "C compiler cannot create executables
3540 See \`config.log' for more details." "$LINENO" 5; }; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3546 $as_echo_n "checking for C compiler default output file name... " >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3548 $as_echo "$ac_file" >&6; }
3549 ac_exeext=$ac_cv_exeext
3551 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3552 ac_clean_files=$ac_clean_files_save
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3554 $as_echo_n "checking for suffix of executables... " >&6; }
3555 if { { ac_try="$ac_link"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3568 # work properly (i.e., refer to `conftest.exe'), while it won't with
3570 for ac_file in conftest.exe conftest conftest.*; do
3571 test -f "$ac_file" || continue
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error "cannot compute suffix of executables: cannot compile and link
3583 See \`config.log' for more details." "$LINENO" 5; }
3585 rm -f conftest conftest$ac_cv_exeext
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3587 $as_echo "$ac_cv_exeext" >&6; }
3589 rm -f conftest.$ac_ext
3590 EXEEXT=$ac_cv_exeext
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3598 FILE *f = fopen ("conftest.out", "w");
3599 return ferror (f) || fclose (f) != 0;
3605 ac_clean_files="$ac_clean_files conftest.out"
3606 # Check that the compiler produces executables we can run. If not, either
3607 # the compiler is broken, or we cross compile.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609 $as_echo_n "checking whether we are cross compiling... " >&6; }
3610 if test "$cross_compiling" != yes; then
3611 { { ac_try="$ac_link"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 if { ac_try='./conftest$ac_cv_exeext'
3623 { { case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_try") 2>&5
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; }; then
3635 if test "$cross_compiling" = maybe; then
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error "cannot run C compiled programs.
3641 If you meant to cross compile, use \`--host'.
3642 See \`config.log' for more details." "$LINENO" 5; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647 $as_echo "$cross_compiling" >&6; }
3649 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3650 ac_clean_files=$ac_clean_files_save
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3652 $as_echo_n "checking for suffix of object files... " >&6; }
3653 if test "${ac_cv_objext+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3667 rm -f conftest.o conftest.obj
3668 if { { ac_try="$ac_compile"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compile") 2>&5
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 for ac_file in conftest.o conftest.obj conftest.*; do
3680 test -f "$ac_file" || continue;
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of object files: cannot compile
3694 See \`config.log' for more details." "$LINENO" 5; }
3696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3699 $as_echo "$ac_cv_objext" >&6; }
3700 OBJEXT=$ac_cv_objext
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3704 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3721 if ac_fn_c_try_compile "$LINENO"; then :
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3759 if ac_fn_c_try_compile "$LINENO"; then :
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3774 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_c_werror_flag=$ac_save_c_werror_flag
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3801 $as_echo "$ac_cv_prog_cc_g" >&6; }
3802 if test "$ac_test_CFLAGS" = set; then
3803 CFLAGS=$ac_save_CFLAGS
3804 elif test $ac_cv_prog_cc_g = yes; then
3805 if test "$GCC" = yes; then
3811 if test "$GCC" = yes; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3819 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3822 ac_cv_prog_cc_c89=no
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3828 #include <sys/types.h>
3829 #include <sys/stat.h>
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3844 s = g (p, va_arg (v,int));
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3850 function prototypes and stuff, but not '\xHH' hex character constants.
3851 These don't provoke an error unfortunately, instead are silently treated
3852 as 'x'. The following induces an error, until -std is added to get
3853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3854 array size at least. It's necessary to write '\x00'==0 to get something
3855 that's true only with -std. */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859 inside strings and character constants. */
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c89=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887 rm -f conftest.$ac_ext
3892 case "x$ac_cv_prog_cc_c89" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c89"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916 # Check whether --with-linux-audit was given.
3917 if test "${with_linux_audit+set}" = set; then :
3918 withval=$with_linux_audit; case $with_linux_audit in
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <libaudit.h>
3926 int i = AUDIT_USER_CMD; (void)i;
3931 if ac_fn_c_try_compile "$LINENO"; then :
3933 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3935 SUDO_LIBS="${SUDO_LIBS} -laudit"
3936 SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3940 as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 *) as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3953 # Check whether --with-incpath was given.
3954 if test "${with_incpath+set}" = set; then :
3955 withval=$with_incpath; case $with_incpath in
3956 yes) as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3958 no) as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3961 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3962 for i in ${with_incpath}; do
3963 CPPFLAGS="${CPPFLAGS} -I${i}"
3971 # Check whether --with-libpath was given.
3972 if test "${with_libpath+set}" = set; then :
3973 withval=$with_libpath; case $with_libpath in
3974 yes) as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3976 no) as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3979 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3986 # Check whether --with-libraries was given.
3987 if test "${with_libraries+set}" = set; then :
3988 withval=$with_libraries; case $with_libraries in
3989 yes) as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3991 no) as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3994 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4001 # Check whether --with-efence was given.
4002 if test "${with_efence+set}" = set; then :
4003 withval=$with_efence; case $with_efence in
4004 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4005 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4006 LIBS="${LIBS} -lefence"
4007 if test -f /usr/local/lib/libefence.a; then
4008 with_libpath="${with_libpath} /usr/local/lib"
4012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4013 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4020 # Check whether --with-csops was given.
4021 if test "${with_csops+set}" = set; then :
4022 withval=$with_csops; case $with_csops in
4023 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4024 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4028 with_classic_insults=yes
4029 with_csops_insults=yes
4032 : ${mansectform='5'}
4035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4036 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4043 # Check whether --with-passwd was given.
4044 if test "${with_passwd+set}" = set; then :
4045 withval=$with_passwd; case $with_passwd in
4046 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4047 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4049 $as_echo "$with_passwd" >&6; }
4051 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4053 *) as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4060 # Check whether --with-skey was given.
4061 if test "${with_skey+set}" = set; then :
4062 withval=$with_skey; case $with_skey in
4065 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4068 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070 $as_echo "yes" >&6; }
4071 AUTH_REG="$AUTH_REG S/Key"
4078 # Check whether --with-opie was given.
4079 if test "${with_opie+set}" = set; then :
4080 withval=$with_opie; case $with_opie in
4083 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4086 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 $as_echo "yes" >&6; }
4089 AUTH_REG="$AUTH_REG NRL_OPIE"
4096 # Check whether --with-long-otp-prompt was given.
4097 if test "${with_long_otp_prompt+set}" = set; then :
4098 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4099 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4102 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4104 $as_echo "yes" >&6; }
4107 no) long_otp_prompt=off
4109 *) as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4116 # Check whether --with-SecurID was given.
4117 if test "${with_SecurID+set}" = set; then :
4118 withval=$with_SecurID; case $with_SecurID in
4119 no) with_SecurID="";;
4120 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4123 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 $as_echo "yes" >&6; }
4126 AUTH_EXCL="$AUTH_EXCL SecurID"
4133 # Check whether --with-fwtk was given.
4134 if test "${with_fwtk+set}" = set; then :
4135 withval=$with_fwtk; case $with_fwtk in
4137 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4140 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142 $as_echo "yes" >&6; }
4143 AUTH_EXCL="$AUTH_EXCL FWTK"
4150 # Check whether --with-kerb4 was given.
4151 if test "${with_kerb4+set}" = set; then :
4152 withval=$with_kerb4; case $with_kerb4 in
4154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4155 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4158 AUTH_REG="$AUTH_REG kerb4"
4165 # Check whether --with-kerb5 was given.
4166 if test "${with_kerb5+set}" = set; then :
4167 withval=$with_kerb5; case $with_kerb5 in
4169 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4170 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4173 AUTH_REG="$AUTH_REG kerb5"
4180 # Check whether --with-aixauth was given.
4181 if test "${with_aixauth+set}" = set; then :
4182 withval=$with_aixauth; case $with_aixauth in
4183 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4185 *) as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4192 # Check whether --with-pam was given.
4193 if test "${with_pam+set}" = set; then :
4194 withval=$with_pam; case $with_pam in
4195 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4197 *) as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4204 # Check whether --with-AFS was given.
4205 if test "${with_AFS+set}" = set; then :
4206 withval=$with_AFS; case $with_AFS in
4207 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4210 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4213 AUTH_REG="$AUTH_REG AFS"
4216 *) as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4223 # Check whether --with-DCE was given.
4224 if test "${with_DCE+set}" = set; then :
4225 withval=$with_DCE; case $with_DCE in
4226 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4229 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232 AUTH_REG="$AUTH_REG DCE"
4235 *) as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4242 # Check whether --with-logincap was given.
4243 if test "${with_logincap+set}" = set; then :
4244 withval=$with_logincap; case $with_logincap in
4246 *) as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4253 # Check whether --with-bsdauth was given.
4254 if test "${with_bsdauth+set}" = set; then :
4255 withval=$with_bsdauth; case $with_bsdauth in
4256 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4258 *) as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4265 # Check whether --with-project was given.
4266 if test "${with_project+set}" = set; then :
4267 withval=$with_project; case $with_project in
4270 *) as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4277 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4279 # Check whether --with-lecture was given.
4280 if test "${with_lecture+set}" = set; then :
4281 withval=$with_lecture; case $with_lecture in
4282 yes|short|always) lecture=once
4284 no|none|never) lecture=never
4286 *) as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4291 if test "$lecture" = "once"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4295 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4302 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4304 # Check whether --with-logging was given.
4305 if test "${with_logging+set}" = set; then :
4306 withval=$with_logging; case $with_logging in
4307 yes) as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4309 no) as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4311 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4314 $as_echo "syslog" >&6; }
4316 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4319 $as_echo "file" >&6; }
4321 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4324 $as_echo "both" >&6; }
4326 *) as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4330 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4332 $as_echo "syslog" >&6; }
4337 # Check whether --with-logfac was given.
4338 if test "${with_logfac+set}" = set; then :
4339 withval=$with_logfac; case $with_logfac in
4340 yes) as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4342 no) as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4344 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4346 *) as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4353 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4355 # Check whether --with-goodpri was given.
4356 if test "${with_goodpri+set}" = set; then :
4357 withval=$with_goodpri; case $with_goodpri in
4358 yes) as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4360 no) as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4362 alert|crit|debug|emerg|err|info|notice|warning)
4363 goodpri=$with_goodpri
4365 *) as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4371 cat >>confdefs.h <<_ACEOF
4372 #define PRI_SUCCESS "$goodpri"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4376 $as_echo "$goodpri" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4379 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4381 # Check whether --with-badpri was given.
4382 if test "${with_badpri+set}" = set; then :
4383 withval=$with_badpri; case $with_badpri in
4384 yes) as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4386 no) as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4388 alert|crit|debug|emerg|err|info|notice|warning)
4391 *) as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4397 cat >>confdefs.h <<_ACEOF
4398 #define PRI_FAILURE "$badpri"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4402 $as_echo "$badpri" >&6; }
4405 # Check whether --with-logpath was given.
4406 if test "${with_logpath+set}" = set; then :
4407 withval=$with_logpath; case $with_logpath in
4408 yes) as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4410 no) as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4417 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4419 # Check whether --with-loglen was given.
4420 if test "${with_loglen+set}" = set; then :
4421 withval=$with_loglen; case $with_loglen in
4422 yes) as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4424 no) as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4426 [0-9]*) loglen=$with_loglen
4428 *) as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4434 cat >>confdefs.h <<_ACEOF
4435 #define MAXLOGFILELEN $loglen
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4439 $as_echo "$loglen" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4442 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4444 # Check whether --with-ignore-dot was given.
4445 if test "${with_ignore_dot+set}" = set; then :
4446 withval=$with_ignore_dot; case $with_ignore_dot in
4451 *) as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4456 if test "$ignore_dot" = "on"; then
4457 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4467 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4469 # Check whether --with-mail-if-no-user was given.
4470 if test "${with_mail_if_no_user+set}" = set; then :
4471 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4472 yes) mail_no_user=on
4474 no) mail_no_user=off
4476 *) as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4481 if test "$mail_no_user" = "on"; then
4482 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4492 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4494 # Check whether --with-mail-if-no-host was given.
4495 if test "${with_mail_if_no_host+set}" = set; then :
4496 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4497 yes) mail_no_host=on
4499 no) mail_no_host=off
4501 *) as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4506 if test "$mail_no_host" = "on"; then
4507 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4517 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4519 # Check whether --with-mail-if-noperms was given.
4520 if test "${with_mail_if_noperms+set}" = set; then :
4521 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4522 yes) mail_noperms=on
4524 no) mail_noperms=off
4526 *) as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4531 if test "$mail_noperms" = "on"; then
4532 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4542 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4544 # Check whether --with-mailto was given.
4545 if test "${with_mailto+set}" = set; then :
4546 withval=$with_mailto; case $with_mailto in
4547 yes) as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4549 no) as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4551 *) mailto=$with_mailto
4557 cat >>confdefs.h <<_ACEOF
4558 #define MAILTO "$mailto"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4562 $as_echo "$mailto" >&6; }
4565 # Check whether --with-mailsubject was given.
4566 if test "${with_mailsubject+set}" = set; then :
4567 withval=$with_mailsubject; case $with_mailsubject in
4568 yes) as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4570 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4571 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4573 *) mailsub="$with_mailsubject"
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4575 $as_echo_n "checking sudo mail subject... " >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4577 $as_echo "Using alert mail subject: $mailsub" >&6; }
4583 cat >>confdefs.h <<_ACEOF
4584 #define MAILSUBJECT "$mailsub"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4589 $as_echo_n "checking for bad password prompt... " >&6; }
4591 # Check whether --with-passprompt was given.
4592 if test "${with_passprompt+set}" = set; then :
4593 withval=$with_passprompt; case $with_passprompt in
4594 yes) as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4596 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4597 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4599 *) passprompt="$with_passprompt"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4604 $as_echo "$passprompt" >&6; }
4606 cat >>confdefs.h <<_ACEOF
4607 #define PASSPROMPT "$passprompt"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4612 $as_echo_n "checking for bad password message... " >&6; }
4614 # Check whether --with-badpass-message was given.
4615 if test "${with_badpass_message+set}" = set; then :
4616 withval=$with_badpass_message; case $with_badpass_message in
4617 yes) as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4619 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4620 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4622 *) badpass_message="$with_badpass_message"
4628 cat >>confdefs.h <<_ACEOF
4629 #define INCORRECT_PASSWORD "$badpass_message"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4633 $as_echo "$badpass_message" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4636 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4638 # Check whether --with-fqdn was given.
4639 if test "${with_fqdn+set}" = set; then :
4640 withval=$with_fqdn; case $with_fqdn in
4645 *) as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4650 if test "$fqdn" = "on"; then
4651 $as_echo "#define FQDN 1" >>confdefs.h
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654 $as_echo "yes" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 # Check whether --with-timedir was given.
4662 if test "${with_timedir+set}" = set; then :
4663 withval=$with_timedir; case $with_timedir in
4664 yes) as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4666 no) as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4673 # Check whether --with-iologdir was given.
4674 if test "${with_iologdir+set}" = set; then :
4675 withval=$with_iologdir; case $with_iologdir in
4683 # Check whether --with-sendmail was given.
4684 if test "${with_sendmail+set}" = set; then :
4685 withval=$with_sendmail; case $with_sendmail in
4686 yes) with_sendmail=""
4689 *) cat >>confdefs.h <<EOF
4690 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4699 # Check whether --with-sudoers-mode was given.
4700 if test "${with_sudoers_mode+set}" = set; then :
4701 withval=$with_sudoers_mode; case $with_sudoers_mode in
4702 yes) as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4704 no) as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4706 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4708 0*) SUDOERS_MODE=$with_sudoers_mode
4710 *) as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4717 # Check whether --with-sudoers-uid was given.
4718 if test "${with_sudoers_uid+set}" = set; then :
4719 withval=$with_sudoers_uid; case $with_sudoers_uid in
4720 yes) as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4722 no) as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4724 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4726 *) as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4733 # Check whether --with-sudoers-gid was given.
4734 if test "${with_sudoers_gid+set}" = set; then :
4735 withval=$with_sudoers_gid; case $with_sudoers_gid in
4736 yes) as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4738 no) as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4740 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4742 *) as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4749 $as_echo_n "checking for umask programs should be run with... " >&6; }
4751 # Check whether --with-umask was given.
4752 if test "${with_umask+set}" = set; then :
4753 withval=$with_umask; case $with_umask in
4754 yes) as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4758 [0-9]*) sudo_umask=$with_umask
4760 *) as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4766 cat >>confdefs.h <<_ACEOF
4767 #define SUDO_UMASK $sudo_umask
4770 if test "$sudo_umask" = "0777"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4772 $as_echo "user" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4775 $as_echo "$sudo_umask" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4779 $as_echo_n "checking for default user to run commands as... " >&6; }
4781 # Check whether --with-runas-default was given.
4782 if test "${with_runas_default+set}" = set; then :
4783 withval=$with_runas_default; case $with_runas_default in
4784 yes) as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4786 no) as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4788 *) runas_default="$with_runas_default"
4794 cat >>confdefs.h <<_ACEOF
4795 #define RUNAS_DEFAULT "$runas_default"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4799 $as_echo "$runas_default" >&6; }
4802 # Check whether --with-exempt was given.
4803 if test "${with_exempt+set}" = set; then :
4804 withval=$with_exempt; case $with_exempt in
4805 yes) as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4807 no) as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4810 cat >>confdefs.h <<_ACEOF
4811 #define EXEMPTGROUP "$with_exempt"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4815 $as_echo_n "checking for group to be exempt from password... " >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4817 $as_echo "$with_exempt" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4824 $as_echo_n "checking for editor that visudo should use... " >&6; }
4826 # Check whether --with-editor was given.
4827 if test "${with_editor+set}" = set; then :
4828 withval=$with_editor; case $with_editor in
4829 yes) as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4831 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4834 cat >>confdefs.h <<_ACEOF
4835 #define EDITOR "$with_editor"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4839 $as_echo "$with_editor" >&6; }
4840 editor="$with_editor"
4844 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4846 $as_echo "vi" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4851 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4853 # Check whether --with-env-editor was given.
4854 if test "${with_env_editor+set}" = set; then :
4855 withval=$with_env_editor; case $with_env_editor in
4860 *) as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4865 if test "$env_editor" = "on"; then
4866 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869 $as_echo "yes" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4876 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4878 # Check whether --with-passwd-tries was given.
4879 if test "${with_passwd_tries+set}" = set; then :
4880 withval=$with_passwd_tries; case $with_passwd_tries in
4882 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4884 [1-9]*) passwd_tries=$with_passwd_tries
4886 *) as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4892 cat >>confdefs.h <<_ACEOF
4893 #define TRIES_FOR_PASSWORD $passwd_tries
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4897 $as_echo "$passwd_tries" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4900 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4902 # Check whether --with-timeout was given.
4903 if test "${with_timeout+set}" = set; then :
4904 withval=$with_timeout; case $with_timeout in
4908 [0-9]*) timeout=$with_timeout
4910 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4916 cat >>confdefs.h <<_ACEOF
4917 #define TIMEOUT $timeout
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4921 $as_echo "$timeout" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4924 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4926 # Check whether --with-password-timeout was given.
4927 if test "${with_password_timeout+set}" = set; then :
4928 withval=$with_password_timeout; case $with_password_timeout in
4930 no) password_timeout=0
4932 [0-9]*) password_timeout=$with_password_timeout
4934 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4940 cat >>confdefs.h <<_ACEOF
4941 #define PASSWORD_TIMEOUT $password_timeout
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4945 $as_echo "$password_timeout" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4948 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4950 # Check whether --with-tty-tickets was given.
4951 if test "${with_tty_tickets+set}" = set; then :
4952 withval=$with_tty_tickets; case $with_tty_tickets in
4957 *) as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4962 if test "$tty_tickets" = "off"; then
4963 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4969 $as_echo "yes" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4973 $as_echo_n "checking whether to include insults... " >&6; }
4975 # Check whether --with-insults was given.
4976 if test "${with_insults+set}" = set; then :
4977 withval=$with_insults; case $with_insults in
4979 with_classic_insults=yes
4980 with_csops_insults=yes
4982 disabled) insults=off
4983 with_classic_insults=yes
4984 with_csops_insults=yes
4988 *) as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4993 if test "$insults" = "on"; then
4994 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997 $as_echo "yes" >&6; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 # Check whether --with-all-insults was given.
5005 if test "${with_all_insults+set}" = set; then :
5006 withval=$with_all_insults; case $with_all_insults in
5007 yes) with_classic_insults=yes
5008 with_csops_insults=yes
5009 with_hal_insults=yes
5010 with_goons_insults=yes
5013 *) as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5020 # Check whether --with-classic-insults was given.
5021 if test "${with_classic_insults+set}" = set; then :
5022 withval=$with_classic_insults; case $with_classic_insults in
5023 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5027 *) as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5034 # Check whether --with-csops-insults was given.
5035 if test "${with_csops_insults+set}" = set; then :
5036 withval=$with_csops_insults; case $with_csops_insults in
5037 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5041 *) as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5048 # Check whether --with-hal-insults was given.
5049 if test "${with_hal_insults+set}" = set; then :
5050 withval=$with_hal_insults; case $with_hal_insults in
5051 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5055 *) as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5062 # Check whether --with-goons-insults was given.
5063 if test "${with_goons_insults+set}" = set; then :
5064 withval=$with_goons_insults; case $with_goons_insults in
5065 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5069 *) as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5076 # Check whether --with-nsswitch was given.
5077 if test "${with_nsswitch+set}" = set; then :
5078 withval=$with_nsswitch; case $with_nsswitch in
5080 yes) with_nsswitch="/etc/nsswitch.conf"
5088 # Check whether --with-ldap was given.
5089 if test "${with_ldap+set}" = set; then :
5090 withval=$with_ldap; case $with_ldap in
5092 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5095 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5104 # Check whether --with-ldap-conf-file was given.
5105 if test "${with_ldap_conf_file+set}" = set; then :
5106 withval=$with_ldap_conf_file;
5109 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5110 cat >>confdefs.h <<EOF
5111 #define _PATH_LDAP_CONF "$ldap_conf"
5116 # Check whether --with-ldap-secret-file was given.
5117 if test "${with_ldap_secret_file+set}" = set; then :
5118 withval=$with_ldap_secret_file;
5121 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5122 cat >>confdefs.h <<EOF
5123 #define _PATH_LDAP_SECRET "$ldap_secret"
5128 # Check whether --with-pc-insults was given.
5129 if test "${with_pc_insults+set}" = set; then :
5130 withval=$with_pc_insults; case $with_pc_insults in
5131 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5135 *) as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5141 if test "$insults" = "on"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5143 $as_echo_n "checking which insult sets to include... " >&6; }
5145 test "$with_goons_insults" = "yes" && i="goons ${i}"
5146 test "$with_hal_insults" = "yes" && i="hal ${i}"
5147 test "$with_csops_insults" = "yes" && i="csops ${i}"
5148 test "$with_classic_insults" = "yes" && i="classic ${i}"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5150 $as_echo "$i" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5154 $as_echo_n "checking whether to override the user's path... " >&6; }
5156 # Check whether --with-secure-path was given.
5157 if test "${with_secure_path+set}" = set; then :
5158 withval=$with_secure_path; case $with_secure_path in
5159 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5160 cat >>confdefs.h <<_ACEOF
5161 #define SECURE_PATH "$with_secure_path"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5165 $as_echo "$with_secure_path" >&6; }
5166 secure_path="set to $with_secure_path"
5168 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5171 *) cat >>confdefs.h <<_ACEOF
5172 #define SECURE_PATH "$with_secure_path"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5176 $as_echo "$with_secure_path" >&6; }
5177 secure_path="set to F<$with_secure_path>"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5187 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5189 # Check whether --with-interfaces was given.
5190 if test "${with_interfaces+set}" = set; then :
5191 withval=$with_interfaces; case $with_interfaces in
5192 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5195 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5200 *) as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5210 $as_echo_n "checking whether stow should be used... " >&6; }
5212 # Check whether --with-stow was given.
5213 if test "${with_stow+set}" = set; then :
5214 withval=$with_stow; case $with_stow in
5215 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5217 $as_echo "#define USE_STOW 1" >>confdefs.h
5220 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5223 *) as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5233 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5235 # Check whether --with-askpass was given.
5236 if test "${with_askpass+set}" = set; then :
5237 withval=$with_askpass; case $with_askpass in
5238 yes) as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5241 *) cat >>confdefs.h <<EOF
5242 #define _PATH_SUDO_ASKPASS "$with_askpass"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 # Check whether --with-libvas was given.
5255 if test "${with_libvas+set}" = set; then :
5256 withval=$with_libvas; case $with_libvas in
5257 yes) with_libvas=libvas.so
5261 cat >>confdefs.h <<_ACEOF
5262 #define LIBVAS_SO "$with_libvas"
5267 if test X"$with_libvas" != X"no"; then
5269 cat >>confdefs.h <<_ACEOF
5270 #define LIBVAS_SO "$with_libvas"
5273 $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5275 COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5277 # Check whether --with-libvas-rpath was given.
5278 if test "${with_libvas_rpath+set}" = set; then :
5279 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5281 LIBVAS_RPATH=/opt/quest/lib
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5285 $as_echo_n "checking for main in -ldl... " >&6; }
5286 if test "${ac_cv_lib_dl_main+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 ac_check_lib_save_LIBS=$LIBS
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5303 if ac_fn_c_try_link "$LINENO"; then :
5304 ac_cv_lib_dl_main=yes
5306 ac_cv_lib_dl_main=no
5308 rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_check_lib_save_LIBS
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5313 $as_echo "$ac_cv_lib_dl_main" >&6; }
5314 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_LIBDL 1
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5330 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5331 # Check whether --enable-authentication was given.
5332 if test "${enable_authentication+set}" = set; then :
5333 enableval=$enable_authentication; case "$enableval" in
5334 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5337 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5342 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5345 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5356 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5357 # Check whether --enable-root-mailer was given.
5358 if test "${enable_root_mailer+set}" = set; then :
5359 enableval=$enable_root_mailer; case "$enableval" in
5360 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5363 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5368 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5371 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5381 # Check whether --enable-setreuid was given.
5382 if test "${enable_setreuid+set}" = set; then :
5383 enableval=$enable_setreuid; case "$enableval" in
5384 no) SKIP_SETREUID=yes
5392 # Check whether --enable-setresuid was given.
5393 if test "${enable_setresuid+set}" = set; then :
5394 enableval=$enable_setresuid; case "$enableval" in
5395 no) SKIP_SETRESUID=yes
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5404 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5405 # Check whether --enable-shadow was given.
5406 if test "${enable_shadow+set}" = set; then :
5407 enableval=$enable_shadow; case "$enableval" in
5408 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5411 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5418 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5429 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5430 # Check whether --enable-root-sudo was given.
5431 if test "${enable_root_sudo+set}" = set; then :
5432 enableval=$enable_root_sudo; case "$enableval" in
5433 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5436 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5442 *) as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5453 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5454 # Check whether --enable-log-host was given.
5455 if test "${enable_log_host+set}" = set; then :
5456 enableval=$enable_log_host; case "$enableval" in
5457 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5462 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5468 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5479 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5480 # Check whether --enable-noargs-shell was given.
5481 if test "${enable_noargs_shell+set}" = set; then :
5482 enableval=$enable_noargs_shell; case "$enableval" in
5483 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5488 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5494 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5505 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5506 # Check whether --enable-shell-sets-home was given.
5507 if test "${enable_shell_sets_home+set}" = set; then :
5508 enableval=$enable_shell_sets_home; case "$enableval" in
5509 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5514 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5520 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5531 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5532 # Check whether --enable-path_info was given.
5533 if test "${enable_path_info+set}" = set; then :
5534 enableval=$enable_path_info; case "$enableval" in
5535 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5538 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5544 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5547 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5558 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5559 # Check whether --enable-env_debug was given.
5560 if test "${enable_env_debug+set}" = set; then :
5561 enableval=$enable_env_debug; case "$enableval" in
5562 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5567 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5570 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5573 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 # Check whether --enable-warnings was given.
5584 if test "${enable_warnings+set}" = set; then :
5585 enableval=$enable_warnings; case "$enableval" in
5586 yes) if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5587 CFLAGS="${CFLAGS} -Wall"
5591 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5592 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5599 # Check whether --enable-admin-flag was given.
5600 if test "${enable_admin_flag+set}" = set; then :
5601 enableval=$enable_admin_flag; case "$enableval" in
5602 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5607 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5615 # Check whether --with-selinux was given.
5616 if test "${with_selinux+set}" = set; then :
5617 withval=$with_selinux; case $with_selinux in
5618 yes) SELINUX_USAGE="[-r role] [-t type] "
5619 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5621 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5622 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5623 PROGS="${PROGS} sesh"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5626 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5627 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 ac_check_lib_save_LIBS=$LIBS
5631 LIBS="-lselinux $LIBS"
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5635 /* Override any GCC internal prototype to avoid an error.
5636 Use char because int might match the return type of a GCC
5637 builtin and then its argument prototype would still apply. */
5641 char setkeycreatecon ();
5645 return setkeycreatecon ();
5650 if ac_fn_c_try_link "$LINENO"; then :
5651 ac_cv_lib_selinux_setkeycreatecon=yes
5653 ac_cv_lib_selinux_setkeycreatecon=no
5655 rm -f core conftest.err conftest.$ac_objext \
5656 conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5660 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5661 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5662 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5668 *) as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5674 # Check whether --enable-gss_krb5_ccache_name was given.
5675 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5676 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5678 check_gss_krb5_ccache_name=no
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5683 $as_echo_n "checking for library containing strerror... " >&6; }
5684 if test "${ac_cv_search_strerror+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5687 ac_func_search_save_LIBS=$LIBS
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5691 /* Override any GCC internal prototype to avoid an error.
5692 Use char because int might match the return type of a GCC
5693 builtin and then its argument prototype would still apply. */
5706 for ac_lib in '' cposix; do
5707 if test -z "$ac_lib"; then
5708 ac_res="none required"
5711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5713 if ac_fn_c_try_link "$LINENO"; then :
5714 ac_cv_search_strerror=$ac_res
5716 rm -f core conftest.err conftest.$ac_objext \
5718 if test "${ac_cv_search_strerror+set}" = set; then :
5722 if test "${ac_cv_search_strerror+set}" = set; then :
5725 ac_cv_search_strerror=no
5728 LIBS=$ac_func_search_save_LIBS
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5731 $as_echo "$ac_cv_search_strerror" >&6; }
5732 ac_res=$ac_cv_search_strerror
5733 if test "$ac_res" != no; then :
5734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5744 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5745 # On Suns, sometimes $CPP names a directory.
5746 if test -n "$CPP" && test -d "$CPP"; then
5749 if test -z "$CPP"; then
5750 if test "${ac_cv_prog_CPP+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5753 # Double quotes because CPP needs to be expanded
5754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5757 for ac_c_preproc_warn_flag in '' yes
5759 # Use a header file that comes with gcc, so configuring glibc
5760 # with a fresh cross-compiler works.
5761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 # <limits.h> exists even on freestanding compilers.
5763 # On the NeXT, cc -E runs the code through the compiler's parser,
5764 # not just through cpp. "Syntax error" is here to catch this case.
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5768 # include <limits.h>
5770 # include <assert.h>
5774 if ac_fn_c_try_cpp "$LINENO"; then :
5777 # Broken: fails on valid input.
5780 rm -f conftest.err conftest.$ac_ext
5782 # OK, works on sane cases. Now check whether nonexistent headers
5783 # can be detected and how.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #include <ac_nonexistent.h>
5788 if ac_fn_c_try_cpp "$LINENO"; then :
5789 # Broken: success on invalid input.
5792 # Passes both tests.
5796 rm -f conftest.err conftest.$ac_ext
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then :
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5814 $as_echo "$CPP" >&6; }
5816 for ac_c_preproc_warn_flag in '' yes
5818 # Use a header file that comes with gcc, so configuring glibc
5819 # with a fresh cross-compiler works.
5820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821 # <limits.h> exists even on freestanding compilers.
5822 # On the NeXT, cc -E runs the code through the compiler's parser,
5823 # not just through cpp. "Syntax error" is here to catch this case.
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5827 # include <limits.h>
5829 # include <assert.h>
5833 if ac_fn_c_try_cpp "$LINENO"; then :
5836 # Broken: fails on valid input.
5839 rm -f conftest.err conftest.$ac_ext
5841 # OK, works on sane cases. Now check whether nonexistent headers
5842 # can be detected and how.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5848 # Broken: success on invalid input.
5851 # Passes both tests.
5855 rm -f conftest.err conftest.$ac_ext
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then :
5863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5866 See \`config.log' for more details." "$LINENO" 5; }
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}ar; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_AR+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5883 if test -n "$AR"; then
5884 ac_cv_prog_AR="$AR" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_AR="${ac_tool_prefix}ar"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 if test -n "$AR"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5906 $as_echo "$AR" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5914 if test -z "$ac_cv_prog_AR"; then
5916 # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_ac_ct_AR="ar"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5952 if test "x$ac_ct_AR" = x; then
5955 case $cross_compiling:$ac_tool_warned in
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -n "$RANLIB"; then
5976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5998 $as_echo "$RANLIB" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6006 if test -z "$ac_cv_prog_RANLIB"; then
6007 ac_ct_RANLIB=$RANLIB
6008 # Extract the first word of "ranlib", so it can be a program name with args.
6009 set dummy ranlib; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6015 if test -n "$ac_ct_RANLIB"; then
6016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_ac_ct_RANLIB="ranlib"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6036 if test -n "$ac_ct_RANLIB"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6038 $as_echo "$ac_ct_RANLIB" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6044 if test "x$ac_ct_RANLIB" = x; then
6047 case $cross_compiling:$ac_tool_warned in
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6053 RANLIB=$ac_ct_RANLIB
6056 RANLIB="$ac_cv_prog_RANLIB"
6061 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6062 for ac_t in install-sh install.sh shtool; do
6063 if test -f "$ac_dir/$ac_t"; then
6065 ac_install_sh="$ac_aux_dir/$ac_t -c"
6070 if test -z "$ac_aux_dir"; then
6071 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6074 # These three variables are undocumented and unsupported,
6075 # and are intended to be withdrawn in a future Autoconf release.
6076 # They can cause serious problems if a builder's source tree is in a directory
6077 # whose full name contains unusual characters.
6078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6083 # Make sure we can run config.sub.
6084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6085 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6088 $as_echo_n "checking build system type... " >&6; }
6089 if test "${ac_cv_build+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6092 ac_build_alias=$build_alias
6093 test "x$ac_build_alias" = x &&
6094 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6095 test "x$ac_build_alias" = x &&
6096 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6098 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6102 $as_echo "$ac_cv_build" >&6; }
6103 case $ac_cv_build in
6105 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6108 ac_save_IFS=$IFS; IFS='-'
6114 # Remember, the first character of IFS is used to create $*,
6115 # except with old shells:
6118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6122 $as_echo_n "checking host system type... " >&6; }
6123 if test "${ac_cv_host+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6126 if test "x$host_alias" = x; then
6127 ac_cv_host=$ac_cv_build
6129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6130 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6135 $as_echo "$ac_cv_host" >&6; }
6138 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6141 ac_save_IFS=$IFS; IFS='-'
6147 # Remember, the first character of IFS is used to create $*,
6148 # except with old shells:
6151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6159 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6164 macro_version='2.2.6b'
6165 macro_revision='1.3017'
6179 ltmain="$ac_aux_dir/ltmain.sh"
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6182 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6183 if test "${ac_cv_path_SED+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6187 for ac_i in 1 2 3 4 5 6 7; do
6188 ac_script="$ac_script$as_nl$ac_script"
6190 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6191 { ac_script=; unset ac_script;}
6192 if test -z "$SED"; then
6193 ac_path_SED_found=false
6194 # Loop through the user's path and test for each of PROGNAME-LIST
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_prog in sed gsed; do
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6203 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6204 # Check for GNU ac_path_SED and select it if it is found.
6205 # Check for GNU $ac_path_SED
6206 case `"$ac_path_SED" --version 2>&1` in
6208 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6211 $as_echo_n 0123456789 >"conftest.in"
6214 cat "conftest.in" "conftest.in" >"conftest.tmp"
6215 mv "conftest.tmp" "conftest.in"
6216 cp "conftest.in" "conftest.nl"
6217 $as_echo '' >> "conftest.nl"
6218 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6220 as_fn_arith $ac_count + 1 && ac_count=$as_val
6221 if test $ac_count -gt ${ac_path_SED_max-0}; then
6222 # Best one so far, save it but keep looking for a better one
6223 ac_cv_path_SED="$ac_path_SED"
6224 ac_path_SED_max=$ac_count
6226 # 10*(2^10) chars as input seems more than enough
6227 test $ac_count -gt 10 && break
6229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6232 $ac_path_SED_found && break 3
6237 if test -z "$ac_cv_path_SED"; then
6238 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6246 $as_echo "$ac_cv_path_SED" >&6; }
6247 SED="$ac_cv_path_SED"
6250 test -z "$SED" && SED=sed
6251 Xsed="$SED -e 1s/^X//"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6264 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6265 if test "${ac_cv_path_GREP+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -z "$GREP"; then
6269 ac_path_GREP_found=false
6270 # Loop through the user's path and test for each of PROGNAME-LIST
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6275 test -z "$as_dir" && as_dir=.
6276 for ac_prog in grep ggrep; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6279 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6280 # Check for GNU ac_path_GREP and select it if it is found.
6281 # Check for GNU $ac_path_GREP
6282 case `"$ac_path_GREP" --version 2>&1` in
6284 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6287 $as_echo_n 0123456789 >"conftest.in"
6290 cat "conftest.in" "conftest.in" >"conftest.tmp"
6291 mv "conftest.tmp" "conftest.in"
6292 cp "conftest.in" "conftest.nl"
6293 $as_echo 'GREP' >> "conftest.nl"
6294 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296 as_fn_arith $ac_count + 1 && ac_count=$as_val
6297 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6298 # Best one so far, save it but keep looking for a better one
6299 ac_cv_path_GREP="$ac_path_GREP"
6300 ac_path_GREP_max=$ac_count
6302 # 10*(2^10) chars as input seems more than enough
6303 test $ac_count -gt 10 && break
6305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6308 $ac_path_GREP_found && break 3
6313 if test -z "$ac_cv_path_GREP"; then
6314 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6317 ac_cv_path_GREP=$GREP
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6322 $as_echo "$ac_cv_path_GREP" >&6; }
6323 GREP="$ac_cv_path_GREP"
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6327 $as_echo_n "checking for egrep... " >&6; }
6328 if test "${ac_cv_path_EGREP+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6331 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6332 then ac_cv_path_EGREP="$GREP -E"
6334 if test -z "$EGREP"; then
6335 ac_path_EGREP_found=false
6336 # Loop through the user's path and test for each of PROGNAME-LIST
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6341 test -z "$as_dir" && as_dir=.
6342 for ac_prog in egrep; do
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6345 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6346 # Check for GNU ac_path_EGREP and select it if it is found.
6347 # Check for GNU $ac_path_EGREP
6348 case `"$ac_path_EGREP" --version 2>&1` in
6350 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6353 $as_echo_n 0123456789 >"conftest.in"
6356 cat "conftest.in" "conftest.in" >"conftest.tmp"
6357 mv "conftest.tmp" "conftest.in"
6358 cp "conftest.in" "conftest.nl"
6359 $as_echo 'EGREP' >> "conftest.nl"
6360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6362 as_fn_arith $ac_count + 1 && ac_count=$as_val
6363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6364 # Best one so far, save it but keep looking for a better one
6365 ac_cv_path_EGREP="$ac_path_EGREP"
6366 ac_path_EGREP_max=$ac_count
6368 # 10*(2^10) chars as input seems more than enough
6369 test $ac_count -gt 10 && break
6371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6374 $ac_path_EGREP_found && break 3
6379 if test -z "$ac_cv_path_EGREP"; then
6380 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6383 ac_cv_path_EGREP=$EGREP
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6389 $as_echo "$ac_cv_path_EGREP" >&6; }
6390 EGREP="$ac_cv_path_EGREP"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6394 $as_echo_n "checking for fgrep... " >&6; }
6395 if test "${ac_cv_path_FGREP+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6398 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6399 then ac_cv_path_FGREP="$GREP -F"
6401 if test -z "$FGREP"; then
6402 ac_path_FGREP_found=false
6403 # Loop through the user's path and test for each of PROGNAME-LIST
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6408 test -z "$as_dir" && as_dir=.
6409 for ac_prog in fgrep; do
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6412 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6413 # Check for GNU ac_path_FGREP and select it if it is found.
6414 # Check for GNU $ac_path_FGREP
6415 case `"$ac_path_FGREP" --version 2>&1` in
6417 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6420 $as_echo_n 0123456789 >"conftest.in"
6423 cat "conftest.in" "conftest.in" >"conftest.tmp"
6424 mv "conftest.tmp" "conftest.in"
6425 cp "conftest.in" "conftest.nl"
6426 $as_echo 'FGREP' >> "conftest.nl"
6427 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6429 as_fn_arith $ac_count + 1 && ac_count=$as_val
6430 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6431 # Best one so far, save it but keep looking for a better one
6432 ac_cv_path_FGREP="$ac_path_FGREP"
6433 ac_path_FGREP_max=$ac_count
6435 # 10*(2^10) chars as input seems more than enough
6436 test $ac_count -gt 10 && break
6438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6441 $ac_path_FGREP_found && break 3
6446 if test -z "$ac_cv_path_FGREP"; then
6447 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6450 ac_cv_path_FGREP=$FGREP
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6456 $as_echo "$ac_cv_path_FGREP" >&6; }
6457 FGREP="$ac_cv_path_FGREP"
6460 test -z "$GREP" && GREP=grep
6480 # Check whether --with-gnu-ld was given.
6481 if test "${with_gnu_ld+set}" = set; then :
6482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6488 if test "$GCC" = yes; then
6489 # Check if gcc -print-prog-name=ld gives a path.
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6491 $as_echo_n "checking for ld used by $CC... " >&6; }
6494 # gcc leaves a trailing carriage return which upsets mingw
6495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6500 # Accept absolute paths.
6502 re_direlt='/[^/][^/]*/\.\./'
6503 # Canonicalize the pathname of ld
6504 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6505 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6506 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6508 test -z "$LD" && LD="$ac_prog"
6511 # If it fails, then pretend we aren't using GCC.
6515 # If it is relative, then search for the first ld in PATH.
6519 elif test "$with_gnu_ld" = yes; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6521 $as_echo_n "checking for GNU ld... " >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6524 $as_echo_n "checking for non-GNU ld... " >&6; }
6526 if test "${lt_cv_path_LD+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -z "$LD"; then
6530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6531 for ac_dir in $PATH; do
6533 test -z "$ac_dir" && ac_dir=.
6534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6535 lt_cv_path_LD="$ac_dir/$ac_prog"
6536 # Check to see if the program is GNU ld. I'd rather use --version,
6537 # but apparently some variants of GNU ld only accept -v.
6538 # Break only if it was the GNU/non-GNU ld that we prefer.
6539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6540 *GNU* | *'with BFD'*)
6541 test "$with_gnu_ld" != no && break
6544 test "$with_gnu_ld" != yes && break
6551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6556 if test -n "$LD"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6558 $as_echo "$LD" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6563 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6566 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6570 case `$LD -v 2>&1 </dev/null` in
6571 *GNU* | *'with BFD'*)
6572 lt_cv_prog_gnu_ld=yes
6575 lt_cv_prog_gnu_ld=no
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6580 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6581 with_gnu_ld=$lt_cv_prog_gnu_ld
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6592 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6593 if test "${lt_cv_path_NM+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$NM"; then
6597 # Let the user override the test.
6600 lt_nm_to_check="${ac_tool_prefix}nm"
6601 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6602 lt_nm_to_check="$lt_nm_to_check nm"
6604 for lt_tmp_nm in $lt_nm_to_check; do
6605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6606 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6608 test -z "$ac_dir" && ac_dir=.
6609 tmp_nm="$ac_dir/$lt_tmp_nm"
6610 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6611 # Check to see if the nm accepts a BSD-compat flag.
6612 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6613 # nm: unknown option "B" ignored
6614 # Tru64's nm complains that /dev/null is an invalid object file
6615 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6616 */dev/null* | *'Invalid file or object type'*)
6617 lt_cv_path_NM="$tmp_nm -B"
6621 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6623 lt_cv_path_NM="$tmp_nm -p"
6627 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6628 continue # so that we can try to find one that supports BSD flags
6637 : ${lt_cv_path_NM=no}
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6641 $as_echo "$lt_cv_path_NM" >&6; }
6642 if test "$lt_cv_path_NM" != "no"; then
6645 # Didn't find any BSD compatible name lister, look for dumpbin.
6646 if test -n "$ac_tool_prefix"; then
6647 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6656 if test -n "$DUMPBIN"; then
6657 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 DUMPBIN=$ac_cv_prog_DUMPBIN
6677 if test -n "$DUMPBIN"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6679 $as_echo "$DUMPBIN" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6686 test -n "$DUMPBIN" && break
6689 if test -z "$DUMPBIN"; then
6690 ac_ct_DUMPBIN=$DUMPBIN
6691 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6693 # Extract the first word of "$ac_prog", so it can be a program name with args.
6694 set dummy $ac_prog; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$ac_ct_DUMPBIN"; then
6701 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6721 if test -n "$ac_ct_DUMPBIN"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6723 $as_echo "$ac_ct_DUMPBIN" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6730 test -n "$ac_ct_DUMPBIN" && break
6733 if test "x$ac_ct_DUMPBIN" = x; then
6736 case $cross_compiling:$ac_tool_warned in
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6742 DUMPBIN=$ac_ct_DUMPBIN
6747 if test "$DUMPBIN" != ":"; then
6751 test -z "$NM" && NM=nm
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6760 if test "${lt_cv_nm_interface+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6763 lt_cv_nm_interface="BSD nm"
6764 echo "int some_variable = 0;" > conftest.$ac_ext
6765 (eval echo "\"\$as_me:6765: $ac_compile\"" >&5)
6766 (eval "$ac_compile" 2>conftest.err)
6767 cat conftest.err >&5
6768 (eval echo "\"\$as_me:6768: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6770 cat conftest.err >&5
6771 (eval echo "\"\$as_me:6771: output\"" >&5)
6772 cat conftest.out >&5
6773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6774 lt_cv_nm_interface="MS dumpbin"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6779 $as_echo "$lt_cv_nm_interface" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6782 $as_echo_n "checking whether ln -s works... " >&6; }
6784 if test "$LN_S" = "ln -s"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6786 $as_echo "yes" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6789 $as_echo "no, using $LN_S" >&6; }
6792 # find the maximum length of command line arguments
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6794 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6795 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6803 # On DJGPP, this test can blow up pretty badly due to problems in libc
6804 # (any single argument exceeding 2000 bytes causes a buffer overrun
6805 # during glob expansion). Even if it were fixed, the result of this
6806 # check would be larger than it should be.
6807 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6811 # Under GNU Hurd, this test is not required because there is
6812 # no limit to the length of command line arguments.
6813 # Libtool will interpret -1 as no limit whatsoever
6814 lt_cv_sys_max_cmd_len=-1;
6817 cygwin* | mingw* | cegcc*)
6818 # On Win9x/ME, this test blows up -- it succeeds, but takes
6819 # about 5 minutes as the teststring grows exponentially.
6820 # Worse, since 9x/ME are not pre-emptively multitasking,
6821 # you end up with a "frozen" computer, even though with patience
6822 # the test eventually succeeds (with a max line length of 256k).
6823 # Instead, let's just punt: use the minimum linelength reported by
6824 # all of the supported platforms: 8192 (on NT/2K/XP).
6825 lt_cv_sys_max_cmd_len=8192;
6829 # On AmigaOS with pdksh, this test takes hours, literally.
6830 # So we just punt and use a minimum line length of 8192.
6831 lt_cv_sys_max_cmd_len=8192;
6834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6835 # This has been around since 386BSD, at least. Likely further.
6836 if test -x /sbin/sysctl; then
6837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6838 elif test -x /usr/sbin/sysctl; then
6839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6843 # And add a safety zone
6844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6850 lt_cv_sys_max_cmd_len=196608
6854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6856 # nice to cause kernel panics so lets avoid the loop below.
6857 # First set a reasonable default.
6858 lt_cv_sys_max_cmd_len=16384
6860 if test -x /sbin/sysconfig; then
6861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6867 lt_cv_sys_max_cmd_len=102400
6869 sysv5* | sco5v6* | sysv4.2uw2*)
6870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6871 if test -n "$kargmax"; then
6872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6874 lt_cv_sys_max_cmd_len=32768
6878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6879 if test -n "$lt_cv_sys_max_cmd_len"; then
6880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6883 # Make teststring a little bigger before we do anything with it.
6884 # a 1K string should be a reasonable start.
6885 for i in 1 2 3 4 5 6 7 8 ; do
6886 teststring=$teststring$teststring
6888 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6889 # If test is not a shell built-in, we'll probably end up computing a
6890 # maximum length that is only half of the actual maximum length, but
6892 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6893 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6894 test $i != 17 # 1/2 MB should be enough
6897 teststring=$teststring$teststring
6899 # Only check the string length outside the loop.
6900 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6902 # Add a significant safety factor because C++ compilers can tack on
6903 # massive amounts of additional arguments before passing them to the
6904 # linker. It appears as though 1/2 is a usable value.
6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6912 if test -n $lt_cv_sys_max_cmd_len ; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6914 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6917 $as_echo "none" >&6; }
6919 max_cmd_len=$lt_cv_sys_max_cmd_len
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6931 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6932 # Try some XSI features
6935 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6937 && eval 'test $(( 1 + 1 )) -eq 2 \
6938 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6941 $as_echo "$xsi_shell" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6947 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6949 && lt_shell_append=yes
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6951 $as_echo "$lt_shell_append" >&6; }
6954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6964 # test EBCDIC or ASCII
6965 case `echo X|tr X '\101'` in
6966 A) # ASCII based system
6967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6968 lt_SP2NL='tr \040 \012'
6969 lt_NL2SP='tr \015\012 \040\040'
6971 *) # EBCDIC based system
6972 lt_SP2NL='tr \100 \n'
6973 lt_NL2SP='tr \r\n \100\100'
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6986 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6987 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 lt_cv_ld_reload_flag='-r'
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6993 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6994 reload_flag=$lt_cv_ld_reload_flag
6995 case $reload_flag in
6997 *) reload_flag=" $reload_flag" ;;
6999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7002 if test "$GCC" = yes; then
7003 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 if test -n "$OBJDUMP"; then
7027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 OBJDUMP=$ac_cv_prog_OBJDUMP
7047 if test -n "$OBJDUMP"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7049 $as_echo "$OBJDUMP" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7057 if test -z "$ac_cv_prog_OBJDUMP"; then
7058 ac_ct_OBJDUMP=$OBJDUMP
7059 # Extract the first word of "objdump", so it can be a program name with args.
7060 set dummy objdump; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7066 if test -n "$ac_ct_OBJDUMP"; then
7067 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7087 if test -n "$ac_ct_OBJDUMP"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7089 $as_echo "$ac_ct_OBJDUMP" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7095 if test "x$ac_ct_OBJDUMP" = x; then
7098 case $cross_compiling:$ac_tool_warned in
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7104 OBJDUMP=$ac_ct_OBJDUMP
7107 OBJDUMP="$ac_cv_prog_OBJDUMP"
7110 test -z "$OBJDUMP" && OBJDUMP=objdump
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7121 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7122 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
7125 lt_cv_file_magic_cmd='$MAGIC_CMD'
7126 lt_cv_file_magic_test_file=
7127 lt_cv_deplibs_check_method='unknown'
7128 # Need to set the preceding variable on all platforms that support
7129 # interlibrary dependencies.
7130 # 'none' -- dependencies not supported.
7131 # `unknown' -- same as none, but documents that we really don't know.
7132 # 'pass_all' -- all dependencies passed with no checks.
7133 # 'test_compile' -- check by making test program.
7134 # 'file_magic [[regex]]' -- check by looking for files in library path
7135 # which responds to the $file_magic_cmd with a given extended regex.
7136 # If you have `file' or equivalent on your system and you're not sure
7137 # whether `pass_all' will *always* work, you probably want this one.
7141 lt_cv_deplibs_check_method=pass_all
7145 lt_cv_deplibs_check_method=pass_all
7149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7150 lt_cv_file_magic_cmd='/usr/bin/file -L'
7151 lt_cv_file_magic_test_file=/shlib/libc.so
7155 # func_win32_libid is a shell function defined in ltmain.sh
7156 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7157 lt_cv_file_magic_cmd='func_win32_libid'
7161 # Base MSYS/MinGW do not provide the 'file' command needed by
7162 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7163 # unless we find 'file', for example because we are cross-compiling.
7164 if ( file / ) >/dev/null 2>&1; then
7165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7166 lt_cv_file_magic_cmd='func_win32_libid'
7168 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7169 lt_cv_file_magic_cmd='$OBJDUMP -f'
7174 # use the weaker test based on 'objdump'. See mingw*.
7175 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7176 lt_cv_file_magic_cmd='$OBJDUMP -f'
7179 darwin* | rhapsody*)
7180 lt_cv_deplibs_check_method=pass_all
7183 freebsd* | dragonfly*)
7184 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7187 # Not sure whether the presence of OpenBSD here was a mistake.
7188 # Let's accept both of them until this is cleared up.
7189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7190 lt_cv_file_magic_cmd=/usr/bin/file
7191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7195 lt_cv_deplibs_check_method=pass_all
7200 lt_cv_deplibs_check_method=pass_all
7203 hpux10.20* | hpux11*)
7204 lt_cv_file_magic_cmd=/usr/bin/file
7207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7208 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7211 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]'
7212 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7216 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7222 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7226 irix5* | irix6* | nonstopux*)
7228 *-32|*"-32 ") libmagic=32-bit;;
7229 *-n32|*"-n32 ") libmagic=N32;;
7230 *-64|*"-64 ") libmagic=64-bit;;
7231 *) libmagic=never-match;;
7233 lt_cv_deplibs_check_method=pass_all
7236 # This must be Linux ELF.
7237 linux* | k*bsd*-gnu)
7238 lt_cv_deplibs_check_method=pass_all
7242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7251 lt_cv_file_magic_cmd=/usr/bin/file
7252 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7256 lt_cv_deplibs_check_method=pass_all
7260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7267 osf3* | osf4* | osf5*)
7268 lt_cv_deplibs_check_method=pass_all
7272 lt_cv_deplibs_check_method=pass_all
7276 lt_cv_deplibs_check_method=pass_all
7279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7280 lt_cv_deplibs_check_method=pass_all
7284 case $host_vendor in
7286 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]'
7287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7290 lt_cv_deplibs_check_method=pass_all
7293 lt_cv_file_magic_cmd='/bin/file'
7294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7297 lt_cv_file_magic_cmd='/bin/file'
7298 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7299 lt_cv_file_magic_test_file=/lib/libc.so
7302 lt_cv_deplibs_check_method=pass_all
7305 lt_cv_deplibs_check_method=pass_all
7311 lt_cv_deplibs_check_method=pass_all
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7317 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7318 file_magic_cmd=$lt_cv_file_magic_cmd
7319 deplibs_check_method=$lt_cv_deplibs_check_method
7320 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ar; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AR+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$AR"; then
7342 ac_cv_prog_AR="$AR" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AR="${ac_tool_prefix}ar"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 if test -n "$AR"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7364 $as_echo "$AR" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_AR"; then
7374 # Extract the first word of "ar", so it can be a program name with args.
7375 set dummy ar; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_AR"; then
7382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_AR="ar"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7402 if test -n "$ac_ct_AR"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7404 $as_echo "$ac_ct_AR" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_AR" = x; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7425 test -z "$AR" && AR=ar
7426 test -z "$AR_FLAGS" && AR_FLAGS=cru
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}strip; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_STRIP+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$STRIP"; then
7447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 STRIP=$ac_cv_prog_STRIP
7467 if test -n "$STRIP"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7469 $as_echo "$STRIP" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7477 if test -z "$ac_cv_prog_STRIP"; then
7479 # Extract the first word of "strip", so it can be a program name with args.
7480 set dummy strip; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7486 if test -n "$ac_ct_STRIP"; then
7487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_prog_ac_ct_STRIP="strip"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7507 if test -n "$ac_ct_STRIP"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7509 $as_echo "$ac_ct_STRIP" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7515 if test "x$ac_ct_STRIP" = x; then
7518 case $cross_compiling:$ac_tool_warned in
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7527 STRIP="$ac_cv_prog_STRIP"
7530 test -z "$STRIP" && STRIP=:
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$RANLIB"; then
7546 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 RANLIB=$ac_cv_prog_RANLIB
7566 if test -n "$RANLIB"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7568 $as_echo "$RANLIB" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7576 if test -z "$ac_cv_prog_RANLIB"; then
7577 ac_ct_RANLIB=$RANLIB
7578 # Extract the first word of "ranlib", so it can be a program name with args.
7579 set dummy ranlib; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7585 if test -n "$ac_ct_RANLIB"; then
7586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_RANLIB="ranlib"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7606 if test -n "$ac_ct_RANLIB"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7608 $as_echo "$ac_ct_RANLIB" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7614 if test "x$ac_ct_RANLIB" = x; then
7617 case $cross_compiling:$ac_tool_warned in
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7623 RANLIB=$ac_ct_RANLIB
7626 RANLIB="$ac_cv_prog_RANLIB"
7629 test -z "$RANLIB" && RANLIB=:
7636 # Determine commands to create old-style static archives.
7637 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7638 old_postinstall_cmds='chmod 644 $oldlib'
7639 old_postuninstall_cmds=
7641 if test -n "$RANLIB"; then
7644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7647 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7650 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7686 # If no C compiler was specified, use CC.
7689 # If no C compiler flags were specified, use CFLAGS.
7690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7692 # Allow CC to be a program name with arguments.
7696 # Check for command to grab the raw symbol name followed by C symbol from nm.
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7698 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7699 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7703 # These are sane defaults that work on at least a few old systems.
7704 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7706 # Character class describing NM global symbol codes.
7707 symcode='[BCDEGRST]'
7709 # Regexp to match symbols that can be accessed directly from C.
7710 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7712 # Define system-specific variables.
7717 cygwin* | mingw* | pw32* | cegcc*)
7718 symcode='[ABCDGISTW]'
7721 if test "$host_cpu" = ia64; then
7722 symcode='[ABCDEGRST]'
7726 symcode='[BCDEGRST]'
7729 symcode='[BCDEGQRST]'
7740 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7748 # If we're using GNU nm, then use its standard symbol codes.
7749 case `$NM -V 2>&1` in
7750 *GNU* | *'with BFD'*)
7751 symcode='[ABCDGIRSTW]' ;;
7754 # Transform an extracted symbol line into a proper C declaration.
7755 # Some systems (esp. on ia64) link data and code symbols differently,
7756 # so use this general approach.
7757 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7759 # Transform an extracted symbol line into symbol name and symbol address
7760 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7761 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'"
7763 # Handle CRLF in mingw tool chain
7767 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7771 # Try without a prefix underscore, then with it.
7772 for ac_symprfx in "" "_"; do
7774 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7775 symxfrm="\\1 $ac_symprfx\\2 \\2"
7777 # Write the raw and C identifiers.
7778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7779 # Fake it for dumpbin and say T for any non-static function
7780 # and D for any global variable.
7781 # Also find C++ and __fastcall symbols from MSVC++,
7782 # which start with @ or ?.
7783 lt_cv_sys_global_symbol_pipe="$AWK '"\
7784 " {last_section=section; section=\$ 3};"\
7785 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7786 " \$ 0!~/External *\|/{next};"\
7787 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7788 " {if(hide[section]) next};"\
7789 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7790 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7791 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7792 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7793 " ' prfx=^$ac_symprfx"
7795 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7798 # Check to see that the pipe works correctly.
7802 cat > conftest.$ac_ext <<_LT_EOF
7807 void nm_test_func(void);
7808 void nm_test_func(void){}
7812 int main(){nm_test_var='a';nm_test_func();return(0);}
7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816 (eval $ac_compile) 2>&5
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 # Now try to grab the symbols.
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7823 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; } && test -s "$nlist"; then
7827 # Try sorting and uniquifying the output.
7828 if sort "$nlist" | uniq > "$nlist"T; then
7829 mv -f "$nlist"T "$nlist"
7834 # Make sure that we snagged all the symbols we need.
7835 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7836 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7837 cat <<_LT_EOF > conftest.$ac_ext
7843 # Now generate the symbol file.
7844 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7846 cat <<_LT_EOF >> conftest.$ac_ext
7848 /* The mapping between symbol names and symbols. */
7853 lt__PROGRAM__LTX_preloaded_symbols[] =
7855 { "@PROGRAM@", (void *) 0 },
7857 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7858 cat <<\_LT_EOF >> conftest.$ac_ext
7862 /* This works around a problem in FreeBSD linker */
7863 #ifdef FREEBSD_WORKAROUND
7864 static const void *lt_preloaded_setup() {
7865 return lt__PROGRAM__LTX_preloaded_symbols;
7873 # Now try linking the two files.
7874 mv conftest.$ac_objext conftstm.$ac_objext
7875 lt_save_LIBS="$LIBS"
7876 lt_save_CFLAGS="$CFLAGS"
7877 LIBS="conftstm.$ac_objext"
7878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7880 (eval $ac_link) 2>&5
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7886 LIBS="$lt_save_LIBS"
7887 CFLAGS="$lt_save_CFLAGS"
7889 echo "cannot find nm_test_func in $nlist" >&5
7892 echo "cannot find nm_test_var in $nlist" >&5
7895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7898 echo "$progname: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 rm -rf conftest* conftst*
7903 # Do not use the global_symbol_pipe unless it works.
7904 if test "$pipe_works" = yes; then
7907 lt_cv_sys_global_symbol_pipe=
7913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7914 lt_cv_sys_global_symbol_to_cdecl=
7916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7918 $as_echo "failed" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7921 $as_echo "ok" >&6; }
7945 # Check whether --enable-libtool-lock was given.
7946 if test "${enable_libtool_lock+set}" = set; then :
7947 enableval=$enable_libtool_lock;
7950 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7952 # Some flags need to be propagated to the compiler or linker for good
7956 # Find out which ABI we are using.
7957 echo 'int i;' > conftest.$ac_ext
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959 (eval $ac_compile) 2>&5
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 case `/usr/bin/file conftest.$ac_objext` in
7975 # Find out which ABI we are using.
7976 echo '#line 7976 "configure"' > conftest.$ac_ext
7977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7978 (eval $ac_compile) 2>&5
7980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7981 test $ac_status = 0; }; then
7982 if test "$lt_cv_prog_gnu_ld" = yes; then
7983 case `/usr/bin/file conftest.$ac_objext` in
7985 LD="${LD-ld} -melf32bsmip"
7988 LD="${LD-ld} -melf32bmipn32"
7991 LD="${LD-ld} -melf64bmip"
7995 case `/usr/bin/file conftest.$ac_objext` in
8011 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8012 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8013 # Find out which ABI we are using.
8014 echo 'int i;' > conftest.$ac_ext
8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8016 (eval $ac_compile) 2>&5
8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; }; then
8020 case `/usr/bin/file conftest.o` in
8023 x86_64-*kfreebsd*-gnu)
8024 LD="${LD-ld} -m elf_i386_fbsd"
8027 LD="${LD-ld} -m elf_i386"
8029 ppc64-*linux*|powerpc64-*linux*)
8030 LD="${LD-ld} -m elf32ppclinux"
8033 LD="${LD-ld} -m elf_s390"
8036 LD="${LD-ld} -m elf32_sparc"
8042 x86_64-*kfreebsd*-gnu)
8043 LD="${LD-ld} -m elf_x86_64_fbsd"
8046 LD="${LD-ld} -m elf_x86_64"
8048 ppc*-*linux*|powerpc*-*linux*)
8049 LD="${LD-ld} -m elf64ppc"
8051 s390*-*linux*|s390*-*tpf*)
8052 LD="${LD-ld} -m elf64_s390"
8055 LD="${LD-ld} -m elf64_sparc"
8065 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8066 SAVE_CFLAGS="$CFLAGS"
8067 CFLAGS="$CFLAGS -belf"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8069 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8070 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8090 if ac_fn_c_try_link "$LINENO"; then :
8091 lt_cv_cc_needs_belf=yes
8093 lt_cv_cc_needs_belf=no
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8105 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8106 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8107 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8108 CFLAGS="$SAVE_CFLAGS"
8112 # Find out which ABI we are using.
8113 echo 'int i;' > conftest.$ac_ext
8114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115 (eval $ac_compile) 2>&5
8117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118 test $ac_status = 0; }; then
8119 case `/usr/bin/file conftest.o` in
8121 case $lt_cv_prog_gnu_ld in
8122 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8124 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8136 need_locks="$enable_libtool_lock"
8140 rhapsody* | darwin*)
8141 if test -n "$ac_tool_prefix"; then
8142 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8143 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8149 if test -n "$DSYMUTIL"; then
8150 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8170 if test -n "$DSYMUTIL"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8172 $as_echo "$DSYMUTIL" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8180 if test -z "$ac_cv_prog_DSYMUTIL"; then
8181 ac_ct_DSYMUTIL=$DSYMUTIL
8182 # Extract the first word of "dsymutil", so it can be a program name with args.
8183 set dummy dsymutil; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -n "$ac_ct_DSYMUTIL"; then
8190 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8210 if test -n "$ac_ct_DSYMUTIL"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8212 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8218 if test "x$ac_ct_DSYMUTIL" = x; then
8221 case $cross_compiling:$ac_tool_warned in
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned=yes ;;
8227 DSYMUTIL=$ac_ct_DSYMUTIL
8230 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8233 if test -n "$ac_tool_prefix"; then
8234 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8235 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8241 if test -n "$NMEDIT"; then
8242 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 NMEDIT=$ac_cv_prog_NMEDIT
8262 if test -n "$NMEDIT"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8264 $as_echo "$NMEDIT" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8272 if test -z "$ac_cv_prog_NMEDIT"; then
8273 ac_ct_NMEDIT=$NMEDIT
8274 # Extract the first word of "nmedit", so it can be a program name with args.
8275 set dummy nmedit; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 if test -n "$ac_ct_NMEDIT"; then
8282 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8302 if test -n "$ac_ct_NMEDIT"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8304 $as_echo "$ac_ct_NMEDIT" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8310 if test "x$ac_ct_NMEDIT" = x; then
8313 case $cross_compiling:$ac_tool_warned in
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8317 ac_tool_warned=yes ;;
8319 NMEDIT=$ac_ct_NMEDIT
8322 NMEDIT="$ac_cv_prog_NMEDIT"
8325 if test -n "$ac_tool_prefix"; then
8326 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8327 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_prog_LIPO+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8333 if test -n "$LIPO"; then
8334 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 LIPO=$ac_cv_prog_LIPO
8354 if test -n "$LIPO"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8356 $as_echo "$LIPO" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8364 if test -z "$ac_cv_prog_LIPO"; then
8366 # Extract the first word of "lipo", so it can be a program name with args.
8367 set dummy lipo; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$ac_ct_LIPO"; then
8374 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_ac_ct_LIPO="lipo"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8394 if test -n "$ac_ct_LIPO"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8396 $as_echo "$ac_ct_LIPO" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8402 if test "x$ac_ct_LIPO" = x; then
8405 case $cross_compiling:$ac_tool_warned in
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8414 LIPO="$ac_cv_prog_LIPO"
8417 if test -n "$ac_tool_prefix"; then
8418 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8419 set dummy ${ac_tool_prefix}otool; ac_word=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 if test -n "$OTOOL"; then
8426 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 OTOOL=$ac_cv_prog_OTOOL
8446 if test -n "$OTOOL"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8448 $as_echo "$OTOOL" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8456 if test -z "$ac_cv_prog_OTOOL"; then
8458 # Extract the first word of "otool", so it can be a program name with args.
8459 set dummy otool; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8465 if test -n "$ac_ct_OTOOL"; then
8466 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8475 ac_cv_prog_ac_ct_OTOOL="otool"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8486 if test -n "$ac_ct_OTOOL"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8488 $as_echo "$ac_ct_OTOOL" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8494 if test "x$ac_ct_OTOOL" = x; then
8497 case $cross_compiling:$ac_tool_warned in
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501 ac_tool_warned=yes ;;
8506 OTOOL="$ac_cv_prog_OTOOL"
8509 if test -n "$ac_tool_prefix"; then
8510 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8511 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8517 if test -n "$OTOOL64"; then
8518 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 OTOOL64=$ac_cv_prog_OTOOL64
8538 if test -n "$OTOOL64"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8540 $as_echo "$OTOOL64" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8548 if test -z "$ac_cv_prog_OTOOL64"; then
8549 ac_ct_OTOOL64=$OTOOL64
8550 # Extract the first word of "otool64", so it can be a program name with args.
8551 set dummy otool64; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8557 if test -n "$ac_ct_OTOOL64"; then
8558 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_ac_ct_OTOOL64="otool64"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8578 if test -n "$ac_ct_OTOOL64"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8580 $as_echo "$ac_ct_OTOOL64" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8586 if test "x$ac_ct_OTOOL64" = x; then
8589 case $cross_compiling:$ac_tool_warned in
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593 ac_tool_warned=yes ;;
8595 OTOOL64=$ac_ct_OTOOL64
8598 OTOOL64="$ac_cv_prog_OTOOL64"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8628 $as_echo_n "checking for -single_module linker flag... " >&6; }
8629 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8632 lt_cv_apple_cc_single_mod=no
8633 if test -z "${LT_MULTI_MODULE}"; then
8634 # By default we will add the -single_module flag. You can override
8635 # by either setting the environment variable LT_MULTI_MODULE
8636 # non-empty at configure time, or by adding -multi_module to the
8638 rm -rf libconftest.dylib*
8639 echo "int foo(void){return 1;}" > conftest.c
8640 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8641 -dynamiclib -Wl,-single_module conftest.c" >&5
8642 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8643 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8645 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8646 lt_cv_apple_cc_single_mod=yes
8648 cat conftest.err >&5
8650 rm -rf libconftest.dylib*
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8655 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8657 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8658 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8661 lt_cv_ld_exported_symbols_list=no
8662 save_LDFLAGS=$LDFLAGS
8663 echo "_main" > conftest.sym
8664 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8676 if ac_fn_c_try_link "$LINENO"; then :
8677 lt_cv_ld_exported_symbols_list=yes
8679 lt_cv_ld_exported_symbols_list=no
8681 rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LDFLAGS="$save_LDFLAGS"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8687 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8689 rhapsody* | darwin1.[012])
8690 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8692 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8693 darwin*) # darwin 5.x on
8694 # if running on 10.5 or later, the deployment target defaults
8695 # to the OS version, if on x86, and 10.4, the deployment
8696 # target defaults to 10.4. Don't you love it?
8697 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8698 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8699 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8701 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8703 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8707 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8708 _lt_dar_single_mod='$single_module'
8710 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8711 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8713 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8715 if test "$DSYMUTIL" != ":"; then
8716 _lt_dsymutil='~$DSYMUTIL $lib || :'
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8725 $as_echo_n "checking for ANSI C header files... " >&6; }
8726 if test "${ac_cv_header_stdc+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 ac_cv_header_stdc=yes
8747 ac_cv_header_stdc=no
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 if test $ac_cv_header_stdc = yes; then
8752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "memchr" >/dev/null 2>&1; then :
8762 ac_cv_header_stdc=no
8768 if test $ac_cv_header_stdc = yes; then
8769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776 $EGREP "free" >/dev/null 2>&1; then :
8779 ac_cv_header_stdc=no
8785 if test $ac_cv_header_stdc = yes; then
8786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8787 if test "$cross_compiling" = yes; then :
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8794 #if ((' ' & 0x0FF) == 0x020)
8795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8798 # define ISLOWER(c) \
8799 (('a' <= (c) && (c) <= 'i') \
8800 || ('j' <= (c) && (c) <= 'r') \
8801 || ('s' <= (c) && (c) <= 'z'))
8802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8810 for (i = 0; i < 256; i++)
8811 if (XOR (islower (i), ISLOWER (i))
8812 || toupper (i) != TOUPPER (i))
8817 if ac_fn_c_try_run "$LINENO"; then :
8820 ac_cv_header_stdc=no
8822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823 conftest.$ac_objext conftest.beam conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8829 $as_echo "$ac_cv_header_stdc" >&6; }
8830 if test $ac_cv_header_stdc = yes; then
8832 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8836 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8837 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8838 inttypes.h stdint.h unistd.h
8840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8843 eval as_val=\$$as_ac_Header
8844 if test "x$as_val" = x""yes; then :
8845 cat >>confdefs.h <<_ACEOF
8846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8854 for ac_header in dlfcn.h
8856 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8858 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8859 cat >>confdefs.h <<_ACEOF
8860 #define HAVE_DLFCN_H 1
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then :
8881 enableval=$enable_shared; p=${PACKAGE-default}
8883 yes) enable_shared=yes ;;
8884 no) enable_shared=no ;;
8887 # Look at the argument we got. We use all the common list separators.
8888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889 for pkg in $enableval; do
8891 if test "X$pkg" = "X$p"; then
8910 # Check whether --enable-static was given.
8911 if test "${enable_static+set}" = set; then :
8912 enableval=$enable_static; p=${PACKAGE-default}
8914 yes) enable_static=yes ;;
8915 no) enable_static=no ;;
8918 # Look at the argument we got. We use all the common list separators.
8919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920 for pkg in $enableval; do
8922 if test "X$pkg" = "X$p"; then
8942 # Check whether --with-pic was given.
8943 if test "${with_pic+set}" = set; then :
8944 withval=$with_pic; pic_mode="$withval"
8950 test -z "$pic_mode" && pic_mode=default
8958 # Check whether --enable-fast-install was given.
8959 if test "${enable_fast_install+set}" = set; then :
8960 enableval=$enable_fast_install; p=${PACKAGE-default}
8962 yes) enable_fast_install=yes ;;
8963 no) enable_fast_install=no ;;
8965 enable_fast_install=no
8966 # Look at the argument we got. We use all the common list separators.
8967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968 for pkg in $enableval; do
8970 if test "X$pkg" = "X$p"; then
8971 enable_fast_install=yes
8978 enable_fast_install=yes
8991 # This can be used to rebuild libtool when needed
8992 LIBTOOL_DEPS="$ltmain"
8994 # Always use our own libtool.
8995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9021 test -z "$LN_S" && LN_S="ln -s"
9036 if test -n "${ZSH_VERSION+set}" ; then
9037 setopt NO_GLOB_SUBST
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9041 $as_echo_n "checking for objdir... " >&6; }
9042 if test "${lt_cv_objdir+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 rm -f .libs 2>/dev/null
9046 mkdir .libs 2>/dev/null
9047 if test -d .libs; then
9050 # MS-DOS does not allow filenames that begin with a dot.
9053 rmdir .libs 2>/dev/null
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9056 $as_echo "$lt_cv_objdir" >&6; }
9057 objdir=$lt_cv_objdir
9063 cat >>confdefs.h <<_ACEOF
9064 #define LT_OBJDIR "$lt_cv_objdir/"
9085 # AIX sometimes has problems with the GCC collect2 program. For some
9086 # reason, if we set the COLLECT_NAMES environment variable, the problems
9087 # vanish in a puff of smoke.
9088 if test "X${COLLECT_NAMES+set}" != Xset; then
9090 export COLLECT_NAMES
9095 # Sed substitution that helps us do robust quoting. It backslashifies
9096 # metacharacters that are still active within double-quoted strings.
9097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9099 # Same as above, but do not quote variable references.
9100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9102 # Sed substitution to delay expansion of an escaped shell variable in a
9103 # double_quote_subst'ed string.
9104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9106 # Sed substitution to delay expansion of an escaped single quote.
9107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9109 # Sed substitution to avoid accidental globbing in evaled expressions
9110 no_glob_subst='s/\*/\\\*/g'
9114 can_build_shared=yes
9116 # All known linkers require a `.a' archive for static linking (except MSVC,
9117 # which needs '.lib').
9120 with_gnu_ld="$lt_cv_prog_gnu_ld"
9123 old_CFLAGS="$CFLAGS"
9125 # Set sane defaults for various variables
9126 test -z "$CC" && CC=cc
9127 test -z "$LTCC" && LTCC=$CC
9128 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9129 test -z "$LD" && LD=ld
9130 test -z "$ac_objext" && ac_objext=o
9132 for cc_temp in $compiler""; do
9134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9140 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9143 # Only perform the check for file, if the check method requires it
9144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9145 case $deplibs_check_method in
9147 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9149 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9150 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9158 lt_save_MAGIC_CMD="$MAGIC_CMD"
9159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9161 for ac_dir in $ac_dummy; do
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f $ac_dir/${ac_tool_prefix}file; then
9165 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9166 if test -n "$file_magic_test_file"; then
9167 case $deplibs_check_method in
9169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9172 $EGREP "$file_magic_regex" > /dev/null; then
9177 *** Warning: the command libtool uses to detect shared libraries,
9178 *** $file_magic_cmd, produces output that libtool cannot recognize.
9179 *** The result is that libtool may fail to recognize shared libraries
9180 *** as such. This will affect the creation of libtool libraries that
9181 *** depend on shared libraries, but programs linked with such libtool
9182 *** libraries will work regardless of this problem. Nevertheless, you
9183 *** may want to report the problem to your system manager and/or to
9184 *** bug-libtool@gnu.org
9194 MAGIC_CMD="$lt_save_MAGIC_CMD"
9199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9200 if test -n "$MAGIC_CMD"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9202 $as_echo "$MAGIC_CMD" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9212 if test -z "$lt_cv_path_MAGIC_CMD"; then
9213 if test -n "$ac_tool_prefix"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9215 $as_echo_n "checking for file... " >&6; }
9216 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224 lt_save_MAGIC_CMD="$MAGIC_CMD"
9225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9227 for ac_dir in $ac_dummy; do
9229 test -z "$ac_dir" && ac_dir=.
9230 if test -f $ac_dir/file; then
9231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9232 if test -n "$file_magic_test_file"; then
9233 case $deplibs_check_method in
9235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9238 $EGREP "$file_magic_regex" > /dev/null; then
9243 *** Warning: the command libtool uses to detect shared libraries,
9244 *** $file_magic_cmd, produces output that libtool cannot recognize.
9245 *** The result is that libtool may fail to recognize shared libraries
9246 *** as such. This will affect the creation of libtool libraries that
9247 *** depend on shared libraries, but programs linked with such libtool
9248 *** libraries will work regardless of this problem. Nevertheless, you
9249 *** may want to report the problem to your system manager and/or to
9250 *** bug-libtool@gnu.org
9260 MAGIC_CMD="$lt_save_MAGIC_CMD"
9265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9266 if test -n "$MAGIC_CMD"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 $as_echo "$MAGIC_CMD" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9284 # Use C for the default configuration in the libtool script
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294 # Source file extension for C test sources.
9297 # Object file extension for compiled C test sources.
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(){return(0);}'
9313 # If no C compiler was specified, use CC.
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9319 # Allow CC to be a program name with arguments.
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9341 ## There is no encapsulation within the following macros, do not change
9342 ## the running order or otherwise move them around unless you know exactly
9343 ## what you are doing...
9344 if test -n "$compiler"; then
9346 lt_prog_compiler_no_builtin_flag=
9348 if test "$GCC" = yes; then
9349 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9356 lt_cv_prog_compiler_rtti_exceptions=no
9357 ac_outfile=conftest.$ac_objext
9358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359 lt_compiler_flag="-fno-rtti -fno-exceptions"
9360 # Insert the option either (1) after the last *FLAGS variable, or
9361 # (2) before a word containing "conftest.", or (3) at the end.
9362 # Note that $ac_compile itself does not contain backslashes and begins
9363 # with a dollar sign (not a hyphen), so the echo should work correctly.
9364 # The option is referenced via a variable to avoid confusing sed.
9365 lt_compile=`echo "$ac_compile" | $SED \
9366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9368 -e 's:$: $lt_compiler_flag:'`
9369 (eval echo "\"\$as_me:9369: $lt_compile\"" >&5)
9370 (eval "$lt_compile" 2>conftest.err)
9372 cat conftest.err >&5
9373 echo "$as_me:9373: \$? = $ac_status" >&5
9374 if (exit $ac_status) && test -s "$ac_outfile"; then
9375 # The compiler can only warn and ignore the option if not recognized
9376 # So say no if there are warnings other than the usual output.
9377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_rtti_exceptions=yes
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9402 lt_prog_compiler_wl=
9403 lt_prog_compiler_pic=
9404 lt_prog_compiler_static=
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9409 if test "$GCC" = yes; then
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_static='-static'
9415 # All AIX code is PIC.
9416 if test "$host_cpu" = ia64; then
9417 # AIX 5 now supports IA64 processor
9418 lt_prog_compiler_static='-Bstatic'
9425 # see comment about AmigaOS4 .so support
9426 lt_prog_compiler_pic='-fPIC'
9429 # FIXME: we need at least 68020 code to build shared libraries, but
9430 # adding the `-m68020' flag to GCC prevents building anything better,
9432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9438 # PIC is the default for these OSes.
9441 mingw* | cygwin* | pw32* | os2* | cegcc*)
9442 # This hack is so that the source file can tell whether it is being
9443 # built for inclusion in a dll (and should export symbols for example).
9444 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9445 # (--disable-auto-import) libraries
9446 lt_prog_compiler_pic='-DDLL_EXPORT'
9449 darwin* | rhapsody*)
9450 # PIC is the default on this platform
9451 # Common symbols not allowed in MH_DYLIB files
9452 lt_prog_compiler_pic='-fno-common'
9456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9458 # sets the default TLS model and affects inlining.
9464 lt_prog_compiler_pic='-fPIC'
9470 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9471 # Instead, we relocate shared libraries at runtime.
9475 # Just because we use GCC doesn't mean we suddenly get shared libraries
9476 # on systems that don't support them.
9477 lt_prog_compiler_can_build_shared=no
9482 # QNX uses GNU C++, but need to define -shared option too, otherwise
9484 lt_prog_compiler_pic='-fPIC -shared'
9488 if test -d /usr/nec; then
9489 lt_prog_compiler_pic=-Kconform_pic
9494 lt_prog_compiler_pic='-fPIC'
9498 # PORTME Check for flag to pass linker flags through the system compiler.
9501 lt_prog_compiler_wl='-Wl,'
9502 if test "$host_cpu" = ia64; then
9503 # AIX 5 now supports IA64 processor
9504 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9510 mingw* | cygwin* | pw32* | os2* | cegcc*)
9511 # This hack is so that the source file can tell whether it is being
9512 # built for inclusion in a dll (and should export symbols for example).
9513 lt_prog_compiler_pic='-DDLL_EXPORT'
9516 hpux9* | hpux10* | hpux11*)
9517 lt_prog_compiler_wl='-Wl,'
9518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9525 lt_prog_compiler_pic='+Z'
9528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9529 lt_prog_compiler_static='${wl}-a ${wl}archive'
9532 irix5* | irix6* | nonstopux*)
9533 lt_prog_compiler_wl='-Wl,'
9534 # PIC (with -KPIC) is the default.
9535 lt_prog_compiler_static='-non_shared'
9538 linux* | k*bsd*-gnu)
9539 case $cc_basename in
9540 # old Intel for x86_64 which still supported -KPIC.
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-static'
9546 # icc used to be incompatible with GCC.
9547 # ICC 10 doesn't accept -KPIC any more.
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-fPIC'
9551 lt_prog_compiler_static='-static'
9553 # Lahey Fortran 8.1.
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='--shared'
9557 lt_prog_compiler_static='--static'
9559 pgcc* | pgf77* | pgf90* | pgf95*)
9560 # Portland Group compilers (*not* the Pentium gcc compiler,
9561 # which looks to be a dead project)
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='-fpic'
9564 lt_prog_compiler_static='-Bstatic'
9567 lt_prog_compiler_wl='-Wl,'
9568 # All Alpha code is PIC.
9569 lt_prog_compiler_static='-non_shared'
9572 # IBM XL C 8.0/Fortran 10.1 on PPC
9573 lt_prog_compiler_wl='-Wl,'
9574 lt_prog_compiler_pic='-qpic'
9575 lt_prog_compiler_static='-qstaticlink'
9578 case `$CC -V 2>&1 | sed 5q` in
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-Bstatic'
9583 lt_prog_compiler_wl='-Wl,'
9586 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 lt_prog_compiler_wl=''
9597 lt_prog_compiler_pic='-KPIC'
9598 lt_prog_compiler_static='-Bstatic'
9602 # QNX uses GNU C++, but need to define -shared option too, otherwise
9604 lt_prog_compiler_pic='-fPIC -shared'
9607 osf3* | osf4* | osf5*)
9608 lt_prog_compiler_wl='-Wl,'
9609 # All OSF/1 code is PIC.
9610 lt_prog_compiler_static='-non_shared'
9614 lt_prog_compiler_static='-non_shared'
9618 lt_prog_compiler_pic='-KPIC'
9619 lt_prog_compiler_static='-Bstatic'
9620 case $cc_basename in
9622 lt_prog_compiler_wl='-Qoption ld ';;
9624 lt_prog_compiler_wl='-Wl,';;
9629 lt_prog_compiler_wl='-Qoption ld '
9630 lt_prog_compiler_pic='-PIC'
9631 lt_prog_compiler_static='-Bstatic'
9634 sysv4 | sysv4.2uw2* | sysv4.3*)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-KPIC'
9637 lt_prog_compiler_static='-Bstatic'
9641 if test -d /usr/nec ;then
9642 lt_prog_compiler_pic='-Kconform_pic'
9643 lt_prog_compiler_static='-Bstatic'
9647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9648 lt_prog_compiler_wl='-Wl,'
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9654 lt_prog_compiler_wl='-Wl,'
9655 lt_prog_compiler_can_build_shared=no
9659 lt_prog_compiler_pic='-pic'
9660 lt_prog_compiler_static='-Bstatic'
9664 lt_prog_compiler_can_build_shared=no
9670 # For platforms which do not support PIC, -DPIC is meaningless:
9672 lt_prog_compiler_pic=
9675 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9679 $as_echo "$lt_prog_compiler_pic" >&6; }
9687 # Check to make sure the PIC flag actually works.
9689 if test -n "$lt_prog_compiler_pic"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9692 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
9695 lt_cv_prog_compiler_pic_works=no
9696 ac_outfile=conftest.$ac_objext
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9699 # Insert the option either (1) after the last *FLAGS variable, or
9700 # (2) before a word containing "conftest.", or (3) at the end.
9701 # Note that $ac_compile itself does not contain backslashes and begins
9702 # with a dollar sign (not a hyphen), so the echo should work correctly.
9703 # The option is referenced via a variable to avoid confusing sed.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:9708: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>conftest.err)
9711 cat conftest.err >&5
9712 echo "$as_me:9712: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s "$ac_outfile"; then
9714 # The compiler can only warn and ignore the option if not recognized
9715 # So say no if there are warnings other than the usual output.
9716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler_pic_works=yes
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9726 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9728 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9729 case $lt_prog_compiler_pic in
9731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9734 lt_prog_compiler_pic=
9735 lt_prog_compiler_can_build_shared=no
9746 # Check to make sure the static flag actually works.
9748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9751 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9754 lt_cv_prog_compiler_static_works=no
9755 save_LDFLAGS="$LDFLAGS"
9756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9759 # The linker can only warn and ignore the option if not recognized
9760 # So say no if there are warnings
9761 if test -s conftest.err; then
9762 # Append any errors to the config.log.
9763 cat conftest.err 1>&5
9764 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9766 if diff conftest.exp conftest.er2 >/dev/null; then
9767 lt_cv_prog_compiler_static_works=yes
9770 lt_cv_prog_compiler_static_works=yes
9774 LDFLAGS="$save_LDFLAGS"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9783 lt_prog_compiler_static=
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9797 lt_cv_prog_compiler_c_o=no
9798 $RM -r conftest 2>/dev/null
9802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9804 lt_compiler_flag="-o out/conftest2.$ac_objext"
9805 # Insert the option either (1) after the last *FLAGS variable, or
9806 # (2) before a word containing "conftest.", or (3) at the end.
9807 # Note that $ac_compile itself does not contain backslashes and begins
9808 # with a dollar sign (not a hyphen), so the echo should work correctly.
9809 lt_compile=`echo "$ac_compile" | $SED \
9810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9812 -e 's:$: $lt_compiler_flag:'`
9813 (eval echo "\"\$as_me:9813: $lt_compile\"" >&5)
9814 (eval "$lt_compile" 2>out/conftest.err)
9816 cat out/conftest.err >&5
9817 echo "$as_me:9817: \$? = $ac_status" >&5
9818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9820 # The compiler can only warn and ignore the option if not recognized
9821 # So say no if there are warnings
9822 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9825 lt_cv_prog_compiler_c_o=yes
9830 # SGI C++ compiler will create directory out/ii_files/ for
9831 # template instantiation
9832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9833 $RM out/* && rmdir out
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 lt_cv_prog_compiler_c_o=no
9853 $RM -r conftest 2>/dev/null
9857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859 lt_compiler_flag="-o out/conftest2.$ac_objext"
9860 # Insert the option either (1) after the last *FLAGS variable, or
9861 # (2) before a word containing "conftest.", or (3) at the end.
9862 # Note that $ac_compile itself does not contain backslashes and begins
9863 # with a dollar sign (not a hyphen), so the echo should work correctly.
9864 lt_compile=`echo "$ac_compile" | $SED \
9865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9867 -e 's:$: $lt_compiler_flag:'`
9868 (eval echo "\"\$as_me:9868: $lt_compile\"" >&5)
9869 (eval "$lt_compile" 2>out/conftest.err)
9871 cat out/conftest.err >&5
9872 echo "$as_me:9872: \$? = $ac_status" >&5
9873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9875 # The compiler can only warn and ignore the option if not recognized
9876 # So say no if there are warnings
9877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9880 lt_cv_prog_compiler_c_o=yes
9885 # SGI C++ compiler will create directory out/ii_files/ for
9886 # template instantiation
9887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9888 $RM out/* && rmdir out
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9900 hard_links="nottested"
9901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9902 # do not overwrite the value of need_locks provided by the user
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9904 $as_echo_n "checking if we can lock with hard links... " >&6; }
9907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9909 ln conftest.a conftest.b 2>&5 || hard_links=no
9910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9912 $as_echo "$hard_links" >&6; }
9913 if test "$hard_links" = no; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9931 allow_undefined_flag=
9932 always_export_symbols=no
9934 archive_expsym_cmds=
9935 compiler_needs_object=no
9936 enable_shared_with_static_runtimes=no
9937 export_dynamic_flag_spec=
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9939 hardcode_automatic=no
9941 hardcode_direct_absolute=no
9942 hardcode_libdir_flag_spec=
9943 hardcode_libdir_flag_spec_ld=
9944 hardcode_libdir_separator=
9946 hardcode_shlibpath_var=unsupported
9948 link_all_deplibs=unknown
9951 old_archive_from_new_cmds=
9952 old_archive_from_expsyms_cmds=
9953 thread_safe_flag_spec=
9954 whole_archive_flag_spec=
9955 # include_expsyms should be a list of space-separated symbols to be *always*
9956 # included in the symbol list
9958 # exclude_expsyms can be an extended regexp of symbols to exclude
9959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9961 # as well as any symbol that contains `d'.
9962 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9964 # platforms (ab)use it in PIC code, but their linkers get confused if
9965 # the symbol is explicitly referenced. Since portable code cannot
9966 # rely on this symbol name, it's probably fine to never include it in
9967 # preloaded symbol tables.
9968 # Exclude shared library initialization/finalization symbols.
9969 extract_expsyms_cmds=
9972 cygwin* | mingw* | pw32* | cegcc*)
9973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9974 # When not using gcc, we currently assume that we are using
9975 # Microsoft Visual C++.
9976 if test "$GCC" != yes; then
9981 # we just hope/assume this is gcc and not c89 (= MSVC++)
9990 if test "$with_gnu_ld" = yes; then
9991 # If archive_cmds runs LD, not CC, wlarc should be empty
9994 # Set some defaults for GNU ld with shared library support. These
9995 # are reset later if shared libraries are not supported. Putting them
9996 # here allows them to be overridden if necessary.
9997 runpath_var=LD_RUN_PATH
9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 export_dynamic_flag_spec='${wl}--export-dynamic'
10000 # ancient GNU ld didn't support --whole-archive et. al.
10001 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10002 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10004 whole_archive_flag_spec=
10006 supports_anon_versioning=no
10007 case `$LD -v 2>&1` in
10008 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10011 *\ 2.11.*) ;; # other 2.11 versions
10012 *) supports_anon_versioning=yes ;;
10015 # See if GNU ld supports shared libraries.
10018 # On AIX/PPC, the GNU linker is very broken
10019 if test "$host_cpu" != ia64; then
10023 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10024 *** to be unable to reliably create shared libraries on AIX.
10025 *** Therefore, libtool is disabling shared libraries support. If you
10026 *** really care for shared libraries, you may want to modify your PATH
10027 *** so that a non-GNU linker is found, and then restart.
10036 # see comment about AmigaOS4 .so support
10037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038 archive_expsym_cmds=''
10041 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)'
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_minus_L=yes
10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050 allow_undefined_flag=unsupported
10051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10052 # support --undefined. This deserves some investigation. FIXME
10053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 cygwin* | mingw* | pw32* | cegcc*)
10060 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10061 # as there is no search path for DLLs.
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 allow_undefined_flag=unsupported
10064 always_export_symbols=no
10065 enable_shared_with_static_runtimes=yes
10066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10068 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070 # If the export-symbols file already is a .def file (1st line
10071 # is EXPORTS), use it as is; otherwise, prepend...
10072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10073 cp $export_symbols $output_objdir/$soname.def;
10075 echo EXPORTS > $output_objdir/$soname.def;
10076 cat $export_symbols >> $output_objdir/$soname.def;
10078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086 hardcode_shlibpath_var=no
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 export_dynamic_flag_spec='${wl}-E'
10089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090 # Instead, shared libraries are loaded at an image base (0x10000000 by
10091 # default) and relocated if they conflict, which is a slow very memory
10092 # consuming and fragmenting process. To avoid this, we pick a random,
10093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096 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'
10099 gnu* | linux* | tpf* | k*bsd*-gnu)
10101 if test "$host_os" = linux-dietlibc; then
10102 case $cc_basename in
10103 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10106 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10107 && test "$tmp_diet" = no
10110 tmp_sharedflag='-shared'
10111 case $cc_basename,$host_cpu in
10112 pgcc*) # Portland Group C compiler
10113 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'
10114 tmp_addflag=' $pic_flag'
10116 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10117 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'
10118 tmp_addflag=' $pic_flag -Mnomain' ;;
10119 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10120 tmp_addflag=' -i_dynamic' ;;
10121 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10122 tmp_addflag=' -i_dynamic -nofor_main' ;;
10123 ifc* | ifort*) # Intel Fortran compiler
10124 tmp_addflag=' -nofor_main' ;;
10125 lf95*) # Lahey Fortran 8.1
10126 whole_archive_flag_spec=
10127 tmp_sharedflag='--shared' ;;
10128 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10129 tmp_sharedflag='-qmkshrobj'
10132 case `$CC -V 2>&1 | sed 5q` in
10133 *Sun\ C*) # Sun C 5.9
10134 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'
10135 compiler_needs_object=yes
10136 tmp_sharedflag='-G' ;;
10137 *Sun\ F*) # Sun Fortran 8.3
10138 tmp_sharedflag='-G' ;;
10140 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 if test "x$supports_anon_versioning" = xyes; then
10143 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10145 echo "local: *; };" >> $output_objdir/$libname.ver~
10146 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10149 case $cc_basename in
10151 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10152 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10153 hardcode_libdir_flag_spec=
10154 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10155 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10156 if test "x$supports_anon_versioning" = xyes; then
10157 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10159 echo "local: *; };" >> $output_objdir/$libname.ver~
10160 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10170 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10171 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10180 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10184 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10185 *** create shared libraries on Solaris systems. Therefore, libtool
10186 *** is disabling shared libraries support. We urge you to upgrade GNU
10187 *** binutils to release 2.9.1 or newer. Another option is to modify
10188 *** your PATH or compiler configuration so that the native linker is
10189 *** used, and then restart.
10192 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10201 case `$LD -v 2>&1` in
10202 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10206 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10207 *** reliably create shared libraries on SCO systems. Therefore, libtool
10208 *** is disabling shared libraries support. We urge you to upgrade GNU
10209 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10210 *** your PATH or compiler configuration so that the native linker is
10211 *** used, and then restart.
10216 # For security reasons, it is highly recommended that you always
10217 # use absolute paths for naming shared libraries, and exclude the
10218 # DT_RUNPATH tag from executables and libraries. But doing so
10219 # requires that you compile everything twice, which is a pain.
10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10232 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_direct=yes
10235 hardcode_shlibpath_var=no
10239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248 if test "$ld_shlibs" = no; then
10250 hardcode_libdir_flag_spec=
10251 export_dynamic_flag_spec=
10252 whole_archive_flag_spec=
10255 # PORTME fill in a description of your system's linker (not GNU ld)
10258 allow_undefined_flag=unsupported
10259 always_export_symbols=yes
10260 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'
10261 # Note: this linker hardcodes the directories in LIBPATH if there
10262 # are no directories specified by -L.
10263 hardcode_minus_L=yes
10264 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10265 # Neither direct hardcoding nor static linking is supported with a
10267 hardcode_direct=unsupported
10272 if test "$host_cpu" = ia64; then
10273 # On IA64, the linker does run time linking by default, so we don't
10274 # have to do anything special.
10275 aix_use_runtimelinking=no
10276 exp_sym_flag='-Bexport'
10279 # If we're using GNU nm, then we don't want the "-C" option.
10280 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10281 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10282 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'
10284 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'
10286 aix_use_runtimelinking=no
10288 # Test if we are trying to use run time linking or normal
10289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10290 # need to do runtime linking.
10291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10292 for ld_flag in $LDFLAGS; do
10293 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10294 aix_use_runtimelinking=yes
10301 exp_sym_flag='-bexport'
10302 no_entry_flag='-bnoentry'
10305 # When large executables or shared objects are built, AIX ld can
10306 # have problems creating the table of contents. If linking a library
10307 # or program results in "error TOC overflow" add -mminimal-toc to
10308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10312 hardcode_direct=yes
10313 hardcode_direct_absolute=yes
10314 hardcode_libdir_separator=':'
10315 link_all_deplibs=yes
10316 file_list_spec='${wl}-f,'
10318 if test "$GCC" = yes; then
10319 case $host_os in aix4.[012]|aix4.[012].*)
10320 # We only want to do this on AIX 4.2 and lower, the check
10321 # below for broken collect2 doesn't work under 4.3+
10322 collect2name=`${CC} -print-prog-name=collect2`
10323 if test -f "$collect2name" &&
10324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10326 # We have reworked collect2
10329 # We have old collect2
10330 hardcode_direct=unsupported
10331 # It fails to find uninstalled libraries when the uninstalled
10332 # path is not listed in the libpath. Setting hardcode_minus_L
10333 # to unsupported forces relinking
10334 hardcode_minus_L=yes
10335 hardcode_libdir_flag_spec='-L$libdir'
10336 hardcode_libdir_separator=
10340 shared_flag='-shared'
10341 if test "$aix_use_runtimelinking" = yes; then
10342 shared_flag="$shared_flag "'${wl}-G'
10346 if test "$host_cpu" = ia64; then
10347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10348 # chokes on -Wl,-G. The following line is correct:
10351 if test "$aix_use_runtimelinking" = yes; then
10352 shared_flag='${wl}-G'
10354 shared_flag='${wl}-bM:SRE'
10359 export_dynamic_flag_spec='${wl}-bexpall'
10360 # It seems that -bexpall does not export symbols beginning with
10361 # underscore (_), so it is better to generate a list of symbols to export.
10362 always_export_symbols=yes
10363 if test "$aix_use_runtimelinking" = yes; then
10364 # Warning - without using the other runtime loading flags (-brtl),
10365 # -berok will link without error, but may produce a broken library.
10366 allow_undefined_flag='-berok'
10367 # Determine the default libpath from the value encoded in an
10368 # empty executable.
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10380 if ac_fn_c_try_link "$LINENO"; then :
10382 lt_aix_libpath_sed='
10383 /Import File Strings/,/^$/ {
10389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 # Check for a 64-bit object if we didn't find anything.
10391 if test -z "$aix_libpath"; then
10392 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400 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"
10402 if test "$host_cpu" = ia64; then
10403 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10404 allow_undefined_flag="-z nodefs"
10405 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"
10407 # Determine the default libpath from the value encoded in an
10408 # empty executable.
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10420 if ac_fn_c_try_link "$LINENO"; then :
10422 lt_aix_libpath_sed='
10423 /Import File Strings/,/^$/ {
10429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10430 # Check for a 64-bit object if we didn't find anything.
10431 if test -z "$aix_libpath"; then
10432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10440 # Warning - without using the other run time loading flags,
10441 # -berok will link without error, but may produce a broken library.
10442 no_undefined_flag=' ${wl}-bernotok'
10443 allow_undefined_flag=' ${wl}-berok'
10444 # Exported symbols can be pulled into shared objects from archives
10445 whole_archive_flag_spec='$convenience'
10446 archive_cmds_need_lc=yes
10447 # This is similar to how AIX traditionally builds its shared libraries.
10448 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'
10456 # see comment about AmigaOS4 .so support
10457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458 archive_expsym_cmds=''
10461 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)'
10462 hardcode_libdir_flag_spec='-L$libdir'
10463 hardcode_minus_L=yes
10469 export_dynamic_flag_spec=-rdynamic
10472 cygwin* | mingw* | pw32* | cegcc*)
10473 # When not using gcc, we currently assume that we are using
10474 # Microsoft Visual C++.
10475 # hardcode_libdir_flag_spec is actually meaningless, as there is
10476 # no search path for DLLs.
10477 hardcode_libdir_flag_spec=' '
10478 allow_undefined_flag=unsupported
10479 # Tell ltmain to make .lib files, not .a files.
10481 # Tell ltmain to make .dll files, not .so files.
10483 # FIXME: Setting linknames here is a bad hack.
10484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10485 # The linker will automatically build a .lib file if we build a DLL.
10486 old_archive_from_new_cmds='true'
10487 # FIXME: Should let the user specify the lib program.
10488 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10489 fix_srcfile_path='`cygpath -w "$srcfile"`'
10490 enable_shared_with_static_runtimes=yes
10493 darwin* | rhapsody*)
10496 archive_cmds_need_lc=no
10498 hardcode_automatic=yes
10499 hardcode_shlibpath_var=unsupported
10500 whole_archive_flag_spec=''
10501 link_all_deplibs=yes
10502 allow_undefined_flag="$_lt_dar_allow_undefined"
10503 case $cc_basename in
10504 ifort*) _lt_dar_can_shared=yes ;;
10505 *) _lt_dar_can_shared=$GCC ;;
10507 if test "$_lt_dar_can_shared" = "yes"; then
10508 output_verbose_link_cmd=echo
10509 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10510 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10511 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}"
10512 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}"
10521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10522 hardcode_libdir_flag_spec='-L$libdir'
10523 hardcode_shlibpath_var=no
10530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10531 # support. Future versions do this automatically, but an explicit c++rt0.o
10532 # does not break anything, and helps significantly (at the cost of a little
10535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10536 hardcode_libdir_flag_spec='-R$libdir'
10537 hardcode_direct=yes
10538 hardcode_shlibpath_var=no
10541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10544 hardcode_direct=yes
10545 hardcode_minus_L=yes
10546 hardcode_shlibpath_var=no
10549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10550 freebsd* | dragonfly*)
10551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10552 hardcode_libdir_flag_spec='-R$libdir'
10553 hardcode_direct=yes
10554 hardcode_shlibpath_var=no
10558 if test "$GCC" = yes; then
10559 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'
10561 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'
10563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10564 hardcode_libdir_separator=:
10565 hardcode_direct=yes
10567 # hardcode_minus_L: Not really in the search PATH,
10568 # but as the default location of the library.
10569 hardcode_minus_L=yes
10570 export_dynamic_flag_spec='${wl}-E'
10574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10579 if test "$with_gnu_ld" = no; then
10580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10581 hardcode_libdir_flag_spec_ld='+b $libdir'
10582 hardcode_libdir_separator=:
10583 hardcode_direct=yes
10584 hardcode_direct_absolute=yes
10585 export_dynamic_flag_spec='${wl}-E'
10586 # hardcode_minus_L: Not really in the search PATH,
10587 # but as the default location of the library.
10588 hardcode_minus_L=yes
10593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10618 if test "$with_gnu_ld" = no; then
10619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10620 hardcode_libdir_separator=:
10625 hardcode_shlibpath_var=no
10628 hardcode_direct=yes
10629 hardcode_direct_absolute=yes
10630 export_dynamic_flag_spec='${wl}-E'
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10640 irix5* | irix6* | nonstopux*)
10641 if test "$GCC" = yes; then
10642 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'
10643 # Try to use the -exported_symbol ld option, if it does not
10644 # work, assume that -exports_file does not work either and
10645 # implicitly export all symbols.
10646 save_LDFLAGS="$LDFLAGS"
10647 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 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'
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LDFLAGS="$save_LDFLAGS"
10660 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'
10661 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'
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665 hardcode_libdir_separator=:
10667 link_all_deplibs=yes
10671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683 hardcode_direct=yes
10684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10685 hardcode_libdir_separator=:
10686 hardcode_shlibpath_var=no
10693 if test -f /usr/libexec/ld.so; then
10694 hardcode_direct=yes
10695 hardcode_shlibpath_var=no
10696 hardcode_direct_absolute=yes
10697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10701 export_dynamic_flag_spec='${wl}-E'
10704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_libdir_flag_spec='-R$libdir'
10709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10720 hardcode_libdir_flag_spec='-L$libdir'
10721 hardcode_minus_L=yes
10722 allow_undefined_flag=unsupported
10723 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'
10724 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10728 if test "$GCC" = yes; then
10729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10730 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'
10732 allow_undefined_flag=' -expect_unresolved \*'
10733 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'
10735 archive_cmds_need_lc='no'
10736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737 hardcode_libdir_separator=:
10740 osf4* | osf5*) # as osf3* with the addition of -msym flag
10741 if test "$GCC" = yes; then
10742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10743 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'
10744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 allow_undefined_flag=' -expect_unresolved \*'
10747 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'
10748 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~
10749 $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'
10751 # Both c and cxx compiler support -rpath directly
10752 hardcode_libdir_flag_spec='-rpath $libdir'
10754 archive_cmds_need_lc='no'
10755 hardcode_libdir_separator=:
10759 no_undefined_flag=' -z defs'
10760 if test "$GCC" = yes; then
10762 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10764 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10766 case `$CC -V 2>&1` in
10769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10775 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10777 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10781 hardcode_libdir_flag_spec='-R$libdir'
10782 hardcode_shlibpath_var=no
10784 solaris2.[0-5] | solaris2.[0-5].*) ;;
10786 # The compiler driver will combine and reorder linker options,
10787 # but understands `-z linker_flag'. GCC discards it without `$wl',
10788 # but is careful enough not to reorder.
10789 # Supported since Solaris 2.6 (maybe 2.5.1?)
10790 if test "$GCC" = yes; then
10791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10797 link_all_deplibs=yes
10801 if test "x$host_vendor" = xsequent; then
10802 # Use $CC to link under sequent, because it throws in some extra .o
10803 # files that make .init and .fini sections work.
10804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10808 hardcode_libdir_flag_spec='-L$libdir'
10809 hardcode_direct=yes
10810 hardcode_minus_L=yes
10811 hardcode_shlibpath_var=no
10815 case $host_vendor in
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_direct=yes # is this really true???
10821 ## LD is ld it makes a PLAMLIB
10822 ## CC just makes a GrossModule.
10823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10824 reload_cmds='$CC -r -o $output$reload_objs'
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10832 runpath_var='LD_RUN_PATH'
10833 hardcode_shlibpath_var=no
10837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_shlibpath_var=no
10839 export_dynamic_flag_spec='-Bexport'
10843 if test -d /usr/nec; then
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_shlibpath_var=no
10846 runpath_var=LD_RUN_PATH
10847 hardcode_runpath_var=yes
10852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10853 no_undefined_flag='${wl}-z,text'
10854 archive_cmds_need_lc=no
10855 hardcode_shlibpath_var=no
10856 runpath_var='LD_RUN_PATH'
10858 if test "$GCC" = yes; then
10859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 sysv5* | sco3.2v5* | sco5v6*)
10868 # Note: We can NOT use -z defs as we might desire, because we do not
10869 # link with -lc, and that would cause any symbols used from libc to
10870 # always be unresolved, which means just about no library would
10871 # ever link correctly. If we're not using GNU ld we use -z text
10872 # though, which does catch some bad symbols but isn't as heavy-handed
10874 no_undefined_flag='${wl}-z,text'
10875 allow_undefined_flag='${wl}-z,nodefs'
10876 archive_cmds_need_lc=no
10877 hardcode_shlibpath_var=no
10878 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10879 hardcode_libdir_separator=':'
10880 link_all_deplibs=yes
10881 export_dynamic_flag_spec='${wl}-Bexport'
10882 runpath_var='LD_RUN_PATH'
10884 if test "$GCC" = yes; then
10885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_libdir_flag_spec='-L$libdir'
10896 hardcode_shlibpath_var=no
10904 if test x$host_vendor = xsni; then
10906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10907 export_dynamic_flag_spec='${wl}-Blargedynsym'
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10914 $as_echo "$ld_shlibs" >&6; }
10915 test "$ld_shlibs" = no && can_build_shared=no
10917 with_gnu_ld=$with_gnu_ld
10934 # Do we need to explicitly link libc?
10936 case "x$archive_cmds_need_lc" in
10938 # Assume -lc should be added
10939 archive_cmds_need_lc=yes
10941 if test "$enable_shared" = yes && test "$GCC" = yes; then
10942 case $archive_cmds in
10944 # FIXME: we may have to deal with multi-command sequences.
10947 # Test whether the compiler implicitly links with -lc since on some
10948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10949 # to ld, don't add -lc before -lgcc.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10956 (eval $ac_compile) 2>&5
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } 2>conftest.err; then
10962 libobjs=conftest.$ac_objext
10964 wl=$lt_prog_compiler_wl
10965 pic_flag=$lt_prog_compiler_pic
10971 lt_save_allow_undefined_flag=$allow_undefined_flag
10972 allow_undefined_flag=
10973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10974 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977 test $ac_status = 0; }
10979 archive_cmds_need_lc=no
10981 archive_cmds_need_lc=yes
10983 allow_undefined_flag=$lt_save_allow_undefined_flag
10985 cat conftest.err 1>&5
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10989 $as_echo "$archive_cmds_need_lc" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11155 if test "$GCC" = yes; then
11157 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11158 *) lt_awk_arg="/^libraries:/" ;;
11160 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11161 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11162 # if the path contains ";" then we assume it to be the separator
11163 # otherwise default to the standard path separator (i.e. ":") - it is
11164 # assumed that no part of a normal pathname contains ";" but that should
11165 # okay in the real world where ";" in dirpaths is itself problematic.
11166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11168 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11170 # Ok, now we have the path, separated by spaces, we can step through it
11171 # and add multilib dir if necessary.
11172 lt_tmp_lt_search_path_spec=
11173 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11174 for lt_sys_path in $lt_search_path_spec; do
11175 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11178 test -d "$lt_sys_path" && \
11179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11182 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11183 BEGIN {RS=" "; FS="/|\n";} {
11186 for (lt_i = NF; lt_i > 0; lt_i--) {
11187 if ($lt_i != "" && $lt_i != ".") {
11188 if ($lt_i == "..") {
11191 if (lt_count == 0) {
11192 lt_foo="/" $lt_i lt_foo;
11199 if (lt_foo != "") { lt_freq[lt_foo]++; }
11200 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11202 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11206 library_names_spec=
11207 libname_spec='lib$name'
11211 postuninstall_cmds=
11215 shlibpath_overrides_runpath=unknown
11217 dynamic_linker="$host_os ld.so"
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11219 need_lib_prefix=unknown
11220 hardcode_into_libs=no
11222 # when you set need_version to no, make sure it does not cause -set_version
11223 # flags to be left without arguments
11224 need_version=unknown
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11230 shlibpath_var=LIBPATH
11232 # AIX 3 has no versioning support, so we append a major version to the name.
11233 soname_spec='${libname}${release}${shared_ext}$major'
11240 hardcode_into_libs=yes
11241 if test "$host_cpu" = ia64; then
11242 # AIX 5 supports IA64
11243 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11244 shlibpath_var=LD_LIBRARY_PATH
11246 # With GCC up to 2.95.x, collect2 would create an import file
11247 # for dependence libraries. The import file would start with
11248 # the line `#! .'. This would cause the generated library to
11249 # depend on `.', always an invalid library. This was fixed in
11250 # development snapshots of GCC prior to 3.0.
11252 aix4 | aix4.[01] | aix4.[01].*)
11253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11255 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11258 can_build_shared=no
11262 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11263 # soname into executable. Probably we can add versioning support to
11264 # collect2, so additional links can be useful in future.
11265 if test "$aix_use_runtimelinking" = yes; then
11266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11267 # instead of lib<name>.a to let people know that these are not
11268 # typical AIX shared libraries.
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 # We preserve .a as extension for shared libraries through AIX4.2
11272 # and later when we are not doing run time linking.
11273 library_names_spec='${libname}${release}.a $libname.a'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LIBPATH
11283 # Since July 2007 AmigaOS4 officially supports .so libraries.
11284 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 library_names_spec='$libname.ixlibrary $libname.a'
11289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11290 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'
11296 library_names_spec='${libname}${shared_ext}'
11297 dynamic_linker="$host_os ld.so"
11298 shlibpath_var=LIBRARY_PATH
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11310 # the default ld.so.conf also contains /usr/contrib/lib and
11311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11312 # libtool to hard-code these into programs
11315 cygwin* | mingw* | pw32* | cegcc*)
11316 version_type=windows
11321 case $GCC,$host_os in
11322 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11323 library_names_spec='$libname.dll.a'
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \${file}`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname~
11330 chmod a+x \$dldir/$dlname~
11331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335 dlpath=$dir/\$dldll~
11337 shlibpath_overrides_runpath=yes
11341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11343 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11346 # MinGW DLLs use traditional 'lib' prefix
11347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11348 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11349 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11350 # It is most probably a Windows format PATH printed by
11351 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11352 # path with ; separators, and with drive letters. We can handle the
11353 # drive letters (cygwin fileutils understands them), so leave them,
11354 # especially as we might pass files found there to a mingw objdump,
11355 # which wouldn't understand a cygwinified path. Ahh.
11356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11362 # pw32 DLLs use 'pw' prefix rather than 'lib'
11363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11372 dynamic_linker='Win32 ld.exe'
11373 # FIXME: first we should search . and the directory the executable is in
11377 darwin* | rhapsody*)
11378 dynamic_linker="$host_os dyld"
11379 version_type=darwin
11382 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11383 soname_spec='${libname}${release}${major}$shared_ext'
11384 shlibpath_overrides_runpath=yes
11385 shlibpath_var=DYLD_LIBRARY_PATH
11386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11405 freebsd* | dragonfly*)
11406 # DragonFly does not have aout. When/if they implement a new
11407 # versioning mechanism, adjust this.
11408 if test -x /usr/bin/objformat; then
11409 objformat=`/usr/bin/objformat`
11412 freebsd[123]*) objformat=aout ;;
11413 *) objformat=elf ;;
11416 version_type=freebsd-$objformat
11417 case $version_type in
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11428 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=yes
11433 freebsd3.[01]* | freebsdelf3.[01]*)
11434 shlibpath_overrides_runpath=yes
11435 hardcode_into_libs=yes
11437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11439 shlibpath_overrides_runpath=no
11440 hardcode_into_libs=yes
11442 *) # from 4.6 on, and DragonFly
11443 shlibpath_overrides_runpath=yes
11444 hardcode_into_libs=yes
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 hardcode_into_libs=yes
11459 hpux9* | hpux10* | hpux11*)
11460 # Give a soname corresponding to the major version so that dld.sl refuses to
11461 # link against other versions.
11468 hardcode_into_libs=yes
11469 dynamic_linker="$host_os dld.so"
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 if test "X$HPUX_IA64_MODE" = X32; then
11475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11483 hardcode_into_libs=yes
11484 dynamic_linker="$host_os dld.sl"
11485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11494 dynamic_linker="$host_os dld.sl"
11495 shlibpath_var=SHLIB_PATH
11496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11502 postinstall_cmds='chmod 555 $lib'
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11517 irix5* | irix6* | nonstopux*)
11519 nonstopux*) version_type=nonstopux ;;
11521 if test "$lt_cv_prog_gnu_ld" = yes; then
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11532 irix5* | nonstopux*)
11533 libsuff= shlibsuff=
11536 case $LD in # libtool.m4 will add one of these switches to LD
11537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11538 libsuff= shlibsuff= libmagic=32-bit;;
11539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11540 libsuff=32 shlibsuff=N32 libmagic=N32;;
11541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11543 *) libsuff= shlibsuff= libmagic=never-match;;
11547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11548 shlibpath_overrides_runpath=no
11549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11551 hardcode_into_libs=yes
11554 # No shared lib support for Linux oldld, aout, or coff.
11555 linux*oldld* | linux*aout* | linux*coff*)
11559 # This must be Linux ELF.
11560 linux* | k*bsd*-gnu)
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=no
11569 # Some binutils ld are patched to set DT_RUNPATH
11570 save_LDFLAGS=$LDFLAGS
11571 save_libdir=$libdir
11572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11587 shlibpath_overrides_runpath=yes
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LDFLAGS=$save_LDFLAGS
11593 libdir=$save_libdir
11595 # This implies no fast_install, which is unacceptable.
11596 # Some rework will be needed to allow for fast_install
11597 # before this can be enabled.
11598 hardcode_into_libs=yes
11600 # Append ld.so.conf contents to the search path
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='ldqnx.so'
11654 sys_lib_dlsearch_path_spec="/usr/lib"
11656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11659 *) need_version=no ;;
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11666 openbsd2.[89] | openbsd2.[89].*)
11667 shlibpath_overrides_runpath=no
11670 shlibpath_overrides_runpath=yes
11674 shlibpath_overrides_runpath=yes
11679 libname_spec='$name'
11682 library_names_spec='$libname${shared_ext} $libname.a'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=LIBPATH
11687 osf3* | osf4* | osf5*)
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 # ldd complains unless libraries are executable
11712 postinstall_cmds='chmod +x $lib'
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 if test "$with_gnu_ld" = yes; then
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 case $host_vendor in
11734 shlibpath_overrides_runpath=no
11736 runpath_var=LD_RUN_PATH
11744 shlibpath_overrides_runpath=no
11745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11751 if test -d /usr/nec ;then
11753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754 soname_spec='$libname${shared_ext}.$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760 version_type=freebsd-elf
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 if test "$with_gnu_ld" = yes; then
11769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11778 sys_lib_dlsearch_path_spec='/usr/lib'
11782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804 $as_echo "$dynamic_linker" >&6; }
11805 test "$dynamic_linker" = no && can_build_shared=no
11807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808 if test "$GCC" = yes; then
11809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909 test -n "$runpath_var" ||
11910 test "X$hardcode_automatic" = "Xyes" ; then
11912 # We can hardcode non-existent directories.
11913 if test "$hardcode_direct" != no &&
11914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915 # have to relink, otherwise we might link with an installed library
11916 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918 test "$hardcode_minus_L" != no; then
11919 # Linking always hardcodes the temporary library directory.
11920 hardcode_action=relink
11922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923 hardcode_action=immediate
11926 # We cannot hardcode anything, or else we can only hardcode existing
11928 hardcode_action=unsupported
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11933 if test "$hardcode_action" = relink ||
11934 test "$inherit_rpath" = yes; then
11935 # Fast installation is not supported
11936 enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938 test "$enable_shared" = no; then
11939 # Fast installation is not necessary
11940 enable_fast_install=needless
11948 if test "x$enable_dlopen" != xyes; then
11949 enable_dlopen=unknown
11950 enable_dlopen_self=unknown
11951 enable_dlopen_self_static=unknown
11958 lt_cv_dlopen="load_add_on"
11960 lt_cv_dlopen_self=yes
11963 mingw* | pw32* | cegcc*)
11964 lt_cv_dlopen="LoadLibrary"
11969 lt_cv_dlopen="dlopen"
11974 # if libdl is installed we need to link against it
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11980 ac_check_lib_save_LIBS=$LIBS
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12003 ac_cv_lib_dl_dlopen=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12015 lt_cv_dlopen="dyld"
12017 lt_cv_dlopen_self=yes
12024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = x""yes; then :
12026 lt_cv_dlopen="shl_load"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
12033 ac_check_lib_save_LIBS=$LIBS
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12048 return shl_load ();
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_shl_load=yes
12056 ac_cv_lib_dld_shl_load=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = x""yes; then :
12069 lt_cv_dlopen="dlopen"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12076 ac_check_lib_save_LIBS=$LIBS
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_lib_dl_dlopen=yes
12099 ac_cv_lib_dl_dlopen=no
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_svld_dlopen=yes
12138 ac_cv_lib_svld_dlopen=no
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12169 return dld_link ();
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_dld_dld_link=yes
12177 ac_cv_lib_dld_dld_link=no
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12207 if test "x$lt_cv_dlopen" != xno; then
12213 case $lt_cv_dlopen in
12215 save_CPPFLAGS="$CPPFLAGS"
12216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12218 save_LDFLAGS="$LDFLAGS"
12219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12222 LIBS="$lt_cv_dlopen_libs $LIBS"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if test "${lt_cv_dlopen_self+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self=cross
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<_LT_EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12245 # define LT_DLGLOBAL RTLD_GLOBAL
12248 # define LT_DLGLOBAL DL_GLOBAL
12250 # define LT_DLGLOBAL 0
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12261 # define LT_DLLAZY_OR_NOW DL_LAZY
12264 # define LT_DLLAZY_OR_NOW RTLD_NOW
12267 # define LT_DLLAZY_OR_NOW DL_NOW
12269 # define LT_DLLAZY_OR_NOW 0
12276 void fnord() { int i=42;}
12279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12280 int status = $lt_dlunknown;
12284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12286 /* dlclose (self); */
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295 (eval $ac_link) 2>&5
12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299 (./conftest; exit; ) >&5 2>/dev/null
12301 case x$lt_status in
12302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12304 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12307 # compilation failed
12308 lt_cv_dlopen_self=no
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12316 $as_echo "$lt_cv_dlopen_self" >&6; }
12318 if test "x$lt_cv_dlopen_self" = xyes; then
12319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12322 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 if test "$cross_compiling" = yes; then :
12326 lt_cv_dlopen_self_static=cross
12328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12329 lt_status=$lt_dlunknown
12330 cat > conftest.$ac_ext <<_LT_EOF
12331 #line 12331 "configure"
12332 #include "confdefs.h"
12341 # define LT_DLGLOBAL RTLD_GLOBAL
12344 # define LT_DLGLOBAL DL_GLOBAL
12346 # define LT_DLGLOBAL 0
12350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12351 find out it does not work in some platform. */
12352 #ifndef LT_DLLAZY_OR_NOW
12354 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12357 # define LT_DLLAZY_OR_NOW DL_LAZY
12360 # define LT_DLLAZY_OR_NOW RTLD_NOW
12363 # define LT_DLLAZY_OR_NOW DL_NOW
12365 # define LT_DLLAZY_OR_NOW 0
12372 void fnord() { int i=42;}
12375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12376 int status = $lt_dlunknown;
12380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12382 /* dlclose (self); */
12390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12391 (eval $ac_link) 2>&5
12393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12395 (./conftest; exit; ) >&5 2>/dev/null
12397 case x$lt_status in
12398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12400 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12403 # compilation failed
12404 lt_cv_dlopen_self_static=no
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12412 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12415 CPPFLAGS="$save_CPPFLAGS"
12416 LDFLAGS="$save_LDFLAGS"
12421 case $lt_cv_dlopen_self in
12422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12423 *) enable_dlopen_self=unknown ;;
12426 case $lt_cv_dlopen_self_static in
12427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12428 *) enable_dlopen_self_static=unknown ;;
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12451 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12452 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12458 # FIXME - insert some real tests, host_os isn't really good enough
12461 if test -n "$STRIP" ; then
12462 striplib="$STRIP -x"
12463 old_striplib="$STRIP -S"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12489 # Report which library types will actually be built
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12491 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12493 $as_echo "$can_build_shared" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12496 $as_echo_n "checking whether to build shared libraries... " >&6; }
12497 test "$can_build_shared" = "no" && enable_shared=no
12499 # On AIX, shared libraries and static libraries use the same namespace, and
12500 # are all built from PIC.
12503 test "$enable_shared" = yes && enable_static=no
12504 if test -n "$RANLIB"; then
12505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12506 postinstall_cmds='$RANLIB $lib'
12511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12512 test "$enable_shared" = yes && enable_static=no
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12517 $as_echo "$enable_shared" >&6; }
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12520 $as_echo_n "checking whether to build static libraries... " >&6; }
12521 # Make sure either enable_shared or enable_static is yes.
12522 test "$enable_shared" = yes || enable_static=yes
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12524 $as_echo "$enable_static" >&6; }
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550 ac_config_commands="$ac_config_commands libtool"
12555 # Only expand once:
12559 if test "$enable_shared" = "no"; then
12562 eval _shrext="$shrext_cmds"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12565 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12567 # Check whether --with-noexec was given.
12568 if test "${with_noexec+set}" = set; then :
12569 withval=$with_noexec; case $with_noexec in
12570 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
12576 with_noexec="$libexecdir/sudo_noexec$_shrext"
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12580 $as_echo "$with_noexec" >&6; }
12581 NOEXECFILE="sudo_noexec$_shrext"
12582 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12584 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12585 CFLAGS="${CFLAGS} -Wall"
12588 # Extract the first word of "uname", so it can be a program name with args.
12589 set dummy uname; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12595 if test -n "$UNAMEPROG"; then
12596 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_prog_UNAMEPROG="uname"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12616 if test -n "$UNAMEPROG"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12618 $as_echo "$UNAMEPROG" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12625 # Extract the first word of "tr", so it can be a program name with args.
12626 set dummy tr; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12632 if test -n "$TRPROG"; then
12633 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642 ac_cv_prog_TRPROG="tr"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 TRPROG=$ac_cv_prog_TRPROG
12653 if test -n "$TRPROG"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12655 $as_echo "$TRPROG" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12662 for ac_prog in nroff mandoc
12664 # Extract the first word of "$ac_prog", so it can be a program name with args.
12665 set dummy $ac_prog; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12671 if test -n "$NROFFPROG"; then
12672 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681 ac_cv_prog_NROFFPROG="$ac_prog"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 NROFFPROG=$ac_cv_prog_NROFFPROG
12692 if test -n "$NROFFPROG"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12694 $as_echo "$NROFFPROG" >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12701 test -n "$NROFFPROG" && break
12704 if test -z "$NROFFPROG"; then
12706 mansrcdir='$(srcdir)'
12709 if test -n "$sudo_cv_prev_host"; then
12710 if test "$sudo_cv_prev_host" != "$host"; then
12711 as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12714 $as_echo_n "checking previous host type... " >&6; }
12715 if test "${sudo_cv_prev_host+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 sudo_cv_prev_host="$host"
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12722 $as_echo "$sudo_cv_prev_host" >&6; }
12725 # this will produce no output since there is no cached value
12726 if test "${sudo_cv_prev_host+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 sudo_cv_prev_host="$host"
12734 if test -n "$host_os"; then
12735 OS=`echo $host_os | sed 's/[0-9].*//'`
12736 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12737 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12746 # getcwd(3) opens a pipe to getpwd(1)!?!
12749 # system headers lack prototypes but gcc helps...
12750 if test -n "$GCC"; then
12751 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12754 shadow_funcs="getpwanam issecure"
12757 # To get the crypt(3) prototype (so we pass -Wall)
12758 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12759 # AFS support needs -lucb
12760 if test "$with_AFS" = "yes"; then
12761 AFS_LIBS="-lc -lucb"
12763 : ${mansectsu='1m'}
12764 : ${mansectform='4'}
12765 : ${with_rpath='yes'}
12766 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12769 # To get all prototypes (so we pass -Wall)
12770 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12771 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12772 if test X"$with_blibpath" != X"no"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12774 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12775 O_LDFLAGS="$LDFLAGS"
12776 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12788 if ac_fn_c_try_link "$LINENO"; then :
12790 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12791 blibpath="$with_blibpath"
12792 elif test -n "$GCC"; then
12793 blibpath="/usr/lib:/lib:/usr/local/lib"
12795 blibpath="/usr/lib:/lib"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 $as_echo "yes" >&6; }
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12807 LDFLAGS="$O_LDFLAGS"
12809 # Use authenticate(3) as the default authentication method
12810 if test X"$with_aixauth" = X""; then
12811 for ac_func in authenticate
12813 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12814 if test "x$ac_cv_func_authenticate" = x""yes; then :
12815 cat >>confdefs.h <<_ACEOF
12816 #define HAVE_AUTHENTICATE 1
12818 AUTH_EXCL_DEF="AIX_AUTH"
12824 # AIX analog of nsswitch.conf, enabled by default
12826 # Check whether --with-netsvc was given.
12827 if test "${with_netsvc+set}" = set; then :
12828 withval=$with_netsvc; case $with_netsvc in
12830 yes) with_netsvc="/etc/netsvc.conf"
12836 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12837 with_netsvc="/etc/netsvc.conf"
12840 # AIX-specific functions
12841 for ac_func in getuserattr setauthdb
12843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12845 eval as_val=\$$as_ac_var
12846 if test "x$as_val" = x""yes; then :
12847 cat >>confdefs.h <<_ACEOF
12848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 COMMON_OBJS="$COMMON_OBJS aix.o"
12857 : ${mansectsu='1m'}
12858 : ${mansectform='4'}
12861 # AFS support needs -lBSD
12862 if test "$with_AFS" = "yes"; then
12863 AFS_LIBS="-lc -lBSD"
12865 : ${mansectsu='1m'}
12866 : ${mansectform='4'}
12868 if test -z "$GCC"; then
12869 # HP-UX bundled compiler can't generate shared objects
12870 if -z "$pic_flag"; then
12874 # Use the +DAportable flag on hppa if it is supported
12875 case "$host_cpu" in
12878 CFLAGS="$CFLAGS +DAportable"
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12880 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12881 if test "${sudo_cv_var_daportable+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 sudo_cv_var_daportable=yes
12898 sudo_cv_var_daportable=no
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12907 $as_echo "$sudo_cv_var_daportable" >&6; }
12908 if test X"$sudo_cv_var_daportable" != X"yes"; then
12917 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12920 # Not sure if setuid binaries are safe in < 9.x
12921 if test -n "$GCC"; then
12922 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12924 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12928 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12931 shadow_funcs="getspwuid"
12933 # DCE support (requires ANSI C compiler)
12934 if test "$with_DCE" = "yes"; then
12935 # order of libs in 9.X is important. -lc_r must be last
12936 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12937 LIBS="${LIBS} -ldce -lM -lc_r"
12938 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12942 shadow_funcs="getprpwnam iscomsec"
12943 shadow_libs="-lsec"
12946 shadow_funcs="getspnam iscomsec"
12947 shadow_libs="-lsec"
12948 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12953 # ignore envariables wrt dynamic lib path
12954 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12956 : ${CHECKSIA='true'}
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
12958 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
12959 # Check whether --enable-sia was given.
12960 if test "${enable_sia+set}" = set; then :
12961 enableval=$enable_sia; case "$enableval" in
12962 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12966 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967 $as_echo "yes" >&6; }
12970 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12973 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12983 shadow_funcs="getprpwnam dispcrypt"
12984 # OSF/1 4.x and higher need -ldb too
12985 if test $OSMAJOR -lt 4; then
12986 shadow_libs="-lsecurity -laud -lm"
12988 shadow_libs="-lsecurity -ldb -laud -lm"
12991 # use SIA by default, if we have it
12992 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12995 # Some versions of Digital Unix ship with a broken
12996 # copy of prot.h, which we need for shadow passwords.
12997 # XXX - make should remove this as part of distclean
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13000 $as_echo_n "checking for broken prot.h... " >&6; }
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13004 #include <sys/types.h>
13005 #include <sys/security.h>
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13021 $as_echo "yes, fixing locally" >&6; }
13022 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 : ${mansectform='4'}
13030 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13031 if test -z "$NROFFPROG"; then
13032 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)'
13033 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13034 if test -d /usr/share/catman/local; then
13035 mandir="/usr/share/catman/local"
13037 mandir="/usr/catman/local"
13041 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13042 if test -d "/usr/share/man/local"; then
13043 mandir="/usr/share/man/local"
13045 mandir="/usr/man/local"
13049 # IRIX <= 4 needs -lsun
13050 if test "$OSMAJOR" -le 4; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13052 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13053 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13056 ac_check_lib_save_LIBS=$LIBS
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13071 return getpwnam ();
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 ac_cv_lib_sun_getpwnam=yes
13079 ac_cv_lib_sun_getpwnam=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13086 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13087 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13088 LIBS="${LIBS} -lsun"
13092 : ${mansectsu='1m'}
13093 : ${mansectform='4'}
13095 *-*-linux*|*-*-k*bsd*-gnu)
13096 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13097 # Some Linux versions need to link with -lshadow
13098 shadow_funcs="getspnam"
13099 shadow_libs_optional="-lshadow"
13100 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13103 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13104 if test -z "$GCC"; then
13105 CFLAGS="${CFLAGS} -D__STDC__"
13108 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13109 shadow_funcs="getprpwnam"
13110 shadow_libs="-lprot"
13114 shadow_funcs="getauthuid"
13115 shadow_libs="-lauth"
13118 LIBS="${LIBS} -lsun -lbsd"
13119 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13120 OSDEFS="${OSDEFS} -D_MIPS"
13121 : ${mansectsu='1m'}
13122 : ${mansectform='4'}
13125 OSDEFS="${OSDEFS} -D_ISC"
13127 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
13128 LIBS="${LIBS} -lcrypt"
13130 shadow_funcs="getspnam"
13131 shadow_libs="-lsec"
13133 : ${mansectsu='1m'}
13134 : ${mansectform='4'}
13137 shadow_funcs="getprpwnam"
13138 shadow_libs="-lprot -lx"
13139 : ${mansectsu='1m'}
13140 : ${mansectform='4'}
13142 m88k-motorola-sysv*)
13143 # motorolla's cc (a variant of gcc) does -O but not -O2
13144 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13145 : ${mansectsu='1m'}
13146 : ${mansectform='4'}
13149 shadow_funcs="getspnam"
13150 shadow_libs="-lsec"
13151 : ${mansectsu='1m'}
13152 : ${mansectform='4'}
13153 : ${with_rpath='yes'}
13155 *-ncr-sysv4*|*-ncr-sysvr4*)
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13157 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13158 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13161 ac_check_lib_save_LIBS=$LIBS
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13172 char strcasecmp ();
13176 return strcasecmp ();
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ac_cv_lib_c89_strcasecmp=yes
13184 ac_cv_lib_c89_strcasecmp=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13191 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13192 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13193 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13194 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13197 : ${mansectsu='1m'}
13198 : ${mansectform='4'}
13199 : ${with_rpath='yes'}
13201 *-ccur-sysv4*|*-ccur-sysvr4*)
13202 LIBS="${LIBS} -lgen"
13203 SUDO_LIBS="${SUDO_LIBS} -lgen"
13204 : ${mansectsu='1m'}
13205 : ${mansectform='4'}
13206 : ${with_rpath='yes'}
13210 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13211 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13213 2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13214 $as_echo "$as_me: using shlicc as CC" >&6;}
13215 ac_cv_prog_CC=shlicc
13216 CC="$ac_cv_prog_CC"
13220 # Check for newer BSD auth API (just check for >= 3.0?)
13221 if test -z "$with_bsdauth"; then
13222 for ac_func in auth_challenge
13224 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13225 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_AUTH_CHALLENGE 1
13229 AUTH_EXCL_DEF="BSD_AUTH"
13236 # FreeBSD has a real setreuid(2) starting with 2.1 and
13237 # backported to 2.0.5. We just take 2.1 and above...
13243 if test "$with_skey" = "yes"; then
13244 SUDO_LIBS="${SUDO_LIBS} -lmd"
13246 CHECKSHADOW="false"
13247 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13248 : ${with_logincap='maybe'}
13251 # OpenBSD has a real setreuid(2) starting with 3.3 but
13252 # we will use setreuid(2) instead.
13254 CHECKSHADOW="false"
13255 # OpenBSD >= 3.0 supports BSD auth
13256 if test -z "$with_bsdauth"; then
13261 AUTH_EXCL_DEF="BSD_AUTH"
13265 : ${with_logincap='maybe'}
13268 # NetBSD has a real setreuid(2) starting with 1.3.2
13270 0.9*|1.012*|1.3|1.3.1)
13274 CHECKSHADOW="false"
13275 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13276 : ${with_logincap='maybe'}
13279 if test "$with_skey" = "yes"; then
13280 SUDO_LIBS="${SUDO_LIBS} -lmd"
13282 CHECKSHADOW="false"
13283 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13284 : ${with_logincap='yes'}
13287 CHECKSHADOW="false"
13290 # Darwin has a real setreuid(2) starting with 9.0
13291 if test $OSMAJOR -lt 9; then
13294 CHECKSHADOW="false"
13295 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13296 : ${with_logincap='yes'}
13299 # lockf() on is broken on the NeXT -- use flock instead
13300 ac_cv_func_lockf=no
13301 ac_cv_func_flock=yes
13304 : ${mansectsu='1m'}
13305 : ${mansectform='4'}
13306 : ${with_rpath='yes'}
13309 : ${mansectsu='1m'}
13310 : ${mansectform='4'}
13313 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13317 AUTH_REG=${AUTH_REG# }
13318 AUTH_EXCL=${AUTH_EXCL# }
13319 if test -n "$AUTH_EXCL"; then
13321 if test $# != 1; then
13322 as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13324 if test -n "$AUTH_REG"; then
13325 as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13328 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13329 as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13333 : ${mansectform='5'}
13335 if test -n "$with_libpath"; then
13336 for i in ${with_libpath}; do
13338 if test X"$with_rpath" = X"yes"; then
13340 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13342 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13346 LDFLAGS="${LDFLAGS} -L$i"
13348 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13349 blibpath_add="${blibpath_add}:$i"
13354 if test -n "$with_libraries"; then
13355 for i in ${with_libraries}; do
13362 LIBS="${LIBS} ${i}"
13366 if test $ac_cv_c_compiler_gnu = yes; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13372 ac_pattern="Autoconf.*'x'"
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13379 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13380 ac_cv_prog_gcc_traditional=yes
13382 ac_cv_prog_gcc_traditional=no
13387 if test $ac_cv_prog_gcc_traditional = no; then
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 #include <termio.h>
13393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13395 ac_cv_prog_gcc_traditional=yes
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13402 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13403 if test $ac_cv_prog_gcc_traditional = yes; then
13404 CC="$CC -traditional"
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13410 if test "${ac_cv_c_const+set}" = set; then :
13411 $as_echo_n "(cached) " >&6
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13419 /* FIXME: Include the comments suggested by Paul. */
13420 #ifndef __cplusplus
13421 /* Ultrix mips cc rejects this. */
13422 typedef int charset[2];
13424 /* SunOS 4.1.1 cc rejects this. */
13425 char const *const *pcpcc;
13427 /* NEC SVR4.0.2 mips cc rejects this. */
13428 struct point {int x, y;};
13429 static struct point const zero = {0,0};
13430 /* AIX XL C 1.02.0.0 rejects this.
13431 It does not let you subtract one const X* pointer from another in
13432 an arm of an if-expression whose if-part is not a constant
13434 const char *g = "string";
13435 pcpcc = &g + (g ? g-g : 0);
13436 /* HPUX 7.0 cc rejects these. */
13438 ppc = (char**) pcpcc;
13439 pcpcc = (char const *const *) ppc;
13440 { /* SCO 3.2v4 cc rejects this. */
13442 char const *s = 0 ? (char *) 0 : (char const *) 0;
13447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13448 int x[] = {25, 17};
13449 const int *foo = &x[0];
13452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13453 typedef const int *iptr;
13457 { /* AIX XL C 1.02.0.0 rejects this saying
13458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13459 struct s { int j; const int *ap[3]; };
13460 struct s *b; b->j = 5;
13462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13463 const int foo = 10;
13464 if (!foo) return 0;
13466 return !cs[0] && !zero.x;
13473 if ac_fn_c_try_compile "$LINENO"; then :
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13481 $as_echo "$ac_cv_c_const" >&6; }
13482 if test $ac_cv_c_const = no; then
13484 $as_echo "#define const /**/" >>confdefs.h
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13489 $as_echo_n "checking for working volatile... " >&6; }
13490 if test "${ac_cv_c_volatile+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13501 int * volatile y = (int *) 0;
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508 ac_cv_c_volatile=yes
13510 ac_cv_c_volatile=no
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13515 $as_echo "$ac_cv_c_volatile" >&6; }
13516 if test $ac_cv_c_volatile = no; then
13518 $as_echo "#define volatile /**/" >>confdefs.h
13522 for ac_prog in 'bison -y' byacc
13524 # Extract the first word of "$ac_prog", so it can be a program name with args.
13525 set dummy $ac_prog; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if test "${ac_cv_prog_YACC+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13531 if test -n "$YACC"; then
13532 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13541 ac_cv_prog_YACC="$ac_prog"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 YACC=$ac_cv_prog_YACC
13552 if test -n "$YACC"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13554 $as_echo "$YACC" >&6; }
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13561 test -n "$YACC" && break
13563 test -n "$YACC" || YACC="yacc"
13565 # Extract the first word of "flex", so it can be a program name with args.
13566 set dummy flex; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if test "${ac_cv_path_FLEX+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13574 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13596 FLEX=$ac_cv_path_FLEX
13597 if test -n "$FLEX"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13599 $as_echo "$FLEX" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13607 $as_echo_n "checking for mv... " >&6; }
13609 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13610 if test -f "$p"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13613 $as_echo "$p" >&6; }
13614 cat >>confdefs.h <<EOF
13615 #define _PATH_MV "$p"
13621 if test X"$found" != X"yes"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13623 $as_echo "not found" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13627 $as_echo_n "checking for bourne shell... " >&6; }
13629 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13630 if test -f "$p"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13633 $as_echo "$p" >&6; }
13634 cat >>confdefs.h <<EOF
13635 #define _PATH_BSHELL "$p"
13641 if test X"$found" != X"yes"; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13643 $as_echo "not found" >&6; }
13646 if test -z "$with_sendmail"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13648 $as_echo_n "checking for sendmail... " >&6; }
13650 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13651 if test -f "$p"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13654 $as_echo "$p" >&6; }
13655 cat >>confdefs.h <<EOF
13656 #define _PATH_SUDO_SENDMAIL "$p"
13662 if test X"$found" != X"yes"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13664 $as_echo "not found" >&6; }
13668 if test -z "$with_editor"; then
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13670 $as_echo_n "checking for vi... " >&6; }
13672 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13673 if test -f "$editor"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13676 $as_echo "$editor" >&6; }
13677 cat >>confdefs.h <<EOF
13678 #define _PATH_VI "$editor"
13684 if test X"$found" != X"yes"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13686 $as_echo "not found" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13691 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13692 if test X"$with_logfac" = X""; then
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 #include <syslog.h>
13699 int i = LOG_AUTHPRIV; (void)i;
13704 if ac_fn_c_try_compile "$LINENO"; then :
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 cat >>confdefs.h <<_ACEOF
13711 #define LOGFAC "$logfac"
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13715 $as_echo "$logfac" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13717 $as_echo_n "checking for ANSI C header files... " >&6; }
13718 if test "${ac_cv_header_stdc+set}" = set; then :
13719 $as_echo_n "(cached) " >&6
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723 #include <stdlib.h>
13724 #include <stdarg.h>
13725 #include <string.h>
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737 ac_cv_header_stdc=yes
13739 ac_cv_header_stdc=no
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 if test $ac_cv_header_stdc = yes; then
13744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <string.h>
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "memchr" >/dev/null 2>&1; then :
13754 ac_cv_header_stdc=no
13760 if test $ac_cv_header_stdc = yes; then
13761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <stdlib.h>
13767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13768 $EGREP "free" >/dev/null 2>&1; then :
13771 ac_cv_header_stdc=no
13777 if test $ac_cv_header_stdc = yes; then
13778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13779 if test "$cross_compiling" = yes; then :
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13785 #include <stdlib.h>
13786 #if ((' ' & 0x0FF) == 0x020)
13787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13790 # define ISLOWER(c) \
13791 (('a' <= (c) && (c) <= 'i') \
13792 || ('j' <= (c) && (c) <= 'r') \
13793 || ('s' <= (c) && (c) <= 'z'))
13794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13802 for (i = 0; i < 256; i++)
13803 if (XOR (islower (i), ISLOWER (i))
13804 || toupper (i) != TOUPPER (i))
13809 if ac_fn_c_try_run "$LINENO"; then :
13812 ac_cv_header_stdc=no
13814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13815 conftest.$ac_objext conftest.beam conftest.$ac_ext
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13821 $as_echo "$ac_cv_header_stdc" >&6; }
13822 if test $ac_cv_header_stdc = yes; then
13824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13828 ac_header_dirent=no
13829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13830 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13832 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13834 $as_echo_n "(cached) " >&6
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 #include <sys/types.h>
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 eval "$as_ac_Header=yes"
13853 eval "$as_ac_Header=no"
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 eval ac_res=\$$as_ac_Header
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13859 $as_echo "$ac_res" >&6; }
13860 eval as_val=\$$as_ac_Header
13861 if test "x$as_val" = x""yes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13866 ac_header_dirent=$ac_hdr; break
13870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13871 if test $ac_header_dirent = dirent.h; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13873 $as_echo_n "checking for library containing opendir... " >&6; }
13874 if test "${ac_cv_search_opendir+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 ac_func_search_save_LIBS=$LIBS
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13896 for ac_lib in '' dir; do
13897 if test -z "$ac_lib"; then
13898 ac_res="none required"
13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_search_opendir=$ac_res
13906 rm -f core conftest.err conftest.$ac_objext \
13908 if test "${ac_cv_search_opendir+set}" = set; then :
13912 if test "${ac_cv_search_opendir+set}" = set; then :
13915 ac_cv_search_opendir=no
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13921 $as_echo "$ac_cv_search_opendir" >&6; }
13922 ac_res=$ac_cv_search_opendir
13923 if test "$ac_res" != no; then :
13924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13930 $as_echo_n "checking for library containing opendir... " >&6; }
13931 if test "${ac_cv_search_opendir+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13934 ac_func_search_save_LIBS=$LIBS
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13938 /* Override any GCC internal prototype to avoid an error.
13939 Use char because int might match the return type of a GCC
13940 builtin and then its argument prototype would still apply. */
13953 for ac_lib in '' x; do
13954 if test -z "$ac_lib"; then
13955 ac_res="none required"
13958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_search_opendir=$ac_res
13963 rm -f core conftest.err conftest.$ac_objext \
13965 if test "${ac_cv_search_opendir+set}" = set; then :
13969 if test "${ac_cv_search_opendir+set}" = set; then :
13972 ac_cv_search_opendir=no
13974 rm conftest.$ac_ext
13975 LIBS=$ac_func_search_save_LIBS
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13978 $as_echo "$ac_cv_search_opendir" >&6; }
13979 ac_res=$ac_cv_search_opendir
13980 if test "$ac_res" != no; then :
13981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13988 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13989 if test "${ac_cv_header_time+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994 #include <sys/types.h>
13995 #include <sys/time.h>
14001 if ((struct tm *) 0)
14007 if ac_fn_c_try_compile "$LINENO"; then :
14008 ac_cv_header_time=yes
14010 ac_cv_header_time=no
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14015 $as_echo "$ac_cv_header_time" >&6; }
14016 if test $ac_cv_header_time = yes; then
14018 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14022 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h
14024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14026 eval as_val=\$$as_ac_Header
14027 if test "x$as_val" = x""yes; then :
14028 cat >>confdefs.h <<_ACEOF
14029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14037 $as_echo_n "checking POSIX termios... " >&6; }
14038 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #include <sys/types.h>
14044 #include <unistd.h>
14045 #include <termios.h>
14050 /* SunOS 4.0.3 has termios.h but not the library calls. */
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 ac_cv_sys_posix_termios=yes
14059 ac_cv_sys_posix_termios=no
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14065 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14067 if test "$ac_cv_sys_posix_termios" = "yes"; then
14068 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
14071 for ac_header in termio.h
14073 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_termio_h" = x""yes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_TERMIO_H 1
14086 if test X"$ac_cv_header_paths_h" = X"yes"; then
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 $ac_includes_default
14091 int main() {char *p = _PATH_MAILDIR;}
14100 if ac_fn_c_try_compile "$LINENO"; then :
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 if test $maildir = no; then
14106 # Solaris has maillock.h which defines MAILDIR
14107 for ac_header in maillock.h
14109 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14111 cat >>confdefs.h <<_ACEOF
14112 #define HAVE_MAILLOCK_H 1
14115 cat >>confdefs.h <<\EOF
14116 #define _PATH_MAILDIR MAILDIR
14125 if test $maildir = no; then
14126 for d in /var/mail /var/spool/mail /usr/spool/mail; do
14127 if test -d "$d"; then
14129 cat >>confdefs.h <<EOF
14130 #define _PATH_MAILDIR "$d"
14136 if test $maildir = no; then
14137 # unable to find mail dir, hope for the best
14138 cat >>confdefs.h <<EOF
14139 #define _PATH_MAILDIR "/var/mail"
14146 if test ${with_logincap-'no'} != "no"; then
14147 for ac_header in login_cap.h
14149 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14150 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14151 cat >>confdefs.h <<_ACEOF
14152 #define HAVE_LOGIN_CAP_H 1
14154 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14156 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14165 if test ${with_project-'no'} != "no"; then
14166 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14167 if test "x$ac_cv_header_project_h" = x""yes; then :
14168 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14170 SUDO_LIBS="${SUDO_LIBS} -lproject"
14177 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14178 if test "x$ac_cv_type_mode_t" = x""yes; then :
14182 cat >>confdefs.h <<_ACEOF
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14189 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14190 if test "${ac_cv_type_uid_t+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 #include <sys/types.h>
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199 $EGREP "uid_t" >/dev/null 2>&1; then :
14200 ac_cv_type_uid_t=yes
14202 ac_cv_type_uid_t=no
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14208 $as_echo "$ac_cv_type_uid_t" >&6; }
14209 if test $ac_cv_type_uid_t = no; then
14211 $as_echo "#define uid_t int" >>confdefs.h
14214 $as_echo "#define gid_t int" >>confdefs.h
14218 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14219 if test "x$ac_cv_type___signed_char" = x""yes; then :
14222 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14223 if test "x$ac_cv_type_signed_char" = x""yes; then :
14224 $as_echo "#define __signed signed" >>confdefs.h
14227 $as_echo "#define __signed /**/" >>confdefs.h
14233 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14234 #include <signal.h>
14236 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14239 $as_echo "#define sig_atomic_t int" >>confdefs.h
14243 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14244 #include <signal.h>
14246 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14248 cat >>confdefs.h <<_ACEOF
14249 #define HAVE_SIGACTION_T 1
14252 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14256 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14257 #if TIME_WITH_SYS_TIME
14258 # include <sys/time.h>
14262 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14263 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14267 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14268 #include <netinet/in.h>
14270 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_STRUCT_IN6_ADDR 1
14276 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14282 $as_echo_n "checking for long long int... " >&6; }
14283 if test "${ac_cv_type_long_long_int+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14289 /* For now, do not test the preprocessor; as of 2007 there are too many
14290 implementations with broken preprocessors. Perhaps this can
14291 be revisited in 2012. In the meantime, code should not expect
14292 #if to work with literals wider than 32 bits. */
14293 /* Test literals. */
14294 long long int ll = 9223372036854775807ll;
14295 long long int nll = -9223372036854775807LL;
14296 unsigned long long int ull = 18446744073709551615ULL;
14297 /* Test constant expressions. */
14298 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14300 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14306 /* Test availability of runtime routines for shift and division. */
14307 long long int llmax = 9223372036854775807ll;
14308 unsigned long long int ullmax = 18446744073709551615ull;
14309 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14310 | (llmax / ll) | (llmax % ll)
14311 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14312 | (ullmax / ull) | (ullmax % ull));
14318 if ac_fn_c_try_link "$LINENO"; then :
14319 if test "$cross_compiling" = yes; then :
14320 ac_cv_type_long_long_int=yes
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 #include <limits.h>
14327 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14328 # define LLONG_MAX (HALF - 1 + HALF)
14333 long long int n = 1;
14337 long long int m = n << i;
14340 if (LLONG_MAX / 2 < m)
14348 if ac_fn_c_try_run "$LINENO"; then :
14349 ac_cv_type_long_long_int=yes
14351 ac_cv_type_long_long_int=no
14353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14354 conftest.$ac_objext conftest.beam conftest.$ac_ext
14358 ac_cv_type_long_long_int=no
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14364 $as_echo "$ac_cv_type_long_long_int" >&6; }
14365 if test $ac_cv_type_long_long_int = yes; then
14367 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14371 # The cast to long int works around a bug in the HP C Compiler
14372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14374 # This bug is HP SR number 8606223364.
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14376 $as_echo_n "checking size of long int... " >&6; }
14377 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14383 if test "$ac_cv_type_long_int" = yes; then
14384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386 { as_fn_set_status 77
14387 as_fn_error "cannot compute sizeof (long int)
14388 See \`config.log' for more details." "$LINENO" 5; }; }
14390 ac_cv_sizeof_long_int=0
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14396 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14400 cat >>confdefs.h <<_ACEOF
14401 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14406 $as_echo_n "checking for size_t... " >&6; }
14407 if test "${sudo_cv_type_size_t+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #include <sys/types.h>
14415 #include <stdlib.h>
14418 #include <unistd.h>
14421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14422 $EGREP "size_t" >/dev/null 2>&1; then :
14423 sudo_cv_type_size_t=yes
14425 sudo_cv_type_size_t=no
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14431 $as_echo "$sudo_cv_type_size_t" >&6; }
14432 if test $sudo_cv_type_size_t = no; then
14434 $as_echo "#define size_t int" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14439 $as_echo_n "checking for ssize_t... " >&6; }
14440 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14448 #include <stdlib.h>
14451 #include <unistd.h>
14454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14455 $EGREP "ssize_t" >/dev/null 2>&1; then :
14456 sudo_cv_type_ssize_t=yes
14458 sudo_cv_type_ssize_t=no
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14464 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14465 if test $sudo_cv_type_ssize_t = no; then
14467 $as_echo "#define ssize_t int" >>confdefs.h
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14472 $as_echo_n "checking for dev_t... " >&6; }
14473 if test "${sudo_cv_type_dev_t+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 #include <sys/types.h>
14481 #include <stdlib.h>
14484 #include <unistd.h>
14487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14488 $EGREP "dev_t" >/dev/null 2>&1; then :
14489 sudo_cv_type_dev_t=yes
14491 sudo_cv_type_dev_t=no
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14497 $as_echo "$sudo_cv_type_dev_t" >&6; }
14498 if test $sudo_cv_type_dev_t = no; then
14500 $as_echo "#define dev_t int" >>confdefs.h
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14505 $as_echo_n "checking for ino_t... " >&6; }
14506 if test "${sudo_cv_type_ino_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 #include <stdlib.h>
14517 #include <unistd.h>
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521 $EGREP "ino_t" >/dev/null 2>&1; then :
14522 sudo_cv_type_ino_t=yes
14524 sudo_cv_type_ino_t=no
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14530 $as_echo "$sudo_cv_type_ino_t" >&6; }
14531 if test $sudo_cv_type_ino_t = no; then
14533 $as_echo "#define ino_t unsigned int" >>confdefs.h
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14539 $as_echo_n "checking max length of uid_t... " >&6; }
14540 if test "${sudo_cv_uid_t_len+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14544 if test "$cross_compiling" = yes; then :
14545 sudo_cv_uid_t_len=10
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14551 #include <limits.h>
14552 #include <sys/types.h>
14553 #include <sys/param.h>
14557 uid_t u = (uid_t) -1;
14559 if ((f = fopen("conftestdata", "w")) == NULL)
14562 (void) sprintf(b, "%lu", (unsigned long) u);
14563 (void) fprintf(f, "%d\n", strlen(b));
14568 if ac_fn_c_try_run "$LINENO"; then :
14569 sudo_cv_uid_t_len=`cat conftestdata`
14571 sudo_cv_uid_t_len=10
14573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14574 conftest.$ac_objext conftest.beam conftest.$ac_ext
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14582 $as_echo "$sudo_cv_uid_t_len" >&6; }
14584 cat >>confdefs.h <<_ACEOF
14585 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14590 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
14591 #include <sys/socket.h>
14594 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14596 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14603 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14604 $as_echo_n "checking return type of signal handlers... " >&6; }
14605 if test "${ac_cv_type_signal+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 #include <signal.h>
14616 return *(signal (0, 0)) (0) == 1;
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622 ac_cv_type_signal=int
14624 ac_cv_type_signal=void
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14629 $as_echo "$ac_cv_type_signal" >&6; }
14631 cat >>confdefs.h <<_ACEOF
14632 #define RETSIGTYPE $ac_cv_type_signal
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14638 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14639 if test "${ac_cv_type_getgroups+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 if test "$cross_compiling" = yes; then :
14643 ac_cv_type_getgroups=cross
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 /* Thanks to Mike Rendell for this test. */
14648 $ac_includes_default
14651 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14656 gid_t gidset[NGID];
14658 union { gid_t gval; long int lval; } val;
14661 for (i = 0; i < NGID; i++)
14662 gidset[i] = val.gval;
14663 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14665 /* Exit non-zero if getgroups seems to require an array of ints. This
14666 happens when gid_t is short int but getgroups modifies an array
14668 return n > 0 && gidset[n] != val.gval;
14671 if ac_fn_c_try_run "$LINENO"; then :
14672 ac_cv_type_getgroups=gid_t
14674 ac_cv_type_getgroups=int
14676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14677 conftest.$ac_objext conftest.beam conftest.$ac_ext
14680 if test $ac_cv_type_getgroups = cross; then
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14683 #include <unistd.h>
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
14688 ac_cv_type_getgroups=gid_t
14690 ac_cv_type_getgroups=int
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
14697 $as_echo "$ac_cv_type_getgroups" >&6; }
14699 cat >>confdefs.h <<_ACEOF
14700 #define GETGROUPS_T $ac_cv_type_getgroups
14704 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14705 if test "x$ac_cv_type_size_t" = x""yes; then :
14709 cat >>confdefs.h <<_ACEOF
14710 #define size_t unsigned int
14715 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14716 if test "x$ac_cv_func_getgroups" = x""yes; then :
14721 # If we don't yet have getgroups, see if it's in -lbsd.
14722 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14724 if test $ac_cv_func_getgroups = no; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
14726 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
14727 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
14728 $as_echo_n "(cached) " >&6
14730 ac_check_lib_save_LIBS=$LIBS
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14735 /* Override any GCC internal prototype to avoid an error.
14736 Use char because int might match the return type of a GCC
14737 builtin and then its argument prototype would still apply. */
14745 return getgroups ();
14750 if ac_fn_c_try_link "$LINENO"; then :
14751 ac_cv_lib_bsd_getgroups=yes
14753 ac_cv_lib_bsd_getgroups=no
14755 rm -f core conftest.err conftest.$ac_objext \
14756 conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
14760 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
14761 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
14762 GETGROUPS_LIB=-lbsd
14767 # Run the program to test the functionality of the system-supplied
14768 # getgroups function only if there is such a function.
14769 if test $ac_cv_func_getgroups = yes; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
14771 $as_echo_n "checking for working getgroups... " >&6; }
14772 if test "${ac_cv_func_getgroups_works+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14775 if test "$cross_compiling" = yes; then :
14776 ac_cv_func_getgroups_works=no
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780 $ac_includes_default
14784 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
14785 return getgroups (0, 0) == -1;
14790 if ac_fn_c_try_run "$LINENO"; then :
14791 ac_cv_func_getgroups_works=yes
14793 ac_cv_func_getgroups_works=no
14795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14796 conftest.$ac_objext conftest.beam conftest.$ac_ext
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
14802 $as_echo "$ac_cv_func_getgroups_works" >&6; }
14804 ac_cv_func_getgroups_works=no
14806 if test $ac_cv_func_getgroups_works = yes; then
14808 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
14813 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
14814 strftime setrlimit initgroups getgroups fstat gettimeofday \
14815 regcomp setlocale getaddrinfo setenv vhangup \
14816 mbr_check_membership setrlimit64
14818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14820 eval as_val=\$$as_ac_var
14821 if test "x$as_val" = x""yes; then :
14822 cat >>confdefs.h <<_ACEOF
14823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14829 for ac_func in getline
14831 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14832 if test "x$ac_cv_func_getline" = x""yes; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_GETLINE 1
14839 case " $LIBOBJS " in
14840 *" getline.$ac_objext "* ) ;;
14841 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14845 for ac_func in fgetln
14847 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
14848 if test "x$ac_cv_func_fgetln" = x""yes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_FGETLN 1
14860 for ac_func in setsid
14862 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
14863 if test "x$ac_cv_func_setsid" = x""yes; then :
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_SETSID 1
14870 case " $LIBOBJS " in
14871 *" setsid.$ac_objext "* ) ;;
14872 *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14877 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14878 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14881 if test "$cross_compiling" = yes; then :
14882 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 $ac_includes_default
14890 /* If this system has a BSD-style setpgrp which takes arguments,
14891 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14892 exit successfully. */
14893 return setpgrp (1,1) != -1;
14898 if ac_fn_c_try_run "$LINENO"; then :
14899 ac_cv_func_setpgrp_void=no
14901 ac_cv_func_setpgrp_void=yes
14903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14904 conftest.$ac_objext conftest.beam conftest.$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14909 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14910 if test $ac_cv_func_setpgrp_void = yes; then
14912 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14921 for ac_func in sysctl getutid getutxid
14923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14925 eval as_val=\$$as_ac_var
14926 if test "x$as_val" = x""yes; then :
14927 cat >>confdefs.h <<_ACEOF
14928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14935 for ac_func in openpty
14937 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
14938 if test "x$ac_cv_func_openpty" = x""yes; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_OPENPTY 1
14942 for ac_header in util.h pty.h
14944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14946 eval as_val=\$$as_ac_Header
14947 if test "x$as_val" = x""yes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14959 $as_echo_n "checking for openpty in -lutil... " >&6; }
14960 if test "${ac_cv_lib_util_openpty+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14963 ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lutil $LIBS"
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14968 /* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
14983 if ac_fn_c_try_link "$LINENO"; then :
14984 ac_cv_lib_util_openpty=yes
14986 ac_cv_lib_util_openpty=no
14988 rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14990 LIBS=$ac_check_lib_save_LIBS
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14993 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14994 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
14996 for ac_header in util.h pty.h
14998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15000 eval as_val=\$$as_ac_Header
15001 if test "x$as_val" = x""yes; then :
15002 cat >>confdefs.h <<_ACEOF
15003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010 SUDO_LIBS="${SUDO_LIBS} -lutil"
15011 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15016 for ac_func in _getpty
15018 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15019 if test "x$ac_cv_func__getpty" = x""yes; then :
15020 cat >>confdefs.h <<_ACEOF
15021 #define HAVE__GETPTY 1
15026 for ac_func in grantpt
15028 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15029 if test "x$ac_cv_func_grantpt" = x""yes; then :
15030 cat >>confdefs.h <<_ACEOF
15031 #define HAVE_GRANTPT 1
15034 for ac_func in posix_openpt
15036 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15037 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_POSIX_OPENPT 1
15048 for ac_func in revoke
15050 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15051 if test "x$ac_cv_func_revoke" = x""yes; then :
15052 cat >>confdefs.h <<_ACEOF
15053 #define HAVE_REVOKE 1
15074 for ac_func in unsetenv
15076 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15077 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_UNSETENV 1
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15082 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15083 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15084 $as_echo_n "(cached) " >&6
15086 if test "$cross_compiling" = yes; then :
15087 sudo_cv_func_unsetenv_void=no
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 $ac_includes_default
15098 return unsetenv("FOO") != 0;
15105 if ac_fn_c_try_run "$LINENO"; then :
15106 sudo_cv_func_unsetenv_void=no
15108 sudo_cv_func_unsetenv_void=yes
15110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15111 conftest.$ac_objext conftest.beam conftest.$ac_ext
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15116 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15117 if test $sudo_cv_func_unsetenv_void = yes; then
15119 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
15127 $as_echo_n "checking whether putenv has a const argument... " >&6; }
15128 if test "${sudo_cv_func_putenv_const+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 $ac_includes_default
15134 int putenv(const char *string) {return 0;}
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 sudo_cv_func_putenv_const=yes
15146 sudo_cv_func_putenv_const=no
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
15152 $as_echo "$sudo_cv_func_putenv_const" >&6; }
15153 if test $sudo_cv_func_putenv_const = yes; then
15155 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
15159 if test -z "$SKIP_SETRESUID"; then
15160 for ac_func in setresuid
15162 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15163 if test "x$ac_cv_func_setresuid" = x""yes; then :
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_SETRESUID 1
15172 if test -z "$SKIP_SETREUID"; then
15173 for ac_func in setreuid
15175 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15176 if test "x$ac_cv_func_setreuid" = x""yes; then :
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_SETREUID 1
15185 if test -z "$SKIP_SETEUID"; then
15186 for ac_func in seteuid
15188 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15189 if test "x$ac_cv_func_seteuid" = x""yes; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_SETEUID 1
15198 if test X"$with_interfaces" != X"no"; then
15199 for ac_func in getifaddrs
15201 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15202 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_GETIFADDRS 1
15206 for ac_func in freeifaddrs
15208 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15209 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_FREEIFADDRS 1
15221 if test -z "$BROKEN_GETCWD"; then
15222 for ac_func in getcwd
15224 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15225 if test "x$ac_cv_func_getcwd" = x""yes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_GETCWD 1
15231 case " $LIBOBJS " in
15232 *" $ac_func.$ac_objext "* ) ;;
15233 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15242 for ac_func in glob
15244 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15245 if test "x$ac_cv_func_glob" = x""yes; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define HAVE_GLOB 1
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15250 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15257 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15262 if ac_fn_c_try_compile "$LINENO"; then :
15263 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15266 $as_echo "yes" >&6; }
15268 case " $LIBOBJS " in
15269 *" glob.$ac_objext "* ) ;;
15270 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 case " $LIBOBJS " in
15280 *" glob.$ac_objext "* ) ;;
15281 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15288 for ac_func in lockf flock
15290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15292 eval as_val=\$$as_ac_var
15293 if test "x$as_val" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15301 for ac_func in waitpid wait3
15303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15305 eval as_val=\$$as_ac_var
15306 if test "x$as_val" = x""yes; then :
15307 cat >>confdefs.h <<_ACEOF
15308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15314 for ac_func in innetgr _innetgr
15316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15318 eval as_val=\$$as_ac_var
15319 if test "x$as_val" = x""yes; then :
15320 cat >>confdefs.h <<_ACEOF
15321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15323 for ac_func in getdomainname
15325 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15326 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15327 cat >>confdefs.h <<_ACEOF
15328 #define HAVE_GETDOMAINNAME 1
15337 for ac_func in utimes
15339 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15340 if test "x$ac_cv_func_utimes" = x""yes; then :
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_UTIMES 1
15344 for ac_func in futimes futimesat
15346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15348 eval as_val=\$$as_ac_var
15349 if test "x$as_val" = x""yes; then :
15350 cat >>confdefs.h <<_ACEOF
15351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15358 for ac_func in futime
15360 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15361 if test "x$ac_cv_func_futime" = x""yes; then :
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_FUTIME 1
15368 case " $LIBOBJS " in
15369 *" utimes.$ac_objext "* ) ;;
15370 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15377 for ac_func in killpg
15379 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15380 if test "x$ac_cv_func_killpg" = x""yes; then :
15381 cat >>confdefs.h <<_ACEOF
15382 #define HAVE_KILLPG 1
15386 case " $LIBOBJS " in
15387 *" killpg.$ac_objext "* ) ;;
15388 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15396 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15397 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15400 rm -f conftestdata; > conftestdata
15401 if test "$cross_compiling" = yes; then :
15402 sudo_cv_func_fnmatch=no
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 #include <fnmatch.h>
15407 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15409 if ac_fn_c_try_run "$LINENO"; then :
15410 sudo_cv_func_fnmatch=yes
15412 sudo_cv_func_fnmatch=no
15414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415 conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 rm -f core core.* *.core
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15422 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15423 if test $sudo_cv_func_fnmatch = yes; then :
15424 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15427 case " $LIBOBJS " in
15428 *" fnmatch.$ac_objext "* ) ;;
15429 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15435 $as_echo_n "checking for isblank... " >&6; }
15436 if test "${sudo_cv_func_isblank+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15445 return (isblank('a'));
15450 if ac_fn_c_try_link "$LINENO"; then :
15451 sudo_cv_func_isblank=yes
15453 sudo_cv_func_isblank=no
15455 rm -f core conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15459 $as_echo "$sudo_cv_func_isblank" >&6; }
15461 if test "$sudo_cv_func_isblank" = "yes"; then
15463 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15466 case " $LIBOBJS " in
15467 *" isblank.$ac_objext "* ) ;;
15468 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15474 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15478 eval as_val=\$$as_ac_var
15479 if test "x$as_val" = x""yes; then :
15480 cat >>confdefs.h <<_ACEOF
15481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15485 case " $LIBOBJS " in
15486 *" $ac_func.$ac_objext "* ) ;;
15487 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15495 for ac_func in nanosleep
15497 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15498 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_NANOSLEEP 1
15505 # On Solaris, nanosleep is in librt
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15507 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15508 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15509 $as_echo_n "(cached) " >&6
15511 ac_check_lib_save_LIBS=$LIBS
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15516 /* Override any GCC internal prototype to avoid an error.
15517 Use char because int might match the return type of a GCC
15518 builtin and then its argument prototype would still apply. */
15526 return nanosleep ();
15531 if ac_fn_c_try_link "$LINENO"; then :
15532 ac_cv_lib_rt_nanosleep=yes
15534 ac_cv_lib_rt_nanosleep=no
15536 rm -f core conftest.err conftest.$ac_objext \
15537 conftest$ac_exeext conftest.$ac_ext
15538 LIBS=$ac_check_lib_save_LIBS
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15541 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15542 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15543 LIBS="${LIBS} -lrt"
15545 case " $LIBOBJS " in
15546 *" nanosleep.$ac_objext "* ) ;;
15547 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15557 for ac_func in closefrom
15559 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15560 if test "x$ac_cv_func_closefrom" = x""yes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_CLOSEFROM 1
15566 case " $LIBOBJS " in
15567 *" closefrom.$ac_objext "* ) ;;
15568 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15572 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15575 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15576 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15584 for ac_func in mkstemps
15586 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15587 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15588 cat >>confdefs.h <<_ACEOF
15589 #define HAVE_MKSTEMPS 1
15593 SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15594 for ac_func in random lrand48
15596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15598 eval as_val=\$$as_ac_var
15599 if test "x$as_val" = x""yes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 for ac_func in snprintf vsnprintf asprintf vasprintf
15613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15615 eval as_val=\$$as_ac_var
15616 if test "x$as_val" = x""yes; then :
15617 cat >>confdefs.h <<_ACEOF
15618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15626 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15627 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15628 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15629 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15631 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15632 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15633 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15638 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15639 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15640 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <sys/types.h>
15650 #include <$ac_header_dirent>
15654 DIR *d; (void)dirfd(d);
15659 if ac_fn_c_try_link "$LINENO"; then :
15660 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 #include <sys/types.h>
15666 #include <$ac_header_dirent>
15670 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15675 if ac_fn_c_try_link "$LINENO"; then :
15676 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15679 rm -f core conftest.err conftest.$ac_objext \
15680 conftest$ac_exeext conftest.$ac_ext
15682 rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 if test -n "$NEED_SNPRINTF"; then
15685 case " $LIBOBJS " in
15686 *" snprintf.$ac_objext "* ) ;;
15687 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15692 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15693 if test "x$ac_cv_func_socket" = x""yes; then :
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15697 $as_echo_n "checking for socket in -lsocket... " >&6; }
15698 if test "${ac_cv_lib_socket_socket+set}" = set; then :
15699 $as_echo_n "(cached) " >&6
15701 ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-lsocket $LIBS"
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 ac_cv_lib_socket_socket=yes
15724 ac_cv_lib_socket_socket=no
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15728 LIBS=$ac_check_lib_save_LIBS
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15731 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15732 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
15733 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
15736 $as_echo_n "checking for socket in -linet... " >&6; }
15737 if test "${ac_cv_lib_inet_socket+set}" = set; then :
15738 $as_echo_n "(cached) " >&6
15740 ac_check_lib_save_LIBS=$LIBS
15741 LIBS="-linet $LIBS"
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15745 /* Override any GCC internal prototype to avoid an error.
15746 Use char because int might match the return type of a GCC
15747 builtin and then its argument prototype would still apply. */
15760 if ac_fn_c_try_link "$LINENO"; then :
15761 ac_cv_lib_inet_socket=yes
15763 ac_cv_lib_inet_socket=no
15765 rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
15770 $as_echo "$ac_cv_lib_inet_socket" >&6; }
15771 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
15772 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
15775 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15777 $as_echo_n "checking for socket in -lsocket... " >&6; }
15778 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
15779 $as_echo_n "(cached) " >&6
15781 ac_check_lib_save_LIBS=$LIBS
15782 LIBS="-lsocket -lnsl $LIBS"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15786 /* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply. */
15801 if ac_fn_c_try_link "$LINENO"; then :
15802 ac_cv_lib_socket_socket_lnsl=yes
15804 ac_cv_lib_socket_socket_lnsl=no
15806 rm -f core conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
15811 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
15812 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
15813 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15822 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
15823 if test "x$ac_cv_func_inet_addr" = x""yes; then :
15826 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
15827 if test "x$ac_cv_func___inet_addr" = x""yes; then :
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
15831 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
15832 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
15833 $as_echo_n "(cached) " >&6
15835 ac_check_lib_save_LIBS=$LIBS
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15850 return inet_addr ();
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 ac_cv_lib_nsl_inet_addr=yes
15858 ac_cv_lib_nsl_inet_addr=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
15865 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
15866 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
15867 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
15870 $as_echo_n "checking for inet_addr in -linet... " >&6; }
15871 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15874 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-linet $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15889 return inet_addr ();
15894 if ac_fn_c_try_link "$LINENO"; then :
15895 ac_cv_lib_inet_inet_addr=yes
15897 ac_cv_lib_inet_inet_addr=no
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
15904 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
15905 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
15906 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
15909 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
15911 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
15912 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
15913 $as_echo_n "(cached) " >&6
15915 ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-lsocket -lnsl $LIBS"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15920 /* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15930 return inet_addr ();
15935 if ac_fn_c_try_link "$LINENO"; then :
15936 ac_cv_lib_socket_inet_addr_lnsl=yes
15938 ac_cv_lib_socket_inet_addr_lnsl=no
15940 rm -f core conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
15945 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
15946 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
15947 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15958 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15959 if test "x$ac_cv_func_syslog" = x""yes; then :
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
15963 $as_echo_n "checking for syslog in -lsocket... " >&6; }
15964 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
15965 $as_echo_n "(cached) " >&6
15967 ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-lsocket $LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15972 /* Override any GCC internal prototype to avoid an error.
15973 Use char because int might match the return type of a GCC
15974 builtin and then its argument prototype would still apply. */
15987 if ac_fn_c_try_link "$LINENO"; then :
15988 ac_cv_lib_socket_syslog=yes
15990 ac_cv_lib_socket_syslog=no
15992 rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
15997 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
15998 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
15999 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16002 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16003 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16004 $as_echo_n "(cached) " >&6
16006 ac_check_lib_save_LIBS=$LIBS
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16011 /* Override any GCC internal prototype to avoid an error.
16012 Use char because int might match the return type of a GCC
16013 builtin and then its argument prototype would still apply. */
16026 if ac_fn_c_try_link "$LINENO"; then :
16027 ac_cv_lib_nsl_syslog=yes
16029 ac_cv_lib_nsl_syslog=no
16031 rm -f core conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext
16033 LIBS=$ac_check_lib_save_LIBS
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16036 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16037 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16038 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16041 $as_echo_n "checking for syslog in -linet... " >&6; }
16042 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16043 $as_echo_n "(cached) " >&6
16045 ac_check_lib_save_LIBS=$LIBS
16046 LIBS="-linet $LIBS"
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16050 /* Override any GCC internal prototype to avoid an error.
16051 Use char because int might match the return type of a GCC
16052 builtin and then its argument prototype would still apply. */
16065 if ac_fn_c_try_link "$LINENO"; then :
16066 ac_cv_lib_inet_syslog=yes
16068 ac_cv_lib_inet_syslog=no
16070 rm -f core conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072 LIBS=$ac_check_lib_save_LIBS
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16075 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16076 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16077 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16086 for ac_func in getprogname
16088 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16089 if test "x$ac_cv_func_getprogname" = x""yes; then :
16090 cat >>confdefs.h <<_ACEOF
16091 #define HAVE_GETPROGNAME 1
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16097 $as_echo_n "checking for __progname... " >&6; }
16098 if test "${sudo_cv___progname+set}" = set; then :
16099 $as_echo_n "(cached) " >&6
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16108 extern char *__progname; (void)puts(__progname);
16113 if ac_fn_c_try_link "$LINENO"; then :
16114 sudo_cv___progname=yes
16116 sudo_cv___progname=no
16118 rm -f core conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16122 if test "$sudo_cv___progname" = "yes"; then
16123 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16126 case " $LIBOBJS " in
16127 *" getprogname.$ac_objext "* ) ;;
16128 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16134 $as_echo "$sudo_cv___progname" >&6; }
16140 for ac_func in strsignal
16142 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16143 if test "x$ac_cv_func_strsignal" = x""yes; then :
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_STRSIGNAL 1
16150 case " $LIBOBJS " in
16151 *" strsignal.$ac_objext "* ) ;;
16152 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16156 HAVE_SIGLIST="false"
16157 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16158 $ac_includes_default
16159 #include <signal.h>
16162 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16171 if test $ac_have_decl = 1; then :
16173 HAVE_SIGLIST="true"
16177 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16178 $ac_includes_default
16179 #include <signal.h>
16182 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16191 if test $ac_have_decl = 1; then :
16193 HAVE_SIGLIST="true"
16197 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16198 $ac_includes_default
16199 #include <signal.h>
16202 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16208 cat >>confdefs.h <<_ACEOF
16209 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16211 if test $ac_have_decl = 1; then :
16213 HAVE_SIGLIST="true"
16218 if test "$HAVE_SIGLIST" != "true"; then
16219 case " $LIBOBJS " in
16220 *" siglist.$ac_objext "* ) ;;
16221 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16231 if test ${with_netsvc-"no"} != "no"; then
16232 cat >>confdefs.h <<EOF
16233 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16236 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16237 elif test ${with_nsswitch-"yes"} != "no"; then
16238 cat >>confdefs.h <<EOF
16239 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16242 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16246 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16247 for auth in $AUTH_EXCL_DEF; do
16249 AIX_AUTH) with_aixauth=maybe;;
16250 BSD_AUTH) with_bsdauth=maybe;;
16251 PAM) with_pam=maybe;;
16252 SIA) CHECKSIA=true;;
16257 if test ${with_pam-"no"} != "no"; then
16259 *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16261 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16262 $as_echo_n "checking for main in -ldl... " >&6; }
16263 if test "${ac_cv_lib_dl_main+set}" = set; then :
16264 $as_echo_n "(cached) " >&6
16266 ac_check_lib_save_LIBS=$LIBS
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16280 if ac_fn_c_try_link "$LINENO"; then :
16281 ac_cv_lib_dl_main=yes
16283 ac_cv_lib_dl_main=no
16285 rm -f core conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16287 LIBS=$ac_check_lib_save_LIBS
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16290 $as_echo "$ac_cv_lib_dl_main" >&6; }
16291 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16292 SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16294 SUDO_LIBS="${SUDO_LIBS} -lpam"
16297 ac_cv_lib_dl=ac_cv_lib_dl_main
16301 for ac_header in security/pam_appl.h pam/pam_appl.h
16303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16305 eval as_val=\$$as_ac_Header
16306 if test "x$as_val" = x""yes; then :
16307 cat >>confdefs.h <<_ACEOF
16308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16310 with_pam=yes; break
16315 if test "$with_pam" = "yes"; then
16316 $as_echo "#define HAVE_PAM 1" >>confdefs.h
16318 AUTH_OBJS="$AUTH_OBJS pam.o";
16322 # Check whether --with-pam-login was given.
16323 if test "${with_pam_login+set}" = set; then :
16324 withval=$with_pam_login; case $with_pam_login in
16325 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16328 $as_echo_n "checking whether to use PAM login... " >&6; }
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16333 *) as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16340 $as_echo_n "checking whether to use PAM session support... " >&6; }
16341 # Check whether --enable-pam_session was given.
16342 if test "${enable_pam_session+set}" = set; then :
16343 enableval=$enable_pam_session; case "$enableval" in
16344 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16345 $as_echo "yes" >&6; }
16347 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16350 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16353 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16356 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16361 $as_echo "yes" >&6; }
16366 *-*-linux*|*-*-solaris*)
16367 # dgettext() may be defined to dgettext_libintl in the
16368 # header file, so first check that it links w/ additional
16369 # libs, then try with -lintl
16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16372 #include <libintl.h>
16376 (void)dgettext((char *)0, (char *)0);
16381 if ac_fn_c_try_link "$LINENO"; then :
16382 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16386 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16387 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16388 $as_echo_n "(cached) " >&6
16390 ac_check_lib_save_LIBS=$LIBS
16391 LIBS="-lintl $LIBS"
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16395 /* Override any GCC internal prototype to avoid an error.
16396 Use char because int might match the return type of a GCC
16397 builtin and then its argument prototype would still apply. */
16405 return dgettext ();
16410 if ac_fn_c_try_link "$LINENO"; then :
16411 ac_cv_lib_intl_dgettext=yes
16413 ac_cv_lib_intl_dgettext=no
16415 rm -f core conftest.err conftest.$ac_objext \
16416 conftest$ac_exeext conftest.$ac_ext
16417 LIBS=$ac_check_lib_save_LIBS
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16420 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16421 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16422 LIBS="${LIBS} -lintl"
16423 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16428 rm -f core conftest.err conftest.$ac_objext \
16429 conftest$ac_exeext conftest.$ac_ext
16435 if test ${with_aixauth-'no'} != "no"; then
16436 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16438 $as_echo "$as_me: using AIX general authentication" >&6;}
16439 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16441 AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16442 SUDO_LIBS="${SUDO_LIBS} -ls"
16447 if test ${with_bsdauth-'no'} != "no"; then
16448 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16449 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16450 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16452 AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16453 BSDAUTH_USAGE='[-a auth_type] '
16454 AUTH_EXCL=BSD_AUTH; BAMAN=1
16456 as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16462 if test ${CHECKSIA-'false'} = "true"; then
16463 for ac_func in sia_ses_init
16465 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16466 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16467 cat >>confdefs.h <<_ACEOF
16468 #define HAVE_SIA_SES_INIT 1
16476 if test "$found" = "true"; then
16478 AUTH_OBJS="$AUTH_OBJS sia.o"
16482 if test ${with_fwtk-'no'} != "no"; then
16483 if test "$with_fwtk" != "yes"; then
16485 if test X"$with_rpath" = X"yes"; then
16487 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16489 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16493 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16495 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16496 blibpath_add="${blibpath_add}:${with_fwtk}"
16499 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16502 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16503 AUTH_OBJS="$AUTH_OBJS fwtk.o"
16506 if test ${with_SecurID-'no'} != "no"; then
16507 if test "$with_SecurID" != "yes"; then
16509 elif test -d /usr/ace/examples; then
16510 with_SecurID=/usr/ace/examples
16512 with_SecurID=/usr/ace
16514 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16515 _LDFLAGS="${LDFLAGS}"
16517 if test X"$with_rpath" = X"yes"; then
16519 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16521 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16525 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16527 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16528 blibpath_add="${blibpath_add}:${with_SecurID}"
16532 # Determine whether to use the new or old SecurID API
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16535 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16536 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16537 $as_echo_n "(cached) " >&6
16539 ac_check_lib_save_LIBS=$LIBS
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 /* Override any GCC internal prototype to avoid an error.
16548 Use char because int might match the return type of a GCC
16549 builtin and then its argument prototype would still apply. */
16562 if ac_fn_c_try_link "$LINENO"; then :
16563 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16565 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16567 rm -f core conftest.err conftest.$ac_objext \
16568 conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16572 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16573 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16575 AUTH_OBJS="$AUTH_OBJS securid5.o";
16576 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16580 if test X"$with_rpath" = X"yes"; then
16582 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16584 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16588 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16590 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16591 blibpath_add="${blibpath_add}:${with_SecurID}"
16597 AUTH_OBJS="$AUTH_OBJS securid.o";
16598 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16602 LDFLAGS="${_LDFLAGS}"
16606 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16607 for auth in $AUTH_DEF; do
16609 passwd) : ${with_passwd='maybe'};;
16614 if test ${with_kerb4-'no'} != "no"; then
16615 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16617 O_LDFLAGS="$LDFLAGS"
16618 if test "$with_kerb4" = "yes"; then
16620 O_CPPFLAGS="$CPPFLAGS"
16621 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16622 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16627 if ac_fn_c_try_cpp "$LINENO"; then :
16630 rm -f conftest.err conftest.$ac_ext
16632 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16635 if test X"$with_rpath" = X"yes"; then
16637 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16639 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16643 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16645 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16646 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16650 if test X"$with_rpath" = X"yes"; then
16652 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16654 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16658 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16660 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16661 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16664 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16665 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16666 if test "x$ac_cv_header_krb_h" = x""yes; then :
16674 if test X"$found" = X"no"; then
16675 { $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
16676 $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;}
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16680 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16681 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16684 ac_check_lib_save_LIBS=$LIBS
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16689 /* Override any GCC internal prototype to avoid an error.
16690 Use char because int might match the return type of a GCC
16691 builtin and then its argument prototype would still apply. */
16695 char des_cbc_encrypt ();
16699 return des_cbc_encrypt ();
16704 if ac_fn_c_try_link "$LINENO"; then :
16705 ac_cv_lib_des_des_cbc_encrypt=yes
16707 ac_cv_lib_des_des_cbc_encrypt=no
16709 rm -f core conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16711 LIBS=$ac_check_lib_save_LIBS
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16714 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16715 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16720 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16721 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16724 ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-ldes425 $LIBS"
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16735 char des_cbc_encrypt ();
16739 return des_cbc_encrypt ();
16744 if ac_fn_c_try_link "$LINENO"; then :
16745 ac_cv_lib_des425_des_cbc_encrypt=yes
16747 ac_cv_lib_des425_des_cbc_encrypt=no
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16754 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16755 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
16765 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16772 const char *tmp = krb4_version;
16777 if ac_fn_c_try_compile "$LINENO"; then :
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16780 $as_echo "yes" >&6; }
16781 K4LIBS="${K4LIBS} -lcom_err"
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16783 $as_echo_n "checking for main in -lroken... " >&6; }
16784 if test "${ac_cv_lib_roken_main+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lroken $LIBS"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16801 if ac_fn_c_try_link "$LINENO"; then :
16802 ac_cv_lib_roken_main=yes
16804 ac_cv_lib_roken_main=no
16806 rm -f core conftest.err conftest.$ac_objext \
16807 conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16811 $as_echo "$ac_cv_lib_roken_main" >&6; }
16812 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16813 K4LIBS="${K4LIBS} -lroken"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820 $as_echo "no" >&6; }
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
16827 $as_echo_n "checking for main in -lkrb... " >&6; }
16828 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16829 $as_echo_n "(cached) " >&6
16831 ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lkrb $K4LIBS $LIBS"
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16845 if ac_fn_c_try_link "$LINENO"; then :
16846 eval "$as_ac_Lib=yes"
16848 eval "$as_ac_Lib=no"
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16854 eval ac_res=\$$as_ac_Lib
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16856 $as_echo "$ac_res" >&6; }
16857 eval as_val=\$$as_ac_Lib
16858 if test "x$as_val" = x""yes; then :
16859 K4LIBS="-lkrb $K4LIBS"
16862 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
16864 $as_echo_n "checking for main in -lkrb4... " >&6; }
16865 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16866 $as_echo_n "(cached) " >&6
16868 ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lkrb4 $K4LIBS $LIBS"
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 eval "$as_ac_Lib=yes"
16885 eval "$as_ac_Lib=no"
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16891 eval ac_res=\$$as_ac_Lib
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16893 $as_echo "$ac_res" >&6; }
16894 eval as_val=\$$as_ac_Lib
16895 if test "x$as_val" = x""yes; then :
16896 K4LIBS="-lkrb4 $K4LIBS"
16898 K4LIBS="-lkrb $K4LIBS"
16899 { $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
16900 $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;}
16907 LDFLAGS="$O_LDFLAGS"
16908 SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
16909 AUTH_OBJS="$AUTH_OBJS kerb4.o"
16912 if test ${with_kerb5-'no'} != "no"; then
16913 # Extract the first word of "krb5-config", so it can be a program name with args.
16914 set dummy krb5-config; ac_word=$2
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916 $as_echo_n "checking for $ac_word... " >&6; }
16917 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
16918 $as_echo_n "(cached) " >&6
16920 if test -n "$KRB5CONFIG"; then
16921 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
16923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16924 for as_dir in $PATH
16927 test -z "$as_dir" && as_dir=.
16928 for ac_exec_ext in '' $ac_executable_extensions; do
16929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16930 ac_cv_prog_KRB5CONFIG="yes"
16931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
16941 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
16942 if test -n "$KRB5CONFIG"; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
16944 $as_echo "$KRB5CONFIG" >&6; }
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16951 if test -n "$KRB5CONFIG"; then
16952 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16954 AUTH_OBJS="$AUTH_OBJS kerb5.o"
16955 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
16956 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16958 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16965 const char *tmp = heimdal_version;
16970 if ac_fn_c_try_compile "$LINENO"; then :
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16973 $as_echo "yes" >&6; }
16974 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
16988 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16990 if test "$with_kerb5" = "yes"; then
16992 O_CPPFLAGS="$CPPFLAGS"
16993 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
16994 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16999 if ac_fn_c_try_cpp "$LINENO"; then :
17002 rm -f conftest.err conftest.$ac_ext
17004 if test X"$found" = X"no"; then
17005 CPPFLAGS="$O_CPPFLAGS"
17006 { $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
17007 $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;}
17011 if test X"$with_rpath" = X"yes"; then
17013 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17015 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17019 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
17021 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17022 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17025 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17029 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17036 const char *tmp = heimdal_version;
17041 if ac_fn_c_try_compile "$LINENO"; then :
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044 $as_echo "yes" >&6; }
17045 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17047 # XXX - need to check whether -lcrypo is needed!
17048 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17050 $as_echo_n "checking for main in -lroken... " >&6; }
17051 if test "${ac_cv_lib_roken_main+set}" = set; then :
17052 $as_echo_n "(cached) " >&6
17054 ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lroken $LIBS"
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17068 if ac_fn_c_try_link "$LINENO"; then :
17069 ac_cv_lib_roken_main=yes
17071 ac_cv_lib_roken_main=no
17073 rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17078 $as_echo "$ac_cv_lib_roken_main" >&6; }
17079 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17080 SUDO_LIBS="${SUDO_LIBS} -lroken"
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17088 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17090 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17091 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17092 $as_echo_n "(cached) " >&6
17094 ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lkrb5support $LIBS"
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17108 if ac_fn_c_try_link "$LINENO"; then :
17109 ac_cv_lib_krb5support_main=yes
17111 ac_cv_lib_krb5support_main=no
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115 LIBS=$ac_check_lib_save_LIBS
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17118 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17119 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17120 SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 AUTH_OBJS="$AUTH_OBJS kerb5.o"
17128 LIBS="${LIBS} ${SUDO_LIBS}"
17129 for ac_func in krb5_verify_user krb5_init_secure_context
17131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17133 eval as_val=\$$as_ac_var
17134 if test "x$as_val" = x""yes; then :
17135 cat >>confdefs.h <<_ACEOF
17136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142 for ac_func in krb5_get_init_creds_opt_alloc
17144 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17145 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17151 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17152 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17153 $as_echo_n "(cached) " >&6
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17162 krb5_get_init_creds_opt_free(NULL, NULL);
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17171 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17179 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17184 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17185 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17191 if test ${with_AFS-'no'} = "yes"; then
17193 # looks like the "standard" place for AFS libs is /usr/afsws/lib
17194 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17195 for i in $AFSLIBDIRS; do
17196 if test -d ${i}; then
17198 if test X"$with_rpath" = X"yes"; then
17200 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
17202 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
17206 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
17208 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17209 blibpath_add="${blibpath_add}:$i"
17212 FOUND_AFSLIBDIR=true
17215 if test -z "$FOUND_AFSLIBDIR"; then
17216 { $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
17217 $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;}
17220 # Order is important here. Note that we build AFS_LIBS from right to left
17221 # since AFS_LIBS may be initialized with BSD compat libs that must go last
17222 AFS_LIBS="-laudit ${AFS_LIBS}"
17223 for i in $AFSLIBDIRS; do
17224 if test -f ${i}/util.a; then
17225 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17230 if test -z "$FOUND_UTIL_A"; then
17231 AFS_LIBS="-lutil ${AFS_LIBS}"
17233 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17235 # AFS includes may live in /usr/include on some machines...
17236 for i in /usr/afsws/include; do
17237 if test -d ${i}; then
17238 CPPFLAGS="${CPPFLAGS} -I${i}"
17239 FOUND_AFSINCDIR=true
17243 if test -z "$FOUND_AFSLIBDIR"; then
17244 { $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
17245 $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;}
17248 AUTH_OBJS="$AUTH_OBJS afs.o"
17251 if test ${with_DCE-'no'} = "yes"; then
17252 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17253 SUDO_LIBS="${SUDO_LIBS} -ldce"
17254 AUTH_OBJS="$AUTH_OBJS dce.o"
17257 if test ${with_skey-'no'} = "yes"; then
17258 O_LDFLAGS="$LDFLAGS"
17259 if test "$with_skey" != "yes"; then
17260 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17262 if test X"$with_rpath" = X"yes"; then
17264 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17266 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17270 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17272 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17273 blibpath_add="${blibpath_add}:${with_skey}/lib"
17277 if test X"$with_rpath" = X"yes"; then
17279 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17281 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17285 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17287 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17288 blibpath_add="${blibpath_add}:${with_skey}/lib"
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17295 if ac_fn_c_try_cpp "$LINENO"; then :
17300 rm -f conftest.err conftest.$ac_ext
17303 O_CPPFLAGS="$CPPFLAGS"
17304 for dir in "" "/usr/local" "/usr/contrib"; do
17305 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17310 if ac_fn_c_try_cpp "$LINENO"; then :
17313 rm -f conftest.err conftest.$ac_ext
17315 if test "$found" = "no" -o -z "$dir"; then
17316 CPPFLAGS="$O_CPPFLAGS"
17319 if test X"$with_rpath" = X"yes"; then
17321 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17323 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17327 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17329 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17330 blibpath_add="${blibpath_add}:${dir}/lib"
17334 if test X"$with_rpath" = X"yes"; then
17336 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17338 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17342 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17344 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17345 blibpath_add="${blibpath_add}:${dir}/lib"
17350 if test "$found" = "no"; then
17351 { $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
17352 $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;}
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17355 $as_echo_n "checking for main in -lskey... " >&6; }
17356 if test "${ac_cv_lib_skey_main+set}" = set; then :
17357 $as_echo_n "(cached) " >&6
17359 ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lskey $LIBS"
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17373 if ac_fn_c_try_link "$LINENO"; then :
17374 ac_cv_lib_skey_main=yes
17376 ac_cv_lib_skey_main=no
17378 rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17383 $as_echo "$ac_cv_lib_skey_main" >&6; }
17384 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17387 { $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
17388 $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;}
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17392 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17393 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17396 ac_check_lib_save_LIBS=$LIBS
17397 LIBS="-lskey $LIBS"
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17407 char skeyaccess ();
17411 return skeyaccess ();
17416 if ac_fn_c_try_link "$LINENO"; then :
17417 ac_cv_lib_skey_skeyaccess=yes
17419 ac_cv_lib_skey_skeyaccess=no
17421 rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17426 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17427 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17428 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17432 LDFLAGS="$O_LDFLAGS"
17433 SUDO_LIBS="${SUDO_LIBS} -lskey"
17434 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17437 if test ${with_opie-'no'} = "yes"; then
17438 O_LDFLAGS="$LDFLAGS"
17439 if test "$with_opie" != "yes"; then
17440 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17442 if test X"$with_rpath" = X"yes"; then
17444 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17446 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17450 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17452 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17453 blibpath_add="${blibpath_add}:${with_opie}/lib"
17457 if test X"$with_rpath" = X"yes"; then
17459 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17461 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17465 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17467 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17468 blibpath_add="${blibpath_add}:${with_opie}/lib"
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17475 if ac_fn_c_try_cpp "$LINENO"; then :
17480 rm -f conftest.err conftest.$ac_ext
17483 O_CPPFLAGS="$CPPFLAGS"
17484 for dir in "" "/usr/local" "/usr/contrib"; do
17485 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17490 if ac_fn_c_try_cpp "$LINENO"; then :
17493 rm -f conftest.err conftest.$ac_ext
17495 if test "$found" = "no" -o -z "$dir"; then
17496 CPPFLAGS="$O_CPPFLAGS"
17499 if test X"$with_rpath" = X"yes"; then
17501 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17503 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17507 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17509 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17510 blibpath_add="${blibpath_add}:${dir}/lib"
17514 if test X"$with_rpath" = X"yes"; then
17516 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17518 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17522 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17524 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17525 blibpath_add="${blibpath_add}:${dir}/lib"
17530 if test "$found" = "no"; then
17531 { $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
17532 $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;}
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17535 $as_echo_n "checking for main in -lopie... " >&6; }
17536 if test "${ac_cv_lib_opie_main+set}" = set; then :
17537 $as_echo_n "(cached) " >&6
17539 ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lopie $LIBS"
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17553 if ac_fn_c_try_link "$LINENO"; then :
17554 ac_cv_lib_opie_main=yes
17556 ac_cv_lib_opie_main=no
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_check_lib_save_LIBS
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17563 $as_echo "$ac_cv_lib_opie_main" >&6; }
17564 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17567 { $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
17568 $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;}
17571 LDFLAGS="$O_LDFLAGS"
17572 SUDO_LIBS="${SUDO_LIBS} -lopie"
17573 AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17576 if test ${with_passwd-'no'} != "no"; then
17577 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17579 $as_echo_n "checking for library containing crypt... " >&6; }
17580 if test "${ac_cv_search_crypt+set}" = set; then :
17581 $as_echo_n "(cached) " >&6
17583 ac_func_search_save_LIBS=$LIBS
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17602 for ac_lib in '' crypt crypt_d ufc; do
17603 if test -z "$ac_lib"; then
17604 ac_res="none required"
17607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17609 if ac_fn_c_try_link "$LINENO"; then :
17610 ac_cv_search_crypt=$ac_res
17612 rm -f core conftest.err conftest.$ac_objext \
17614 if test "${ac_cv_search_crypt+set}" = set; then :
17618 if test "${ac_cv_search_crypt+set}" = set; then :
17621 ac_cv_search_crypt=no
17623 rm conftest.$ac_ext
17624 LIBS=$ac_func_search_save_LIBS
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17627 $as_echo "$ac_cv_search_crypt" >&6; }
17628 ac_res=$ac_cv_search_crypt
17629 if test "$ac_res" != no; then :
17630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17631 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17636 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17638 LIBS="$LIBS $shadow_libs"
17640 for ac_func in $shadow_funcs
17642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17644 eval as_val=\$$as_ac_var
17645 if test "x$as_val" = x""yes; then :
17646 cat >>confdefs.h <<_ACEOF
17647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 if test "$found" = "yes"; then
17654 SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17655 elif test -n "$shadow_libs_optional"; then
17656 LIBS="$LIBS $shadow_libs_optional"
17657 for ac_func in $shadow_funcs
17659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17661 eval as_val=\$$as_ac_var
17662 if test "x$as_val" = x""yes; then :
17663 cat >>confdefs.h <<_ACEOF
17664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17670 if test "$found" = "yes"; then
17671 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17674 if test "$found" = "yes"; then
17675 case "$shadow_funcs" in
17676 *getprpwnam*) SECUREWARE=1;;
17678 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
17684 if test "$CHECKSHADOW" = "true"; then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
17686 $as_echo_n "checking for library containing getspnam... " >&6; }
17687 if test "${ac_cv_search_getspnam+set}" = set; then :
17688 $as_echo_n "(cached) " >&6
17690 ac_func_search_save_LIBS=$LIBS
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17694 /* Override any GCC internal prototype to avoid an error.
17695 Use char because int might match the return type of a GCC
17696 builtin and then its argument prototype would still apply. */
17704 return getspnam ();
17709 for ac_lib in '' gen; do
17710 if test -z "$ac_lib"; then
17711 ac_res="none required"
17714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17716 if ac_fn_c_try_link "$LINENO"; then :
17717 ac_cv_search_getspnam=$ac_res
17719 rm -f core conftest.err conftest.$ac_objext \
17721 if test "${ac_cv_search_getspnam+set}" = set; then :
17725 if test "${ac_cv_search_getspnam+set}" = set; then :
17728 ac_cv_search_getspnam=no
17730 rm conftest.$ac_ext
17731 LIBS=$ac_func_search_save_LIBS
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
17734 $as_echo "$ac_cv_search_getspnam" >&6; }
17735 ac_res=$ac_cv_search_getspnam
17736 if test "$ac_res" != no; then :
17737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17738 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
17739 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17743 if test "$CHECKSHADOW" = "true"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
17745 $as_echo_n "checking for library containing getprpwnam... " >&6; }
17746 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 ac_func_search_save_LIBS=$LIBS
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17753 /* Override any GCC internal prototype to avoid an error.
17754 Use char because int might match the return type of a GCC
17755 builtin and then its argument prototype would still apply. */
17759 char getprpwnam ();
17763 return getprpwnam ();
17768 for ac_lib in '' sec security prot; do
17769 if test -z "$ac_lib"; then
17770 ac_res="none required"
17773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17775 if ac_fn_c_try_link "$LINENO"; then :
17776 ac_cv_search_getprpwnam=$ac_res
17778 rm -f core conftest.err conftest.$ac_objext \
17780 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17784 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17787 ac_cv_search_getprpwnam=no
17789 rm conftest.$ac_ext
17790 LIBS=$ac_func_search_save_LIBS
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
17793 $as_echo "$ac_cv_search_getprpwnam" >&6; }
17794 ac_res=$ac_cv_search_getprpwnam
17795 if test "$ac_res" != no; then :
17796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17797 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
17798 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17802 if test -n "$SECUREWARE"; then
17803 for ac_func in bigcrypt set_auth_parameters initprivs
17805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17807 eval as_val=\$$as_ac_var
17808 if test "x$as_val" = x""yes; then :
17809 cat >>confdefs.h <<_ACEOF
17810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17816 AUTH_OBJS="$AUTH_OBJS secureware.o"
17820 if test ${with_ldap-'no'} != "no"; then
17821 _LDFLAGS="$LDFLAGS"
17822 if test "$with_ldap" != "yes"; then
17824 if test X"$with_rpath" = X"yes"; then
17826 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17828 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17832 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
17834 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17835 blibpath_add="${blibpath_add}:${with_ldap}/lib"
17839 if test X"$with_rpath" = X"yes"; then
17841 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17843 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17847 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
17849 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17850 blibpath_add="${blibpath_add}:${with_ldap}/lib"
17853 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
17856 SUDO_OBJS="${SUDO_OBJS} ldap.o"
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
17860 $as_echo_n "checking for LDAP libraries... " >&6; }
17864 for l in -lldap -llber '-lssl -lcrypto'; do
17866 LDAP_LIBS="${LDAP_LIBS} $l"
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869 #include <sys/types.h>
17875 (void)ldap_init(0, 0)
17880 if ac_fn_c_try_link "$LINENO"; then :
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17886 if test "$found" = "no"; then
17887 LIBS="${_LIBS} -lldap"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
17890 $as_echo "not found, using -lldap" >&6; }
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
17893 $as_echo "$LDAP_LIBS" >&6; }
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
17897 $as_echo_n "checking for library containing ber_set_option... " >&6; }
17898 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17901 ac_func_search_save_LIBS=$LIBS
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17911 char ber_set_option ();
17915 return ber_set_option ();
17920 for ac_lib in '' lber; do
17921 if test -z "$ac_lib"; then
17922 ac_res="none required"
17925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17927 if ac_fn_c_try_link "$LINENO"; then :
17928 ac_cv_search_ber_set_option=$ac_res
17930 rm -f core conftest.err conftest.$ac_objext \
17932 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17936 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17939 ac_cv_search_ber_set_option=no
17941 rm conftest.$ac_ext
17942 LIBS=$ac_func_search_save_LIBS
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
17945 $as_echo "$ac_cv_search_ber_set_option" >&6; }
17946 ac_res=$ac_cv_search_ber_set_option
17947 if test "$ac_res" != no; then :
17948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17954 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
17955 LDAP_LIBS="$LDAP_LIBS -llber"
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
17958 $as_echo_n "checking whether lber.h is needed... " >&6; }
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17961 #include <sys/types.h>
17966 (void)ldap_init(0, 0)
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17977 $as_echo "yes" >&6; }
17978 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 for ac_header in sasl/sasl.h sasl.h
17986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17988 eval as_val=\$$as_ac_Header
17989 if test "x$as_val" = x""yes; then :
17990 cat >>confdefs.h <<_ACEOF
17991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17993 for ac_func in ldap_sasl_interactive_bind_s
17995 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
17996 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
18010 for ac_header in ldap_ssl.h mps/ldap_ssl.h
18012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18015 eval as_val=\$$as_ac_Header
18016 if test "x$as_val" = x""yes; then :
18017 cat >>confdefs.h <<_ACEOF
18018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18025 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
18027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18029 eval as_val=\$$as_ac_var
18030 if test "x$as_val" = x""yes; then :
18031 cat >>confdefs.h <<_ACEOF
18032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18039 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18041 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18042 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18045 ac_check_lib_save_LIBS=$LIBS
18046 LIBS="-lgssapi $LIBS"
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18056 char gss_krb5_ccache_name ();
18060 return gss_krb5_ccache_name ();
18065 if ac_fn_c_try_link "$LINENO"; then :
18066 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18068 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072 LIBS=$ac_check_lib_save_LIBS
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18075 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18076 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18077 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18079 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18082 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18083 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18084 $as_echo_n "(cached) " >&6
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lgssapi_krb5 $LIBS"
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18097 char gss_krb5_ccache_name ();
18101 return gss_krb5_ccache_name ();
18106 if ac_fn_c_try_link "$LINENO"; then :
18107 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18109 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18116 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18117 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18118 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18120 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18127 # gssapi headers may be separate or part of Kerberos V
18129 O_CPPFLAGS="$CPPFLAGS"
18130 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18131 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 #include <gssapi/gssapi.h>
18136 if ac_fn_c_try_cpp "$LINENO"; then :
18137 found="gssapi/gssapi.h"; break
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18141 #include <gssapi.h>
18143 if ac_fn_c_try_cpp "$LINENO"; then :
18144 found="gssapi.h"; break
18146 rm -f conftest.err conftest.$ac_ext
18148 rm -f conftest.err conftest.$ac_ext
18150 if test X"$found" != X"no"; then
18151 for ac_header in $found
18153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18155 eval as_val=\$$as_ac_Header
18156 if test "x$as_val" = x""yes; then :
18157 cat >>confdefs.h <<_ACEOF
18158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18165 if test X"$found" = X"gssapi/gssapi.h"; then
18166 for ac_header in gssapi/gssapi_krb5.h
18168 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18169 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18180 CPPFLAGS="$O_CPPFLAGS"
18181 { $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
18182 $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;}
18186 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
18188 LDFLAGS="$_LDFLAGS"
18191 if test X"$LIBVAS_RPATH" != X""; then
18192 if test -n "$blibpath"; then
18193 blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
18196 *-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
18198 *) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
18204 if test -n "$blibpath"; then
18205 if test -n "$blibpath_add"; then
18206 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18207 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18208 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18213 $as_echo_n "checking for log file location... " >&6; }
18214 if test -n "$with_logpath"; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18216 $as_echo "$with_logpath" >&6; }
18217 cat >>confdefs.h <<EOF
18218 #define _PATH_SUDO_LOGFILE "$with_logpath"
18221 elif test -d "/var/log"; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18223 $as_echo "/var/log/sudo.log" >&6; }
18224 cat >>confdefs.h <<\EOF
18225 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18228 elif test -d "/var/adm"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18230 $as_echo "/var/adm/sudo.log" >&6; }
18231 cat >>confdefs.h <<\EOF
18232 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18235 elif test -d "/usr/adm"; then
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18237 $as_echo "/usr/adm/sudo.log" >&6; }
18238 cat >>confdefs.h <<\EOF
18239 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18244 $as_echo "unknown" >&6; }
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18248 $as_echo_n "checking for timestamp file location... " >&6; }
18249 timedir="$with_timedir"
18250 if test -z "$timedir"; then
18251 for d in /var/db /var/lib /var/adm /usr/adm; do
18252 if test -d "$d"; then
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18259 $as_echo "$timedir" >&6; }
18260 cat >>confdefs.h <<EOF
18261 #define _PATH_SUDO_TIMEDIR "$timedir"
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18267 $as_echo_n "checking for I/O log dir location... " >&6; }
18268 if test "${with_iologdir-yes}" != "yes"; then
18270 elif test -d "/var/log"; then
18271 with_iologdir="/var/log/sudo-io"
18272 elif test -d "/var/adm"; then
18273 with_iologdir="/var/adm/sudo-io"
18275 with_iologdir="/usr/adm/sudo-io"
18277 if test "${with_iologdir-yes}" != "no"; then
18278 cat >>confdefs.h <<EOF
18279 #define _PATH_SUDO_IO_LOGDIR "$with_iologdir"
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_iologdir" >&5
18284 $as_echo "$with_iologdir" >&6; }
18287 if test "${with_iologdir-yes}" != "no"; then
18288 # Require POSIX job control for I/O log support
18289 for ac_func in tcsetpgrp
18291 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18292 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18293 cat >>confdefs.h <<_ACEOF
18294 #define HAVE_TCSETPGRP 1
18297 SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18298 PROGS="$PROGS sudoreplay"
18301 # Check whether --enable-zlib was given.
18302 if test "${enable_zlib+set}" = set; then :
18303 enableval=$enable_zlib; case "$enable_zlib" in
18304 yes) $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18309 *) $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18311 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18313 if test X"$with_rpath" = X"yes"; then
18315 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18317 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18321 ZLIB="${ZLIB} -L$enable_zlib/lib"
18323 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18324 blibpath_add="${blibpath_add}:$enable_zlib/lib"
18333 if test X"$enable_zlib" = X""; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18335 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18336 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18339 ac_check_lib_save_LIBS=$LIBS
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 ac_cv_lib_z_gzdopen=yes
18362 ac_cv_lib_z_gzdopen=no
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18369 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18370 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18372 for ac_header in zlib.h
18374 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18375 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18376 cat >>confdefs.h <<_ACEOF
18377 #define HAVE_ZLIB_H 1
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18392 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18400 case "$with_passwd" in
18402 AUTH_OBJS="$AUTH_OBJS passwd.o"
18405 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18407 if test -z "$AUTH_OBJS"; then
18408 as_fn_error "no authentication methods defined." "$LINENO" 5
18412 AUTH_OBJS=${AUTH_OBJS# }
18413 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18415 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18417 if test -n "$LIBS"; then
18422 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18423 test $l = $sl && dupe=1
18425 test $dupe = 0 && LIBS="${LIBS} $l"
18429 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18431 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18432 oexec_prefix="$exec_prefix"
18433 if test "$exec_prefix" = '$(prefix)'; then
18434 if test "$prefix" = "NONE"; then
18435 exec_prefix="$ac_default_prefix"
18437 exec_prefix="$prefix"
18440 if test X"$with_noexec" != X"no"; then
18441 PROGS="${PROGS} libsudo_noexec.la"
18442 INSTALL_NOEXEC="install-noexec"
18444 eval noexec_file="$with_noexec"
18445 cat >>confdefs.h <<EOF
18446 #define _PATH_SUDO_NOEXEC "$noexec_file"
18450 if test X"$with_selinux" != X"no"; then
18451 eval sesh_file="$libexecdir/sesh"
18452 cat >>confdefs.h <<EOF
18453 #define _PATH_SUDO_SESH "$sesh_file"
18457 exec_prefix="$oexec_prefix"
18460 if test X"$prefix" = X"NONE"; then
18461 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18463 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18465 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18466 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18467 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18468 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18469 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18470 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18471 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18473 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
18475 cat >confcache <<\_ACEOF
18476 # This file is a shell script that caches the results of configure
18477 # tests run on this system so they can be shared between configure
18478 # scripts and configure runs, see configure's option --config-cache.
18479 # It is not useful on other systems. If it contains results you don't
18480 # want to keep, you may remove or edit it.
18482 # config.status only pays attention to the cache file if you give it
18483 # the --recheck option to rerun configure.
18485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18487 # following values.
18491 # The following way of writing the cache mishandles newlines in values,
18492 # but we know of no workaround that is simple, portable, and efficient.
18493 # So, we kill variables containing newlines.
18494 # Ultrix sh set writes to stderr and can't be redirected directly,
18495 # and sets the high bit in the cache file unless we assign to the vars.
18497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18498 eval ac_val=\$$ac_var
18502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18506 _ | IFS | as_nl) ;; #(
18507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18508 *) { eval $ac_var=; unset $ac_var;} ;;
18514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18515 *${as_nl}ac_space=\ *)
18516 # `set' does not quote correctly, so add quotes: double-quote
18517 # substitution turns \\\\ into \\, and sed turns \\ into \.
18520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18523 # `set' quotes correctly as required by POSIX, so do not add quotes.
18524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18538 if test -w "$cache_file"; then
18539 test "x$cache_file" != "x/dev/null" &&
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18541 $as_echo "$as_me: updating cache $cache_file" >&6;}
18542 cat confcache >$cache_file
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18551 # Let make expand exec_prefix.
18552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18554 DEFS=-DHAVE_CONFIG_H
18558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18559 # 1. Remove the extension, and $U if already installed.
18560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18563 # will be set to the directory where LIBOBJS objects are built.
18564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18567 LIBOBJS=$ac_libobjs
18569 LTLIBOBJS=$ac_ltlibobjs
18573 : ${CONFIG_STATUS=./config.status}
18575 ac_clean_files_save=$ac_clean_files
18576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18578 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18580 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18582 # Generated by $as_me.
18583 # Run this file to recreate the current configuration.
18584 # Compiler output produced by configure, useful for debugging
18585 # configure, is in config.log if it exists.
18588 ac_cs_recheck=false
18591 SHELL=\${CONFIG_SHELL-$SHELL}
18594 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18595 ## -------------------- ##
18596 ## M4sh Initialization. ##
18597 ## -------------------- ##
18599 # Be more Bourne compatible
18600 DUALCASE=1; export DUALCASE # for MKS sh
18601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18604 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18605 # is contrary to our usage. Disable this feature.
18606 alias -g '${1+"$@"}'='"$@"'
18607 setopt NO_GLOB_SUBST
18609 case `(set -o) 2>/dev/null` in #(
18621 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18622 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18625 # Prefer a ksh shell builtin over an external printf program on Solaris,
18626 # but without wasting forks for bash or zsh.
18627 if test -z "$BASH_VERSION$ZSH_VERSION" \
18628 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18629 as_echo='print -r --'
18630 as_echo_n='print -rn --'
18631 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18632 as_echo='printf %s\n'
18633 as_echo_n='printf %s'
18635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18636 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18637 as_echo_n='/usr/ucb/echo -n'
18639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18640 as_echo_n_body='eval
18644 expr "X$arg" : "X\\(.*\\)$as_nl";
18645 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18647 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18649 export as_echo_n_body
18650 as_echo_n='sh -c $as_echo_n_body as_echo'
18652 export as_echo_body
18653 as_echo='sh -c $as_echo_body as_echo'
18656 # The user is always right.
18657 if test "${PATH_SEPARATOR+set}" != set; then
18659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18667 # We need space, tab and new line, in precisely that order. Quoting is
18668 # there to prevent editors from complaining about space-tab.
18669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18670 # splitting by setting IFS to empty value.)
18673 # Find who we are. Look in the path if we contain no directory separator.
18675 *[\\/]* ) as_myself=$0 ;;
18676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18680 test -z "$as_dir" && as_dir=.
18681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18687 # We did not find ourselves, most probably we were run as `sh COMMAND'
18688 # in which case we are not to be found in the path.
18689 if test "x$as_myself" = x; then
18692 if test ! -f "$as_myself"; then
18693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18697 # Unset variables that we do not need and which cause bugs (e.g. in
18698 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18699 # suppresses any "Segmentation fault" message there. '((' could
18700 # trigger a bug in pdksh 5.2.14.
18701 for as_var in BASH_ENV ENV MAIL MAILPATH
18702 do eval test x\${$as_var+set} = xset \
18703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18719 # as_fn_error ERROR [LINENO LOG_FD]
18720 # ---------------------------------
18721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18723 # script with status $?, using 1 if that was 0.
18726 as_status=$?; test $as_status -eq 0 && as_status=1
18728 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18731 $as_echo "$as_me: error: $1" >&2
18732 as_fn_exit $as_status
18736 # as_fn_set_status STATUS
18737 # -----------------------
18738 # Set $? to STATUS, without forking.
18739 as_fn_set_status ()
18742 } # as_fn_set_status
18744 # as_fn_exit STATUS
18745 # -----------------
18746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18750 as_fn_set_status $1
18756 # Portably unset VAR.
18759 { eval $1=; unset $1;}
18761 as_unset=as_fn_unset
18762 # as_fn_append VAR VALUE
18763 # ----------------------
18764 # Append the text in VALUE to the end of the definition contained in VAR. Take
18765 # advantage of any shell optimizations that allow amortized linear growth over
18766 # repeated appends, instead of the typical quadratic growth present in naive
18768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18769 eval 'as_fn_append ()
18780 # as_fn_arith ARG...
18781 # ------------------
18782 # Perform arithmetic evaluation on the ARGs, and store the result in the
18783 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18784 # must be portable across $(()) and expr.
18785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18786 eval 'as_fn_arith ()
18793 as_val=`expr "$@" || test $? -eq 1`
18798 if expr a : '\(a\)' >/dev/null 2>&1 &&
18799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18806 as_basename=basename
18811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18817 as_me=`$as_basename -- "$0" ||
18818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18819 X"$0" : 'X\(//\)$' \| \
18820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18822 sed '/^.*\/\([^/][^/]*\)\/*$/{
18836 # Avoid depending upon Character Ranges.
18837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18840 as_cr_digits='0123456789'
18841 as_cr_alnum=$as_cr_Letters$as_cr_digits
18843 ECHO_C= ECHO_N= ECHO_T=
18844 case `echo -n x` in #(((((
18846 case `echo 'xy\c'` in
18847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18856 rm -f conf$$ conf$$.exe conf$$.file
18857 if test -d conf$$.dir; then
18858 rm -f conf$$.dir/conf$$.file
18861 mkdir conf$$.dir 2>/dev/null
18863 if (echo >conf$$.file) 2>/dev/null; then
18864 if ln -s conf$$.file conf$$ 2>/dev/null; then
18866 # ... but there are two gotchas:
18867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18869 # In both cases, we have to default to `cp -p'.
18870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18872 elif ln conf$$.file conf$$ 2>/dev/null; then
18880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18881 rmdir conf$$.dir 2>/dev/null
18886 # Create "$as_dir" as a directory, including parents if necessary.
18891 -*) as_dir=./$as_dir;;
18893 test -d "$as_dir" || eval $as_mkdir_p || {
18897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18898 *) as_qdir=$as_dir;;
18900 as_dirs="'$as_qdir' $as_dirs"
18901 as_dir=`$as_dirname -- "$as_dir" ||
18902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903 X"$as_dir" : 'X\(//\)[^/]' \| \
18904 X"$as_dir" : 'X\(//\)$' \| \
18905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18906 $as_echo X"$as_dir" |
18907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18911 /^X\(\/\/\)[^/].*/{
18924 test -d "$as_dir" && break
18926 test -z "$as_dirs" || eval "mkdir $as_dirs"
18927 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18931 if mkdir -p . 2>/dev/null; then
18932 as_mkdir_p='mkdir -p "$as_dir"'
18934 test -d ./-p && rmdir ./-p
18938 if test -x / >/dev/null 2>&1; then
18939 as_test_x='test -x'
18941 if ls -dL / >/dev/null 2>&1; then
18948 if test -d "$1"; then
18954 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18955 ???[sx]*):;;*)false;;esac;fi
18959 as_executable_p=$as_test_x
18961 # Sed expression to map a string onto a valid CPP name.
18962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18964 # Sed expression to map a string onto a valid variable name.
18965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18969 ## ----------------------------------- ##
18970 ## Main body of $CONFIG_STATUS script. ##
18971 ## ----------------------------------- ##
18973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 # Save the log message, to keep $0 and so on meaningful, and to
18977 # report actual input values of CONFIG_FILES etc. instead of their
18978 # values after options handling.
18980 This file was extended by sudo $as_me 1.7.4p4, which was
18981 generated by GNU Autoconf 2.65. Invocation command line was
18983 CONFIG_FILES = $CONFIG_FILES
18984 CONFIG_HEADERS = $CONFIG_HEADERS
18985 CONFIG_LINKS = $CONFIG_LINKS
18986 CONFIG_COMMANDS = $CONFIG_COMMANDS
18989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18994 case $ac_config_files in *"
18995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18998 case $ac_config_headers in *"
18999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19004 # Files that config.status was made for.
19005 config_files="$ac_config_files"
19006 config_headers="$ac_config_headers"
19007 config_commands="$ac_config_commands"
19011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19013 \`$as_me' instantiates files and other configuration actions
19014 from templates according to the current configuration. Unless the files
19015 and actions are specified as TAGs, all are instantiated by default.
19017 Usage: $0 [OPTION]... [TAG]...
19019 -h, --help print this help, then exit
19020 -V, --version print version number and configuration settings, then exit
19021 --config print configuration, then exit
19022 -q, --quiet, --silent
19023 do not print progress messages
19024 -d, --debug don't remove temporary files
19025 --recheck update $as_me by reconfiguring in the same conditions
19026 --file=FILE[:TEMPLATE]
19027 instantiate the configuration file FILE
19028 --header=FILE[:TEMPLATE]
19029 instantiate the configuration header FILE
19031 Configuration files:
19034 Configuration headers:
19037 Configuration commands:
19040 Report bugs to <http://www.sudo.ws/bugs/>."
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19046 sudo config.status 1.7.4p4
19047 configured by $0, generated by GNU Autoconf 2.65,
19048 with options \\"\$ac_cs_config\\"
19050 Copyright (C) 2009 Free Software Foundation, Inc.
19051 This config.status script is free software; the Free Software Foundation
19052 gives unlimited permission to copy, distribute and modify it."
19056 test -n "\$AWK" || AWK=awk
19059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19060 # The default lists apply if the user does not specify any file.
19066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19078 # Handling of the options.
19079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19081 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19082 $as_echo "$ac_cs_version"; exit ;;
19083 --config | --confi | --conf | --con | --co | --c )
19084 $as_echo "$ac_cs_config"; exit ;;
19085 --debug | --debu | --deb | --de | --d | -d )
19087 --file | --fil | --fi | --f )
19090 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19092 as_fn_append CONFIG_FILES " '$ac_optarg'"
19093 ac_need_defaults=false;;
19094 --header | --heade | --head | --hea )
19097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19099 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19100 ac_need_defaults=false;;
19102 # Conflict between --help and --header
19103 as_fn_error "ambiguous option: \`$1'
19104 Try \`$0 --help' for more information.";;
19105 --help | --hel | -h )
19106 $as_echo "$ac_cs_usage"; exit ;;
19107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19111 # This is an error.
19112 -*) as_fn_error "unrecognized option: \`$1'
19113 Try \`$0 --help' for more information." ;;
19115 *) as_fn_append ac_config_targets " $1"
19116 ac_need_defaults=false ;;
19122 ac_configure_extra_args=
19124 if $ac_cs_silent; then
19126 ac_configure_extra_args="$ac_configure_extra_args --silent"
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19131 if \$ac_cs_recheck; then
19132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19135 CONFIG_SHELL='$SHELL'
19136 export CONFIG_SHELL
19141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19146 ## Running $as_me. ##
19152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19158 # The HP-UX ksh and POSIX shell print the target directory to stdout
19159 # if CDPATH is set.
19160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19162 sed_quote_subst='$sed_quote_subst'
19163 double_quote_subst='$double_quote_subst'
19164 delay_variable_subst='$delay_variable_subst'
19165 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19166 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19167 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19168 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19169 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19170 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19171 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19172 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19173 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19174 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19175 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19176 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19177 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19178 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19179 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19180 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19181 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19182 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19183 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19184 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19185 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19186 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19187 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19188 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19189 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19190 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19191 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19192 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19193 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19194 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19195 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19196 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19197 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19198 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19199 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19200 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19201 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19202 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19203 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19204 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19205 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19206 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19207 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19209 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"`'
19210 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"`'
19211 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19212 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19213 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19214 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19215 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19216 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19217 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19218 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19219 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19220 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19221 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19222 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19223 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19224 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19225 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19226 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19227 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19228 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19229 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19230 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19231 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19232 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19233 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19234 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19235 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19236 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19237 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19238 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19239 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19240 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19241 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19242 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19243 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19244 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19245 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19246 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19247 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19248 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19249 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19250 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19251 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19252 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19253 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19254 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19255 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19256 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19257 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19258 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19259 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19260 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19261 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19262 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19263 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19264 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19265 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19266 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19267 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19268 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19269 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19270 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19271 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19272 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19273 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19274 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19275 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19276 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19277 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19278 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19279 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19280 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19281 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19282 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19285 LTCFLAGS='$LTCFLAGS'
19286 compiler='$compiler_DEFAULT'
19288 # Quote evaled strings.
19300 deplibs_check_method \
19309 lt_cv_sys_global_symbol_pipe \
19310 lt_cv_sys_global_symbol_to_cdecl \
19311 lt_cv_sys_global_symbol_to_c_name_address \
19312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19315 lt_prog_compiler_no_builtin_flag \
19316 lt_prog_compiler_wl \
19317 lt_prog_compiler_pic \
19318 lt_prog_compiler_static \
19319 lt_cv_prog_compiler_c_o \
19327 export_dynamic_flag_spec \
19328 whole_archive_flag_spec \
19329 compiler_needs_object \
19331 allow_undefined_flag \
19332 no_undefined_flag \
19333 hardcode_libdir_flag_spec \
19334 hardcode_libdir_flag_spec_ld \
19335 hardcode_libdir_separator \
19340 variables_saved_for_relink \
19342 library_names_spec \
19347 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19348 *[\\\\\\\`\\"\\\$]*)
19349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19357 # Double-quote double-evaled strings.
19358 for var in reload_cmds \
19359 old_postinstall_cmds \
19360 old_postuninstall_cmds \
19362 extract_expsyms_cmds \
19363 old_archive_from_new_cmds \
19364 old_archive_from_expsyms_cmds \
19366 archive_expsym_cmds \
19368 module_expsym_cmds \
19369 export_symbols_cmds \
19372 postuninstall_cmds \
19374 sys_lib_search_path_spec \
19375 sys_lib_dlsearch_path_spec; do
19376 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19377 *[\\\\\\\`\\"\\\$]*)
19378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19386 # Fix-up fallback echo if it was mangled by the above quoting rules.
19388 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19392 ac_aux_dir='$ac_aux_dir'
19393 xsi_shell='$xsi_shell'
19394 lt_shell_append='$lt_shell_append'
19396 # See if we are running on zsh, and set the options which allow our
19397 # commands through without removal of \ escapes INIT.
19398 if test -n "\${ZSH_VERSION+set}" ; then
19399 setopt NO_GLOB_SUBST
19405 TIMESTAMP='$TIMESTAMP'
19414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19416 # Handling of arguments.
19417 for ac_config_target in $ac_config_targets
19419 case $ac_config_target in
19420 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19421 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19422 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19423 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19424 "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19425 "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19426 "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19427 "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19428 "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19429 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19430 "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;;
19432 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19437 # If the user did not use the arguments to specify the items to instantiate,
19438 # then the envvar interface is used. Set only those that are not.
19439 # We use the long form for the default assignment because of an extremely
19440 # bizarre bug on SunOS 4.1.3.
19441 if $ac_need_defaults; then
19442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19447 # Have a temporary directory for convenience. Make it in the build tree
19448 # simply because there is no reason against having it here, and in addition,
19449 # creating and moving files from /tmp can sometimes cause problems.
19450 # Hook for its removal unless debugging.
19451 # Note that there is a small window in which the directory will not be cleaned:
19452 # after its creation but before its name has been assigned to `$tmp'.
19456 trap 'exit_status=$?
19457 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19459 trap 'as_fn_exit 1' 1 2 13 15
19461 # Create a (secure) tmp directory for tmp files.
19464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19465 test -n "$tmp" && test -d "$tmp"
19468 tmp=./conf$$-$RANDOM
19469 (umask 077 && mkdir "$tmp")
19470 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19472 # Set up the scripts for CONFIG_FILES section.
19473 # No need to generate them if there are no CONFIG_FILES.
19474 # This happens for instance with `./config.status config.h'.
19475 if test -n "$CONFIG_FILES"; then
19478 ac_cr=`echo X | tr X '\015'`
19479 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19480 # But we know of no other shell where ac_cr would be empty at this
19481 # point, so we can use a bashism as a fallback.
19482 if test "x$ac_cr" = x; then
19483 eval ac_cr=\$\'\\r\'
19485 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19486 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19489 ac_cs_awk_cr=$ac_cr
19492 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19497 echo "cat >conf$$subs.awk <<_ACEOF" &&
19498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19500 } >conf$$subs.sh ||
19501 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19502 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19504 for ac_last_try in false false false false false :; do
19505 . ./conf$$subs.sh ||
19506 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19509 if test $ac_delim_n = $ac_delim_num; then
19511 elif $ac_last_try; then
19512 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19517 rm -f conf$$subs.sh
19519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19524 s/^/S["/; s/!.*/"]=/
19534 s/\(.\{148\}\)..*/\1/
19536 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19548 s/\(.\{148\}\)..*/\1/
19550 s/["\\]/\\&/g; s/^/"/; s/$/"/
19554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19559 ' <conf$$subs.awk | sed '
19564 ' >>$CONFIG_STATUS || ac_write_fail=1
19565 rm -f conf$$subs.awk
19566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19568 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19569 for (key in S) S_is_set[key] = 1
19575 nfields = split(line, field, "@")
19577 len = length(field[1])
19578 for (i = 2; i < nfields; i++) {
19580 keylen = length(key)
19581 if (S_is_set[key]) {
19583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19584 len += length(value) + length(field[++i])
19595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19600 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19601 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19606 # trailing colons and then remove the whole line if VPATH becomes empty
19607 # (actually we leave an empty line to preserve line numbers).
19608 if test "x$srcdir" = x.; then
19609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19610 s/:*\$(srcdir):*/:/
19611 s/:*\${srcdir}:*/:/
19613 s/^\([^=]*=[ ]*\):*/\1/
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 fi # test -n "$CONFIG_FILES"
19622 # Set up the scripts for CONFIG_HEADERS section.
19623 # No need to generate them if there are no CONFIG_HEADERS.
19624 # This happens for instance with `./config.status Makefile'.
19625 if test -n "$CONFIG_HEADERS"; then
19626 cat >"$tmp/defines.awk" <<\_ACAWK ||
19630 # Transform confdefs.h into an awk script `defines.awk', embedded as
19631 # here-document in config.status, that substitutes the proper values into
19632 # config.h.in to produce config.h.
19634 # Create a delimiter string that does not exist in confdefs.h, to ease
19635 # handling of long lines.
19637 for ac_last_try in false false :; do
19638 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19639 if test -z "$ac_t"; then
19641 elif $ac_last_try; then
19642 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19648 # For the awk script, D is an array of macro values keyed by name,
19649 # likewise P contains macro parameters if any. Preserve backslash
19650 # newline sequences.
19652 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19654 s/.\{148\}/&'"$ac_delim"'/g
19657 s/^[ ]*#[ ]*define[ ][ ]*/ /
19664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19666 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19671 D["\1"]=" \3\\\\\\n"\\/p
19673 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19678 s/.\{148\}/&'"$ac_delim"'/g
19683 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19686 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19688 ' <confdefs.h | sed '
19689 s/'"$ac_delim"'/"\\\
19690 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19693 for (key in D) D_is_set[key] = 1
19696 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19698 split(line, arg, " ")
19699 if (arg[1] == "#") {
19703 defundef = substr(arg[1], 2)
19706 split(mac1, mac2, "(") #)
19708 prefix = substr(line, 1, index(line, defundef) - 1)
19709 if (D_is_set[macro]) {
19710 # Preserve the white space surrounding the "#".
19711 print prefix "define", macro P[macro] D[macro]
19714 # Replace #undef with comments. This is necessary, for example,
19715 # in the case of _POSIX_SOURCE, which is predefined and required
19716 # on some systems where configure will not decide to define it.
19717 if (defundef == "undef") {
19718 print "/*", prefix defundef, macro, "*/"
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19728 fi # test -n "$CONFIG_HEADERS"
19731 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19736 :[FHLC]) ac_mode=$ac_tag; continue;;
19738 case $ac_mode$ac_tag in
19740 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19741 :[FH]-) ac_tag=-:-;;
19742 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19759 -) ac_f="$tmp/stdin";;
19760 *) # Look for the file first in the build tree, then in the source tree
19761 # (if the path is not absolute). The absolute path cannot be DOS-style,
19762 # because $ac_f cannot contain `:'.
19766 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19768 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19770 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19771 as_fn_append ac_file_inputs " '$ac_f'"
19774 # Let's still pretend it is `configure' which instantiates (i.e., don't
19775 # use $as_me), people would be surprised to read:
19776 # /* config.h. Generated by config.status. */
19777 configure_input='Generated from '`
19778 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19780 if test x"$ac_file" != x-; then
19781 configure_input="$ac_file. $configure_input"
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19783 $as_echo "$as_me: creating $ac_file" >&6;}
19785 # Neutralize special characters interpreted by sed in replacement strings.
19786 case $configure_input in #(
19787 *\&* | *\|* | *\\* )
19788 ac_sed_conf_input=`$as_echo "$configure_input" |
19789 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19790 *) ac_sed_conf_input=$configure_input;;
19794 *:-:* | *:-) cat >"$tmp/stdin" \
19795 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19800 ac_dir=`$as_dirname -- "$ac_file" ||
19801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19802 X"$ac_file" : 'X\(//\)[^/]' \| \
19803 X"$ac_file" : 'X\(//\)$' \| \
19804 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19805 $as_echo X"$ac_file" |
19806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19810 /^X\(\/\/\)[^/].*/{
19823 as_dir="$ac_dir"; as_fn_mkdir_p
19827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19829 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19830 # A ".." for each directory in $ac_dir_suffix.
19831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19832 case $ac_top_builddir_sub in
19833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19837 ac_abs_top_builddir=$ac_pwd
19838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19839 # for backward compatibility:
19840 ac_top_builddir=$ac_top_build_prefix
19843 .) # We are building in place.
19845 ac_top_srcdir=$ac_top_builddir_sub
19846 ac_abs_top_srcdir=$ac_pwd ;;
19847 [\\/]* | ?:[\\/]* ) # Absolute name.
19848 ac_srcdir=$srcdir$ac_dir_suffix;
19849 ac_top_srcdir=$srcdir
19850 ac_abs_top_srcdir=$srcdir ;;
19851 *) # Relative name.
19852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19853 ac_top_srcdir=$ac_top_build_prefix$srcdir
19854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 # If the template does not know about datarootdir, expand it.
19869 # FIXME: This hack should be removed a few years after 2.60.
19870 ac_datarootdir_hack=; ac_datarootdir_seen=
19881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19882 *datarootdir*) ac_datarootdir_seen=yes;;
19883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888 ac_datarootdir_hack='
19889 s&@datadir@&$datadir&g
19890 s&@docdir@&$docdir&g
19891 s&@infodir@&$infodir&g
19892 s&@localedir@&$localedir&g
19893 s&@mandir@&$mandir&g
19894 s&\\\${datarootdir}&$datarootdir&g' ;;
19898 # Neutralize VPATH when `$srcdir' = `.'.
19899 # Shell code in configure.ac might set extrasub.
19900 # FIXME: do we really want to maintain this feature?
19901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902 ac_sed_extra="$ac_vpsub
19905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19908 s|@configure_input@|$ac_sed_conf_input|;t t
19909 s&@top_builddir@&$ac_top_builddir_sub&;t t
19910 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19911 s&@srcdir@&$ac_srcdir&;t t
19912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19913 s&@top_srcdir@&$ac_top_srcdir&;t t
19914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19915 s&@builddir@&$ac_builddir&;t t
19916 s&@abs_builddir@&$ac_abs_builddir&;t t
19917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19918 $ac_datarootdir_hack
19920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19921 || as_fn_error "could not create $ac_file" "$LINENO" 5
19923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19924 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19927 which seems to be undefined. Please make sure it is defined." >&5
19928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19929 which seems to be undefined. Please make sure it is defined." >&2;}
19933 -) cat "$tmp/out" && rm -f "$tmp/out";;
19934 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19936 || as_fn_error "could not create $ac_file" "$LINENO" 5
19942 if test x"$ac_file" != x-; then
19944 $as_echo "/* $configure_input */" \
19945 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19946 } >"$tmp/config.h" \
19947 || as_fn_error "could not create $ac_file" "$LINENO" 5
19948 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19953 mv "$tmp/config.h" "$ac_file" \
19954 || as_fn_error "could not create $ac_file" "$LINENO" 5
19957 $as_echo "/* $configure_input */" \
19958 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19959 || as_fn_error "could not create -" "$LINENO" 5
19963 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19964 $as_echo "$as_me: executing $ac_file commands" >&6;}
19969 case $ac_file$ac_mode in
19972 # See if we are running on zsh, and set the options which allow our
19973 # commands through without removal of \ escapes.
19974 if test -n "${ZSH_VERSION+set}" ; then
19975 setopt NO_GLOB_SUBST
19978 cfgfile="${ofile}T"
19979 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19982 cat <<_LT_EOF >> "$cfgfile"
19985 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19986 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19990 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19991 # 2006, 2007, 2008 Free Software Foundation, Inc.
19992 # Written by Gordon Matzigkeit, 1996
19994 # This file is part of GNU Libtool.
19996 # GNU Libtool is free software; you can redistribute it and/or
19997 # modify it under the terms of the GNU General Public License as
19998 # published by the Free Software Foundation; either version 2 of
19999 # the License, or (at your option) any later version.
20001 # As a special exception to the GNU General Public License,
20002 # if you distribute this file as part of a program or library that
20003 # is built using GNU Libtool, you may include this file under the
20004 # same distribution terms that you use for the rest of that program.
20006 # GNU Libtool is distributed in the hope that it will be useful,
20007 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20009 # GNU General Public License for more details.
20011 # You should have received a copy of the GNU General Public License
20012 # along with GNU Libtool; see the file COPYING. If not, a copy
20013 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20014 # obtained by writing to the Free Software Foundation, Inc.,
20015 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20018 # The names of the tagged configurations supported by this script.
20021 # ### BEGIN LIBTOOL CONFIG
20023 # Which release of libtool.m4 was used?
20024 macro_version=$macro_version
20025 macro_revision=$macro_revision
20027 # Whether or not to build shared libraries.
20028 build_libtool_libs=$enable_shared
20030 # Whether or not to build static libraries.
20031 build_old_libs=$enable_static
20033 # What type of objects to build.
20036 # Whether or not to optimize for fast installation.
20037 fast_install=$enable_fast_install
20040 host_alias=$host_alias
20044 # The build system.
20045 build_alias=$build_alias
20049 # A sed program that does not truncate output.
20052 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20053 Xsed="\$SED -e 1s/^X//"
20055 # A grep program that handles long lines.
20061 # A literal string matcher.
20064 # A BSD- or MS-compatible name lister.
20067 # Whether we need soft or hard links.
20070 # What is the maximum length of a command?
20071 max_cmd_len=$max_cmd_len
20073 # Object file suffix (normally "o").
20076 # Executable file suffix (normally "").
20079 # whether the shell understands "unset".
20082 # turn spaces into newlines.
20085 # turn newlines into spaces.
20088 # How to create reloadable object files.
20089 reload_flag=$lt_reload_flag
20090 reload_cmds=$lt_reload_cmds
20092 # An object symbol dumper.
20093 OBJDUMP=$lt_OBJDUMP
20095 # Method to check whether dependent libraries are shared objects.
20096 deplibs_check_method=$lt_deplibs_check_method
20098 # Command to use when deplibs_check_method == "file_magic".
20099 file_magic_cmd=$lt_file_magic_cmd
20103 AR_FLAGS=$lt_AR_FLAGS
20105 # A symbol stripping program.
20108 # Commands used to install an old-style archive.
20110 old_postinstall_cmds=$lt_old_postinstall_cmds
20111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20116 # LTCC compiler flags.
20117 LTCFLAGS=$lt_CFLAGS
20119 # Take the output of nm and produce a listing of raw symbols and C names.
20120 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20122 # Transform the output of nm in a proper C declaration.
20123 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20125 # Transform the output of nm in a C name address pair.
20126 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20128 # Transform the output of nm in a C name address pair when lib prefix is needed.
20129 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20131 # The name of the directory that contains temporary libtool files.
20134 # Shell to use when invoking shell scripts.
20137 # An echo program that does not interpret backslashes.
20140 # Used to examine libraries when file_magic_cmd begins with "file".
20141 MAGIC_CMD=$MAGIC_CMD
20143 # Must we lock files when doing compilation?
20144 need_locks=$lt_need_locks
20146 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20147 DSYMUTIL=$lt_DSYMUTIL
20149 # Tool to change global to local symbols on Mac OS X.
20152 # Tool to manipulate fat objects and archives on Mac OS X.
20155 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20158 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20159 OTOOL64=$lt_OTOOL64
20161 # Old archive suffix (normally "a").
20164 # Shared library suffix (normally ".so").
20165 shrext_cmds=$lt_shrext_cmds
20167 # The commands to extract the exported symbol list from a shared archive.
20168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20170 # Variables whose values should be saved in libtool wrapper scripts and
20171 # restored at link time.
20172 variables_saved_for_relink=$lt_variables_saved_for_relink
20174 # Do we need the "lib" prefix for modules?
20175 need_lib_prefix=$need_lib_prefix
20177 # Do we need a version for libraries?
20178 need_version=$need_version
20180 # Library versioning type.
20181 version_type=$version_type
20183 # Shared library runtime path variable.
20184 runpath_var=$runpath_var
20186 # Shared library path variable.
20187 shlibpath_var=$shlibpath_var
20189 # Is shlibpath searched before the hard-coded library search path?
20190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20192 # Format of library name prefix.
20193 libname_spec=$lt_libname_spec
20195 # List of archive names. First name is the real one, the rest are links.
20196 # The last name is the one that the linker finds with -lNAME
20197 library_names_spec=$lt_library_names_spec
20199 # The coded name of the library, if different from the real name.
20200 soname_spec=$lt_soname_spec
20202 # Command to use after installation of a shared archive.
20203 postinstall_cmds=$lt_postinstall_cmds
20205 # Command to use after uninstallation of a shared archive.
20206 postuninstall_cmds=$lt_postuninstall_cmds
20208 # Commands used to finish a libtool library installation in a directory.
20209 finish_cmds=$lt_finish_cmds
20211 # As "finish_cmds", except a single script fragment to be evaled but
20213 finish_eval=$lt_finish_eval
20215 # Whether we should hardcode library paths into libraries.
20216 hardcode_into_libs=$hardcode_into_libs
20218 # Compile-time system search path for libraries.
20219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20221 # Run-time system search path for libraries.
20222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20224 # Whether dlopen is supported.
20225 dlopen_support=$enable_dlopen
20227 # Whether dlopen of programs is supported.
20228 dlopen_self=$enable_dlopen_self
20230 # Whether dlopen of statically linked programs is supported.
20231 dlopen_self_static=$enable_dlopen_self_static
20233 # Commands to strip libraries.
20234 old_striplib=$lt_old_striplib
20235 striplib=$lt_striplib
20238 # The linker used to build libraries.
20241 # Commands used to build an old-style archive.
20242 old_archive_cmds=$lt_old_archive_cmds
20244 # A language specific compiler.
20247 # Is the compiler the GNU compiler?
20250 # Compiler flag to turn off builtin functions.
20251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20253 # How to pass a linker flag through the compiler.
20254 wl=$lt_lt_prog_compiler_wl
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic
20259 # Compiler flag to prevent dynamic linking.
20260 link_static_flag=$lt_lt_prog_compiler_static
20262 # Does compiler simultaneously support -c and -o options?
20263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20265 # Whether or not to add -lc for building shared libraries.
20266 build_libtool_need_lc=$archive_cmds_need_lc
20268 # Whether or not to disallow shared libs when runtime libs are static.
20269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20271 # Compiler flag to allow reflexive dlopens.
20272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20274 # Compiler flag to generate shared objects directly from archives.
20275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20277 # Whether the compiler copes with passing no objects directly.
20278 compiler_needs_object=$lt_compiler_needs_object
20280 # Create an old-style archive from a shared archive.
20281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20283 # Create a temporary old-style archive to link instead of a shared archive.
20284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20286 # Commands used to build a shared archive.
20287 archive_cmds=$lt_archive_cmds
20288 archive_expsym_cmds=$lt_archive_expsym_cmds
20290 # Commands used to build a loadable module if different from building
20291 # a shared archive.
20292 module_cmds=$lt_module_cmds
20293 module_expsym_cmds=$lt_module_expsym_cmds
20295 # Whether we are building with GNU ld or not.
20296 with_gnu_ld=$lt_with_gnu_ld
20298 # Flag that allows shared libraries with undefined symbols to be built.
20299 allow_undefined_flag=$lt_allow_undefined_flag
20301 # Flag that enforces no undefined symbols.
20302 no_undefined_flag=$lt_no_undefined_flag
20304 # Flag to hardcode \$libdir into a binary during linking.
20305 # This must work even if \$libdir does not exist
20306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20308 # If ld is used when linking, flag to hardcode \$libdir into a binary
20309 # during linking. This must work even if \$libdir does not exist.
20310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20312 # Whether we need a single "-rpath" flag with a separated argument.
20313 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20316 # DIR into the resulting binary.
20317 hardcode_direct=$hardcode_direct
20319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20320 # DIR into the resulting binary and the resulting library dependency is
20321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20322 # library is relocated.
20323 hardcode_direct_absolute=$hardcode_direct_absolute
20325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20326 # into the resulting binary.
20327 hardcode_minus_L=$hardcode_minus_L
20329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20330 # into the resulting binary.
20331 hardcode_shlibpath_var=$hardcode_shlibpath_var
20333 # Set to "yes" if building a shared library automatically hardcodes DIR
20334 # into the library and all subsequent libraries and executables linked
20336 hardcode_automatic=$hardcode_automatic
20338 # Set to yes if linker adds runtime paths of dependent libraries
20339 # to runtime path list.
20340 inherit_rpath=$inherit_rpath
20342 # Whether libtool must link a program against all its dependency libraries.
20343 link_all_deplibs=$link_all_deplibs
20345 # Fix the shell variable \$srcfile for the compiler.
20346 fix_srcfile_path=$lt_fix_srcfile_path
20348 # Set to "yes" if exported symbols are required.
20349 always_export_symbols=$always_export_symbols
20351 # The commands to list exported symbols.
20352 export_symbols_cmds=$lt_export_symbols_cmds
20354 # Symbols that should not be listed in the preloaded symbols.
20355 exclude_expsyms=$lt_exclude_expsyms
20357 # Symbols that must always be exported.
20358 include_expsyms=$lt_include_expsyms
20360 # Commands necessary for linking programs (against libraries) with templates.
20361 prelink_cmds=$lt_prelink_cmds
20363 # Specify filename containing input files.
20364 file_list_spec=$lt_file_list_spec
20366 # How to hardcode a shared library path into an executable.
20367 hardcode_action=$hardcode_action
20369 # ### END LIBTOOL CONFIG
20375 cat <<\_LT_EOF >> "$cfgfile"
20376 # AIX sometimes has problems with the GCC collect2 program. For some
20377 # reason, if we set the COLLECT_NAMES environment variable, the problems
20378 # vanish in a puff of smoke.
20379 if test "X${COLLECT_NAMES+set}" != Xset; then
20381 export COLLECT_NAMES
20388 ltmain="$ac_aux_dir/ltmain.sh"
20391 # We use sed instead of cat because bash on DJGPP gets confused if
20392 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20393 # text mode, it properly converts lines to CR/LF. This bash problem
20394 # is reportedly fixed, but why not run on old versions too?
20395 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20396 || (rm -f "$cfgfile"; exit 1)
20400 cat << \_LT_EOF >> "$cfgfile"
20402 # func_dirname file append nondir_replacement
20403 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20404 # otherwise set result to NONDIR_REPLACEMENT.
20408 */*) func_dirname_result="${1%/*}${2}" ;;
20409 * ) func_dirname_result="${3}" ;;
20413 # func_basename file
20416 func_basename_result="${1##*/}"
20419 # func_dirname_and_basename file append nondir_replacement
20420 # perform func_basename and func_dirname in a single function
20422 # dirname: Compute the dirname of FILE. If nonempty,
20423 # add APPEND to the result, otherwise set result
20424 # to NONDIR_REPLACEMENT.
20425 # value returned in "$func_dirname_result"
20426 # basename: Compute filename of FILE.
20427 # value retuned in "$func_basename_result"
20428 # Implementation must be kept synchronized with func_dirname
20429 # and func_basename. For efficiency, we do not delegate to
20430 # those functions but instead duplicate the functionality here.
20431 func_dirname_and_basename ()
20434 */*) func_dirname_result="${1%/*}${2}" ;;
20435 * ) func_dirname_result="${3}" ;;
20437 func_basename_result="${1##*/}"
20440 # func_stripname prefix suffix name
20441 # strip PREFIX and SUFFIX off of NAME.
20442 # PREFIX and SUFFIX must not contain globbing or regex special
20443 # characters, hashes, percent signs, but SUFFIX may contain a leading
20444 # dot (in which case that matches only a dot).
20447 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20448 # positional parameters, so assign one to ordinary parameter first.
20449 func_stripname_result=${3}
20450 func_stripname_result=${func_stripname_result#"${1}"}
20451 func_stripname_result=${func_stripname_result%"${2}"}
20457 func_opt_split_opt=${1%%=*}
20458 func_opt_split_arg=${1#*=}
20465 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20466 *) func_lo2o_result=${1} ;;
20470 # func_xform libobj-or-source
20473 func_xform_result=${1%.*}.lo
20476 # func_arith arithmetic-term...
20479 func_arith_result=$(( $* ))
20483 # STRING may not start with a hyphen.
20486 func_len_result=${#1}
20491 *) # Bourne compatible functions.
20492 cat << \_LT_EOF >> "$cfgfile"
20494 # func_dirname file append nondir_replacement
20495 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20496 # otherwise set result to NONDIR_REPLACEMENT.
20499 # Extract subdirectory from the argument.
20500 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20501 if test "X$func_dirname_result" = "X${1}"; then
20502 func_dirname_result="${3}"
20504 func_dirname_result="$func_dirname_result${2}"
20508 # func_basename file
20511 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20515 # func_stripname prefix suffix name
20516 # strip PREFIX and SUFFIX off of NAME.
20517 # PREFIX and SUFFIX must not contain globbing or regex special
20518 # characters, hashes, percent signs, but SUFFIX may contain a leading
20519 # dot (in which case that matches only a dot).
20520 # func_strip_suffix prefix name
20524 .*) func_stripname_result=`$ECHO "X${3}" \
20525 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20526 *) func_stripname_result=`$ECHO "X${3}" \
20527 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20532 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20533 my_sed_long_arg='1s/^-[^=]*=//'
20538 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20539 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20545 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20548 # func_xform libobj-or-source
20551 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20554 # func_arith arithmetic-term...
20557 func_arith_result=`expr "$@"`
20561 # STRING may not start with a hyphen.
20564 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20570 case $lt_shell_append in
20572 cat << \_LT_EOF >> "$cfgfile"
20574 # func_append var value
20575 # Append VALUE to the end of shell variable VAR.
20583 cat << \_LT_EOF >> "$cfgfile"
20585 # func_append var value
20586 # Append VALUE to the end of shell variable VAR.
20597 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20598 || (rm -f "$cfgfile"; exit 1)
20600 mv -f "$cfgfile" "$ofile" ||
20601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20612 ac_clean_files=$ac_clean_files_save
20614 test $ac_write_fail = 0 ||
20615 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20618 # configure is writing to config.log, and then calls config.status.
20619 # config.status does its own redirection, appending to config.log.
20620 # Unfortunately, on DOS this fails, as config.log is still kept open
20621 # by configure, so config.status won't be able to write to it; its
20622 # output is simply discarded. So we exec the FD to /dev/null,
20623 # effectively closing config.log, so it can be properly (re)opened and
20624 # appended to by config.status. When coming back to configure, we
20625 # need to make the FD available again.
20626 if test "$no_create" != yes; then
20628 ac_config_status_args=
20629 test "$silent" = yes &&
20630 ac_config_status_args="$ac_config_status_args --quiet"
20632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20635 # would make configure fail if this is the last instruction.
20636 $ac_cs_success || as_fn_exit $?
20638 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20640 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20644 if test "$with_pam" = "yes"; then
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20648 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}